/* China Traders product page, compact marketplace layout. Loaded after storefront.css; scoped under .ch-theme.
   Gallery state, variants, cart and quantity behaviour stay with the native v2 owners (product.js); this file only
   re-lays-out and restyles them.

   Layout (>=960px):  [ thumbs | photo ]   [ buy box (sticky card) ]
                      [ product details  ]   [ ...follows you down      ]
   blocks/pdp-details.sg renders the buy blocks in `.vo-pdp-details` and the description in a sibling
   `.vo-pdp-info`, so the buy box can stay in view while the long description scrolls past (Alibaba-style). */

/* ---------- Page frame ---------- */
.ch-theme main .vo-pdp { --pdp-gap:0px; padding-top:18px; padding-bottom:36px; }
.ch-theme main .vo-pdp .vo-pdp-layout { max-width:1240px; row-gap:0; }
.ch-theme main .vo-pdp .vo-pdp-details { gap:0; }
.ch-theme main .vo-shell:has(> nav[aria-label="Breadcrumb"]):has(+ .vo-pdp) { max-width:calc(1240px + 2 * var(--vo-gutter,32px)); }
.ch-theme main .vo-pdp ~ section > .vo-shell,.ch-theme main .vo-pdp ~ section.vo-section > .vo-shell.vo-content-flow { max-width:calc(1240px + 2 * var(--vo-gutter,32px)); }
.ch-theme nav[aria-label="Breadcrumb"] { font-size:14px; letter-spacing:.03em; color:var(--ch-muted); }
.ch-theme nav[aria-label="Breadcrumb"] a:hover { color:var(--ch-ink); }
.ch-theme nav[aria-label="Breadcrumb"] [aria-current="page"] { display:inline-block; max-width:min(60ch,60vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; }

@media (min-width:960px) {
 .ch-theme main .vo-pdp .vo-pdp-layout { grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:56px; align-items:start; }
 .ch-theme main .vo-pdp .vo-pdp-media-column { grid-column:1; grid-row:1; }
 .ch-theme main .vo-pdp .vo-pdp-info { grid-column:1; grid-row:2; }
 /* the buy box: a card that stays in view for the whole length of the page */
 .ch-theme main .vo-pdp .vo-pdp-details { grid-column:2; grid-row:1 / span 2; position:sticky; top:96px; align-self:start; padding-top:4px; }
 .ch-theme .vo-pdp-sticky-cart { display:none!important; }
}
@media (max-width:959px) {
 .ch-theme main .vo-pdp .vo-pdp-layout { grid-template-columns:minmax(0,1fr); max-width:680px; }
 .ch-theme main .vo-pdp .vo-pdp-media-column { margin-bottom:22px; }
}

/* ---------- Gallery: vertical thumbs + photo ---------- */
.ch-theme .vo-pdp .vo-pdp-gallery [data-gallery-slide] { border:0; border-radius:16px; background:#fff; }
.ch-theme .vo-pdp-zoom { width:40px; height:40px; font-size:22px; background:rgba(255,255,255,.94); box-shadow:0 6px 16px -8px rgba(27,25,22,.5); }
.ch-theme [data-product-sale] { background:var(--ch-sale-bg)!important; color:var(--ch-sale)!important; border-radius:6px; padding:5px 10px!important; font-size:11px!important; font-weight:500; letter-spacing:.08em; }
/* arrows live on the photo (the native layout pushes them 48px outside, where the left one is clipped) */
@media (min-width:640px) {
 .ch-theme main [data-product-detail] [data-gallery] > [aria-roledescription="carousel"] { margin-inline:0; }
 .ch-theme main [data-product-detail] [data-gallery-prev] { inset-inline-start:12px; inset-inline-end:auto; }
 .ch-theme main [data-product-detail] [data-gallery-next] { inset-inline-end:12px; inset-inline-start:auto; }
 .ch-theme main [data-product-detail] [data-gallery-prev],.ch-theme main [data-product-detail] [data-gallery-next] { width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.94); color:var(--ch-ink); box-shadow:0 6px 16px -8px rgba(27,25,22,.5); transition:background .2s,color .2s; }
 .ch-theme main [data-product-detail] [data-gallery-prev]:hover,.ch-theme main [data-product-detail] [data-gallery-next]:hover { background:var(--ch-primary); color:var(--ch-on-primary); }
}
.ch-theme .vo-pdp-gallery [data-gallery-thumbs] button { border:0; border-radius:12px; background:#fff; overflow:hidden; transition:box-shadow .2s; }
.ch-theme .vo-pdp-gallery [data-gallery-thumbs] button:hover { opacity:1; }
.ch-theme .vo-pdp-gallery [data-gallery-thumbs] button:is([aria-current="true"],[aria-pressed="true"],[data-active="true"]) { opacity:1; box-shadow:0 0 0 2px var(--ch-ink); }
/* tablet/phone: one row of small thumbs under the photo (phones use the dots instead) */
@media (min-width:640px) {
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs] { display:flex; gap:10px; margin-top:12px; padding:2px; overflow-x:auto; scrollbar-width:none; }
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs]::-webkit-scrollbar { display:none; }
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs] li { flex:none; width:68px; }
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs] button { aspect-ratio:1; height:auto; }
}
@media (min-width:960px) {
 .ch-theme .vo-pdp .vo-pdp-gallery { display:grid; grid-template-columns:76px minmax(0,1fr); column-gap:14px; align-items:start; }
 .ch-theme .vo-pdp .vo-pdp-gallery > [aria-roledescription="carousel"] { grid-column:2; grid-row:1; min-width:0; }
 /* contain:size keeps the strip from stretching the row; it scrolls inside the photo's height */
 .ch-theme .vo-pdp .vo-pdp-gallery [data-gallery-thumbs] { grid-column:1; grid-row:1; align-self:stretch; contain:size; flex-direction:column; gap:10px; margin:0; padding:2px; overflow-x:hidden; overflow-y:auto; }
 .ch-theme .vo-pdp .vo-pdp-gallery [data-gallery-thumbs] li { width:72px; }
 .ch-theme .vo-pdp .vo-pdp-gallery:has([data-gallery-thumbs][style*="display:none"]),.ch-theme .vo-pdp .vo-pdp-gallery:has([data-gallery-thumbs][style*="display: none"]) { grid-template-columns:minmax(0,1fr); }
 .ch-theme .vo-pdp .vo-pdp-gallery:has([data-gallery-thumbs][style*="display:none"]) > [aria-roledescription="carousel"],.ch-theme .vo-pdp .vo-pdp-gallery:has([data-gallery-thumbs][style*="display: none"]) > [aria-roledescription="carousel"] { grid-column:1; }
}

/* ---------- Buy panel: header ---------- */
.ch-theme .vo-pdp-header { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:0 0 26px; }
.ch-theme .vo-pdp-header > * { order:2; flex:0 0 100%; margin:0; }
.ch-theme .vo-pdp-header > div:not(:has(*)) { display:none; }
.ch-theme .vo-pdp-header > .vo-pdp-title { order:1; }
.ch-theme .vo-pdp-header > .vo-pdp-price { order:3; }
.ch-theme .vo-pdp-header > [data-product-discount] { order:4; flex:0 0 auto; }
.ch-theme .vo-pdp-header > [data-product-stock] { order:5; flex:0 0 auto; }
.ch-theme .vo-pdp-header > [data-product-sku] { order:6; flex:0 1 auto; }
.ch-theme .vo-pdp-header > .vo-product-offer-container { order:7; }
.ch-theme .vo-pdp-title .vo-h1 { font-size:clamp(22px,2vw,28px); font-weight:500; line-height:1.28; letter-spacing:-.01em; color:var(--ch-ink); }
.ch-theme .vo-pdp [data-product-sku] { font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ch-muted); }
.ch-theme .vo-pdp-price { gap:4px 12px; }
.ch-theme .vo-pdp-price .text-2xl { font-size:30px; font-weight:600; letter-spacing:0; line-height:1.15; color:var(--ch-ink); }
.ch-theme .vo-pdp-price s { font-size:17px; font-weight:400; color:#9a9486; }
.ch-theme .vo-pdp .vo-saving { align-self:center; display:inline-flex; width:auto; min-height:0; margin:0; padding:4px 10px; border:0; border-radius:6px; background:var(--ch-sale-bg); color:var(--ch-sale); font-size:12px; font-weight:500; letter-spacing:.08em; line-height:1.3; }
.ch-theme .vo-pdp [data-product-stock] { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:13.5px; font-weight:500; letter-spacing:.02em; color:#2f7d4f; }
.ch-theme .vo-pdp [data-product-stock]::before { content:''; width:8px; height:8px; border-radius:50%; background:currentColor; }
.ch-theme .vo-pdp [data-product-stock].is-out { color:var(--ch-sale); }
.ch-theme .vo-pdp-details > hr { display:none; }

/* ---------- Options ---------- */
.ch-theme .vo-pdp-options { gap:18px; margin-bottom:22px; }
.ch-theme .vo-pdp-details > :has(> .vo-pdp-options) { margin-bottom:0; }
.ch-theme .vo-pdp-options legend { margin-bottom:10px; font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ch-muted); }
.ch-theme .vo-pdp-options [data-selected-option] { margin-inline-start:6px; font-weight:500; letter-spacing:.04em; color:var(--ch-ink); text-transform:none; }
.ch-theme .vo-pdp-options[data-show-labels="false"] [data-option-display="colors"] .vo-swatch[data-has-color="true"] { width:40px; height:40px; min-height:0; padding:6px; border:0; background:transparent; }
.ch-theme .vo-pdp-color { width:100%; height:100%; border:1px solid rgba(27,25,22,.12); background:var(--ch-swatch,transparent); }
.ch-theme .vo-pdp-options input:checked + .vo-swatch { background:transparent; box-shadow:0 0 0 2px var(--ch-ink); border-color:transparent; }
.ch-theme .vo-pdp-options input:not(:checked) + .vo-swatch:hover { box-shadow:0 0 0 2px #d9d2c3; }
.ch-theme .vo-pdp-options [data-option-display="buttons"] .vo-swatch,.ch-theme .vo-pdp-options [data-option-display="labels"] .vo-swatch { min-height:40px; border-radius:999px; padding:0 18px; font-size:14px; }

/* image selector: each value shows that variant's own photo; no outlines, one ring on the chosen one */
.ch-theme .vo-pdp-options [data-option-display="images"] .vo-option-values { gap:12px; }
.ch-theme .vo-pdp-options [data-option-display="images"] .vo-swatch { position:relative; width:var(--option-image-size,68px); height:var(--option-image-size,68px); min-height:0; padding:0; overflow:hidden; border:0; border-radius:14px; background:#fff; transition:box-shadow .2s,opacity .2s; }
.ch-theme .vo-pdp-options [data-option-display="images"] .vo-option-image { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; border-radius:0; object-fit:contain; }
.ch-theme .vo-pdp-options [data-option-display="images"] .vo-swatch:not([data-has-image="true"]) { width:auto; min-width:var(--option-image-size,68px); padding:0 16px; flex-direction:row; justify-content:center; font-size:14px; }
.ch-theme .vo-pdp-options [data-option-display="images"] input:not(:checked) + .vo-swatch:hover { opacity:1; box-shadow:0 0 0 2px #d9d2c3; }
.ch-theme .vo-pdp-options [data-option-display="images"] input:checked + .vo-swatch { box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ch-ink); }

/* ---------- Purchase: [ qty ][ Add to cart ][ Buy now ] on one row ---------- */
.ch-theme .vo-pdp-purchase { display:grid; grid-template-columns:auto minmax(0,1fr) minmax(0,1fr); gap:10px; align-items:stretch; margin-bottom:18px; }
.ch-theme .vo-pdp-quantity-row { order:1; grid-column:1; margin:0; padding:0; border:0; gap:0; }
.ch-theme .vo-pdp-quantity-row > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.ch-theme .vo-pdp-quantity { min-height:52px; border:0; border-radius:999px; background:#f7f5f0; }
.ch-theme .vo-pdp-quantity button { width:40px; font-size:18px; color:var(--ch-ink); }
.ch-theme .vo-pdp-quantity button:hover { color:var(--ch-orange-deep); }
.ch-theme .vo-pdp-quantity input { width:38px; font-family:var(--ch-font); font-size:16px; }
.ch-theme .vo-pdp-purchase .vo-btn { min-height:52px; padding-inline:12px; font-family:var(--ch-font); font-size:13px; font-weight:500; letter-spacing:.09em; white-space:nowrap; transition:background .2s,color .2s,border-color .2s; }
.ch-theme .vo-pdp-purchase [data-add-to-cart] { order:2; }
.ch-theme .vo-pdp-purchase [data-buy-now] { order:3; }
.ch-theme .vo-pdp-purchase [data-add-to-cart]:not(.vo-btn--alt),.ch-theme .vo-pdp-purchase [data-add-to-cart]:disabled { grid-column:2 / -1; }
.ch-theme .vo-pdp-purchase [data-buy-now]:disabled { display:none; }
.ch-theme .vo-pdp-purchase [data-add-to-cart].vo-btn--alt { background:#fdeed9; color:var(--ch-ink); border:0; }
.ch-theme .vo-pdp-purchase [data-add-to-cart].vo-btn--alt:not(:disabled):hover { background:#fbdfb6; color:var(--ch-ink); }
.ch-theme .vo-pdp-purchase .vo-btn:disabled { background:#efeadf; border-color:#efeadf; color:#9a9486; }
@media (max-width:639px) {
 .ch-theme .vo-pdp-purchase { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .ch-theme .vo-pdp-quantity-row { grid-column:1 / -1; justify-content:space-between; }
 .ch-theme .vo-pdp-quantity-row > span { position:static; width:auto; height:auto; clip-path:none; font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ch-muted); }
 .ch-theme .vo-pdp-purchase [data-add-to-cart]:not(.vo-btn--alt),.ch-theme .vo-pdp-purchase [data-add-to-cart]:disabled { grid-column:1 / -1; }
}

/* ---------- Accordions in the buy column ---------- */
/* Delivery & returns is hidden for now; delete this rule to show it again. */
.ch-theme .vo-pdp-details > .vo-content-block:has(> details:not([data-product-specifications])) { display:none; }
.ch-theme .vo-pdp-details > :is(details,.vo-content-block:has(> details)) { margin:0; }
.ch-theme .vo-pdp-details details,.ch-theme .vo-pdp-disclosures > details { padding:0; border:0; border-bottom:1px solid var(--ch-line); }
.ch-theme .vo-pdp-details details > summary { display:flex; align-items:center; justify-content:space-between; min-height:54px; padding:0; font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ch-ink); list-style:none; cursor:pointer; }
.ch-theme .vo-pdp-details details > summary::-webkit-details-marker { display:none; }
.ch-theme .vo-pdp-details details > summary::after { content:''; flex:none; width:9px; height:9px; margin-right:4px; border-right:1.5px solid #6f6a60; border-bottom:1.5px solid #6f6a60; transform:rotate(45deg) translateY(-3px); transition:transform .2s; }
.ch-theme .vo-pdp-details details[open] > summary::after { transform:rotate(-135deg) translate(-2px,-2px); }
.ch-theme .vo-pdp-details details > :not(summary) { padding-bottom:20px; font-size:15px; line-height:1.7; color:var(--ch-body); }

/* ---------- Description ----------
   The prose sits in the buy box (right, under the buttons) and the pictures in `.vo-pdp-info` (left, under the
   gallery). The split is done by the strip_images / image_sources filters, so products without text or without
   pictures simply render the half they have. */
.ch-theme .vo-pdp-details > div:not(:has(*)) { display:none; }
.ch-theme .vo-pdp-details > div:has(> .vo-prose) { margin-top:28px; }
.ch-theme .vo-pdp-details > div:has(> .vo-prose)::before { content:'Description'; display:block; margin-bottom:12px; font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ch-muted); }
.ch-theme .vo-pdp-details .vo-prose { font-size:15px; line-height:1.7; color:var(--ch-body); }
.ch-theme .vo-pdp-details .vo-prose p { margin:0 0 10px; }
.ch-theme .vo-pdp-details .vo-prose :is(h1,h2,h3,h4) { margin:16px 0 8px; font-size:17px; font-weight:500; letter-spacing:0; color:var(--ch-ink); }
.ch-theme .vo-pdp-details .vo-prose :is(ul,ol) { margin:0 0 10px; padding-left:20px; }
.ch-theme .vo-pdp-details .vo-prose table { display:block; max-width:100%; overflow-x:auto; font-size:14px; border-collapse:collapse; }
.ch-theme .vo-pdp-details .vo-prose :is(td,th) { padding:6px 10px; border-bottom:1px solid var(--ch-line); text-align:left; }
@media (min-width:960px) {
 /* long copy scrolls inside the sticky box so the buttons never leave the screen */
 .ch-theme .vo-pdp-details > div:has(> .vo-prose) { position:relative; }
 .ch-theme .vo-pdp-details .vo-prose { max-height:max(200px,calc(100vh - 590px)); overflow-y:auto; overscroll-behavior:contain; padding-right:16px; }
 /* no scrollbar: the fade and the "Scroll to read more" button are the cue */
 .ch-theme .vo-pdp-details .vo-prose { scrollbar-width:none; padding-right:0; }
 .ch-theme .vo-pdp-details .vo-prose::-webkit-scrollbar { display:none; }
 .ch-theme .vo-pdp-details .vo-prose:focus-visible { outline:2px solid var(--ch-primary); outline-offset:4px; border-radius:6px; }
}
/* fade + "Scroll to read more" cue (built by product-page.js, only while there is more text below) */
.ch-scroll-hint { position:absolute; inset-inline:0; bottom:0; height:84px; display:flex; align-items:flex-end; justify-content:center; background:linear-gradient(rgba(255,255,255,0),#fff 78%); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s,visibility .25s; }
.ch-scroll-hint[data-show="true"] { opacity:1; visibility:visible; }
.ch-scroll-hint button { pointer-events:auto; display:inline-flex; align-items:center; gap:8px; margin-bottom:6px; padding:9px 16px 9px 18px; border:0; border-radius:999px; background:var(--ch-ink); color:#fff; font:500 12px/1 var(--ch-font); letter-spacing:.1em; text-transform:uppercase; cursor:pointer; box-shadow:0 10px 22px -12px rgba(27,25,22,.6); transition:background .2s,color .2s; }
.ch-scroll-hint button:hover { background:var(--ch-primary); color:var(--ch-on-primary); }
.ch-scroll-hint svg { animation:ch-nudge 1.6s ease-in-out infinite; }
@keyframes ch-nudge { 0%,100% { transform:translateY(-1px); } 50% { transform:translateY(3px); } }
@media (prefers-reduced-motion:reduce) { .ch-scroll-hint svg { animation:none; } }
.ch-theme main .vo-pdp .vo-pdp-info { min-width:0; margin-top:48px; }
.ch-theme main .vo-pdp .vo-pdp-info::before { content:'Product details'; display:block; margin-bottom:16px; font-size:22px; font-weight:500; letter-spacing:-.01em; color:var(--ch-ink); }
.ch-theme .vo-pdp-desc-images { display:grid; gap:14px; }
.ch-theme .vo-pdp-desc-images img { display:block; width:100%; height:auto; border-radius:14px; background:#f7f5f0; }

/* ---------- Reviews + related ---------- */
.ch-theme [class*="review"],.ch-theme [class*="review"] :is(h2,h3,p,a,button,span,label,input,textarea) { font-family:var(--ch-font); }
.ch-theme main .vo-pdp ~ section.vo-section h2 { font-size:30px; font-weight:400; letter-spacing:-.012em; }
.ch-theme .vo-catalog-product > .vo-content-block:has(> s.block) { grid-column:1; grid-row:3; display:flex; flex-direction:row-reverse; justify-content:flex-end; align-items:baseline; gap:2px 10px; padding:10px 0 0 18px; }
.ch-theme .vo-catalog-product > .vo-content-block > s.block { font-size:14px; font-weight:400; color:#9a9486; }
.ch-theme .vo-catalog-product > .vo-content-block > span.block { font-size:17px; font-weight:500; letter-spacing:.02em; color:var(--ch-ink); }

/* ---------- Sticky add-to-cart bar ---------- */
.ch-theme .vo-pdp-sticky-cart { background:#fff; border-top:1px solid var(--ch-line); box-shadow:0 -14px 30px -22px rgba(27,25,22,.45); }
.ch-theme .vo-pdp-sticky-cart strong { font-weight:500; }

@media (max-width:767px) {
 .ch-theme main .vo-pdp { padding-top:12px; }
 .ch-theme .vo-pdp-price .text-2xl { font-size:28px; }
 .ch-theme .vo-pdp-gallery [data-gallery-slide] { border-radius:16px; }
 .ch-theme main .vo-pdp ~ section.vo-section h2 { font-size:24px; }
 .ch-theme main .vo-pdp .vo-pdp-info { margin-top:32px; }
 .ch-theme .vo-catalog-product > .vo-content-block:has(> s.block) { grid-column:1/-1; padding:8px 12px 0; }
}

/* ---------- Gallery details: zoom icon, photo counter, rail cues ---------- */
.ch-theme .vo-pdp-zoom { font-size:0; line-height:0; background-color:rgba(255,255,255,.94); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1916' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; background-size:20px; transition:background-color .2s; }
.ch-theme .vo-pdp-zoom:hover { background-color:var(--ch-primary); }
.ch-theme .vo-pdp .vo-pdp-gallery [data-gallery-slide] img { cursor:zoom-in; }
.ch-gallery-count { position:absolute; inset-inline-end:14px; bottom:14px; z-index:3; padding:6px 12px; border-radius:999px; background:rgba(27,25,22,.72); color:#fff; font:500 12px/1 var(--ch-font); letter-spacing:.08em; pointer-events:none; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.ch-gallery-count[hidden] { display:none; }
@media (min-width:960px) {
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs][data-fade-end="true"]:not([data-fade-start="true"]) { -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent); mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent); }
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs][data-fade-start="true"]:not([data-fade-end="true"]) { -webkit-mask-image:linear-gradient(to bottom,transparent,#000 44px); mask-image:linear-gradient(to bottom,transparent,#000 44px); }
 .ch-theme .vo-pdp-gallery [data-gallery-thumbs][data-fade-start="true"][data-fade-end="true"] { -webkit-mask-image:linear-gradient(to bottom,transparent,#000 44px,#000 calc(100% - 44px),transparent); mask-image:linear-gradient(to bottom,transparent,#000 44px,#000 calc(100% - 44px),transparent); }
}

/* ---------- Full-screen gallery (built by product-page.js) ---------- */
html.ch-lb-open { overflow:hidden; }
.ch-lb { position:fixed; inset:0; z-index:100; display:grid; grid-template-columns:112px minmax(0,1fr); grid-template-rows:68px minmax(0,1fr); background:rgba(20,18,16,.96); color:#fff; font-family:var(--ch-font); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.ch-lb[hidden] { display:none; }
.ch-lb button { cursor:pointer; border:0; font-family:inherit; }
.ch-lb button:focus-visible { outline:2px solid var(--ch-primary); outline-offset:3px; }
.ch-lb__bar { grid-column:1 / -1; grid-row:1; position:relative; display:flex; align-items:center; justify-content:center; }
.ch-lb__count { font-size:14px; font-weight:500; letter-spacing:.16em; }
.ch-lb__close { position:absolute; inset-inline-end:20px; top:12px; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; transition:background .2s,color .2s; }
.ch-lb__close:hover { background:var(--ch-primary); color:var(--ch-on-primary); }
.ch-lb__thumbs { grid-column:1; grid-row:2; display:flex; flex-direction:column; gap:10px; padding:4px 14px 28px 24px; overflow-y:auto; scrollbar-width:none; }
.ch-lb__thumbs::-webkit-scrollbar { display:none; }
.ch-lb__thumbs button { flex:none; width:72px; height:72px; padding:0; border-radius:12px; overflow:hidden; background:#fff; opacity:.6; transition:opacity .2s,box-shadow .2s; }
.ch-lb__thumbs button img { display:block; width:100%; height:100%; object-fit:contain; }
.ch-lb__thumbs button:hover { opacity:1; }
.ch-lb__thumbs button[aria-current="true"] { opacity:1; box-shadow:0 0 0 2px var(--ch-primary); }
.ch-lb__stage { grid-column:2; grid-row:2; position:relative; display:grid; place-items:center; min-height:0; padding:0 96px 32px; }
.ch-lb__img { display:block; max-width:100%; max-height:calc(100vh - 112px); width:auto; height:auto; object-fit:contain; border-radius:14px; background:#fff; box-shadow:0 30px 80px -30px rgba(0,0,0,.8); transition:opacity .2s; }
.ch-lb__img.is-loading { opacity:.35; }
.ch-lb__nav { position:absolute; top:calc(50% - 16px); transform:translateY(-50%); display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#fff; color:var(--ch-ink); box-shadow:0 12px 28px -12px rgba(0,0,0,.7); transition:background .2s,color .2s; }
.ch-lb__nav--prev { inset-inline-start:24px; }
.ch-lb__nav--next { inset-inline-end:24px; }
.ch-lb__nav:hover { background:var(--ch-primary); color:var(--ch-on-primary); }
.ch-lb.is-single { grid-template-columns:minmax(0,1fr); }
.ch-lb.is-single .ch-lb__stage { grid-column:1; }
.ch-lb.is-single .ch-lb__thumbs,.ch-lb.is-single .ch-lb__nav { display:none; }
@media (max-width:767px) {
 .ch-lb { grid-template-columns:minmax(0,1fr); grid-template-rows:60px minmax(0,1fr) 84px; }
 .ch-lb__close { top:8px; inset-inline-end:12px; width:42px; height:42px; }
 .ch-lb__stage { grid-column:1; grid-row:2; padding:0 12px 8px; }
 .ch-lb__img { max-height:calc(100vh - 170px); border-radius:10px; }
 .ch-lb__nav { width:42px; height:42px; top:calc(50% - 4px); }
 .ch-lb__nav--prev { inset-inline-start:14px; }
 .ch-lb__nav--next { inset-inline-end:14px; }
 .ch-lb__thumbs { grid-column:1; grid-row:3; flex-direction:row; gap:8px; padding:8px 14px 14px; overflow-x:auto; overflow-y:hidden; }
 .ch-lb__thumbs button { width:60px; height:60px; border-radius:10px; }
}

/* ---------- Customer reviews ----------
   The markup is the platform's (inline-styled), so this restyles it, with !important where it has to.
   Compact: title + filters on one line, score | bars, then reviews two to a row. */
.ch-theme main .sg-theme-reviews.sg-review-voltage { max-width:calc(1240px + 2 * var(--vo-gutter,32px)); }
.ch-theme #product-reviews { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:56px; row-gap:0; max-width:none!important; margin:48px 0 24px!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; font-family:var(--ch-font); color:var(--ch-body); }
.ch-theme #product-reviews > * { min-width:0; margin:0!important; }
.ch-theme #product-reviews #product-reviews-title { grid-column:1; grid-row:1; align-self:center; font-size:28px!important; font-weight:400!important; letter-spacing:-.012em!important; color:var(--ch-ink); }
/* stars: five of them, filled to the real rating (--ch-rating is set from the aria-label by product-page.js) */
.ch-stars { font-size:0!important; display:inline-block; line-height:1; white-space:nowrap; }
.ch-stars::before { content:'\2605\2605\2605\2605\2605'; font-size:var(--ch-star-size,20px); letter-spacing:.12em; background:linear-gradient(90deg,var(--ch-primary) calc(var(--ch-rating,0) / 5 * 100%),#e7dfd0 0); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
/* toolbar: two small selects on the title line, applied on change (Apply stays only as a no-JavaScript fallback) */
.ch-theme #product-reviews > form[method="GET"] { grid-column:2; grid-row:1; justify-self:end; align-self:center; display:flex!important; align-items:center; flex-wrap:wrap; gap:8px 14px!important; padding:0!important; border:0!important; box-shadow:none!important; background:transparent!important; }
.ch-theme #product-reviews > form[method="GET"] label { display:flex; align-items:center; gap:8px; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ch-muted); }
.ch-theme #product-reviews select { min-height:34px; min-width:128px; padding:2px 28px 2px 14px; border:0!important; border-radius:999px; background-color:#f7f5f0; color:var(--ch-ink); font:inherit; font-size:13.5px; font-weight:400; letter-spacing:0; text-transform:none; cursor:pointer; }
.ch-theme #product-reviews > form[method="GET"] button[type="submit"] { min-height:34px; padding:0 16px; border:0!important; border-radius:999px; background:var(--ch-ink); color:#fff; font:500 11.5px/1 var(--ch-font); letter-spacing:.12em; text-transform:uppercase; }
.ch-theme #product-reviews > form.ch-autosubmit button[type="submit"] { display:none; }
/* score */
.ch-theme #product-reviews > p[aria-label$="reviews"],.ch-theme #product-reviews > p[aria-label$="review"] { grid-column:1; grid-row:2; align-self:center; display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:16px; padding:18px 0 22px; background:none; font-size:13.5px!important; color:var(--ch-muted); }
.ch-theme #product-reviews > p[aria-label$="reviews"] > strong,.ch-theme #product-reviews > p[aria-label$="review"] > strong { grid-column:1; grid-row:1 / span 2; font-size:54px; font-weight:500; line-height:1; letter-spacing:-.03em; color:var(--ch-ink); }
.ch-theme #product-reviews > p[aria-label$="reviews"] > span[aria-hidden],.ch-theme #product-reviews > p[aria-label$="review"] > span[aria-hidden] { grid-column:2; grid-row:1; align-self:end; --ch-star-size:20px; color:var(--ch-primary)!important; }
/* distribution */
.ch-theme #product-reviews > dl { grid-column:2; grid-row:2; align-self:center; display:grid; gap:6px!important; max-width:none!important; padding:18px 0 22px; }
.ch-theme #product-reviews > dl > div { grid-template-columns:44px minmax(0,1fr) 24px!important; gap:12px!important; font-size:13px; color:var(--ch-muted); }
.ch-theme #product-reviews > dl dd { margin:0; }
.ch-theme #product-reviews > dl dd:last-child { text-align:right; }
.ch-theme #product-reviews progress { appearance:none; -webkit-appearance:none; width:100%; height:5px; border:0; border-radius:999px; background:#f0eadf; overflow:hidden; accent-color:var(--ch-primary); }
.ch-theme #product-reviews progress::-webkit-progress-bar { background:#f0eadf; border-radius:999px; }
.ch-theme #product-reviews progress::-webkit-progress-value { background:var(--ch-primary); border-radius:999px; }
.ch-theme #product-reviews progress::-moz-progress-bar { background:var(--ch-primary); border-radius:999px; }
/* one review = one compact block, two per row:  stars ..... name / title / text / colour / store reply */
.ch-theme #product-reviews > article { align-self:start; display:grid!important; grid-template-columns:minmax(0,1fr) auto; column-gap:14px; row-gap:3px; align-content:start; padding:16px 0 20px!important; border:0!important; border-top:1px solid #efe9dd!important; border-radius:0; background:transparent; }
.ch-theme #product-reviews > article > * { margin:0!important; }
.ch-theme #product-reviews > article > p[aria-label$="out of 5"] { grid-column:1; grid-row:1; align-self:center; --ch-star-size:15px; }
.ch-theme #product-reviews > article > p:has(> strong) { grid-column:2; grid-row:1; align-self:center; display:flex; align-items:center; font-size:0!important; }
.ch-theme #product-reviews > article > p:has(> strong) > strong { font-size:14px; font-weight:500; letter-spacing:0; color:var(--ch-ink); }
.ch-theme #product-reviews > article > h3 { grid-column:1 / -1; grid-row:2; margin-top:4px!important; font-size:16.5px; font-weight:500!important; line-height:1.35; letter-spacing:-.005em; color:var(--ch-ink); }
.ch-theme #product-reviews > article > p:not([aria-label]):not(:has(> strong)):not(:has(> strong) + p) { grid-column:1 / -1; grid-row:3; font-size:14.5px; line-height:1.6; color:var(--ch-body); }
.ch-theme #product-reviews > article > p:has(> strong) + p { grid-column:1 / -1; grid-row:4; margin-top:4px!important; font-size:12.5px!important; letter-spacing:.03em; color:var(--ch-muted)!important; }
.ch-theme #product-reviews > article > aside { grid-column:1 / -1; grid-row:5; margin-top:8px!important; padding:11px 14px!important; border:0!important; border-radius:10px; background:#faf7f1!important; }
.ch-theme #product-reviews > article > aside strong { font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ch-muted); }
.ch-theme #product-reviews > article > aside p { margin:3px 0 0; font-size:13.5px; line-height:1.55; }
/* paging, sign-in prompt, review form, empty state */
.ch-theme #product-reviews > nav { grid-column:1 / -1; display:flex; align-items:center; gap:14px; margin:18px 0 0!important; font-size:14px; }
.ch-theme #product-reviews > nav a { padding:8px 16px; border-radius:999px; background:#f7f5f0; text-decoration:none; color:var(--ch-ink); }
.ch-theme #product-reviews > nav a:hover { background:var(--ch-primary); color:var(--ch-on-primary); }
.ch-theme #product-reviews > p:last-child:not([aria-label]) { grid-column:1 / -1; margin-top:20px!important; padding:14px 20px!important; border:0!important; border-radius:12px; background:#f7f5f0!important; color:var(--ch-muted)!important; font-size:14px!important; }
.ch-theme #product-reviews > p:last-child:not([aria-label]) a { font-weight:500; color:var(--ch-ink)!important; }
.ch-theme #product-reviews [data-review-form] { grid-column:1 / -1; max-width:620px!important; margin-top:24px!important; padding:0!important; border:0!important; }
.ch-theme #product-reviews textarea { border:0; background:#f7f5f0; border-radius:14px; }
.ch-theme #product-reviews .sg-review-star-label { color:#d9d2c3; }
.ch-theme #product-reviews [data-review-submit] { min-height:46px; padding:0 26px; border-radius:999px; background:var(--ch-primary); color:var(--ch-on-primary); font:500 13px/1 var(--ch-font); letter-spacing:.1em; text-transform:uppercase; }
.ch-theme #product-reviews > p:not([aria-label]):not(:last-child) { grid-column:1 / -1; }
/* compact rating next to the product title */
.ch-theme .vo-pdp-header .sg-review-voltage { max-width:none; margin:0; padding:0; }
.ch-theme .sg-theme-review-compact p { margin:0!important; gap:.5rem!important; font-size:14px!important; color:var(--ch-muted); }
.ch-theme .sg-theme-review-compact p > span[aria-hidden] { font-size:16px; color:var(--ch-primary)!important; }
.ch-theme .sg-theme-review-compact p > strong { font-weight:500; color:var(--ch-ink); }
@media (max-width:899px) {
 .ch-theme #product-reviews { grid-template-columns:minmax(0,1fr); margin-top:40px!important; }
 .ch-theme #product-reviews > * { grid-column:1!important; grid-row:auto!important; }
 .ch-theme #product-reviews #product-reviews-title { font-size:24px!important; }
 .ch-theme #product-reviews > form[method="GET"] { justify-self:start; margin:14px 0 4px!important; }
 .ch-theme #product-reviews > p[aria-label$="reviews"],.ch-theme #product-reviews > p[aria-label$="review"] { padding-bottom:6px; }
 .ch-theme #product-reviews > p[aria-label$="reviews"] > strong { font-size:48px; }
 .ch-theme #product-reviews > article > * { grid-row:auto; }
 .ch-theme #product-reviews > article { grid-template-columns:minmax(0,1fr); }
 .ch-theme #product-reviews > article > * { grid-column:1!important; }
 .ch-theme #product-reviews > article > p[aria-label$="out of 5"] { order:1; }
 .ch-theme #product-reviews > article > h3 { order:2; }
 .ch-theme #product-reviews > article > p:not([aria-label]):not(:has(> strong)):not(:has(> strong) + p) { order:3; }
 .ch-theme #product-reviews > article > p:has(> strong) { order:4; margin-top:6px!important; }
 .ch-theme #product-reviews > article > p:has(> strong) + p { order:5; }
 .ch-theme #product-reviews > article > aside { order:6; }
}

/* ---------- Sale badges: solid, high-contrast (overrides the old lavender .vo-saving in brand-consistency.css) ---------- */
.ch-theme .vo-saving { position:relative; display:inline-flex; align-items:center; gap:7px; padding:8px 15px 8px 12px!important; border:0!important; border-radius:10px!important; background:linear-gradient(135deg,#ff4a2b 0%,#e0141f 100%)!important; color:#fff!important; font-size:14px!important; font-weight:600!important; letter-spacing:.06em!important; line-height:1!important; text-transform:uppercase; box-shadow:0 10px 20px -10px rgba(224,20,31,.8)!important; }
.ch-theme .vo-saving::before { content:''; flex:none; width:15px; height:15px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.3' fill='white'/%3E%3C/svg%3E") center/contain no-repeat; }
.ch-theme .vo-saving[hidden] { display:none!important; }
.ch-theme [data-product-sale] { background:linear-gradient(135deg,#ff4a2b,#e0141f)!important; color:#fff!important; border-radius:8px!important; padding:7px 12px!important; font-size:12px!important; font-weight:600!important; letter-spacing:.1em!important; box-shadow:0 10px 20px -10px rgba(224,20,31,.8); }
.ch-theme .vo-catalog-product > .vo-catalog-discount { background:linear-gradient(135deg,#ff4a2b,#e0141f)!important; color:#fff!important; font-weight:600!important; letter-spacing:.05em; border-radius:7px!important; padding:4px 9px!important; box-shadow:0 8px 16px -9px rgba(224,20,31,.8); }

/* ---------- Quantity: say why the + stops ---------- */
.ch-theme .vo-pdp-quantity[data-at-max="true"] button[data-qty-step="1"] { opacity:.3; cursor:not-allowed; }
.ch-qty-note { grid-column:1 / -1; order:4; display:flex; align-items:center; gap:8px; margin:2px 0 0; font-size:13px; font-weight:500; letter-spacing:.02em; color:#a35a08; }
.ch-qty-note[hidden] { display:none; }
.ch-qty-note::before { content:''; flex:none; width:6px; height:6px; border-radius:50%; background:var(--ch-primary); box-shadow:0 0 0 4px #fdeed9; }
