/* ============================================================
 * DRC Resistor T-Shirt — /products/drc-resistor-t-shirt
 *
 * Ported from the handoff drc-tee.css. Global tokens, nav, footer, .btn and
 * the light-theme block already live in public/style.css; this sheet
 * carries the merch-PDP chrome only. `.section` / `.sec-head` / `.kicker`
 * are (re)defined here for this page's local look — this sheet only loads on
 * this page, so it doesn't affect the global versions elsewhere.
 *
 * Differences from the handoff: the gallery cells hold real <img> (not the
 * <image-slot> mock), and the add-to-cart toast is dropped — the shared nav
 * cart popup is the add feedback instead.
 * ============================================================ */

/* ── breadcrumb head — shared component; drop the page-head border + bottom
   padding so it's just the crumb row above the PDP ── */
.tee-head { border-bottom: 0; padding-bottom: 0; }

/* ── product hero ── */
.pdp { padding: 40px 0 88px; position: relative; }
.pdp-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
@media (max-width: 980px) { .pdp-grid { grid-template-columns: 1fr; gap: 36px; } }

/* gallery — sliding carousel */
.gallery { position: sticky; top: 88px; }
@media (max-width: 980px) { .gallery { position: static; } }

.stage {
  position: relative; aspect-ratio: 4/5; border: 0.5px solid var(--line-strong); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 24%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 62%),
    linear-gradient(180deg, var(--card-2), var(--bg));
  outline: none; touch-action: pan-y; user-select: none;
}
.stage:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.stage .track { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.65, 0.02, 0.18, 1); }
.stage .cell { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.stage .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .frame-tag { position: absolute; left: 16px; top: 14px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); background: color-mix(in oklab, var(--bg) 60%, transparent); border: 0.5px solid var(--line); padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.stage .frame-no { position: absolute; right: 16px; top: 14px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--fg-faint); background: color-mix(in oklab, var(--bg) 60%, transparent); border: 0.5px solid var(--line); padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); }

/* arrows */
.stage .navarr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; color: var(--fg); background: color-mix(in oklab, var(--bg) 64%, transparent); border: 0.5px solid var(--line-strong); backdrop-filter: blur(8px); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.stage .navarr svg { width: 20px; height: 20px; }
.stage .navarr:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stage .navarr.prev { left: 14px; }
.stage .navarr.next { right: 14px; }
@media (max-width: 560px) { .stage .navarr { width: 40px; height: 40px; } }

/* dots */
.stage .dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 58%, transparent); border: 0.5px solid var(--line); backdrop-filter: blur(8px); }
.stage .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--fg-faint); cursor: pointer; transition: background 0.2s ease, width 0.2s ease, transform 0.2s ease; padding: 0; border: 0; }
.stage .dot:hover { background: var(--fg-dim); }
.stage .dot.on { background: var(--accent); width: 22px; }

/* buy box */
.buy { display: flex; flex-direction: column; }
.buy .eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 18px; }
.buy .eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.buy h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.2vw, 68px); line-height: 0.92; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.buy .sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.32; color: var(--fg-dim); margin: 20px 0 0; max-width: 42ch; text-wrap: pretty; }
.buy .sub em { font-style: normal; color: var(--accent); }

.price-row { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 4px; flex-wrap: wrap; }
.price-row .amt { font-family: var(--display); font-weight: 500; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
/* On-sale cluster (refs #415): pill + promo + struck original (~half). */
.price-row .sale-tag { align-self: center; font-size: 11px; }
.price-row .was { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1; color: var(--fg-faint); text-decoration: line-through; }
/* Promoted (current) price in the accent colour when on sale (#415). */
.price-row:has(.was) .amt { color: var(--accent); }
.price-row .ship { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.price-row .vat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--fg-faint); }

.buy-sep { height: 0.5px; background: var(--line); margin: 26px 0; }

/* size selector */
.field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.field-head .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.field-head .guide { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-faint); border: 0; border-bottom: 0.5px dashed var(--line-strong); background: transparent; cursor: pointer; padding: 0 0 1px; }
.field-head .guide:hover { color: var(--accent); border-color: var(--accent); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 52px; height: 48px; padding: 0 8px; border: 0.5px solid var(--line-strong); border-radius: 11px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease; }
.size:hover { border-color: var(--fg-faint); transform: translateY(-1px); }
.size .s { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.size .px { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.04em; color: var(--fg-faint); }
.size.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--card)); color: var(--fg); }
.size.on .px { color: var(--fg-dim); }
.size.soldout { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.size-req { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: #ff6b5e; margin-top: 10px; height: 14px; opacity: 0; transition: opacity 0.2s ease; }
.size-req.show { opacity: 1; }
@keyframes drctee-nudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.sizes.nudge { animation: drctee-nudge 0.4s ease; }

/* add — single unit per size, no quantity stepper (refs #343) */
.buy-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
.add { height: 52px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); border: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s ease, transform 0.15s ease; }
.add:hover { background: color-mix(in oklab, var(--accent) 88%, white); transform: translateY(-1px); }
.add.added { background: color-mix(in oklab, var(--accent) 30%, var(--card)); color: var(--fg); border: 0.5px solid var(--accent); }
.add svg { width: 18px; height: 18px; }

/* trust mini-row under add */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 0.5px solid var(--line); border-radius: 14px; margin-top: 24px; background: var(--card); overflow: hidden; }
@media (max-width: 420px) { .assure { grid-template-columns: 1fr; } .assure .ac { border-right: 0; border-bottom: 0.5px solid var(--line); } .assure .ac:last-child { border-bottom: 0; } }
.assure .ac { padding: 14px 16px; border-right: 0.5px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.assure .ac:last-child { border-right: 0; }
.assure .ac .t { font-family: var(--display); font-weight: 500; font-size: 13.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.assure .ac .t svg { width: 14px; height: 14px; color: var(--accent); }
.assure .ac .d { font-size: 11.5px; color: var(--fg-faint); line-height: 1.4; }

/* spec list inside buy box */
.specs { margin-top: 24px; border: 0.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.specs .srow { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px 18px; border-top: 0.5px solid var(--line); align-items: baseline; }
.specs .srow:first-child { border-top: 0; }
.specs .srow .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.specs .srow .v { font-size: 14px; color: var(--fg); line-height: 1.45; }
.specs .srow .v b { color: var(--accent); font-weight: 500; }
.specs .srow .v em { font-style: normal; color: var(--accent); }

/* ── section shell (local to this page) ── */
.section { padding: 88px 0; border-top: 0.5px solid var(--line); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.4vw, 58px); line-height: 0.96; letter-spacing: -0.025em; margin: 8px 0 0; text-wrap: balance; }
.sec-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.sec-head .meta { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; text-align: right; max-width: 32ch; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 700px) { .sec-head { flex-direction: column; align-items: start; } .sec-head .meta { text-align: left; } }

/* the print — two detail cards */
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .print-grid { grid-template-columns: 1fr; } }
.pcard { border: 0.5px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.pcard .pv { position: relative; aspect-ratio: 5/4; display: grid; place-items: center; background:
  radial-gradient(ellipse 60% 55% at 50% 42%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
  linear-gradient(180deg, var(--card-2), var(--bg)); overflow: hidden; }
.pcard .pv .resistor { width: 46%; height: auto; }
.pcard .pv .wordmark { width: 48%; height: 30px; background: var(--fg); -webkit-mask: url("/imaginando.svg") no-repeat center/contain; mask: url("/imaginando.svg") no-repeat center/contain; opacity: 0.92; }
.pcard .pv .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, color-mix(in oklab, var(--accent) 6%, transparent) 0 1px, transparent 1px 5px); mix-blend-mode: screen; pointer-events: none; opacity: 0.5; }
:root[data-theme="light"] .pcard .pv .scan { mix-blend-mode: multiply; opacity: 0.4; }
.pcard .pmeta { padding: 20px 22px; border-top: 0.5px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pcard .pmeta .pe { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.pcard .pmeta h3 { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; margin: 0; }
.pcard .pmeta p { margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.55; text-wrap: pretty; }

/* fabric / construction strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 0.5px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); margin-top: 20px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts .fc { padding: 24px 22px; border-right: 0.5px solid var(--line); border-bottom: 0.5px solid transparent; display: flex; flex-direction: column; gap: 6px; }
.facts .fc:last-child { border-right: 0; }
@media (max-width: 760px) { .facts .fc:nth-child(2) { border-right: 0; } .facts .fc:nth-child(-n + 2) { border-bottom: 0.5px solid var(--line); } }
.facts .fc .num { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.facts .fc .num em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.facts .fc .cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }

/* trust / payment / shipping */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; } }
.tcard { border: 0.5px solid var(--line-strong); border-radius: 16px; padding: 26px; background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.tcard .ti { width: 38px; height: 38px; border-radius: 10px; border: 0.5px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); }
.tcard .ti svg { width: 19px; height: 19px; }
.tcard h3 { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.tcard p { margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.pay-marks { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.pay { height: 30px; padding: 0 12px; border: 0.5px solid var(--line-strong); border-radius: 7px; display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; color: var(--fg); background: color-mix(in oklab, var(--fg) 4%, transparent); }

/* cross-sell */
.xs-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
@media (max-width: 880px) { .xs-grid { grid-template-columns: 1fr; } }
.xcard { position: relative; border: 0.5px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; min-height: 280px; transition: border-color 0.2s ease, transform 0.2s ease; }
.xcard:hover { border-color: var(--fg-faint); transform: translateY(-2px); }
.xcard .xv { flex: 1; position: relative; display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px),
  linear-gradient(180deg, var(--card-2), var(--bg)); }
.xcard.synth .xv { background:
  radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 62%),
  linear-gradient(180deg, var(--card-2), var(--bg)); }
.xcard .xv .resistor { width: 40%; }
.xcard .xv .ph-cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.xcard .xmeta { padding: 20px 22px; border-top: 0.5px solid var(--line); }
.xcard .xmeta .xe { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.xcard .xmeta h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; margin: 6px 0 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.xcard .xmeta h3 .pp { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.02em; }
.xcard .xmeta p { margin: 0; color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; }
.xcard .go { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 999px; border: 0.5px solid var(--line-strong); display: grid; place-items: center; color: var(--fg); background: color-mix(in oklab, var(--bg) 50%, transparent); backdrop-filter: blur(6px); transition: background 0.2s ease, color 0.2s ease; }
.xcard:hover .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* size guide modal */
.sg-overlay { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.sg-overlay.open { opacity: 1; pointer-events: auto; }
:root[data-theme="light"] .sg-overlay { background: rgba(10, 10, 12, 0.4); }
.sg { width: min(560px, 100%); background: var(--bg); border: 0.5px solid var(--line-strong); border-radius: 18px; overflow: hidden; transform: translateY(16px) scale(0.98); transition: transform 0.25s ease; }
.sg-overlay.open .sg { transform: none; }
.sg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 0.5px solid var(--line); }
.sg-head h3 { font-family: var(--display); font-weight: 500; font-size: 18px; margin: 0; }
.sg-close { width: 34px; height: 34px; border-radius: 999px; border: 0.5px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; color: var(--fg); background: transparent; }
.sg-close:hover { border-color: var(--fg); }
.sg table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sg th, .sg td { padding: 12px 22px; text-align: left; border-bottom: 0.5px solid var(--line); }
.sg th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 500; }
.sg tr:last-child td { border-bottom: 0; }
.sg td:first-child { font-family: var(--display); font-weight: 600; }
.sg .sg-foot { padding: 14px 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-faint); border-top: 0.5px solid var(--line); }
