
:root{--ink:#101426;--muted:#667085;--line:#e7e9f2;--blue:#3157ff;--violet:#7c3aed;--bg:#f7f8fc;--green:#168a5b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
button,input,select,textarea{font:inherit}.wrap{max-width:1240px;margin:auto;padding:0 24px}.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.nav{height:76px;display:flex;align-items:center;gap:22px}.brand{font-weight:900;letter-spacing:-.04em;font-size:22px}.brand span{color:var(--blue)}.navlinks{display:flex;gap:18px;margin-left:auto}.nav a{color:var(--ink);text-decoration:none;font-weight:650;font-size:14px}
.iconbtn,.btn{border:0;border-radius:14px;cursor:pointer;font-weight:750}.iconbtn{background:var(--bg);padding:12px 14px}.btn{padding:13px 17px;background:var(--ink);color:white}.btn.alt{background:white;color:var(--ink);border:1px solid var(--line)}.btn.blue{background:linear-gradient(135deg,var(--blue),var(--violet))}
.hero{padding:76px 0 52px;display:grid;grid-template-columns:1.15fr .85fr;gap:42px;align-items:center}.kicker{font-size:12px;font-weight:900;letter-spacing:.16em;color:var(--blue)}h1{font-size:clamp(48px,7vw,92px);line-height:.92;letter-spacing:-.065em;margin:15px 0 22px}.hero p{font-size:20px;line-height:1.55;color:var(--muted);max-width:720px}
.heroart{min-height:430px;border-radius:36px;background:radial-gradient(circle at 70% 20%,#dcd5ff,transparent 34%),linear-gradient(145deg,#f5f7ff,#f7f0ff);position:relative;overflow:hidden}.heroart .book{position:absolute;width:190px;box-shadow:0 24px 60px #3b2f6830;border-radius:9px}.heroart .b1{left:12%;top:14%;transform:rotate(-8deg)}.heroart .b2{right:12%;top:22%;transform:rotate(9deg)}
.search{display:flex;gap:10px;background:var(--bg);padding:8px;border-radius:18px;max-width:680px}.search input{flex:1;border:0;background:transparent;padding:10px;outline:0}.chips{display:flex;gap:8px;overflow:auto;padding:18px 0 4px}.chip{white-space:nowrap;border:1px solid var(--line);background:white;border-radius:999px;padding:9px 13px;cursor:pointer}.chip.active{background:var(--ink);color:white}
.section{padding:46px 0}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section h2{font-size:34px;letter-spacing:-.04em;margin:0}.sub{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{border:1px solid var(--line);border-radius:24px;padding:18px;background:white;transition:.2s}.card:hover{transform:translateY(-3px);box-shadow:0 18px 50px #15182a12}.coverbox{background:var(--bg);border-radius:18px;aspect-ratio:1/1.05;display:grid;place-items:center;overflow:hidden;cursor:pointer}.coverbox img{height:88%;max-width:80%;object-fit:contain}.meta{font-size:12px;font-weight:850;color:var(--blue);text-transform:uppercase;margin-top:16px}.card h3{font-size:22px;margin:7px 0 5px;letter-spacing:-.03em}.claim{color:var(--muted);min-height:44px}.price{font-size:21px;font-weight:900}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.tags{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.tag{font-size:11px;padding:6px 8px;border-radius:8px;background:#f0f2f8;color:#4b5565}
.bundle{background:linear-gradient(135deg,#101426,#27265a);color:white}.bundle .claim,.bundle .meta{color:#cbd0ff}.bundle .tag{background:#ffffff14;color:white}
.drawer{position:fixed;inset:0;z-index:50;pointer-events:none}.shade{position:absolute;inset:0;background:#10142655;opacity:0;transition:.2s}.panel{position:absolute;right:0;top:0;height:100%;width:min(480px,100%);background:white;transform:translateX(100%);transition:.25s;padding:24px;overflow:auto}.drawer.open{pointer-events:auto}.drawer.open .shade{opacity:1}.drawer.open .panel{transform:none}
.cartline{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.small{font-size:13px;color:var(--muted)}.total{font-size:25px;font-weight:900}.checkout{display:grid;gap:10px;margin-top:18px}.checkout input,.checkout select,.checkout textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:12px}.legal{font-size:12px;color:var(--muted);line-height:1.45}.legal input{width:auto}
.modal{position:fixed;inset:0;z-index:70;background:#10142666;display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modalbox{background:white;border-radius:26px;width:min(940px,100%);max-height:92vh;overflow:auto;padding:24px}.productview{display:grid;grid-template-columns:1fr 1fr;gap:28px}.gallerymain{background:var(--bg);border-radius:20px;display:grid;place-items:center;min-height:470px}.gallerymain img{max-height:430px;max-width:85%}.thumbs{display:flex;gap:10px;margin-top:10px}.thumbs img{width:72px;height:92px;object-fit:contain;background:var(--bg);border-radius:10px;cursor:pointer;border:1px solid var(--line)}
.notice{padding:14px;border-radius:14px;background:#f5f7ff;color:#344054;font-size:13px}.success{background:#ecfdf3;color:#067647}.footer{border-top:1px solid var(--line);padding:35px 0 110px;color:var(--muted);font-size:13px}.footergrid{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.mobilebar{display:none}
@media(max-width:850px){.navlinks{display:none}.hero{grid-template-columns:1fr;padding-top:44px}.heroart{min-height:320px}.grid{grid-template-columns:1fr 1fr}.productview{grid-template-columns:1fr}.gallerymain{min-height:360px}}
@media(max-width:600px){.wrap{padding:0 16px}.nav{height:64px}.grid{grid-template-columns:1fr}.hero h1{font-size:54px}.hero p{font-size:17px}.heroart{min-height:270px}.heroart .book{width:130px}.section{padding:34px 0}.mobilebar{display:flex;position:fixed;z-index:35;left:10px;right:10px;bottom:10px;background:#101426;color:white;border-radius:18px;padding:8px;justify-content:space-around}.mobilebar button{background:transparent;color:white;border:0;padding:9px;font-size:12px}.footer{padding-bottom:100px}}
/* V1.1 modern product detail */
.modalbox.product-shell{width:min(1120px,100%);padding:0;overflow:hidden}.product-topbar{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);z-index:2}.productview.modern{grid-template-columns:1.05fr .95fr;gap:0}.product-gallery{padding:32px;background:linear-gradient(145deg,#f7f8fc,#f2f0ff)}.product-info{padding:42px}.product-info h2{font-size:clamp(36px,5vw,58px);line-height:.98;letter-spacing:-.055em;margin:10px 0 12px}.product-claim{font-size:20px;color:var(--muted);line-height:1.45}.product-description{font-size:16px;line-height:1.7;color:#344054}.specgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.spec{padding:12px;background:var(--bg);border-radius:13px}.spec b{display:block;font-size:15px}.spec span{font-size:11px;color:var(--muted)}.buybox{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.buyprice{font-size:34px;font-weight:900;letter-spacing:-.04em}.shippingline{font-size:12px;color:var(--muted);margin:5px 0 16px}.buyactions{display:flex;gap:9px;flex-wrap:wrap}.gallery-label{font-size:11px;font-weight:850;letter-spacing:.08em;color:var(--muted);margin-bottom:10px}.thumbwrap{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.thumbcard{border:1px solid transparent;border-radius:14px;padding:8px;background:#fff8;cursor:pointer}.thumbcard.active{border-color:var(--blue);background:#fff}.thumbcard img{width:100%;height:95px;object-fit:contain}.thumbcard span{display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:4px}.deepbadge{display:inline-flex;align-items:center;gap:6px;background:#eef2ff;color:#3f51c6;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800}.direct-toast{position:fixed;left:50%;top:88px;transform:translateX(-50%);z-index:100;background:#101426;color:white;padding:12px 16px;border-radius:14px;box-shadow:0 15px 45px #10142633;font-size:13px}
@media(max-width:850px){.productview.modern{grid-template-columns:1fr}.product-info{padding:25px}.product-gallery{padding:20px}.modalbox.product-shell{max-height:94vh}.specgrid{grid-template-columns:repeat(3,1fr)}}

.footer a{color:inherit;text-decoration:none}.footer a:hover{text-decoration:underline}.footerlink{border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer}.footerlink:hover{text-decoration:underline}
.paymentnotice{padding:14px 15px;border:1px solid #dfe4ff;background:#f5f7ff;border-radius:14px;font-size:12px;line-height:1.55;color:#344054}
.legalpage{padding-top:70px;padding-bottom:80px;max-width:900px}.legalpage h1{font-size:clamp(48px,8vw,78px);margin-bottom:45px}.legalcontent{max-width:760px}.legalcontent h2{font-size:21px;letter-spacing:-.02em;margin:36px 0 10px}.legalcontent p{color:#475467;line-height:1.72}.legalnote{margin-top:48px;padding:18px;background:#f7f8fc;border-radius:14px;font-size:13px}
.legal a{color:inherit}

/* V1.5 · subtle category color system */
:root{
 --cat-ai:#5568e8;--cat-ai-soft:#f2f4ff;--cat-ai-line:#dfe3ff;
 --cat-robotics:#7758c7;--cat-robotics-soft:#f6f2ff;--cat-robotics-line:#e8ddff;
 --cat-xr:#2582a6;--cat-xr-soft:#eef9fc;--cat-xr-line:#d4eef6;
 --cat-learning:#bc6b35;--cat-learning-soft:#fff7ef;--cat-learning-line:#f5e3d2;
 --cat-food:#38845e;--cat-food-soft:#f0faf4;--cat-food-line:#d8efe1;
}
.chip{transition:background .2s,border-color .2s,color .2s,transform .2s;position:relative}
.chip:hover{transform:translateY(-1px)}
.chip.cat-ai-ki{background:var(--cat-ai-soft);border-color:var(--cat-ai-line);color:#4354c7}
.chip.cat-robotics{background:var(--cat-robotics-soft);border-color:var(--cat-robotics-line);color:#6849b7}
.chip.cat-xr{background:var(--cat-xr-soft);border-color:var(--cat-xr-line);color:#1f7695}
.chip.cat-learning{background:var(--cat-learning-soft);border-color:var(--cat-learning-line);color:#a95e2c}
.chip.cat-food{background:var(--cat-food-soft);border-color:var(--cat-food-line);color:#2f7652}
.chip.active{color:#fff!important;border-color:transparent!important}
.chip.cat-ai-ki.active{background:var(--cat-ai)!important}.chip.cat-robotics.active{background:var(--cat-robotics)!important}
.chip.cat-xr.active{background:var(--cat-xr)!important}.chip.cat-learning.active{background:var(--cat-learning)!important}.chip.cat-food.active{background:var(--cat-food)!important}
.bookcard{position:relative;overflow:hidden;border-color:var(--line);background:#fff}
.bookcard:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:#e7e9f2}
.bookcard.cat-ai-ki{background:linear-gradient(180deg,var(--cat-ai-soft) 0,white 29%);border-color:var(--cat-ai-line)}
.bookcard.cat-ai-ki:before{background:var(--cat-ai)}.bookcard.cat-ai-ki .meta{color:var(--cat-ai)}
.bookcard.cat-robotics{background:linear-gradient(180deg,var(--cat-robotics-soft) 0,white 29%);border-color:var(--cat-robotics-line)}
.bookcard.cat-robotics:before{background:var(--cat-robotics)}.bookcard.cat-robotics .meta{color:var(--cat-robotics)}
.bookcard.cat-xr{background:linear-gradient(180deg,var(--cat-xr-soft) 0,white 29%);border-color:var(--cat-xr-line)}
.bookcard.cat-xr:before{background:var(--cat-xr)}.bookcard.cat-xr .meta{color:var(--cat-xr)}
.bookcard.cat-learning{background:linear-gradient(180deg,var(--cat-learning-soft) 0,white 29%);border-color:var(--cat-learning-line)}
.bookcard.cat-learning:before{background:var(--cat-learning)}.bookcard.cat-learning .meta{color:var(--cat-learning)}
.bookcard.cat-food{background:linear-gradient(180deg,var(--cat-food-soft) 0,white 29%);border-color:var(--cat-food-line)}
.bookcard.cat-food:before{background:var(--cat-food)}.bookcard.cat-food .meta{color:var(--cat-food)}
.bookcard .coverbox{background:rgba(255,255,255,.58);border:1px solid rgba(255,255,255,.75)}
.bookcard:hover{box-shadow:0 22px 55px rgba(25,30,55,.10)}

/* V1.6 featured / coming-soon book */
.featurebook{padding:34px;display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:12px;min-height:430px;background:radial-gradient(circle at 80% 18%,#ddd6fe 0,transparent 31%),linear-gradient(145deg,#f7f8ff,#f7f2ff);border:1px solid #e7e4fa}
.featurecopy{position:relative;z-index:2;align-self:end;padding-bottom:8px}.featurebadge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#101426;color:#fff;font-size:10px;font-weight:900;letter-spacing:.14em}
.featurecategory{margin-top:22px;font-size:11px;font-weight:850;color:#7758c7;text-transform:uppercase;letter-spacing:.12em}.featurecopy h2{font-size:clamp(28px,3.2vw,45px);line-height:.98;letter-spacing:-.055em;margin:8px 0 12px}.featurecopy p{font-size:14px;line-height:1.5;color:#667085;margin:0 0 18px;max-width:290px}.featurelink{font-size:13px;font-weight:800;color:#101426;text-decoration:none}
.featurevisual{position:relative;height:330px;display:grid;place-items:center}.featurevisual .glow{position:absolute;width:230px;height:230px;border-radius:50%;background:#8b7cf633;filter:blur(15px)}.featurevisual img{position:relative;max-height:300px;max-width:92%;object-fit:contain;border-radius:8px;box-shadow:0 30px 60px #362c672b;transform:rotate(4deg);transition:.3s}.featurebook:hover .featurevisual img{transform:rotate(2deg) translateY(-4px)}
.featurebook[data-mode="coming-soon"] .featurebadge{background:linear-gradient(135deg,#3157ff,#7c3aed)}
@media(max-width:600px){.featurebook{grid-template-columns:1fr 1fr;padding:22px;min-height:300px}.featurevisual{height:245px}.featurevisual img{max-height:225px}.featurecopy h2{font-size:28px}.featurecopy p{font-size:12px}}

/* V1.7 · editorial commerce badges */
.coverbox{position:relative}
.bookbadge{position:absolute;z-index:4;top:13px;left:13px;display:inline-flex;align-items:center;padding:7px 9px;border-radius:999px;font-size:9px;line-height:1;font-weight:900;letter-spacing:.11em;background:#101426;color:#fff;box-shadow:0 5px 15px rgba(16,20,38,.10)}
.badge-hot{background:#e75f50}.badge-trending{background:#7458c7}.badge-new{background:#3157ff}.badge-sale{background:#27845b}.badge-bestseller{background:#101426}.badge-editors-pick{background:#fff;color:#101426;border:1px solid #dfe3eb;box-shadow:none}.badge-coming-soon{background:rgba(255,255,255,.9);color:#7758c7;border:1px solid #ddd6fe;box-shadow:none}
.detailbadge{position:static;margin-top:12px}.oldprice{font-size:.65em;color:#98a2b3;text-decoration:line-through;font-weight:650}.saving{display:inline-flex;vertical-align:middle;padding:5px 7px;border-radius:999px;background:#ecfdf3;color:#067647;font-size:10px;font-weight:850}.detailprice .saving{font-size:11px;text-decoration:none}
.chip.cat-highlights{background:#f3f4f7;border-color:#e4e7ec;color:#344054}.chip.cat-highlights.active{background:#101426!important;color:#fff!important}

/* V1.8 price & availability states */
.badge-free{background:#16794f}.badge-preorder{background:#101426}.freeprice{color:#16794f;font-weight:950;letter-spacing:-.02em}
.releaseinfo{display:flex;flex-direction:column;gap:2px;margin:9px 0 2px;padding:9px 11px;border-radius:11px;background:#f7f8fc;border:1px solid #e7e9f2;font-size:11px;color:#667085}.releaseinfo b{color:#101426;font-size:11px}.releaseinfo span{font-size:10.5px}

/* V1.8.1 sale badge now includes calculated discount percentage, e.g. SALE · −19% */
.badge-sale{padding-left:10px;padding-right:10px}

/* V1.8.4 cart commercial-status notes */
.cartstatus{display:flex;flex-direction:column;gap:2px;margin:7px 0;padding:7px 9px;border-radius:9px;font-size:10px;line-height:1.35}
.cartstatus b{font-size:9px;letter-spacing:.08em}.cartstatus span{color:#667085}
.cartstatus.sale{background:#ecfdf3;border:1px solid #d1fadf}.cartstatus.sale b{color:#067647}
.cartstatus.preorder{background:#f5f7ff;border:1px solid #dfe4ff}.cartstatus.preorder b{color:#3157ff}

/* V1.8.5 detail status presentation */
.detail-status-row{margin:12px 0 4px}.detail-status-row .bookbadge{position:static}
.detail-sale{padding:15px 16px;border-radius:15px;background:#ecfdf3;border:1px solid #d1fadf;margin-bottom:12px}.sale-kicker{display:block;font-size:9px;font-weight:950;letter-spacing:.11em;color:#067647;margin-bottom:6px}.detail-sale>div{display:flex;align-items:baseline;gap:10px}.detail-old-price{font-size:15px;color:#98a2b3;text-decoration:line-through}.detail-sale strong{font-size:27px;letter-spacing:-.04em;color:#101426}.detail-sale small{display:block;margin-top:4px;color:#067647;font-weight:750}
.detail-preorder{display:flex;flex-direction:column;gap:4px;padding:14px 15px;border-radius:15px;background:#f5f7ff;border:1px solid #dfe4ff;margin-bottom:12px}.detail-preorder b{font-size:9px;letter-spacing:.11em;color:#3157ff}.detail-preorder strong{font-size:15px;color:#101426}.detail-preorder span{font-size:11px;line-height:1.45;color:#667085}

/* V1.8.7 · MOBILE RESPONSIVE FIX */
.brand{display:flex;align-items:center;min-width:0}.brand img{display:block;width:auto;height:50px;max-width:100%;object-fit:contain}
.chips{scrollbar-width:none}.chips::-webkit-scrollbar{display:none}

@media(max-width:850px){
  .top .wrap{padding-left:16px;padding-right:16px}
  .nav{height:68px;gap:10px}
  .brand{flex:1;min-width:0}
  .brand img{height:42px;max-width:190px}
  .nav>.iconbtn{padding:10px 12px;font-size:12px;white-space:nowrap}
  .nav>.iconbtn:first-of-type{display:none}
  .hero{padding:34px 0 36px;gap:24px}
  .hero>div:first-child{min-width:0}
  .hero h1{font-size:clamp(46px,11vw,68px);overflow-wrap:anywhere}
  .hero p{font-size:18px}
  .search{max-width:none;width:100%}
  .chips{display:flex;flex-wrap:wrap;overflow:visible;gap:7px;padding-top:15px}
  .chip{flex:0 0 auto;padding:8px 11px;font-size:12px}
  .featurebook{width:100%;min-width:0}
}

@media(max-width:600px){
  body{overflow-x:hidden}
  .wrap{width:100%;max-width:100%;padding-left:15px;padding-right:15px}
  .top{backdrop-filter:blur(14px)}
  .nav{height:62px;gap:8px}
  .brand img{height:36px;max-width:145px}
  .nav>.iconbtn:last-child{font-size:0;padding:9px 11px;border-radius:12px}
  .nav>.iconbtn:last-child:before{content:"Cart";font-size:12px}
  .nav>.iconbtn:last-child #cartCount{font-size:12px}
  .nav>.iconbtn:last-child #cartCount:before{content:" · ";}

  .hero{display:flex;flex-direction:column;padding-top:28px;gap:22px}
  .kicker{font-size:10px;letter-spacing:.13em}
  .hero h1{font-size:clamp(42px,14vw,58px);line-height:.94;margin:12px 0 16px;letter-spacing:-.055em}
  .hero p{font-size:16px;line-height:1.5;margin-bottom:18px}
  .search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:6px;border-radius:15px}
  .search input{min-width:0;width:100%;padding:9px 8px;font-size:14px}
  .search .btn{padding:10px 12px;font-size:12px;border-radius:11px}
  .chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:14px 0 0;width:100%}
  .chip{width:100%;min-width:0;text-align:center;padding:9px 6px;font-size:11px;overflow:hidden;text-overflow:ellipsis}
  .chip:first-child,.chip.cat-highlights{grid-column:auto}

  .featurebook{grid-template-columns:minmax(0,1.1fr) minmax(110px,.9fr);padding:20px;min-height:280px;border-radius:24px;gap:8px}
  .featurecopy{min-width:0;padding-bottom:0;align-self:center}
  .featurebadge{padding:6px 8px;font-size:8px;letter-spacing:.1em}
  .featurecategory{margin-top:14px;font-size:9px}
  .featurecopy h2{font-size:clamp(24px,8vw,32px);line-height:1;overflow-wrap:anywhere;margin:6px 0 9px}
  .featurecopy p{font-size:11px;line-height:1.4;margin-bottom:12px}
  .featurelink{font-size:11px}
  .featurevisual{height:220px;min-width:0}
  .featurevisual .glow{width:150px;height:150px}
  .featurevisual img{max-height:205px;max-width:100%;transform:rotate(3deg)}

  .sectionhead{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:16px}
  .section h2{font-size:30px}.sectionhead .sub{font-size:12px}
  .grid{gap:14px}.card{border-radius:20px;padding:14px}.coverbox{border-radius:15px}
  .card h3{font-size:20px}.claim{min-height:auto}
  .panel{padding:18px 15px 96px}
  .modal{padding:8px}.modalbox{border-radius:20px;padding:16px;max-height:96vh}
  .product-gallery{padding:15px}.product-info{padding:19px}.product-info h2{font-size:36px}.product-claim{font-size:17px}
  .gallerymain{min-height:300px}.gallerymain img{max-height:280px}.thumbcard img{height:72px}
  .specgrid{grid-template-columns:1fr 1fr}.specgrid .spec:last-child{grid-column:1/-1}
  .buyactions{display:grid;grid-template-columns:1fr}.buyactions .btn{width:100%}
  .footergrid{flex-direction:column;gap:10px}
}

@media(max-width:390px){
  .brand img{max-width:125px;height:33px}
  .featurebook{grid-template-columns:1fr;padding:18px}
  .featurevisual{height:180px;order:-1}
  .featurevisual img{max-height:170px}
  .featurecopy{text-align:left}
  .chips{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V1.9.2 · PRODUCT DETAIL MOBILE FIX */
@media (max-width: 760px){
  .modal{padding:0!important;align-items:flex-end!important}
  .modalbox.productmodal,
  .modalbox:has(.product-detail){
    width:100%!important;
    max-width:none!important;
    height:94dvh!important;
    max-height:94dvh!important;
    margin:0!important;
    border-radius:22px 22px 0 0!important;
    overflow:hidden!important;
  }
  .product-detail{
    display:block!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    padding:18px!important;
    box-sizing:border-box!important;
  }
  .product-gallery,
  .product-info{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .product-gallery{margin-bottom:22px!important}
  .mainshot{
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:4/3!important;
    padding:16px!important;
    box-sizing:border-box!important;
  }
  .mainshot img{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
  }
  .thumbs{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
  }
  .thumb{
    width:100%!important;
    min-width:0!important;
    height:76px!important;
  }
  .product-info h2{
    font-size:clamp(30px,10vw,44px)!important;
    line-height:.98!important;
    overflow-wrap:anywhere;
  }
  .product-claim,.product-desc{max-width:none!important}
  .specgrid{
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    gap:8px!important;
  }
  .spec{min-width:0!important;padding:11px!important}
  .buybox{
    width:100%!important;
    box-sizing:border-box!important;
    padding:14px!important;
    margin-top:18px!important;
  }
  .buyactions,.product-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    width:100%!important;
  }
  .buybox .btn,.product-info .btn{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    justify-content:center!important;
  }
  .detail-sale,.detail-preorder,.releaseinfo{
    width:100%!important;
    box-sizing:border-box!important;
  }
  .detail-sale>div{flex-wrap:wrap!important}
  .shippingline{line-height:1.45!important}
  .modalclose{
    position:sticky!important;
    top:8px!important;
    float:right!important;
    z-index:30!important;
  }
}
@media (max-width: 390px){
  .product-detail{padding:14px!important}
  .product-info h2{font-size:30px!important}
  .specgrid{grid-template-columns:1fr!important}
  .mainshot{aspect-ratio:1/1!important}
  .thumb{height:64px!important}
}

/* V1.9.3 · ROBUST MOBILE DETAIL SCROLL FIX */
@media (max-width:760px){
  body:has(#productModal.show){overflow:hidden!important}

  #productModal{
    position:fixed!important;
    inset:0!important;
    display:none;
    align-items:flex-end!important;
    padding:0!important;
    overflow:hidden!important;
    overscroll-behavior:contain;
  }
  #productModal.show{display:flex!important}

  #productModal .modalbox{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:94dvh!important;
    max-height:94dvh!important;
    margin:0!important;
    padding:0!important;
    border-radius:22px 22px 0 0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    scrollbar-gutter:stable;
  }

  #productModal .product-detail{
    display:block!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    overflow:visible!important;
    padding:18px 18px calc(40px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
  }

  #productModal .modalclose{
    position:sticky!important;
    top:10px!important;
    margin:10px 10px -48px auto!important;
    display:flex!important;
    z-index:100!important;
  }

  #productModal .product-gallery,
  #productModal .product-info,
  #productModal .buybox{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  #productModal .buybox{
    margin-bottom:20px!important;
  }
}

/* V1.9.4 · brand logo in product detail */
.detail-brandbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:54px;
  margin:0 0 14px;
  padding-right:54px;
}
.detail-brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.detail-brand img{
  display:block;
  width:auto;
  height:42px;
  max-width:190px;
  object-fit:contain;
  object-position:left center;
}
@media(max-width:760px){
  #productModal .detail-brandbar{
    position:relative;
    min-height:48px;
    margin:0 0 12px;
    padding:0 52px 0 0;
  }
  #productModal .detail-brand img{
    height:36px;
    max-width:155px;
  }
}
@media(max-width:390px){
  #productModal .detail-brand img{
    height:32px;
    max-width:140px;
  }
}

/* V1.9.5 · robust detail mobile + branding; no :has dependency */
.detail-brandbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:48px!important;margin:0 0 14px!important;padding:0 56px 0 0!important;box-sizing:border-box!important}
.detail-brand-logo{display:block!important;width:auto!important;height:38px!important;max-width:170px!important;object-fit:contain!important;object-position:left center!important}

@media(max-width:760px){
  #productModal.modal.show{
    display:flex!important;
    position:fixed!important;
    inset:0!important;
    z-index:9999!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:0!important;
    background:rgba(16,20,38,.48)!important;
    overflow:hidden!important;
  }
  #productModal .modalbox{
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    height:94vh!important;
    height:94dvh!important;
    max-height:94vh!important;
    max-height:94dvh!important;
    margin:0!important;
    padding:0!important;
    border-radius:22px 22px 0 0!important;
    background:#fff!important;
    overflow-y:scroll!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  #productModal .product-detail{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    padding:16px 16px calc(42px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
  }
  #productModal .detail-brandbar{min-height:44px!important;margin-bottom:12px!important;padding-right:52px!important}
  #productModal .detail-brand-logo{height:34px!important;max-width:150px!important}
  #productModal .modalclose{
    position:sticky!important;
    top:8px!important;
    float:right!important;
    margin:8px 8px -48px 0!important;
    z-index:100!important;
  }
  #productModal .product-gallery,#productModal .product-info{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
  #productModal .mainshot{width:100%!important;height:auto!important;aspect-ratio:4/3!important;box-sizing:border-box!important}
  #productModal .mainshot img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important}
  #productModal .thumbs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;gap:8px!important}
  #productModal .thumb{width:100%!important;min-width:0!important}
  #productModal .specgrid{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  #productModal .buybox{width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important;box-sizing:border-box!important}
  #productModal .btn{max-width:100%!important}
}
@media(max-width:390px){
  #productModal .detail-brand-logo{height:30px!important;max-width:135px!important}
  #productModal .specgrid{grid-template-columns:1fr!important}
}

/* V1.9.5a · ACTUAL PRODUCT MODAL FIX (.open state) */
.product-logo-wrap{display:flex;align-items:center;justify-content:flex-start;min-width:0}
.product-logo{display:block;width:auto;height:40px;max-width:180px;object-fit:contain;object-position:left center}

@media(max-width:760px){
  #productModal.modal.open{
    display:flex!important;
    position:fixed!important;
    inset:0!important;
    z-index:9999!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:0!important;
    overflow:hidden!important;
    background:rgba(16,20,38,.48)!important;
  }
  #productModal .product-shell{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:94vh!important;
    height:94dvh!important;
    max-height:94vh!important;
    max-height:94dvh!important;
    margin:0!important;
    padding:0!important;
    border-radius:22px 22px 0 0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    background:#fff!important;
  }
  #productModal .product-topbar{
    position:sticky!important;
    top:0!important;
    z-index:50!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:62px!important;
    padding:10px 14px!important;
    background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(12px);
    border-bottom:1px solid #eaecf0!important;
    box-sizing:border-box!important;
  }
  #productModal .product-logo{height:34px!important;max-width:150px!important}
  #productModal #productBody{display:block!important;width:100%!important;overflow:visible!important}
  #productModal .productview.modern{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    padding:16px 16px calc(40px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
  }
  #productModal .product-gallery,#productModal .product-info{
    display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  }
  #productModal .gallerymain{width:100%!important;height:auto!important;aspect-ratio:4/3!important}
  #productModal .gallerymain img{width:100%!important;height:100%!important;object-fit:contain!important}
  #productModal .thumbwrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
  #productModal .thumbcard{width:100%!important;min-width:0!important}
  #productModal .specgrid{grid-template-columns:1fr 1fr!important}
  #productModal .buybox{width:100%!important;box-sizing:border-box!important}
}
@media(max-width:390px){
  #productModal .product-logo{height:30px!important;max-width:135px!important}
  #productModal .specgrid{grid-template-columns:1fr!important}
}

/* V1.9.6 · responsive header navigation + explicit detail branding */
.shopbrand{display:flex;align-items:center;text-decoration:none}.shopbrand img{display:block;height:50px;width:auto;max-width:210px;object-fit:contain}
.desktop-actions{display:flex;align-items:center;gap:8px}.mobile-actions,.mobile-menu{display:none}
.detail-shop-label{font-size:9px;font-weight:900;letter-spacing:.16em;color:#7758c7;margin-left:10px;white-space:nowrap}
#productModal .product-logo-wrap{display:flex!important;align-items:center!important;min-width:0!important}
#productModal .product-logo{display:block!important;visibility:visible!important;opacity:1!important;height:44px!important;width:auto!important;max-width:205px!important;object-fit:contain!important}

@media(max-width:850px){
  .top .navlinks,.desktop-actions{display:none!important}
  .top .nav{height:66px!important;display:flex!important;justify-content:space-between!important;gap:10px!important}
  .shopbrand{min-width:0;flex:1}.shopbrand img{height:42px;max-width:155px}
  .mobile-actions{display:flex!important;align-items:center;gap:8px}
  .mobile-cart{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 10px;font-size:11px;font-weight:800;color:var(--ink)}
  .burger{width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:0}
  .burger span{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink);transition:.2s}
  .burger.open span:nth-child(1){transform:translateY(6px) rotate(45deg)}.burger.open span:nth-child(2){opacity:0}.burger.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .mobile-menu{display:block;position:absolute;left:0;right:0;top:66px;z-index:80;background:rgba(255,255,255,.98);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);opacity:0;visibility:hidden;transform:translateY(-8px);transition:.2s}
  .mobile-menu.open{opacity:1;visibility:visible;transform:none}
  .mobile-menu-inner{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px!important;padding-bottom:16px!important}
  .mobile-menu a,.mobile-menu button{display:flex;align-items:center;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:750;text-decoration:none;text-align:left}
  #productModal .product-topbar{display:flex!important;visibility:visible!important;min-height:68px!important}
  #productModal .product-logo{height:38px!important;max-width:170px!important}
  #productModal .detail-shop-label{font-size:8px;margin-left:7px}
}
@media(max-width:390px){
  .shopbrand img{height:37px;max-width:135px}.mobile-cart{padding:8px;font-size:10px}.burger{width:39px;height:39px}
  #productModal .product-logo{height:34px!important;max-width:145px!important}
  #productModal .detail-shop-label{display:none}
}

/* V1.9.7 featured book uses same detail modal */
.featurevisual[role="button"]{cursor:pointer}.featurevisual[role="button"]:focus-visible{outline:2px solid #7758c7;outline-offset:4px;border-radius:16px}
