/* ChaiBD product page (public/js/chai-pdp.js). Uses each website design's own colours (--red, --card, --ink …),
   so it follows every theme and light/dark mode. */

/* ------------------------------------------------------------------------------------------- page entrance */
@keyframes pd-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes pd-in-l { from { opacity: 0; transform: translateX(-26px) scale(.98); } }
@keyframes pd-pop { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pd-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.pdp-enter .pdp-media { animation: pd-in-l .7s cubic-bezier(.2,.8,.2,1) both; }
.pdp-enter .pdp-info > * { animation: pd-up .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.08s + var(--i, 0) * 55ms); }
.pdp-enter .crumb { animation: pd-up .5s ease both; }

/* --------------------------------------------------------------------------------------------- gallery */
.pdp-media.g-on { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
.pdp-media.g-on.g-many.g-tcol { grid-template-columns: 74px minmax(0, 1fr); }
.pdp-media.g-on.g-many.g-tcol .g-thumbs { order: -1; }
.g-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; outline: none; cursor: zoom-in; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 38%, color-mix(in srgb, var(--card) 70%, #fff), color-mix(in srgb, var(--red) 7%, var(--card)) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-b) 70%, transparent);
  touch-action: pan-y;
}
.g-stage::before { /* a slow soft glow of the design's colour behind the product */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--red) 22%, transparent), transparent 65%); filter: blur(6px);
  animation: g-glow 9s ease-in-out infinite;
}
.g-stage::after { /* the floor shadow */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent);
}
@keyframes g-glow { 50% { transform: translate(6%, 4%) scale(1.12); opacity: .7; } }
.g-stage:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 45%, transparent); }
.g-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.g-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; padding: 7%; overflow: hidden; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .5s; filter: drop-shadow(0 18px 22px rgba(0,0,0,.12)); }
.g-slide:not(.on) img { opacity: .35; transform: scale(.92); }
.g-stage.zoom { cursor: crosshair; }
.g-stage.zoom .g-slide.on img { transform: scale(2.2); transition: transform .2s ease-out; filter: none; }
.g-stage.zoom .g-hint, .g-stage.zoom .g-nav, .g-stage.zoom .g-off { opacity: 0; }
.g-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-soft); font-size: 13.5px; }
.g-empty svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .55; }
.g-off { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 11px; border-radius: 99px; font: 700 13px/1 'Poppins', sans-serif; color: var(--on-accent, #fff); background: var(--red); box-shadow: 0 8px 18px -8px var(--red); animation: pd-pop .6s .5s both; transition: opacity .2s; }
.g-nav, .g-full {
  position: absolute; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-b); cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s, background .2s, color .2s;
}
.g-nav svg, .g-full svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-nav { top: 50%; margin-top: -20px; opacity: 0; }
.g-nav.prev { left: 12px; transform: translateX(-8px); } .g-nav.next { right: 12px; transform: translateX(8px); }
.g-stage:hover .g-nav, .g-stage:focus-within .g-nav { opacity: 1; transform: none; }
.g-nav:hover, .g-full:hover { background: var(--red); color: var(--on-accent, #fff); border-color: var(--red); }
.g-full { right: 12px; top: 12px; }
.g-full:hover { transform: scale(1.1); }
.g-count { position: absolute; right: 14px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 99px; font: 600 12px/1.4 'Poppins', sans-serif; color: var(--ink-soft); background: color-mix(in srgb, var(--card) 85%, transparent); }
.g-count b { color: var(--ink); }
.g-hint { position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 11.5px; color: var(--ink-soft); background: color-mix(in srgb, var(--card) 85%, transparent); opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.g-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.g-stage:hover .g-hint { opacity: 1; }
.g-many .g-hint { bottom: 12px; left: 16px; transform: none; }
@media (hover: none) { .g-hint, .g-nav { display: none; } }

.g-thumbs { position: relative; display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow: auto; scrollbar-width: none; padding: 2px; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-th { position: relative; z-index: 1; flex: none; width: 100%; aspect-ratio: 1; border-radius: 14px; padding: 6px; cursor: pointer; border: 1px solid var(--card-b); background: var(--card); transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s; opacity: .7; }
.g-th img { width: 100%; height: 100%; object-fit: contain; }
.g-th:hover { transform: translateY(-2px); opacity: 1; }
.g-th.on { opacity: 1; }
.g-mark { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 14px; pointer-events: none; box-shadow: inset 0 0 0 2px var(--red), 0 6px 16px -8px var(--red); transition: transform .45s cubic-bezier(.2,.9,.25,1.2), width .3s, height .3s; }
.g-dots { display: none; }

@media (max-width: 1100px) {
  .pdp-media.g-on.g-many.g-tcol { grid-template-columns: minmax(0, 1fr); }
  .pdp-media.g-on.g-many.g-tcol .g-thumbs { order: 0; flex-direction: row; overflow-x: auto; }
  .g-th { width: 64px; }
}
@media (max-width: 720px) {
  .pdp-media.g-on { padding: 10px; }
  .g-stage { border-radius: 18px; }
  .g-thumbs { display: none !important; }
  .g-dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
  .g-dots i { width: 7px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .35s cubic-bezier(.2,.8,.2,1), background .3s; }
  .g-dots i.on { width: 22px; background: var(--red); }
  .g-full { width: 36px; height: 36px; }
}

/* full-screen viewer */
.g-lb { position: fixed; inset: 0; z-index: 1300; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 6, 8, calc(.94 * var(--fade, 1))); color: #fff; animation: g-lb-in .3s ease; touch-action: none; }
.g-lb.out { animation: g-lb-out .26s ease forwards; }
@keyframes g-lb-in { from { background: rgba(8,6,8,0); } }
@keyframes g-lb-out { to { opacity: 0; } }
.g-lock, .g-lock body { overflow: hidden !important; }
.g-lb-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.g-lb-n { font: 600 14px 'Poppins', sans-serif; opacity: .85; }
.g-lb-tip { flex: 1; font-size: 12.5px; opacity: .55; text-align: center; }
.g-lb.zoomed .g-lb-tip { opacity: 0; }
.g-lb-x { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); transition: transform .3s, background .2s; }
.g-lb-x:hover { transform: rotate(90deg); background: rgba(255,255,255,.2); }
.g-lb-x svg, .g-lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 10px 70px; }
.g-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; cursor: zoom-in; will-change: transform; }
.g-lb.zoomed .g-lb-stage img { cursor: grab; }
.g-lb-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); transition: background .2s, transform .3s cubic-bezier(.34,1.56,.64,1); z-index: 2; }
.g-lb-nav:hover { background: var(--red); transform: scale(1.08); }
.g-lb-nav.prev { left: 16px; } .g-lb-nav.next { right: 16px; }
.g-lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
.g-lb-thumbs button { flex: none; width: 58px; height: 58px; border-radius: 12px; padding: 4px; border: 2px solid transparent; background: rgba(255,255,255,.08); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .25s; }
.g-lb-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.g-lb-thumbs button:hover { opacity: .9; } .g-lb-thumbs button.on { opacity: 1; border-color: var(--red); transform: translateY(-3px); }
@media (max-width: 720px) {
  .g-lb-stage { padding: 0 6px; } .g-lb-nav { display: none; } .g-lb-tip { font-size: 11px; }
  .g-lb-thumbs button { width: 48px; height: 48px; }
}

/* ---------------------------------------------------------------------------------- price, stock, options */
.pdp-info .price { flex-wrap: wrap; row-gap: 4px; transform-origin: left center; }
.pdp-info .price > span:first-child { font-size: 34px; letter-spacing: -.5px; line-height: 1.1; }
.pdp-info .price .off { align-self: center; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; color: var(--on-accent, #fff); background: var(--red); }
.pdp-info .price.bump > span:first-child { display: inline-block; animation: pd-pop .45s cubic-bezier(.34,1.56,.64,1); }
.pd-save { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: -6px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #15803d; background: color-mix(in srgb, #22c55e 13%, transparent); }
.pd-save[hidden] { display: none; }
.pd-save svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .pd-save { color: #4ade80; }
.pd-stock { display: grid; gap: 7px; }
.pd-stock[hidden] { display: none; }
.pd-stock-t { font-size: 13px; color: var(--ink-soft); }
.pd-stock-t b { color: var(--ink); }
.pd-stock.low .pd-stock-t b { color: var(--red); }
.pd-bar { height: 7px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.pd-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); transform-origin: left; animation: pd-grow 1.1s .4s cubic-bezier(.2,.8,.2,1) both; position: relative; overflow: hidden; }
.pd-stock.low .pd-bar i { background: linear-gradient(90deg, var(--amber, #f59e0b), var(--red)); }
.pd-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: pd-shine 2.6s 1.5s ease-in-out infinite; }
@keyframes pd-grow { from { transform: scaleX(0); } }
@keyframes pd-shine { 60%, 100% { transform: translateX(100%); } }

.pdp-info .variant .vtitle { font-weight: 700; }
.pd-chosen { font-weight: 500; color: var(--ink-soft); }
.pdp-info .variant .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-info .variant .size { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 12px; border-width: 1.5px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.pdp-info .variant .size:hover { transform: translateY(-2px); }
.pdp-info .variant .size.active { box-shadow: 0 8px 18px -10px var(--red); animation: pd-pop .35s cubic-bezier(.34,1.56,.64,1); }
.pd-dot { width: 15px; height: 15px; border-radius: 50%; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--card); }
.size.active .pd-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px rgba(255,255,255,.85); }
.size.oos { opacity: .45; text-decoration: line-through; }
.variant.need { animation: pd-shake .5s ease; }
.variant.need .vtitle { color: var(--red); }
.variant.need .size { border-color: color-mix(in srgb, var(--red) 55%, var(--card-b)); }

/* quantity and buttons */
.pdp-info .qty { border-radius: 14px; overflow: hidden; }
.pdp-actions > .btn { position: relative; overflow: hidden; min-height: 48px; border-radius: 14px; font-size: 15px; transition: transform .2s, box-shadow .25s, filter .2s; }
.pdp-actions > .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px var(--red); }
.pdp-actions > .btn:active { transform: translateY(0) scale(.98); }
.pdp-actions > .btn.pd-added, .pd-bb-add.pd-added { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.pd-added svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: pd-draw .45s ease both; }
@keyframes pd-draw { from { stroke-dashoffset: 24; } }
.pd-rip { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; opacity: .3; pointer-events: none; animation: pd-rip .65s ease-out forwards; }
@keyframes pd-rip { to { transform: scale(40); opacity: 0; } }
.pdp-actions .thumb-btn { width: 48px; height: 48px; border-radius: 14px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s, border-color .2s; }
.pdp-actions .thumb-btn:hover { transform: translateY(-2px) rotate(-6deg); color: var(--red); border-color: var(--red); }
.pdp-actions .thumb-btn.active { color: var(--red); }
.pdp-actions .thumb-btn.active .i { fill: currentColor; animation: pd-pop .4s; }

/* trust points: three small chips in a row */
.pdp-info .trust { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pdp-info .trust .trust-item { flex-direction: column; text-align: center; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; min-width: 0; }
.pdp-info .trust .trust-item .t { font-size: 12px; line-height: 1.3; }
.pdp-info .trust .trust-item .ic { width: 34px; height: 34px; }

/* ------------------------------------------------------------------------------------- China → your door */
.pd-trip { position: relative; padding: 14px 16px 12px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--red) 35%, var(--card-b)); background: linear-gradient(120deg, color-mix(in srgb, var(--red) 6%, var(--card)), var(--card) 60%); overflow: hidden; }
.pd-trip-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.pd-trip-h b { font-size: 14px; }
.pd-trip-h span { font-size: 12.5px; color: var(--ink-soft); }
.pd-trip-h em { font-style: normal; font-weight: 700; color: var(--red); }
.pd-trip-line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-trip-rail { position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--red) 45%, transparent) 0 6px, transparent 6px 11px); }
.pd-trip-fly { position: absolute; top: 6px; left: 12.5%; width: 75%; height: 22px; color: var(--red); z-index: 2; pointer-events: none; animation: pd-fly 6s cubic-bezier(.45,.05,.55,.95) infinite; }
.pd-trip-fly svg { position: absolute; left: -11px; top: 0; width: 22px !important; height: 22px !important; }
.pd-trip-fly svg { width: 100%; height: 100%; fill: currentColor; transform: rotate(90deg); filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--red) 40%, transparent)); }
/* moves with transform only (no page re-measuring every frame) */
@keyframes pd-fly { 0% { opacity: 0; transform: translate(0, 4px); } 8% { opacity: 1; } 50% { transform: translate(50%, -5px); } 88% { opacity: 1; } 100% { opacity: 0; transform: translate(100%, 4px); } }
.pd-st { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; }
.pd-st-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--red) 35%, var(--card-b)); color: var(--red); animation: pd-up .5s both; animation-delay: calc(.5s + var(--i) * .12s); }
.pd-st:first-child .pd-st-ic { background: var(--red); color: var(--on-accent, #fff); border-color: var(--red); }
.pd-st-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-st:nth-child(5) .pd-st-ic svg { fill: currentColor; stroke: none; transform: rotate(90deg); }
.pd-st small { font-size: 11px; color: var(--ink-soft); line-height: 1.25; }

/* ------------------------------------------------------------------------------- description, tabs */
.tabs .tab-btns { position: relative; }
.pd-tab-mark { position: absolute; left: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transition: transform .45s cubic-bezier(.2,.9,.25,1.15), width .3s; pointer-events: none; }
.tabs .tab-btn.active { border-bottom-color: transparent !important; }
.tabs .tab-panel.active { animation: pd-up .45s cubic-bezier(.2,.8,.2,1); }
.pd-nodesc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--red) 5%, var(--card)); border: 1px solid var(--card-b); }
.pd-nodesc > svg { width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 12px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linejoin: round; background: color-mix(in srgb, var(--red) 12%, transparent); }
.pd-nodesc > div { flex: 1 1 220px; display: grid; gap: 2px; }
.pd-nodesc b { font-size: 14.5px; } .pd-nodesc span { font-size: 13px; color: var(--ink-soft); }
.pd-ask { position: relative; overflow: hidden; border: 0; cursor: pointer; padding: 10px 18px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--on-accent, #fff); background: var(--red); transition: transform .2s; }
.pd-ask:hover { transform: translateY(-2px); }

/* -------------------------------------------------------------------------------------------- buy bar */
.pd-bb {
  position: fixed; left: 50%; bottom: 18px; z-index: 880; width: min(820px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 9px 9px 10px; border-radius: 20px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--card-b);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.2,.9,.25,1.1), opacity .3s;
}
.pd-bb.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pd-bb-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pd-bb-l img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: color-mix(in srgb, var(--red) 6%, var(--card)); padding: 3px; flex: none; }
.pd-bb-l div { display: grid; min-width: 0; }
.pd-bb-l b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bb-p { font: 700 15px 'Poppins', sans-serif; color: var(--red); }
.pd-bb-r { display: flex; gap: 8px; flex: none; }
.pd-bb button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--red); cursor: pointer; padding: 11px 18px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 14px; transition: transform .2s, filter .2s; }
.pd-bb button:hover { transform: translateY(-2px); }
.pd-bb button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-bb-add { background: color-mix(in srgb, var(--red) 8%, var(--card)); color: var(--red); }
.pd-bb-buy { background: var(--red); color: var(--on-accent, #fff); }
.cw-fab { transition: transform .4s cubic-bezier(.2,.9,.25,1.1) !important; }
.pd-bb-on .cw-fab { transform: translateY(-78px); }
@media (max-width: 980px) {
  .pd-bb { bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 18px; }
}
@media (max-width: 620px) {
  .pd-bb { padding: 7px; gap: 8px; }
  .pd-bb-l b { display: none; }
  .pd-bb-l img { width: 40px; height: 40px; }
  .pd-bb button { padding: 10px 12px; font-size: 13px; }
  .pd-bb-add span { display: none; }
}

/* the picture flying into the cart, and the cart answering */
.pd-fly { position: fixed; z-index: 1400; pointer-events: none; object-fit: contain; border-radius: 18px; background: var(--card); box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); }
@keyframes pd-got { 30% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.92) rotate(6deg); } }
.pd-got { animation: pd-got .6s cubic-bezier(.34,1.56,.64,1); }

/* --------------------------------------------------------------------------------------- phone layout */
@media (max-width: 720px) {
  .pdp-info { padding: 18px; }
  .pdp-info h1 { font-size: 22px; }
  .pdp-info .price > span:first-child { font-size: 29px; }
  .pdp-actions { display: grid !important; grid-template-columns: 1fr 1fr 44px 44px; gap: 8px !important; }
  .pdp-actions > .btn { padding-inline: 6px; font-size: 13.5px; gap: 5px; white-space: nowrap; }
  .pdp-actions > .btn .i { display: none; }
  .pdp-actions .thumb-btn { width: 44px; height: 48px; }
  .pdp-info .trust .trust-item { padding: 10px 4px; }
  .pdp-info .trust .trust-item .t { font-size: 11px; }
  .pd-trip { padding: 12px 10px 10px; }
  .pd-st small { font-size: 10px; }
}
@media (max-width: 380px) {
  .pdp-actions { grid-template-columns: 1fr 1fr; }
  .pdp-actions .thumb-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-enter .pdp-media, .pdp-enter .pdp-info > *, .g-stage::before, .pd-trip-fly, .pd-bar i, .pd-bar i::after, .pd-st-ic { animation: none !important; }
  .g-track { transition: none; }
}

@media (min-width: 1101px) {
  /* Marketplace */
  html[data-pdp="market"] .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(250px, .72fr); gap: 22px; }
  html[data-pdp="market"] .pdp-media.g-on.g-many.g-tcol { grid-template-columns: minmax(0, 1fr); }
  html[data-pdp="market"] .pdp-media.g-on.g-many.g-tcol .g-thumbs { order: 0; flex-direction: row; overflow-x: auto; }
  html[data-pdp="market"] .g-th { width: 58px; }
  html[data-pdp="market"] .pd-side { position: sticky; top: 96px; }
  html[data-pdp="market"] .pdp-info h1 { font-size: 23px; }
}
/* Marketplace side box (all widths) */
.pd-side { display: flex; flex-direction: column; gap: 12px; align-self: start; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-b); box-shadow: 0 10px 30px -20px rgba(0,0,0,.3); animation: pd-up .6s .3s cubic-bezier(.2,.8,.2,1) both; }
.pd-side .pd-trip { margin: 0; }
.pd-side .pd-trip-h { display: grid; }
.pd-side .trust { grid-template-columns: 1fr !important; }
.pd-side .trust .trust-item { flex-direction: row !important; text-align: left !important; padding: 9px 12px !important; justify-content: flex-start; }
.pd-shop { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--card-b); }
.pd-shop-l { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 6%, var(--card)); border: 1px solid var(--card-b); }
.pd-shop-l svg { width: 34px; height: 34px; }
.pd-shop b { display: block; font-size: 14px; } .pd-shop span { font-size: 12px; color: #16a34a; font-weight: 600; }
.pd-shop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.pd-shop-stats span { display: grid; gap: 1px; padding: 8px 4px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 10.5px; color: var(--ink-soft); }
.pd-shop-stats b { font: 700 15px Poppins, sans-serif; color: var(--ink); }
.pd-side-chat { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.pd-side-chat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 1100px) { html[data-pdp="market"] .pd-side { grid-column: 1 / -1; } }


/* =============================================================================================================
   Picture engines (chai-pdp.js, .g-stage[data-eng]) and the Product Page Styles that use them (html[data-pdp])
   classic / market: slide   coverflow: cover   prism   stack   story   tilt   peek   cinema: fade   stacked: list
   ============================================================================================================= */
.g-instant, .g-instant *, .g-stage.dragging .g-track, .g-stage.dragging .g-slide { transition: none !important; }
.g-stage:where(:not([data-eng="slide"]):not([data-eng="peek"])) :where(.g-track) { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.g-stage:where(:not([data-eng="slide"]):not([data-eng="peek"])) :where(.g-slide) { position: absolute; inset: 0; }
.g-stage:not([data-eng="slide"]) .g-slide:not(.on) img { opacity: 1; transform: none; }
.g-stage:not([data-eng="slide"]) .g-slide img { filter: none; }
.g-stage .g-off, .g-stage .g-nav, .g-stage .g-full, .g-stage .g-count { z-index: 7; }
.g-dots i { cursor: pointer; }

/* heart for a double tap */
.g-heart { position: absolute; left: 50%; top: 50%; z-index: 9; font-size: 96px; line-height: 1; color: #ff2d55; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0); text-shadow: 0 12px 30px rgba(255, 45, 85, .45); }
.g-heart.pop { animation: g-heart .95s cubic-bezier(.2,1.4,.3,1) forwards; }
@keyframes g-heart { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0) rotate(-12deg); } 18% { opacity: 1; transform: translate(-50%,-50%) scale(1.25) rotate(6deg); } 32% { transform: translate(-50%,-50%) scale(.92); } 48% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } 100% { opacity: 0; transform: translate(-50%,-110%) scale(.9); } }

/* --- 3D coverflow ------------------------------------------------------------------------------------------ */
.g-stage[data-eng="cover"] { perspective: 1100px; background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--red) 10%, var(--card)), transparent 75%); box-shadow: none; }
.g-stage[data-eng="cover"]::before, .g-stage[data-eng="cover"]::after { display: none; }
.g-stage[data-eng="cover"] .g-slide {
  inset: 9% 20% 15%; padding: 0; border-radius: 22px; overflow: hidden; background: var(--card); cursor: pointer;
  box-shadow: 0 26px 40px -22px rgba(0,0,0,.5);
  transform: translateX(calc(var(--d) * 64%)) translateZ(calc(var(--ad) * -170px)) rotateY(calc(var(--d) * -44deg));
  transition: transform .65s cubic-bezier(.2,.85,.2,1), opacity .4s, filter .4s;
  -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(255,255,255,.28));
}
.g-stage[data-eng="cover"] .g-slide img { object-fit: cover; }
.g-stage[data-eng="cover"] .g-slide:not(.on) { filter: brightness(.8) saturate(.85); }
.g-stage[data-eng="cover"] .g-slide.far { opacity: 0; pointer-events: none; }
[data-theme="dark"] .g-stage[data-eng="cover"] .g-slide { -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(255,255,255,.1)); }

/* --- 3D prism ---------------------------------------------------------------------------------------------- */
.g-stage[data-eng="prism"] { perspective: 1300px; background: radial-gradient(70% 60% at 50% 50%, color-mix(in srgb, var(--red) 9%, var(--card)), transparent 75%); box-shadow: none; }
.g-stage[data-eng="prism"]::before { display: none; }
.g-stage[data-eng="prism"] .g-track { transition: transform .85s cubic-bezier(.25,.9,.25,1); }
.g-stage[data-eng="prism"] .g-slide { inset: 6%; padding: 0; border-radius: 22px; overflow: hidden; background: var(--card); backface-visibility: hidden; box-shadow: 0 24px 44px -24px rgba(0,0,0,.5); transition: filter .6s; }
.g-stage[data-eng="prism"] .g-slide img { object-fit: cover; }
.g-stage[data-eng="prism"] .g-slide:not(.on) { filter: brightness(.7); }

/* --- card stack ---------------------------------------------------------------------------------------------- */
.g-stage[data-eng="stack"] { background: transparent; box-shadow: none; }
.g-stage[data-eng="stack"]::before { opacity: .6; }
.g-stage[data-eng="stack"]::after { display: none; }
.g-stage[data-eng="stack"] .g-slide {
  inset: 7% 13% 15%; padding: 0; border-radius: 26px; overflow: hidden; background: var(--card); touch-action: none; cursor: grab;
  box-shadow: 0 20px 36px -18px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--card-b) 70%, transparent);
  transform: translate(calc(min(var(--b), 3) * 12px), calc(min(var(--b), 3) * 18px)) scale(calc(1 - min(var(--b), 3) * .07)) rotate(calc(min(var(--b), 3) * 4.5deg));
  transition: transform .45s cubic-bezier(.2,.85,.25,1.1), opacity .3s;
}
.g-stage[data-eng="stack"] .g-slide:not(.on) { pointer-events: none; }
.g-stage[data-eng="stack"] .g-slide.far:not(.on) { opacity: 0; }
.g-stage[data-eng="stack"] .g-slide img { object-fit: cover; }
.g-swipe { position: absolute; left: 50%; bottom: 10px; z-index: 7; transform: translateX(-50%); padding: 5px 13px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); pointer-events: none; animation: g-nudge 1.8s ease-in-out 3; white-space: nowrap; }
@keyframes g-nudge { 25% { transform: translateX(calc(-50% - 10px)); } 75% { transform: translateX(calc(-50% + 10px)); } }

/* --- story ------------------------------------------------------------------------------------------------------ */
.g-stage[data-eng="story"] { aspect-ratio: 4 / 5; background: #111; border-radius: 24px; cursor: pointer; touch-action: pan-y; }
.g-stage[data-eng="story"]::before, .g-stage[data-eng="story"]::after { display: none; }
.g-stage[data-eng="story"] .g-slide { padding: 0; opacity: 0; transition: opacity .55s ease; }
.g-stage[data-eng="story"] .g-slide.on { opacity: 1; }
.g-stage[data-eng="story"] .g-slide img { object-fit: cover; }
.g-stage[data-eng="story"] .g-slide.on img { animation: g-kb var(--auto, 4500ms) linear both; }
.g-stage[data-eng="story"]::after { content: ""; display: block; position: absolute; inset: 0 0 auto; height: 90px; border-radius: 0; filter: none; z-index: 2; background: linear-gradient(rgba(0,0,0,.35), transparent); pointer-events: none; }
.g-bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; display: flex; gap: 4px; pointer-events: none; }
.g-bars i { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.35); }
.g-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.g-bars i.done b { width: 100%; }
.g-bars i.now b { animation: g-bar var(--auto, 4500ms) linear forwards; }
.g-stage.paused .g-bars i.now b, .g-stage[data-eng="story"]:active .g-bars i.now b { animation-play-state: paused; }
@keyframes g-bar { to { width: 100%; } }
@keyframes g-kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.g-stage[data-eng="story"] .g-off { top: 26px; }
.g-stage[data-eng="story"] .g-full { top: 24px; }

/* --- 3D tilt card ----------------------------------------------------------------------------------------------- */
.g-stage[data-eng="tilt"] { perspective: 900px; background: transparent; box-shadow: none; overflow: visible; cursor: default; }
.g-stage[data-eng="tilt"]::after { display: none; }
.g-stage[data-eng="tilt"] .g-track, .g-glare { inset: 6%; border-radius: 28px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }
.g-stage[data-eng="tilt"] .g-track { overflow: hidden; background: var(--card); box-shadow: 0 34px 56px -28px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--card-b) 60%, transparent); }
.g-stage[data-eng="tilt"] .g-slide { padding: 0; opacity: 0; }
.g-stage[data-eng="tilt"] .g-slide.on { opacity: 1; }
.g-stage[data-eng="tilt"] .g-slide img { object-fit: cover; }
.g-glare { position: absolute; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 25%), rgba(255,255,255,.5), rgba(255,255,255,0) 55%); mix-blend-mode: soft-light; }
.g-stage[data-eng="tilt"].flip-out .g-track, .g-stage[data-eng="tilt"].flip-out .g-glare { transform: rotateY(90deg) scale(.9); transition: transform .23s ease-in; }
.g-stage[data-eng="tilt"].flip-in .g-track { animation: g-flipin .32s cubic-bezier(.2,.9,.3,1.2); }
@keyframes g-flipin { from { transform: rotateY(-90deg) scale(.9); } }

/* --- peek row (native scrolling) ---------------------------------------------------------------------------------- */
.g-stage[data-eng="peek"] { aspect-ratio: auto; background: transparent; box-shadow: none; overflow: visible; cursor: default; }
.g-stage[data-eng="peek"]::before, .g-stage[data-eng="peek"]::after { display: none; }
.g-stage[data-eng="peek"] .g-track { overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 6px 8%; scrollbar-width: none; transform: none !important; transition: none; overscroll-behavior-x: contain; }
.g-stage[data-eng="peek"] .g-track::-webkit-scrollbar { display: none; }
.g-stage[data-eng="peek"] .g-slide { flex: 0 0 84%; aspect-ratio: 1; padding: 0; scroll-snap-align: center; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: 0 16px 30px -18px rgba(0,0,0,.4); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.g-stage[data-eng="peek"] .g-slide:not(.on) { transform: scale(.9); opacity: .65; }
.g-stage[data-eng="peek"] .g-slide img { object-fit: cover; }
.g-stage[data-eng="peek"] .g-count { bottom: 16px; right: 12%; }
.g-stage[data-eng="peek"] .g-off { left: 11%; top: 18px; }
.g-stage[data-eng="peek"] .g-full { right: 11%; top: 16px; }
.g-stage[data-eng="peek"] .g-nav.prev { left: 2px; } .g-stage[data-eng="peek"] .g-nav.next { right: 2px; }

/* --- cinema (cross-fade with a slow drift) -------------------------------------------------------------------------- */
.g-stage[data-eng="fade"] { background: radial-gradient(80% 70% at 50% 42%, color-mix(in srgb, var(--red) 30%, #1b1b21), #08080b 78%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.g-stage[data-eng="fade"]::before { background: radial-gradient(circle, color-mix(in srgb, var(--red) 45%, transparent), transparent 65%); filter: blur(20px); }
.g-stage[data-eng="fade"]::after { display: none; }
.g-stage[data-eng="fade"] .g-slide { padding: 9%; opacity: 0; transition: opacity 1.2s ease; }
.g-stage[data-eng="fade"] .g-slide.on { opacity: 1; }
.g-stage[data-eng="fade"] .g-slide img { border-radius: 20px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); object-fit: cover; }
.g-stage[data-eng="fade"] .g-slide.on img { animation: g-drift calc(var(--auto, 5200ms) + 1500ms) ease-out both; }
.g-stage[data-eng="fade"] .g-slide:nth-child(even).on img { animation-name: g-drift2; }
@keyframes g-drift { from { transform: scale(1.02) translate(1.5%, 1%); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes g-drift2 { from { transform: scale(1.1) translate(-1.5%, 1%); } to { transform: scale(1.02) translate(1.5%, -1%); } }
.g-stage[data-eng="fade"] .g-count { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); } .g-stage[data-eng="fade"] .g-count b { color: #fff; }
html[data-pdp="cinema"] .pdp-media.g-on { background: transparent !important; box-shadow: none !important; }
html[data-pdp="cinema"] .pdp-media.g-on::before { display: none; }
html[data-pdp="cinema"] .g-dots i { background: color-mix(in srgb, var(--ink) 25%, transparent); }

/* the 3D styles sit on the page without a card around the pictures */
html:is([data-pdp="coverflow"], [data-pdp="prism"], [data-pdp="stack"], [data-pdp="tilt"], [data-pdp="peek"]) .pdp-media.g-on { background: transparent !important; box-shadow: none !important; }
html:is([data-pdp="coverflow"], [data-pdp="prism"], [data-pdp="stack"], [data-pdp="tilt"], [data-pdp="peek"]) .pdp-media.g-on::before { display: none; }

/* --- Editorial: every picture in a column (wide screens and phones), the sliding stage on tablets ----------------- */
.g-list { display: none; }
.g-tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--card); box-shadow: 0 14px 30px -20px rgba(0,0,0,.4); animation: pd-up .6s cubic-bezier(.2,.8,.2,1) both; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.g-tile:hover img { transform: scale(1.03); }
@media (min-width: 1101px), (max-width: 720px) {
  html[data-pdp="stacked"] .g-has-grid > :is(.g-stage, .g-thumbs, .g-dots) { display: none !important; }
  html[data-pdp="stacked"] .g-has-grid { display: block !important; position: static !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
  html[data-pdp="stacked"] .g-has-grid::before { display: none; }
  html[data-pdp="stacked"] .g-list { display: grid; gap: 14px; }
}
@media (min-width: 1101px) {
  html[data-pdp="stacked"] .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  html[data-pdp="stacked"] .g-tile { aspect-ratio: 4 / 4.4; }
  html[data-pdp="stacked"] .pdp-info { position: sticky; top: 96px; }
}
@media (max-width: 720px) {
  html[data-pdp="stacked"] .g-list { gap: 10px; }
  html[data-pdp="stacked"] .g-tile { border-radius: 20px; aspect-ratio: 4 / 4.6; }
  html[data-pdp="stacked"] .g-tile:not(:first-child) { animation: none; }
}

/* =========================================================================================== phones and tablets */
@media (max-width: 720px) {
  /* edge-to-edge pictures for the phone-first styles, the details card rising over them */
  html:is([data-pdp="story"], [data-pdp="peek"], [data-pdp="cinema"], [data-pdp="coverflow"]) .pdp-media.g-on { margin-inline: -16px; padding: 0; border-radius: 0; }
  html[data-pdp="story"] .g-stage[data-eng="story"] { border-radius: 0 0 28px 28px; aspect-ratio: 4 / 5; }
  html[data-pdp="story"] .pdp-info { position: relative; z-index: 3; margin-top: -34px; border-radius: 28px 28px 22px 22px; }
  html[data-pdp="cinema"] .g-stage[data-eng="fade"] { border-radius: 0; aspect-ratio: 1 / 1.08; }
  html[data-pdp="cinema"] .pdp-info { position: relative; z-index: 3; margin-top: -26px; border-radius: 26px 26px 22px 22px; }
  html[data-pdp="cinema"] .g-dots { position: relative; z-index: 4; margin-top: -60px; margin-bottom: 40px; }
  html[data-pdp="cinema"] .g-dots i { background: rgba(255,255,255,.35); } html[data-pdp="cinema"] .g-dots i.on { background: #fff; }
  .g-stage[data-eng="peek"] .g-track { padding: 4px 7%; gap: 10px; }
  .g-stage[data-eng="peek"] .g-slide { flex-basis: 86%; }
  .g-stage[data-eng="cover"] .g-slide { inset: 8% 17% 15%; }
  .g-stage[data-eng="stack"] .g-slide { inset: 6% 10% 14%; }
  .g-stage[data-eng="tilt"] .g-track, .g-glare { inset: 4%; }
  .g-heart { font-size: 84px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  html:is([data-pdp="story"]) .g-stage[data-eng="story"] { max-height: 70vh; margin-inline: auto; }
}

/* =========================================================================================== phone option sheet */
.pd-sheet { position: fixed; inset: 0; z-index: 1250; display: flex; align-items: flex-end; background: rgba(10,8,8,.45); animation: fb-fade .25s ease; }
.pd-sheet.out { animation: g-lb-out .26s ease forwards; }
.pd-sheet-box { position: relative; width: 100%; max-height: 82dvh; overflow: auto; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4); animation: pd-sheet-up .42s cubic-bezier(.2,1,.3,1); transition: transform .2s; }
.pd-sheet.out .pd-sheet-box { transform: translateY(100%); transition: transform .26s ease-in; }
@keyframes pd-sheet-up { from { transform: translateY(100%); } }
.pd-sheet-grip { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.pd-sheet-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--card-b); }
.pd-sheet-top img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.pd-sheet-top div { flex: 1; display: grid; }
.pd-sheet-p { font: 800 22px Poppins, sans-serif; color: var(--red); }
.pd-sheet-top span { font-size: 13px; color: var(--ink-soft); }
.pd-sheet-x { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pd-sheet-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pd-sheet-g { padding: 12px 0 4px; }
.pd-sheet-g.need { animation: pd-shake .5s ease; } .pd-sheet-g.need .pd-sheet-t { color: var(--red); }
.pd-sheet-t { font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.pd-sheet-o { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-sheet-o button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--card-b); background: var(--card-2, var(--card)); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, border-color .2s, color .2s; }
.pd-sheet-o button.on { background: var(--red); border-color: var(--red); color: var(--on-accent, #fff); transform: scale(1.04); }
.pd-sheet-o button.oos { opacity: .45; text-decoration: line-through; }
.pd-sheet-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; padding: 15px; border: 0; border-radius: 16px; font: inherit; font-weight: 800; font-size: 16px; color: var(--on-accent, #fff); background: var(--red); box-shadow: 0 14px 26px -14px var(--red); }
.pd-sheet-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .g-stage .g-slide, .g-stage .g-track, .g-glare { transition: none !important; animation: none !important; }
  .g-bars i.now b { animation: none; width: 100%; }
}
/* styles without thumbnails show the dots on every screen */
.pdp-media.g-on:not(.g-tcol) .g-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.pdp-media.g-on:not(.g-tcol) .g-dots i { width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .35s cubic-bezier(.2,.8,.2,1), background .3s; }
.pdp-media.g-on:not(.g-tcol) .g-dots i.on { width: 24px; background: var(--red); }
@media (min-width: 721px) { .g-stage[data-eng="story"] { max-height: calc(100vh - 150px); margin-inline: auto; } }

/* =========================================================================== every device: fit the screen
   The picture is never taller than the screen (so the price and buttons are always near), tablets in portrait keep
   room for the details, and phones held sideways get two columns with the header slimmed down. */
.pdp-media.g-on .g-stage { width: min(100%, calc(100svh - 150px)); margin-inline: auto; justify-self: center; }
@media (min-width: 1101px) { .pdp-media.g-on .g-stage { width: min(100%, calc(100svh - 220px)); } .pdp-media.g-on .g-stage[data-eng="story"] { width: min(100%, calc((100svh - 220px) * .8)); } }
.pdp-media.g-on .g-stage[data-eng="story"] { width: min(100%, calc((100svh - 150px) * .8)); max-height: none; }
.pdp-media.g-on .g-stage[data-eng="peek"] { width: 100%; }
.g-stage[data-eng="peek"] .g-slide { flex-basis: min(84%, calc(100svh - 170px)); }
.pdp-media.g-on.g-tcol .g-thumbs { max-height: min(100%, calc(100svh - 150px)); }
@media (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  .pdp-media.g-on .g-stage { width: min(100%, 52svh); }
  .pdp-media.g-on .g-stage[data-eng="story"] { width: min(100%, 48svh); }
  .g-stage[data-eng="peek"] .g-slide { flex-basis: min(70%, 56svh); }
}
@media (orientation: landscape) and (max-height: 540px) {
  .marquee, nav.catnav { display: none !important; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 16px !important; align-items: start; }
  .pdp-media { position: sticky !important; top: 64px; }
  .pdp-media.g-on { padding: 8px !important; margin-inline: 0 !important; }
  .pdp-media.g-on .g-stage { width: min(100%, calc(100svh - 96px)); border-radius: 18px; }
  .pdp-media.g-on .g-stage[data-eng="story"] { width: min(100%, calc((100svh - 96px) * .8)); }
  .g-stage[data-eng="peek"] .g-slide { flex-basis: min(80%, calc(100svh - 110px)); }
  .pdp-media.g-on .g-dots { margin-top: 2px; }
  .pdp-info { margin-top: 0 !important; padding: 16px !important; border-radius: 20px !important; }
  .pdp-info h1 { font-size: 21px; }
  html[data-pdp="stacked"] .g-has-grid > :is(.g-stage, .g-dots) { display: block !important; }
  html[data-pdp="stacked"] .g-has-grid .g-dots { display: flex !important; }
  html[data-pdp="stacked"] .g-list { display: none !important; }
  .pd-bb { bottom: 10px; }
}

/* =========================================================================== phones: app-style product page
   (chai-pdp.js phoneShell) no site header, search, top bar, category row or site bottom bar here; the picture starts
   at the very top with back / share / cart floating on it, and a buying bar sits at the bottom */
.pd-mt, .pd-mb { display: none; }
@media (max-width: 720px) {
  html.pd-shell .marquee, html.pd-shell header.main, html.pd-shell nav.catnav, html.pd-shell .mnav, html.pd-shell .crumb, html.pd-shell .pd-bb { display: none !important; }
  html.pd-shell body { padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  html.pd-shell body > footer { margin-bottom: 0 !important; }
  html.pd-shell .pdp { margin-top: -18px; }
  html.pd-shell body > section:first-of-type { padding-top: 0 !important; }
  html.pd-shell .pdp-media.g-on { margin-inline: -16px; padding: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  html.pd-shell .pdp-media.g-on::before { display: none; }
  html.pd-shell .pdp-media.g-on .g-stage:not([data-eng="peek"]):not([data-eng="tilt"]):not([data-eng="cover"]):not([data-eng="stack"]):not([data-eng="prism"]) { width: 100%; border-radius: 0 0 26px 26px; }
  html.pd-shell .pdp-media.g-on .g-stage[data-eng] { padding-top: 0; }
  html.pd-shell .g-stage[data-eng="cover"], html.pd-shell .g-stage[data-eng="stack"], html.pd-shell .g-stage[data-eng="prism"], html.pd-shell .g-stage[data-eng="tilt"], html.pd-shell .g-stage[data-eng="peek"] { margin-top: 58px; }
  html.pd-shell .g-full { top: auto; bottom: 14px; right: 60px; }
  html.pd-shell .g-off { top: auto; bottom: 16px; left: 14px; }
  html.pd-shell .pdp-info { position: relative; z-index: 3; margin-top: -24px; border-radius: 26px 26px 20px 20px; }

  .pd-mt { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; top: 0; z-index: 870; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; transition: background .3s, box-shadow .3s; }
  .pd-mt-b { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(20, 16, 18, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, color .3s; }
  .pd-mt-b svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
  .pd-mt-n { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
  .pd-mt-n2 { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font: 700 11px/18px Poppins, sans-serif; font-style: normal; color: #fff; background: var(--red); }
  .pd-mt-n2[hidden] { display: none; }
  .pd-mt.solid { background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: 0 6px 20px -12px rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .pd-mt.solid .pd-mt-b { background: transparent; color: var(--ink); backdrop-filter: none; }
  .pd-mt.solid .pd-mt-n { opacity: 1; transform: none; }

  .pd-mb { display: flex; align-items: stretch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 880; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 2px; background: var(--card); border-top: 1px solid var(--card-b); box-shadow: 0 -10px 26px -18px rgba(0,0,0,.35); animation: pd-sheet-up .45s cubic-bezier(.2,1,.3,1); }
  .pd-mb-i { flex: none; width: 52px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 11px; text-decoration: none; }
  .pd-mb-i svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
  .pd-mb-i:active svg { transform: scale(.85); }
  .pd-mb-save.on { color: var(--red); } .pd-mb-save.on svg { fill: currentColor; animation: pd-pop .4s; }
  .pd-mb-buy { flex: 1; display: flex; min-width: 0; margin-left: 4px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 22px -12px var(--red); }
  .pd-mb-buy button { border: 0; font: inherit; font-weight: 800; color: var(--on-accent, #fff); min-height: 52px; }
  .pd-mb-add { flex: 1; font-size: 14px; background: color-mix(in srgb, var(--red) 72%, #ffb347); }
  .pd-mb-now { flex: 1.25; display: grid; align-content: center; line-height: 1.15; background: var(--red); }
  .pd-mb-now b { font: 800 17px Poppins, sans-serif; } .pd-mb-now small { font-size: 11.5px; font-weight: 700; opacity: .92; }
  .pd-mb-buy button:active { filter: brightness(.92); }
  html.pd-shell .pd-fly { z-index: 1400; }
}
@media (max-width: 720px) and (orientation: landscape) { html.pd-shell .pdp-media.g-on { margin-inline: 0; } html.pd-shell .pdp { margin-top: 56px; } }
/* phones: the bottom bar does the buying, so the in-page buttons step aside (they still work behind the scenes) */
@media (max-width: 720px) { html.pd-shell .pdp-actions { display: none !important; } }
/* phones: the two buying buttons, redesigned — a soft "add to cart" pill and a glowing "buy now" pill with the price */
@media (max-width: 720px) {
  .pd-mb { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 0; align-items: center; }
  .pd-mb-i { width: 48px; }
  .pd-mb-buy { gap: 8px; margin-left: 6px; border-radius: 0; overflow: visible; box-shadow: none; }
  .pd-mb-buy button { position: relative; overflow: hidden; min-height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; transition: transform .18s cubic-bezier(.34,1.56,.64,1), filter .2s; }
  .pd-mb-buy button:active { transform: scale(.95); filter: none; }
  .pd-mb-add { flex: 1; padding: 0 12px; font-size: 13.5px; color: var(--red) !important; background: color-mix(in srgb, var(--red) 9%, var(--card)) !important; box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--red) 55%, transparent); }
  .pd-mb-ic { position: relative; display: grid; place-items: center; }
  .pd-mb-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pd-mb-ic i { position: absolute; top: -6px; right: -7px; width: 14px; height: 14px; border-radius: 50%; font: 800 11px/14px Poppins, sans-serif; font-style: normal; text-align: center; color: var(--on-accent, #fff); background: var(--red); }
  .pd-mb-now { flex: 1.35; padding: 0 6px 0 16px; justify-content: space-between !important; text-align: left;
    background: linear-gradient(115deg, color-mix(in srgb, var(--red) 78%, #ff9a3d), var(--red) 55%, color-mix(in srgb, var(--red) 78%, #000)) !important;
    box-shadow: 0 10px 22px -10px var(--red), inset 0 1px 0 rgba(255,255,255,.3); }
  .pd-mb-now::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: pd-mb-shine 3.2s 1.2s ease-in-out infinite; }
  @keyframes pd-mb-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
  .pd-mb-t { display: grid; line-height: 1.1; }
  .pd-mb-t small { font-size: 11px; font-weight: 700; opacity: .9; }
  .pd-mb-t b { font: 800 17px Poppins, sans-serif; letter-spacing: -.3px; }
  .pd-mb-go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); }
  .pd-mb-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: pd-mb-nudge 1.8s ease-in-out infinite; }
  @keyframes pd-mb-nudge { 50% { transform: translateX(3px); } }
  .pd-mb-add.pd-added { color: #fff !important; background: #16a34a !important; box-shadow: none; }
}
@media (max-width: 370px) { .pd-mb-add > span:last-child { display: none; } .pd-mb-add { flex: 0 0 52px; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .pd-mb-now::after, .pd-mb-go svg { animation: none; } }
@media (max-width: 720px) {
  .pd-mb-buy button, .pd-mb-buy button * { white-space: nowrap; }
  .pd-mb-i { width: 44px; }
  .pd-mb-add { gap: 6px; font-size: 13px; padding: 0 10px; min-width: 0; }
  .pd-mb-add.pd-added svg { width: 18px; height: 18px; }
  .pd-mb-t small { font-size: 10.5px; }
}
@media (max-width: 400px) { .pd-mb-add > span:last-child { display: none; } .pd-mb-add { flex: 0 0 54px; padding: 0; } .pd-mb-add.pd-added span { display: none; } }
/* phones: Taobao-style buying capsule — one rounded pill split in two: a golden "add to cart" half and an
   orange-red "buy now" half (the shop's own red), icons on the left */
@media (max-width: 720px) {
  .pd-mb { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
  .pd-mb-i { width: 46px; font-size: 10.5px; color: var(--ink-soft); }
  .pd-mb-i svg { width: 22px; height: 22px; }
  .pd-mb-buy.tb { flex: 1; display: flex; gap: 0; margin-left: 6px; height: 42px; border-radius: 999px; overflow: hidden; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--red) 70%, transparent); }
  .pd-mb-buy.tb button { flex: 1; min-height: 0; height: 100%; border-radius: 0; padding: 0 6px; display: grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: .2px; color: #fff !important; box-shadow: none; white-space: nowrap; }
  .pd-mb-buy.tb button::after { display: none; }
  .pd-mb-buy.tb .pd-mb-add { background: linear-gradient(90deg, #ffcb00, #ff9402) !important; }
  .pd-mb-buy.tb .pd-mb-now { background: linear-gradient(90deg, #ff7a00, var(--red, #ff4900)) !important; }
  .pd-mb-buy.tb button:active { filter: brightness(.93); transform: none; }
  .pd-mb-buy.tb .pd-mb-add.pd-added { background: #16a34a !important; }
  .pd-mb-buy.tb .pd-mb-add.pd-added svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: 3px; }
  .pd-mb-buy.tb .pd-mb-add.pd-added { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 400px) { .pd-mb-buy.tb .pd-mb-add > span { display: inline !important; } .pd-mb-buy.tb .pd-mb-add { flex: 1 !important; padding: 0 4px; } .pd-mb-buy.tb button { font-size: 13px; } }
@media (max-width: 350px) { .pd-mb-buy.tb button { font-size: 12px; } .pd-mb-i { width: 40px; } }
/* the buying capsule takes the website design's own colours: "add to cart" in the design's second colour blended
   toward its accent, "buy now" in the accent itself; text in the design's on-accent colour */
@media (max-width: 720px) {
  .pd-mb-buy.tb .pd-mb-add { background: linear-gradient(90deg, color-mix(in srgb, var(--amber, #f2b705) 80%, var(--red)), color-mix(in srgb, var(--amber, #f2b705) 45%, var(--red))) !important; }
  .pd-mb-buy.tb .pd-mb-now { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 82%, var(--amber, #f2b705)), var(--red)) !important; }
  .pd-mb-buy.tb button { color: var(--on-accent, #fff) !important; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
}

/* =========================================================================== phones: buying buttons, three looks
   (admin: Product Page Style → Phone buy buttons; html[data-mb]). All use only the design's accent colour. */
@media (max-width: 720px) {
  .pd-mb-buy.mbx { flex: 1; display: flex; gap: 8px; margin-left: 6px; height: 46px; border-radius: 0; overflow: visible; box-shadow: none; }
  .pd-mb-buy.mbx button { position: relative; overflow: hidden; height: 100%; min-height: 0; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
    font: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; text-shadow: none; box-shadow: none; transition: transform .15s ease, filter .2s, background .2s; }
  .pd-mb-buy.mbx button::after { display: none !important; }
  .pd-mb-buy.mbx button:active { transform: scale(.96); }
  .pd-mb-buy.mbx button svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pd-mb-buy.mbx .pd-mb-p { font: 800 15px Poppins, sans-serif; }
  .pd-mb-buy.mbx .pd-mb-now { flex: 1.2; background: var(--red) !important; color: var(--on-accent, #fff) !important; box-shadow: 0 8px 18px -10px var(--red) !important; }
  .pd-mb-buy.mbx .pd-mb-now .pd-mb-p { padding-left: 8px; margin-left: 2px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
  .pd-mb-buy.mbx .pd-mb-add { flex: 1; }
  .pd-mb-buy.mbx .pd-mb-add.pd-added { background: #16a34a !important; color: #fff !important; box-shadow: none !important; }

  /* soft: light tint + accent text and border */
  html[data-mb="soft"] .pd-mb-buy.mbx .pd-mb-add { background: color-mix(in srgb, var(--red) 10%, var(--card)) !important; color: var(--red) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 45%, transparent) !important; }
  /* single: one big buy button, a small square cart button */
  html[data-mb="single"] .pd-mb-buy.mbx .pd-mb-add { flex: 0 0 46px; padding: 0; background: color-mix(in srgb, var(--red) 10%, var(--card)) !important; color: var(--red) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 45%, transparent) !important; }
  html[data-mb="single"] .pd-mb-buy.mbx .pd-mb-add span { display: none; }
  html[data-mb="single"] .pd-mb-buy.mbx .pd-mb-now { font-size: 15px; }
  /* dark: near-black add (light in dark mode) + accent buy */
  html[data-mb="dark"] .pd-mb-buy.mbx .pd-mb-add { background: #1b1b1f !important; color: #fff !important; }
  html[data-mb="dark"][data-theme="dark"] .pd-mb-buy.mbx .pd-mb-add { background: #f2f2f4 !important; color: #111 !important; }
}
@media (max-width: 380px) {
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-add span { display: none; }
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-add { flex: 0 0 52px; padding: 0; }
}
@media (max-width: 380px) {
  .pd-mb { padding-left: 6px; padding-right: 6px; }
  .pd-mb-i { width: 40px; font-size: 10px; }
  .pd-mb-buy.mbx { gap: 6px; margin-left: 4px; }
  .pd-mb-buy.mbx button { padding: 0 9px; font-size: 13px; }
  .pd-mb-buy.mbx .pd-mb-p { font-size: 14px; }
  .pd-mb-buy.mbx .pd-mb-now .pd-mb-p { padding-left: 6px; }
}
/* soft and dark on normal phones: "Add to cart" keeps its words, "Buy now" drops the price (the price is right above
   on the page); the single style keeps the price */
@media (max-width: 720px) { html .pd-mb-buy.mbx .pd-mb-add span { display: inline !important; } html[data-mb="single"] .pd-mb-buy.mbx .pd-mb-add span { display: none !important; } }
@media (max-width: 430px) {
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-add { flex: 0 1 auto; padding: 0 12px; }
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-now { flex: 1 1 auto; }
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-now .pd-mb-p { display: none; }
}
@media (max-width: 365px) {
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-add span { display: none !important; }
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-add { flex: 0 0 48px; padding: 0; }
  html:is([data-mb="soft"], [data-mb="dark"]) .pd-mb-buy.mbx .pd-mb-now .pd-mb-p { display: inline; }
}
/* "In stock" at the right end of the reviews line */
.pdp-info .rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; width: 100%; }
.pdp-info .rating > .badge.pd-instock { margin-left: auto; align-self: center; }
.pdp-info .qty + .pdp-meta { margin-top: 2px; }
/* picture dots: on the picture, bottom centre, in a small frosted pill (every style, every screen) */
html .g-stage > .g-dots { display: flex !important; position: absolute; left: 50%; bottom: 12px; z-index: 8; transform: translateX(-50%); margin: 0 !important; gap: 5px; padding: 5px 8px; border-radius: 99px; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: auto; }
html .g-stage > .g-dots i { width: 6px !important; height: 6px !important; background: rgba(255,255,255,.6) !important; }
html .g-stage > .g-dots i.on { width: 18px !important; background: #fff !important; }
html .pdp-media.g-on.g-tcol .g-stage > .g-dots { display: none !important; }
@media (max-width: 1100px) { html .pdp-media.g-on.g-tcol .g-stage > .g-dots { display: flex !important; } }
@media (max-width: 720px) { html .pdp-media.g-on.g-tcol .g-thumbs { display: none !important; } }
html .g-stage[data-eng="peek"] > .g-dots { bottom: 14px; }

/* =========================================================================== reviews (Pinduoduo style) */
.rv-sec { padding-top: 0 !important; }
.rv-box { padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-b); box-shadow: 0 14px 30px -24px rgba(0,0,0,.35); }
.rv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rv-top h2 { margin: 0; font-size: 18px; } .rv-top h2 em { font-style: normal; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.rv-avg { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); }
.rv-avg b { font: 800 22px Poppins, sans-serif; color: var(--ink); }
.rv-stars { display: inline-flex; gap: 1px; font-size: 14px; line-height: 1; } .rv-stars i { font-style: normal; color: color-mix(in srgb, var(--ink) 18%, transparent); } .rv-stars i.on { color: #f5a623; }
.rv-all { flex: none; border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.rv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -4px 4px; padding: 0 4px 2px; }
.rv-chips::-webkit-scrollbar { display: none; }
.rv-chips button { flex: none; border: 0; border-radius: 99px; padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: color-mix(in srgb, var(--red) 85%, var(--ink)); background: color-mix(in srgb, var(--red) 8%, var(--card)); transition: background .2s, color .2s; }
.rv-chips button em { font-style: normal; opacity: .75; margin-left: 2px; }
.rv-chips button.on { background: var(--red); color: var(--on-accent, #fff); }
.rv-list { display: grid; }
.rv-card { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--card-b) 80%, transparent); animation: pd-up .45s cubic-bezier(.2,.8,.2,1) both; }
.rv-card:last-child { border-bottom: 0; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--on-accent, #fff); background: linear-gradient(135deg, color-mix(in srgb, var(--red) 70%, #ffb347), var(--red)); }
.rv-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-who b { font-size: 14px; }
.rv-ver { font-size: 10.5px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 7px; border-radius: 99px; }
.rv-meta { margin: 4px 0 0 44px; font-size: 12px; color: var(--ink-soft); }
.rv-text { margin: 8px 0 0 44px; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 44px; } .rv-tags span { font-size: 11.5px; color: var(--ink-soft); background: color-mix(in srgb, var(--ink) 5%, transparent); padding: 3px 8px; border-radius: 6px; }
.rv-ph { display: grid; grid-template-columns: repeat(3, minmax(0, 92px)); gap: 6px; margin: 10px 0 0 44px; }
.rv-ph button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--card-2, #eee); }
.rv-ph button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .rv-ph button:hover img { transform: scale(1.06); }
.rv-reply { margin: 10px 0 0 44px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink-soft); } .rv-reply b { color: var(--ink); }
.rv-empty { display: grid; justify-items: center; gap: 4px; padding: 22px 10px 10px; text-align: center; } .rv-empty span { font-size: 34px; } .rv-empty small { color: var(--ink-soft); }
.rv-write { display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--red) 45%, var(--card-b)); background: color-mix(in srgb, var(--red) 4%, var(--card)); color: var(--red); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s; }
.rv-write:hover { background: color-mix(in srgb, var(--red) 9%, var(--card)); }
.rv-sheet { position: fixed; inset: 0; z-index: 1260; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,8,8,.45); animation: fb-fade .25s ease; }
.rv-sheet.out { animation: g-lb-out .26s ease forwards; }
.rv-sheet-box { position: relative; width: 100%; max-width: 640px; max-height: 88dvh; overflow: auto; overscroll-behavior: contain; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--card); color: var(--ink); animation: pd-sheet-up .42s cubic-bezier(.2,1,.3,1); }
@media (min-width: 721px) { .rv-sheet { align-items: center; } .rv-sheet-box { border-radius: 24px; max-height: 84vh; } }
.rv-sh-top { position: sticky; top: -10px; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 6px 0 8px; background: var(--card); }
.rv-sh-top b { font-size: 17px; }
.rv-x { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); cursor: pointer; }
.rv-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rv-full .rv-chips { position: sticky; top: 40px; z-index: 2; background: var(--card); margin-top: 0; padding-bottom: 8px; }
.rv-more { display: block; margin: 10px auto 0; padding: 10px 22px; border-radius: 99px; border: 1px solid var(--card-b); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.rv-more[hidden] { display: none; }
.rv-load { display: flex; justify-content: center; gap: 6px; padding: 30px; } .rv-load i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: sx-dot .9s ease-in-out infinite; } .rv-load i:nth-child(2) { animation-delay: .15s; } .rv-load i:nth-child(3) { animation-delay: .3s; }
.rv-w-prod { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 13.5px; font-weight: 600; }
.rv-w-prod img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.rv-w-stars { display: flex; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.rv-w-stars button { border: 0; background: none; font-size: 40px; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--ink) 15%, transparent); transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s; }
.rv-w-stars button.on { color: #f5a623; transform: scale(1.12); }
.rv-w-stars.need { animation: pd-shake .5s ease; }
.rv-w-face { text-align: center; font-weight: 700; color: var(--red); min-height: 22px; margin-bottom: 12px; }
.rv-w-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rv-w-tags button { border: 1.5px solid var(--card-b); background: none; border-radius: 99px; padding: 7px 13px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.rv-w-tags button.on { background: color-mix(in srgb, var(--red) 10%, var(--card)); border-color: var(--red); color: var(--red); }
.rv-write-sh textarea, .rv-w-name { width: 100%; box-sizing: border-box; border: 1.5px solid var(--card-b); border-radius: 14px; padding: 11px 13px; font: inherit; font-size: 14px; background: var(--bg); color: var(--ink); outline: none; }
.rv-write-sh textarea { min-height: 96px; resize: vertical; }
.rv-write-sh textarea:focus, .rv-w-name:focus { border-color: var(--red); }
.rv-w-ph { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.rv-w-add, .rv-w-pic { position: relative; width: 74px; height: 74px; border-radius: 14px; }
.rv-w-add { display: grid; place-content: center; justify-items: center; gap: 1px; border: 1.5px dashed var(--card-b); cursor: pointer; font-size: 22px; }
.rv-w-add[hidden] { display: none; }
.rv-w-add span { font-size: 10.5px; font-weight: 600; } .rv-w-add small { font-size: 10px; color: var(--ink-soft); }
.rv-w-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.rv-w-pic button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; cursor: pointer; }
.rv-w-name { margin-bottom: 4px; }
.rv-w-err { color: #e11d48; font-size: 13px; font-weight: 600; margin: 4px 0; } .rv-w-err:empty { display: none; }
.rv-w-go { display: block; width: 100%; margin-top: 8px; padding: 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 15px; color: var(--on-accent, #fff); background: var(--red); cursor: pointer; }
.rv-w-go:disabled { opacity: .65; }
.rv-done { display: grid; justify-items: center; gap: 6px; padding: 30px 10px 10px; text-align: center; } .rv-done span { font-size: 46px; animation: pd-pop .6s; } .rv-done small { color: var(--ink-soft); }
.rv-done .rv-w-go { width: auto; height: auto; padding: 12px 34px; border-radius: 14px; }
@media (max-width: 720px) {
  .rv-sec .wrap { padding-inline: 12px; }
  .rv-box { padding: 14px; border-radius: 20px; }
  .rv-meta, .rv-text, .rv-tags, .rv-ph, .rv-reply { margin-left: 0; }
  .rv-ph { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* price on the left, the stock count and its bar on the right */
.pd-pricerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-pricerow > .price { flex: 1 1 auto; min-width: 0; }
.pd-pricerow > .pd-stock { flex: 0 0 auto; width: 128px; gap: 5px; text-align: right; }
.pd-pricerow > .pd-stock .pd-stock-t { font-size: 12px; white-space: nowrap; }
.pd-pricerow > .pd-stock .pd-bar { height: 6px; }
@media (max-width: 380px) { .pd-pricerow > .pd-stock { width: 104px; } .pd-pricerow > .pd-stock .pd-stock-t { font-size: 11px; } }
.pd-pricerow > .price { flex-wrap: nowrap !important; white-space: nowrap; }
@media (max-width: 720px) {
  .pd-pricerow > .price > span:first-child { font-size: 27px !important; }
  .pd-pricerow > .price s { font-size: 13px; }
  .pd-pricerow > .price .off { font-size: 11.5px; padding: 2px 7px; }
  .pd-pricerow > .pd-stock { width: 100px; }
}
@media (max-width: 380px) { .pd-pricerow > .price > span:first-child { font-size: 24px !important; } .pd-pricerow > .price s { display: none; } }

/* =========================================================================== buying buttons: motion
   phones (bottom bar) and computers (buttons in the page, the following buy bar) */
@keyframes bb-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes bb-shine { 0%, 62% { transform: translateX(-130%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes bb-glow { 0%, 100% { box-shadow: 0 8px 18px -10px var(--red), 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); } 50% { box-shadow: 0 10px 22px -8px var(--red), 0 0 0 6px color-mix(in srgb, var(--red) 0%, transparent); } }
@keyframes bb-cart { 0%, 84%, 100% { transform: none; } 88% { transform: translateX(-2px) rotate(-12deg); } 92% { transform: translateX(3px) rotate(8deg); } 96% { transform: translateX(-1px) rotate(-4deg); } }
@keyframes bb-drop { 0% { transform: translateY(-14px) scale(.6); opacity: 0; } 60% { transform: translateY(2px) scale(1.15); opacity: 1; } 100% { transform: none; } }
.pd-mb-buy.mbx button, .pdp-actions > .btn, .pdp-actions > a.btn, .pd-bb button { position: relative; overflow: hidden; isolation: isolate; }
/* a light sweep across "Buy now" every few seconds, and a breathing glow */
.pd-mb-buy.mbx .pd-mb-now::before, .pdp-actions > .btn:nth-child(2)::before, .pd-bb-buy::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent); animation: bb-shine 3.6s 1.4s ease-in-out infinite; }
.pd-mb-buy.mbx .pd-mb-now, .pdp-actions > .btn:nth-child(2), .pd-bb-buy { animation: bb-glow 2.8s ease-in-out infinite; }
/* the cart icon gives a little shake now and then; after adding it drops in */
.pd-mb-buy.mbx .pd-mb-add svg, .pdp-actions > .btn:first-child .i, .pd-bb-add svg { animation: bb-cart 5s 2s ease-in-out infinite; transform-origin: 50% 80%; }
.pd-mb-buy.mbx .pd-mb-add.pd-added svg, .pdp-actions > .btn.pd-added svg, .pd-bb-add.pd-added svg { animation: bb-drop .45s cubic-bezier(.34,1.56,.64,1) both; }
/* the bar's buttons rise in one after another */
.pd-mb .pd-mb-i, .pd-mb-buy.mbx button { animation-name: bb-in; animation-duration: .5s; animation-timing-function: cubic-bezier(.2,.9,.3,1.2); animation-fill-mode: both; }
.pd-mb .pd-mb-i:nth-child(1) { animation-delay: .15s; } .pd-mb .pd-mb-i:nth-child(2) { animation-delay: .2s; } .pd-mb .pd-mb-i:nth-child(3) { animation-delay: .25s; }
.pd-mb-buy.mbx .pd-mb-add { animation: bb-in .5s .3s cubic-bezier(.2,.9,.3,1.2) both; }
.pd-mb-buy.mbx .pd-mb-now { animation: bb-in .5s .38s cubic-bezier(.2,.9,.3,1.2) both, bb-glow 2.8s 1s ease-in-out infinite; }
/* a springy press, a lift on hover */
.pd-mb-buy.mbx button:active, .pdp-actions > .btn:active, .pd-bb button:active { transform: scale(.94) !important; transition: transform .08s; }
.pd-mb-buy.mbx button, .pdp-actions > .btn, .pd-bb button { transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .2s, background .25s, color .25s; }
@media (hover: hover) { .pdp-actions > .btn:hover, .pd-bb button:hover { transform: translateY(-3px); filter: brightness(1.05); } }
/* the price inside "Buy now" pops when an option changes it */
.pd-mb-p.bump { display: inline-block; animation: pd-pop .45s cubic-bezier(.34,1.56,.64,1); }
@media (prefers-reduced-motion: reduce) {
  .pd-mb-buy.mbx button, .pd-mb-buy.mbx button::before, .pd-mb-buy.mbx svg, .pdp-actions > .btn, .pdp-actions > .btn::before, .pdp-actions .i, .pd-bb button, .pd-bb button::before, .pd-bb svg, .pd-mb .pd-mb-i { animation: none !important; }
}

/* =========================================================================== tablets and computers, final fit
   - tablets held sideways (and small laptops) keep the thumbnails in a column beside the picture, so picture,
     thumbnails and the price all fit on one screen; only narrower tablets put them in a row under the picture
   - the breathing glow on "Buy now" plays three times instead of forever (it repaints a shadow every frame) */
@media (min-width: 900px) and (max-width: 1100px) {
  .pdp-media.g-on.g-many.g-tcol { grid-template-columns: 64px minmax(0, 1fr) !important; }
  .pdp-media.g-on.g-many.g-tcol .g-thumbs { order: -1 !important; flex-direction: column !important; overflow-y: auto; overflow-x: hidden; }
  .pdp-media.g-on.g-tcol .g-th { width: 100%; }
  html .pdp-media.g-on.g-tcol .g-stage > .g-dots { display: none !important; }
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important; gap: 22px !important; }
  .pdp-media { position: sticky !important; top: 84px; }
  .pdp-media.g-on .g-stage { width: min(100%, calc(100svh - 170px)); }
}
@media (min-width: 721px) and (max-width: 899px) {
  .pdp-media.g-on.g-tcol .g-thumbs { justify-content: center; }
  .pdp-info { padding: 22px 24px; }
}
.pd-mb-buy.mbx .pd-mb-now { animation: bb-in .5s .38s cubic-bezier(.2,.9,.3,1.2) both, bb-glow 2.8s 1s ease-in-out 3 !important; }
.pdp-actions > .btn:nth-child(2), .pd-bb-buy { animation: bb-glow 2.8s 1s ease-in-out 3; }
/* the reviews block lines up with the product above it on wide screens */
@media (min-width: 1101px) { .rv-sec .rv-box { padding: 22px 26px; } .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } .rv-card { border-bottom: 0; } }
/* the following buy bar's effects wait while it is out of sight */
.pd-bb:not(.show), .pd-bb:not(.show) * { animation-play-state: paused !important; }

/* share button and its menu (computers and tablets) */
.pdp-actions .pd-share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.pdp-actions .pd-share circle { fill: color-mix(in srgb, currentColor 14%, transparent); }
.pdp-actions .pd-share:hover svg, .pdp-actions .pd-share.on svg { transform: rotate(-14deg) scale(1.12); }
.pdp-actions .pd-share.on { color: var(--red); border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.pd-share-menu { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 40; padding: 12px 12px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-b); box-shadow: 0 22px 44px -18px rgba(0,0,0,.4); transform-origin: 90% 100%; animation: pd-share-in .32s cubic-bezier(.2,1.2,.3,1); }
.pd-share-menu[hidden] { display: none; }
.pd-share-menu::after { content: ""; position: absolute; right: 16px; bottom: -6px; width: 12px; height: 12px; background: var(--card); border-right: 1px solid var(--card-b); border-bottom: 1px solid var(--card-b); transform: rotate(45deg); }
@keyframes pd-share-in { from { opacity: 0; transform: translateY(8px) scale(.92); } }
.pd-share-menu > b { display: block; font-size: 13px; margin: 0 4px 10px; }
.pd-share-row { display: flex; gap: 6px; }
.pd-share-row button { width: 64px; display: grid; justify-items: center; gap: 5px; padding: 6px 2px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; cursor: pointer; animation: pd-up .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 40ms); transition: background .2s; }
.pd-share-row button:hover { background: color-mix(in srgb, var(--c) 9%, transparent); }
.pd-share-row span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.pd-share-row button[data-k="cp"] span { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.pd-share-row button.ok span { background: #16a34a; color: #fff; }
.pd-share-row button:hover span { transform: translateY(-3px) scale(1.06); }
.pd-share-row svg { width: 20px; height: 20px; fill: currentColor; }
.pd-share-row button[data-k="cp"] svg, .pd-share-row button[data-k="more"] svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-share-row small { font-size: 11px; white-space: nowrap; }

/* =========================================================================== tablets (721–1100px)
   one buying bar at the bottom (picture, name, price, Add to cart, Buy now) instead of the site's bottom bar plus a
   second bar; product grids in 3–4 columns; the buttons in one row */
@media (min-width: 721px) and (max-width: 1100px) {
  html.pd-shell .mnav { display: none !important; }
  html.pd-shell body { padding-bottom: 96px !important; }
  html.pd-shell body > footer { margin-bottom: 0 !important; }
  html.pd-shell .pd-bb { bottom: calc(12px + env(safe-area-inset-bottom)) !important; transform: translate(-50%, 0) !important; opacity: 1 !important; pointer-events: auto !important; width: min(760px, calc(100% - 28px)); }
  html.pd-shell .pd-bb, html.pd-shell .pd-bb * { animation-play-state: running !important; }
  html.pd-shell .pd-bb-l b { display: block !important; }
  html.pd-shell .pd-bb-add span { display: inline !important; }
  html.pd-shell .cw-fab { transform: translateY(-82px); }
  html.pd-shell .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
  .pdp-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px 46px; gap: 10px !important; }
  .pdp-actions > .btn { min-width: 0; padding-inline: 8px; white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  html.pd-shell .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* back button beside the breadcrumb: tablets only (computers have the browser's own, phones the floating one) */
.pd-back { display: none; }
@media (min-width: 721px) and (max-width: 1100px) {
  .crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  .pd-back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; margin-right: 8px; border-radius: 99px; border: 1px solid var(--card-b); background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .2s, border-color .2s; animation: pd-up .4s ease both; }
  .pd-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .pd-back:active { transform: scale(.94); }
  .pd-back:hover { color: var(--red); border-color: var(--red); } .pd-back:hover svg { transform: translateX(-3px); }
}

/* ---- wholesale price box: price per quantity, the live total, cartons (chai-store-pages.js) ---- */
.ws-box { display: grid; gap: 10px; margin: 4px 0 14px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 12%, var(--card, #fff)), var(--card, #fff) 70%); }
.ws-box svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ws-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ws-h b { font-size: 15px; } .ws-h small { font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--amber) 70%, var(--ink)); }
.ws-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.ws-tiers button { display: grid; gap: 2px; padding: 9px 6px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink-soft, #888) 25%, transparent); background: var(--card, #fff); color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.ws-tiers button small { font-size: 11.5px; color: var(--ink-soft); } .ws-tiers button b { font-size: 15px; }
.ws-tiers button:hover { transform: translateY(-2px); }
.ws-tiers button.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card, #fff)); box-shadow: 0 8px 18px -14px var(--red); }
.ws-tiers button.on b { color: var(--red); }
.ws-calc { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--ink-soft, #888) 30%, transparent); font-size: 13.5px; }
.ws-calc span { color: var(--ink-soft); } .ws-calc b { font-size: 17px; }
.ws-calc em { margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 12px; color: #15803d; background: color-mix(in srgb, #16a34a 14%, var(--card, #fff)); }
.ws-ctn { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ws-ctn span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); min-width: 0; } .ws-ctn span svg { width: 18px; height: 18px; flex: none; color: var(--amber); }
.ws-ctn em { font-style: normal; }
.ws-ctn button { padding: 7px 12px; border-radius: 10px; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--on-accent, #fff); background: var(--red); cursor: pointer; }
@media (max-width: 420px) { .ws-box { padding: 12px; } .ws-tiers { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; } }

.ws-cls { margin: 0; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #9a3412; background: color-mix(in srgb, #f97316 12%, var(--card, #fff)); }

/* ---- several options at once: a quantity for each size / option of the chosen colour (chai-store-pages.js) ---- */
.mv { display: grid; gap: 8px; margin: 6px 0 14px; padding: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--card-b, #e5e7eb) 90%, transparent); background: var(--card, #fff); }
.mv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; } .mv-h b { font-size: 14.5px; } .mv-h small { font-size: 12px; color: var(--ink-soft); }
.mv-rows { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.mv-r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink-soft, #888) 18%, transparent); transition: border-color .2s, background .2s; }
.mv-r.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--card, #fff)); }
.mv-r.out { opacity: .5; }
.mv-l { display: grid; min-width: 0; } .mv-l b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mv-l small { font-size: 11.5px; color: var(--ink-soft); }
.mv-p { font-weight: 800; font-size: 14px; white-space: nowrap; }
.mv-st { display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink-soft, #888) 25%, transparent); overflow: hidden; }
.mv-st button { width: 32px; height: 34px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; } .mv-st button:disabled { opacity: .3; cursor: default; }
.mv-st input { width: 46px; height: 34px; border: 0; outline: 0; text-align: center; background: none; color: var(--ink); font: inherit; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.mv-st input::-webkit-inner-spin-button, .mv-st input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mv-sum { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--ink-soft, #888) 30%, transparent); font-size: 13.5px; }
.mv-sum > b { font-size: 18px; color: var(--red); } .mv-sum i { font-style: normal; color: #d97706; font-weight: 700; } .mv-sum span { color: var(--ink-soft); } .mv-sum span b { color: var(--ink); }
.size .mv-b { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: var(--on-accent, #fff); background: var(--red); }
@media (max-width: 420px) { .mv { padding: 10px; } .mv-r { gap: 6px; padding: 7px 8px; } .mv-st button { width: 28px; } .mv-st input { width: 46px; } }

.mv-dot { display: inline-block; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; vertical-align: -3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--card, #fff), 0 0 0 3px color-mix(in srgb, var(--ink-soft, #888) 30%, transparent); }
/* very narrow phones (about 340 px): the buy bar keeps its price whole */
@media (max-width: 345px) { .pd-mb-now { padding-left: 10px !important; min-width: 0; } .pd-mb-now b, .pd-mb-now .pd-mb-p { font-size: 14.5px !important; white-space: nowrap; } .pd-mb-now small { font-size: 10.5px !important; } }
@media (max-width: 345px) {
  /* the label above the price, both whole */
  .pd-mb-buy.mbx .pd-mb-now { flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 1px !important; padding: 0 6px !important; text-align: center; }
  .pd-mb-buy.mbx .pd-mb-now .pd-mb-p { padding-left: 0 !important; margin-left: 0 !important; border-left: 0 !important; font-size: 14px !important; line-height: 1.1; }
  .pd-mb-buy.mbx .pd-mb-now > :first-child { font-size: 12.5px !important; line-height: 1.1; }
}
/* the product's videos under the pictures */
.g-vids { display: grid; gap: 8px; margin-top: 12px; } .g-vids > b { font-size: 15px; } .g-vids > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.g-vids video { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; background: #000; object-fit: contain; scroll-snap-align: start; }
@media (max-width: 600px) { .g-vids > div { grid-auto-columns: 82%; } }

/* a live product's description pictures (the seller's long images), one under the other */
.pd-descpics { display: flex; flex-direction: column; align-items: center; margin-top: 14px; }
.pd-descpics img { display: block; width: 100%; max-width: 790px; height: auto; }

/* a live product whose full details are still coming from China */
.pd-livenote { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(17, 24, 39, .92); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.pd-livenote i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: pd-spin .8s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
