/* ══════════════════════════════════════════════════════════════
   DayLite store — one design system for shop + product pages.
   Built on the site tokens in site.css, so light/dark both work.
   ══════════════════════════════════════════════════════════════ */
.stx{max-width:1280px;margin:0 auto;padding:0 clamp(14px,3vw,28px)}
.st-page{background:var(--paper);padding-bottom:64px}

/* breadcrumb */
.st-crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);padding:18px 0 14px}
.st-crumbs a{color:var(--muted)}
.st-crumbs a:hover{color:var(--green)}
.st-crumbs svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;fill:none;opacity:.6}
.st-crumbs span:last-child{color:var(--ink);font-weight:600;max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* shared stars */
.stars{display:inline-flex;gap:1px;vertical-align:middle}
.stars svg{width:13px;height:13px}
.stars svg.f{fill:#F5A623;stroke:none}
.stars svg.e{fill:none;stroke:#C9CFD8;stroke-width:1.6}
html[data-theme="dark"] .stars svg.e{stroke:#3A4660}

/* ── PRODUCT CARD (shop grid + related) ─────────────────────── */
/* The shop filter hides products with the hidden attribute; .sc sets display:flex, which would override it, so hidden always wins here. */
.sh-grid [hidden],.sh-side [hidden]{display:none!important}
.sc{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:12px;overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}
.sc:hover{box-shadow:0 10px 28px -12px rgba(12,20,33,.28);border-color:var(--hair-hi);transform:translateY(-2px)}
.sc-img{position:relative;display:block;aspect-ratio:1/1;background:#fff;padding:12px}
.sc-img img{width:100%;height:100%;object-fit:contain;transition:transform .35s ease}
.sc:hover .sc-img img{transform:scale(1.04)}
.sc-badges{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.sc-badge{font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:5px;line-height:1.3;letter-spacing:.01em}
.sc-badge.sale{background:#E5484D;color:#fff}
.sc-badge.tag{background:var(--green);color:#fff}
.sc-badge.low{background:#FFF4E5;color:#B45309}
.sc-soldout{position:absolute;inset:0;background:rgba(255,255,255,.72);display:flex;align-items:center;justify-content:center}
.sc-soldout span{background:#101828;color:#fff;font-size:11px;font-weight:700;padding:5px 12px;border-radius:100px;letter-spacing:.03em}
.sc-wish{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid #E4E7EC;
  display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:transform .15s,border-color .15s}
.sc-wish:hover{transform:scale(1.08);border-color:#E5484D}
.sc-wish svg{width:16px;height:16px;stroke:#344054;stroke-width:2;fill:none}
.sc-wish.on svg{stroke:#E5484D;fill:#E5484D}
.sc-body{display:flex;flex-direction:column;flex:1;padding:10px 12px 12px;gap:3px;border-top:1px solid var(--line-3)}
.sc-cat{font-size:10.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.sc-title{font-size:14px;font-weight:600;line-height:1.4;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden}
.sc-title + .sc-rate{margin-top:-2px}
.sc-title:hover{color:var(--green-d)}
.sc-rate{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--muted);line-height:1.3}
.sc-rate b{color:var(--ink);font-weight:700}
.sc-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;line-height:1.2;margin-top:1px}
.sc-price b{font-size:18px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.sc-price s{font-size:12px;color:var(--muted)}
.sc-price em{font-style:normal;font-size:11.5px;font-weight:700;color:#E5484D}
.sc-meta{font-size:11.5px;color:var(--green-d);font-weight:600;line-height:1.3;margin-bottom:7px}
.sc-meta.out{color:var(--muted)}
.sc-add{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:36px;border-radius:8px;
  border:1.5px solid var(--green);background:transparent;color:var(--green-d);font-size:13px;font-weight:700;cursor:pointer;
  font-family:inherit;transition:background .15s,color .15s}
.sc-add svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none}
.sc-add:hover,.sc-add.done{background:var(--green);color:#fff}
.sc-add:disabled{border-color:var(--line);color:var(--muted);background:var(--line-2);cursor:not-allowed}
html[data-theme="dark"] .sc-add{color:#4ADE80}
html[data-theme="dark"] .sc-add:hover,html[data-theme="dark"] .sc-add.done{color:#fff}

/* ── SHOP PAGE ──────────────────────────────────────────────── */
.sh-head{background:var(--surface);border-bottom:1px solid var(--line)}
.sh-head-in{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 0}
.sh-head h1{font-size:clamp(22px,2.6vw,28px);margin:0;letter-spacing:-.02em}
.sh-head p{font-size:13.5px;color:var(--muted);margin:4px 0 0}
.sh-tools{display:flex;align-items:center;gap:10px}
.sh-search{position:relative;width:280px}
.sh-search input{width:100%;height:40px;border-radius:10px;border:1.5px solid var(--line);background:var(--paper);color:var(--ink);
  padding:0 16px 0 44px;font-size:16px;font-family:inherit;outline:none;transition:border-color .15s}
.sh-search input:focus{border-color:var(--green)}
.sh-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:var(--muted);stroke-width:2;fill:none}

.sh-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding-top:22px;align-items:start}
.sh-side{position:sticky;top:88px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sh-side-h{display:none}
.sh-blk{padding:16px 18px;border-bottom:1px solid var(--line-3)}
.sh-blk:last-child{border-bottom:none}
.sh-blk h4{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--ink);margin:0 0 10px}
.sh-cat{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 10px;margin:0 -10px;width:calc(100% + 20px);
  border:none;background:none;border-radius:7px;font-size:13.5px;color:var(--body);cursor:pointer;font-family:inherit;text-align:left}
.sh-cat:hover{background:var(--line-2);color:var(--ink)}
.sh-cat.on{background:var(--green-tint);color:var(--green-d);font-weight:700}
.sh-cat span{font-size:11.5px;color:var(--muted);font-weight:600}
.sh-subs{margin:0 0 6px;padding-left:2px;border-left:2px solid var(--line);margin-left:2px}
.sh-cat.sh-sub{padding-left:22px;font-size:13px}
.sh-price{display:flex;align-items:center;gap:8px}
.sh-price input{width:100%;min-width:0;height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:16px;
  background:var(--paper);color:var(--ink);font-family:inherit}
.sh-price span{color:var(--muted);font-size:12px}
.sh-check{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--body);padding:5px 0;cursor:pointer}
.sh-check input{width:16px;height:16px;accent-color:var(--green)}
.sh-reset{width:100%;height:36px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);
  font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit}
.sh-reset:hover{background:var(--line-2)}

.sh-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sh-count{font-size:13.5px;color:var(--muted)}
.sh-count b{color:var(--ink)}
.sh-bar-r{display:flex;align-items:center;gap:10px}
.sh-sort{height:40px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:0 12px;
  font-size:14px;font-family:inherit;cursor:pointer}
.sh-filterbtn{display:none;align-items:center;gap:7px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;
  background:var(--surface);color:var(--ink);font-size:13.5px;font-weight:700;cursor:pointer;font-family:inherit}
.sh-filterbtn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.sh-empty{grid-column:1/-1;text-align:center;padding:70px 20px;background:var(--surface);border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
.sh-empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:6px}
.sh-scrim{display:none}

@media(max-width:900px){
  .sh-layout{grid-template-columns:1fr}
  .sh-filterbtn{display:inline-flex}
  .sh-side{position:fixed;top:0;left:0;bottom:0;width:min(320px,86vw);z-index:320;border-radius:0;overflow-y:auto;
    transform:translateX(-102%);transition:transform .28s ease;border:none;box-shadow:0 0 40px rgba(0,0,0,.25)}
  .sh-side.on{transform:none}
  .sh-side-h{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line)}
  .sh-side-h b{font-size:16px;color:var(--ink)}
  .sh-side-h button{width:34px;height:34px;border-radius:50%;border:none;background:var(--line-2);cursor:pointer;display:flex;align-items:center;justify-content:center}
  .sh-side-h svg{width:16px;height:16px;stroke:var(--ink);stroke-width:2;fill:none}
  .sh-scrim{display:block;position:fixed;inset:0;background:rgba(12,20,33,.45);z-index:310;opacity:0;pointer-events:none;transition:opacity .25s}
  .sh-scrim.on{opacity:1;pointer-events:auto}
}
@media(max-width:900px){.sh-tools{width:100%}.sh-search{flex:1;width:auto}}
@media(max-width:560px){
  .sh-search{min-width:0}
  .sh-sort{width:118px;padding:0 8px;font-size:13px}
  .sh-filterbtn{padding:0 10px}
  .sh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sc-img{padding:8px}
  .sc-body{padding:9px 10px 11px;gap:3px}
  .sc-title{font-size:12.5px}
  .sc-price b{font-size:16px}
  .sc-add{height:34px;font-size:12px}
  .sc-add span{display:none}
  .sc-wish{width:30px;height:30px;top:7px;right:7px}
}

/* ── PRODUCT PAGE ───────────────────────────────────────────── */
/* Desktop: gallery | info | buy box, with the tabs full-width underneath.
   .pd-side is invisible to the grid here (display:contents) so info and buy
   box are two separate columns. */
.pd-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 300px;
  grid-template-areas:"gal info buy" "tabs tabs tabs";gap:28px;align-items:start;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px}
.pd-gal{grid-area:gal}
.pd-side{display:contents}
.pd-info{grid-area:info}
.pd-buy{grid-area:buy}
.pd-main .pd-tabs-wrap{grid-area:tabs;margin-top:4px}

/* gallery */
.pd-gal{display:flex;gap:12px}
.pd-thumbs{display:flex;flex-direction:column;gap:8px;flex-shrink:0}
.pd-thumb{width:64px;height:64px;border-radius:8px;border:1.5px solid var(--line);background:#fff;padding:4px;cursor:pointer;transition:border-color .15s}
.pd-thumb img{width:100%;height:100%;object-fit:contain}
.pd-thumb:hover{border-color:var(--hair-hi)}
.pd-thumb.on{border-color:var(--green);box-shadow:0 0 0 2px var(--green-tint)}
.pd-stage{position:relative;flex:1;min-width:0;aspect-ratio:1/1;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:zoom-in}
.pd-stage img{width:100%;height:100%;object-fit:contain;padding:18px;transition:transform .12s ease-out}
.pd-stage.zooming img{transform:scale(2.1)}
.pd-stage-hint{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:rgba(16,24,40,.72);color:#fff;
  font-size:11px;font-weight:600;padding:5px 11px;border-radius:100px;display:flex;align-items:center;gap:5px;pointer-events:none;white-space:nowrap}
.pd-stage-hint svg{width:12px;height:12px;stroke:#fff;stroke-width:2.2;fill:none}
.pd-stage.zooming .pd-stage-hint{opacity:0}
.pd-nav{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid #E4E7EC;
  box-shadow:0 2px 8px rgba(0,0,0,.12);display:none;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.pd-nav svg{width:16px;height:16px;stroke:#101828;stroke-width:2.2;fill:none}
.pd-nav.prev{left:10px}.pd-nav.next{right:10px}
.pd-stage.multi .pd-nav{display:flex}

/* info */
.pd-cat{font-size:12px;font-weight:700;color:var(--green-d);text-transform:uppercase;letter-spacing:.06em}
.pd-title{font-size:clamp(20px,2.1vw,26px);line-height:1.3;letter-spacing:-.02em;margin:6px 0 10px;color:var(--ink)}
.pd-rate{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:13px;color:var(--muted);padding-bottom:14px;border-bottom:1px solid var(--line-3)}
.pd-rate b{color:var(--ink)}
.pd-rate a{color:var(--green-d);font-weight:600}
.pd-rate .sep{width:1px;height:14px;background:var(--line)}
.pd-pricebox{padding:16px 0;border-bottom:1px solid var(--line-3)}
.pd-now{font-size:32px;font-weight:800;color:var(--ink);letter-spacing:-.03em;line-height:1}
.pd-was{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px;color:var(--muted)}
.pd-was s{color:var(--muted)}
.pd-save{background:#FEE4E2;color:#B42318;font-weight:700;font-size:12px;padding:2px 8px;border-radius:5px}
html[data-theme="dark"] .pd-save{background:#3A1A1C;color:#FDA29B}
.pd-tax{font-size:12px;color:var(--muted);margin-top:8px}
.pd-about{padding-top:16px}
.pd-about h3{font-size:14.5px;margin:0 0 10px;color:var(--ink)}
.pd-about ul{margin:0;padding:0;list-style:none}
.pd-about li{position:relative;padding-left:18px;font-size:13.5px;line-height:1.6;color:var(--body);margin-bottom:7px}
.pd-about li::before{content:'';position:absolute;left:3px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--green)}
.pd-keyspecs{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line-3);border:1px solid var(--line-3);border-radius:10px;overflow:hidden;margin-top:16px}
.pd-keyspecs div{background:var(--surface);padding:10px 12px}
.pd-keyspecs span{display:block;font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.pd-keyspecs b{display:block;font-size:13px;color:var(--ink);margin-top:2px;word-break:break-word}

/* buy box */
.pd-buy{position:sticky;top:88px;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface);box-shadow:0 6px 24px -14px rgba(12,20,33,.25)}
.pd-buy-price{font-size:26px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.pd-buy-del{display:flex;gap:10px;align-items:flex-start;margin-top:12px;font-size:13px;color:var(--body);line-height:1.5}
.pd-buy-del svg,.pd-buy-row svg{width:17px;height:17px;stroke:var(--green-d);stroke-width:1.9;fill:none;flex-shrink:0;margin-top:1px}
.pd-buy-del b{color:var(--ink)}
.pd-stock{font-size:15px;font-weight:700;margin:14px 0 12px}
.pd-stock.in{color:#067647}
.pd-stock.low{color:#B45309}
.pd-stock.out{color:#B42318}
html[data-theme="dark"] .pd-stock.in{color:#4ADE80}
.pd-qty{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.pd-qty label{font-size:13px;color:var(--muted);font-weight:600}
.pd-qty-ctl{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.pd-qty-ctl button{width:36px;height:36px;border:none;background:var(--line-2);color:var(--ink);font-size:17px;cursor:pointer}
.pd-qty-ctl button:hover{background:var(--line)}
.pd-qty-ctl input{width:44px;height:36px;border:none;text-align:center;font-size:16px;font-weight:700;background:var(--surface);color:var(--ink);font-family:inherit;-moz-appearance:textfield}
.pd-qty-ctl input::-webkit-inner-spin-button{-webkit-appearance:none}
.pd-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;border-radius:10px;border:none;
  font-size:14.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s,transform .1s}
.pd-btn:active{transform:scale(.99)}
.pd-btn svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none}
.pd-btn.add{background:var(--green);color:#fff}
.pd-btn.add:hover{background:var(--green-d)}
.pd-btn.buy{background:#F59E0B;color:#1F1300;margin-top:10px}
.pd-btn.buy:hover{background:#D97706}
.pd-btn:disabled{background:var(--line-2);color:var(--muted);cursor:not-allowed}
.pd-wish{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:12px;padding:8px;border:none;background:none;
  font-size:13px;font-weight:600;color:var(--body);cursor:pointer;font-family:inherit;border-radius:8px}
.pd-wish:hover{background:var(--line-2)}
.pd-wish svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.pd-wish.on{color:#E5484D}
.pd-wish.on svg{fill:#E5484D}
.pd-buy-rows{margin-top:14px;padding-top:14px;border-top:1px solid var(--line-3);display:grid;gap:10px}
.pd-buy-row{display:flex;gap:10px;font-size:12.5px;color:var(--muted);line-height:1.45}
.pd-buy-row b{color:var(--ink);font-weight:600}
.pd-buy-row a{color:var(--green-d);font-weight:600}

/* tabs */
.pd-tabs-wrap{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
/* A fixed row — no sideways scrolling, nothing to drag. */
.pd-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:0 18px;overflow:hidden;
  user-select:none;-webkit-user-select:none;touch-action:manipulation}
.pd-tab{position:relative;padding:16px 14px;border:none;background:none;font-size:14.5px;font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap;font-family:inherit;
  -webkit-user-drag:none;-webkit-tap-highlight-color:transparent}
.pd-tab .short{display:none}
.pd-tab:hover{color:var(--ink)}
.pd-tab.on{color:var(--ink)}
.pd-tab.on::after{content:'';position:absolute;left:10px;right:10px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--green)}
.pd-tab em{font-style:normal;font-size:12px;color:var(--muted);font-weight:600;margin-left:4px}
.pd-panel{display:none;padding:26px}
.pd-panel.on{display:block}
.pd-desc{max-width:820px;font-size:14.5px;line-height:1.75;color:var(--body)}
.pd-desc p{margin:0 0 12px}
.pd-spec{width:100%;max-width:820px;border-collapse:collapse;font-size:14px}
.pd-spec tr:nth-child(odd) td{background:var(--paper)}
.pd-spec td{padding:12px 16px;border-bottom:1px solid var(--line-3);vertical-align:top}
.pd-spec td:first-child{width:38%;color:var(--muted);font-weight:600}
.pd-spec td:last-child{color:var(--ink)}
.pd-muted{color:var(--muted);font-size:14px}

/* reviews */
.rv-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:36px}
.rv-sum-avg{font-size:44px;font-weight:800;color:var(--ink);line-height:1;letter-spacing:-.03em}
.rv-sum .stars svg{width:18px;height:18px}
.rv-sum-n{font-size:13px;color:var(--muted);margin:6px 0 16px}
.rv-bar{display:grid;grid-template-columns:44px 1fr 34px;align-items:center;gap:10px;font-size:12.5px;color:var(--body);margin-bottom:7px}
.rv-bar i{display:block;height:8px;border-radius:100px;background:var(--line-2);overflow:hidden}
.rv-bar i b{display:block;height:100%;background:#F5A623;border-radius:100px}
.rv-bar span:last-child{text-align:right;color:var(--muted)}
.rv-cta{margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--muted);line-height:1.55}
.rv-cta b{display:block;color:var(--ink);font-size:14px;margin-bottom:4px}
.rv-cta a{color:var(--green-d);font-weight:700}
.rv-item{padding:18px 0;border-bottom:1px solid var(--line-3)}
.rv-item:first-child{padding-top:0}
.rv-who{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rv-av{width:34px;height:34px;border-radius:50%;background:var(--green-tint);color:var(--green-d);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.rv-who b{font-size:13.5px;color:var(--ink);display:block}
.rv-who span{font-size:11.5px;color:var(--muted)}
.rv-verified{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#067647;font-weight:700;margin-left:8px}
html[data-theme="dark"] .rv-verified{color:#4ADE80}
.rv-verified svg{width:12px;height:12px;stroke:currentColor;stroke-width:2.6;fill:none}
.rv-item h5{font-size:14px;margin:6px 0 4px;color:var(--ink)}
.rv-item p{font-size:14px;line-height:1.65;color:var(--body);margin:0}
.rv-form{margin-top:4px}
.rv-form .fld{margin-bottom:12px}
.rv-form label{display:block;font-size:12.5px;font-weight:700;color:var(--ink);margin-bottom:6px}
.rv-form input,.rv-form textarea{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:9px;font-size:16px;font-family:inherit;background:var(--surface);color:var(--ink)}
.rv-form textarea{min-height:100px;resize:vertical}
.rv-pick{display:flex;gap:4px}
.rv-pick button{border:none;background:none;cursor:pointer;padding:2px}
.rv-pick svg{width:26px;height:26px;fill:none;stroke:#C9CFD8;stroke-width:1.6;transition:transform .1s}
.rv-pick button.on svg{fill:#F5A623;stroke:#F5A623}
.rv-pick button:hover svg{transform:scale(1.12)}
.rv-msg{font-size:13px;margin-top:10px}
.rv-msg.ok{color:#067647}.rv-msg.err{color:#B42318}

/* related */
.pd-related{margin-top:28px}
.pd-related h2{font-size:20px;margin:0 0 14px;letter-spacing:-.02em}
.pd-related .sh-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}

/* lightbox */
.pd-lb{position:fixed;inset:0;background:rgba(8,12,20,.94);z-index:500;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s}
.pd-lb.on{opacity:1;visibility:visible}
.pd-lb img{max-width:92vw;max-height:86vh;object-fit:contain;background:#fff;border-radius:8px;padding:12px}
.pd-lb button{position:absolute;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.14);cursor:pointer;display:flex;align-items:center;justify-content:center}
.pd-lb button:hover{background:rgba(255,255,255,.26)}
.pd-lb svg{width:20px;height:20px;stroke:#fff;stroke-width:2;fill:none}
.pd-lb .x{top:18px;right:18px}.pd-lb .l{left:18px;top:50%;transform:translateY(-50%)}.pd-lb .r{right:18px;top:50%;transform:translateY(-50%)}

/* mobile buy bar */
.pd-mbar{display:none}

/* Tablet: image on the left with the tabs directly under it; info + buy box
   stacked on the right. The second row is 1fr so the tall right column
   doesn't push the tabs down and leave a gap under the image. */
@media(max-width:1100px){
  .pd-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;
    grid-template-areas:"gal side" "tabs side";gap:22px}
  .pd-side{display:flex;flex-direction:column;gap:18px;grid-area:side;min-width:0}
  .pd-buy{position:static}
  .pd-main .pd-tabs-wrap{margin-top:0;align-self:start}
  .pd-tab{padding:14px 10px;font-size:13.5px}
  .pd-panel{padding:18px}
  .rv-grid{grid-template-columns:1fr;gap:22px}
}
@media(max-width:760px){
  .pd-main{grid-template-columns:1fr;grid-template-rows:none;grid-template-areas:"gal" "side" "tabs";padding:14px;gap:18px}
  .pd-gal{flex-direction:column-reverse}
  .pd-thumbs{flex-direction:row;overflow-x:auto}
  .pd-thumb{width:56px;height:56px;flex-shrink:0}
  .pd-stage{cursor:default}
  .pd-stage.zooming img{transform:none}
  .pd-stage-hint{display:none}
  .rv-grid{grid-template-columns:1fr;gap:24px}
  .pd-panel{padding:18px}
  .pd-tabs{padding:0 6px;gap:0}
  .pd-tab{flex:1 1 0;min-width:0;padding:14px 4px;font-size:13.5px;text-align:center}
  .pd-tab.on::after{left:6px;right:6px}
  .pd-tab em{margin-left:2px}
  .pd-keyspecs{grid-template-columns:1fr}
  .pd-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:230;background:var(--surface);border-top:1px solid var(--line);
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));gap:10px;align-items:center;box-shadow:0 -6px 20px rgba(12,20,33,.1)}
  .pd-mbar b{font-size:18px;color:var(--ink);white-space:nowrap}
  .pd-mbar .pd-btn{flex:1;height:44px;margin:0}
  .st-page{padding-bottom:96px}
}
.sc-meta.free{color:#067647}
html[data-theme="dark"] .sc-meta.free{color:#4ADE80}

/* product files (Description tab) */
.pd-files{max-width:820px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line-3)}
.pd-files h3{font-size:16px;margin:0 0 14px;color:var(--ink)}
.pd-video{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000;margin-bottom:14px}
.pd-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.pd-docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.pd-doc{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.pd-doc:hover{border-color:var(--green);box-shadow:0 4px 14px -8px rgba(12,20,33,.3)}
.pd-doc-ic{width:40px;height:40px;border-radius:8px;background:#FEE4E2;color:#B42318;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:.03em}
.pd-doc-ic.yt{background:#FF0000;color:#fff;font-size:14px}
.pd-doc-tx{flex:1;min-width:0}
.pd-doc-tx b{display:block;font-size:13.5px;color:var(--ink)}
.pd-doc-tx em{display:block;font-style:normal;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-doc-go{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--green-d);flex-shrink:0}
.pd-doc-go svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none}
@media(max-width:420px){.pd-tab .full{display:none}.pd-tab .short{display:inline}.pd-tab{font-size:13px}}
/* pre-order */
.sc-badge.pre{background:#FFF4E5;color:#B45309}
.sc-meta.pre{color:#B45309}
.sc-add.pre{border-color:#F59E0B;color:#B45309;text-decoration:none}
.sc-add.pre:hover{background:#F59E0B;color:#1F1300}
html[data-theme="dark"] .sc-meta.pre,html[data-theme="dark"] .sc-add.pre{color:#FBBF24}
.pd-stock.pre{color:#B45309}
html[data-theme="dark"] .pd-stock.pre{color:#FBBF24}
.pd-pre{background:#FFF8EB;border:1px solid #FDE7C2;border-radius:10px;padding:10px 12px;margin:-4px 0 14px}
html[data-theme="dark"] .pd-pre{background:#2A2211;border-color:#4A3A17}
.pd-pre-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:4px 0;color:var(--body)}
.pd-pre-row b{color:var(--ink)}

/* share & earn (product page) */
.pd-share{margin:16px 0 4px;padding:14px;border:1px dashed #B7E4CC;background:#F2FBF6;border-radius:12px}
html[data-theme="dark"] .pd-share{background:#0E2A1E;border-color:#1E5A3E}
.pd-share-h{display:flex;gap:11px;align-items:flex-start}
.pd-share-ic{width:34px;height:34px;border-radius:9px;background:var(--green,#0FA968);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pd-share-ic svg{width:18px;height:18px;stroke:#fff;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pd-share-h b{display:block;font-size:13.5px;color:var(--ink);line-height:1.3}
.pd-share-h small{display:block;font-size:12px;color:var(--muted);margin-top:2px;line-height:1.4}
.pd-share-btns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.pd-share-btns>*{flex:1 1 0;min-width:84px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;text-decoration:none}
.pd-share-btns>*:hover{border-color:var(--green,#0FA968);color:var(--green-d,#0B8A54)}
.pd-share-btns svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pd-share-btns .ok{border-color:var(--green,#0FA968);color:var(--green-d,#0B8A54)}
.pd-share-login{display:block;margin-top:10px;text-align:center;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:12.5px;font-weight:700;color:var(--green-d,#0B8A54);text-decoration:none}
