/* Product page: the 3D showcase frame, the buy column, tabs, reviews, related kits. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 18px 0 14px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: #fff; } .crumbs span { opacity: .5; }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 34px; align-items: start; }

/* ---------- the showcase frame ---------- */
.showcase { position: sticky; top: 138px; }
.frame {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 32px; overflow: hidden; isolation: isolate;
  /* a photo studio: a seamless charcoal paper sweep, lit softly from above, the floor a little darker */
  background:
    radial-gradient(55% 38% at 50% 18%, rgba(255,255,255,.10), transparent 72%),
    radial-gradient(80% 26% at 50% 88%, rgba(0,0,0,.35), transparent 70%),
    linear-gradient(180deg, #2a2b2f 0%, #232428 52%, #1a1b1e 70%, #141517 100%);
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
}
.frame::before {   /* spotlight cone from the top */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(255,255,255,.035) 70%, transparent 78%);   /* where the paper curves into the floor */
}
@keyframes flicker { 50% { opacity: .75; } }
.frame .watermark { display: none; }
.frame .watermark img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.2) blur(1px); }
.frame .vname { display: none; position: absolute; top: 50%; right: 18px; z-index: -1; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); letter-spacing: .06em; }
.podium { display: none; position: absolute; left: 50%; bottom: 7%; width: 66%; aspect-ratio: 3.2; transform: translateX(-50%); z-index: -1; perspective: 700px; }
.podium i { position: absolute; inset: 0; border-radius: 50%; }
.podium .top { background: radial-gradient(closest-side, rgba(255,255,255,.09), rgba(255,255,255,.02) 70%, transparent);
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--t1) 70%, transparent), 0 0 40px -4px var(--t1), inset 0 0 30px rgba(0,0,0,.5); }
.podium .r1, .podium .r2 { border: 1px dashed color-mix(in oklab, var(--t1) 45%, transparent); animation: podium 22s linear infinite; }
.podium .r1 { inset: -14% -8%; } .podium .r2 { inset: -30% -18%; border-style: solid; border-color: rgba(255,255,255,.07); animation-duration: 40s; animation-direction: reverse; }
@keyframes podium { to { transform: rotate(360deg); } }
.frame canvas { position: absolute; inset: 0; }
.frame .flat { position: absolute; inset: 0; display: none; place-items: center; background: #151515; cursor: zoom-in; overflow: hidden; }
.frame.flat-on .flat { display: grid; }
.frame .flat img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.frame .chip { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(8,11,20,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.frame .badge360 { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.glass-btn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); background: rgba(8,11,20,.55); backdrop-filter: blur(8px); color: #fff; }
.glass-btn:hover { background: rgba(255,255,255,.14); }
.glass-btn.on { background: #fff; color: #111; }
/* the viewer's dock: front/back switch with a sliding thumb, a zoom stepper with its level, the turn button */
.controls { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(10,13,22,.62); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.controls .sep { width: 1px; height: 24px; background: rgba(255,255,255,.14); }
.controls .seg2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 15px; background: rgba(255,255,255,.07); }
.controls .seg2 .thumb { position: absolute; inset-block: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .34s cubic-bezier(.3,1.3,.5,1); }
.controls .seg2[data-on="back"] .thumb { transform: translateX(-100%); }
[dir="ltr"] .controls .seg2[data-on="back"] .thumb { transform: translateX(100%); }
.controls .seg2 button { position: relative; z-index: 1; height: 38px; min-width: 60px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font-weight: 800; font-size: 13.5px; color: #cfd3dc; transition: color .2s; }
.controls .seg2 button.on { color: #111; }
.zoomer { display: flex; align-items: center; }
.zoomer button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; transition: background .15s, transform .1s; }
.zoomer button:hover { background: rgba(255,255,255,.16); }
.zoomer button:active { transform: scale(.9); }
.zoomer button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.zl { width: 30px; height: 4px; margin: 0 7px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; direction: ltr; }
.zl i { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--gold); transition: width .25s; }
.spin-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); background: none; color: #fff; display: grid; place-items: center; transition: border-color .2s, background .2s, color .2s; }
.spin-btn:hover { background: rgba(255,255,255,.1); }
.spin-btn.on { border-color: var(--gold); color: var(--gold); background: rgba(229,157,46,.12); }
.spin-btn.on svg { animation: spinbtn 2.6s linear infinite; }
@keyframes spinbtn { to { transform: rotate(360deg); } }
.dial { position: absolute; bottom: 20px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); display: grid; place-items: center; background: rgba(8,11,20,.45); }
.dial i { position: absolute; top: 3px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform-origin: 3px 20px; }
.dial b { font-size: 10px; font-weight: 700; direction: ltr; }
.frame .hint { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px; white-space: nowrap; border-radius: 18px;
  background: rgba(8,11,20,.55); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity .5s; }
.frame .hint svg { width: 22px; height: 22px; animation: swipe 1.6s ease-in-out infinite; }
@keyframes swipe { 0%, 100% { transform: translateX(-14px) rotate(-8deg); } 50% { transform: translateX(14px) rotate(8deg); } }
.frame .hint.gone { opacity: 0; }
.loading3d { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.loading3d .spin { display: block; width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
.no-back { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; font-size: 11.5px; background: rgba(0,0,0,.5); color: #cfd3dc; white-space: nowrap; }

.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 76px; height: 76px; border-radius: 16px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #151515; position: relative; }
.thumbs button.on { border-color: var(--gold); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t3d { display: grid; place-items: center; background: linear-gradient(180deg, #2a2b2f, #17181b); font: 700 13px Anton, sans-serif; direction: ltr; }
.thumbs .t3d img { position: absolute; inset: 8px; width: auto; height: auto; opacity: .55; object-fit: contain; }
.thumbs .t3d b { position: relative; }

.tryon-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: 12px; border-radius: 18px; font-weight: 800; font-size: 15.5px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.tryon-cta:hover { background: rgba(255,255,255,.08); }
.tryon-cta small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ---------- buy column ---------- */
.buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.showcase { min-width: 0; }
.team-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.team-line a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #d6d9e1; }
.pill.gold { color: var(--gold); border-color: rgba(229,157,46,.35); background: rgba(229,157,46,.08); }
.buy h1 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.5; }
.stars { display: inline-flex; gap: 2px; color: #ffcc33; }
.stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .off { color: rgba(255,255,255,.18); }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rating-line a { color: #cfd3dc; text-decoration: underline; text-underline-offset: 3px; }
.price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.price-box .now { font-size: 32px; font-weight: 900; }
.price-box .now small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-box del { color: var(--muted); font-size: 15px; } .price-box .off { padding: 2px 8px; border-radius: 8px; background: var(--bad); font-size: 12.5px; font-weight: 800; }
.opt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.opt-head button { border: 0; background: none; color: var(--gold); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 62px; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03); font-weight: 800; font-size: 15px; direction: ltr; transition: .15s; }
.sizes button:hover { border-color: rgba(255,255,255,.4); }
.sizes button.on { border-color: var(--gold); background: rgba(229,157,46,.12); color: var(--gold); box-shadow: 0 0 0 4px rgba(229,157,46,.1); }
.sizes button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.sizes.err button { border-color: var(--bad); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.add-row { display: flex; gap: 10px; }
.add-row .qty { height: 54px; border-radius: 15px; }
.add-row .qty button { width: 42px; }
.add-row .btn.team { flex: 1; height: 54px; font-size: 16px; border-radius: 15px; }
.icon-btn { width: 54px; height: 54px; flex: none; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); display: grid; place-items: center; }
.icon-btn.on { color: #ff4d6d; border-color: rgba(255,77,109,.5); background: rgba(255,77,109,.1); }
.icon-btn.on svg { fill: currentColor; }
.perks { display: grid; gap: 2px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.perks div { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,.03); font-size: 13.5px; }
.perks svg { color: var(--gold); width: 22px; height: 22px; }
.perks b { font-weight: 700; }
/* the shop's short text about the kit, between the rating and the price */
.buy .short { color: #cfd3dc; font-size: 14.5px; line-height: 2; }
.buy .short p { margin: 0 0 6px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 38%; }

/* ---------- tabs ---------- */
.tabs { margin-top: 44px; }
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; position: sticky; top: 72px; z-index: 5; background: rgba(9,13,24,.9); backdrop-filter: blur(10px); }
.tab-bar button { flex: none; height: 52px; padding: 0 18px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14.5px; border-bottom: 2.5px solid transparent; }
.tab-bar button.on { color: #fff; border-bottom-color: var(--gold); }
.tab-pane { display: none; padding: 26px 0; }
.tab-pane.on { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.desc { max-width: 820px; font-size: 15px; line-height: 2.1; color: #d9dce4; }

/* reviews */
.rv { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }
.rv-sum { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.rv-sum .avg { font-size: 46px; font-weight: 900; line-height: 1.2; }
.rv-bars { display: grid; gap: 6px; margin: 14px 0 18px; }
.rv-bars div { display: grid; grid-template-columns: 22px minmax(0, 1fr) 30px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rv-bars span { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.rv-bars span i { display: block; height: 100%; background: #ffcc33; }
.rv-list { display: grid; gap: 14px; }
.rv-item { padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.rv-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.rv-item header b { color: #fff; font-size: 14px; }
.rv-item .pend { color: var(--gold); }
.rv-empty { padding: 30px; border-radius: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); }
.rv-form { display: grid; gap: 12px; margin-top: 18px; padding: 20px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.rv-form textarea { min-height: 110px; resize: vertical; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); outline: 0; font-size: 15px; }
.rv-form textarea:focus { border-color: var(--gold); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input button { border: 0; background: none; padding: 2px; color: rgba(255,255,255,.2); }
.star-input button svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.star-input button.on, .star-input button:hover, .star-input button:hover ~ button { color: #ffcc33; }


/* mobile sticky buy bar */
.buybar { display: none; }
@media (max-width: 1000px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .showcase { position: static; }
  .rv { grid-template-columns: minmax(0, 1fr); }
  .tab-bar { top: 62px; }
}
@media (max-width: 900px) {
  body[data-page="product"] .mbar { display: none; }
  body[data-page="product"] { padding-bottom: 86px; }
  .buybar { display: flex; align-items: center; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 70; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10,13,22,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .buybar .p { display: grid; line-height: 1.3; } .buybar .p small { color: var(--muted); font-size: 11.5px; } .buybar .p b { font-size: 17px; }
  .buybar .btn { flex: 1; height: 50px; }
  .buybar .icon-btn { width: 50px; height: 50px; }
  .frame { border-radius: 26px; }
  .controls { gap: 6px; padding: 6px; }
  .controls .seg2 button { min-width: 52px; padding: 0 10px; }
  .zoomer button { width: 36px; height: 36px; }
  .zl { width: 22px; margin: 0 5px; }
}
.rv-item .buyer { padding: 2px 8px; border-radius: 8px; background: rgba(47,207,122,.12); color: var(--ok); font-size: 11.5px; }
#pdp > h1, #pdp > p, #pdp > .desc { display: none; }   /* server copy for search engines; the script draws the page */
