/* Page-scoped styles for product.html, extracted from inline <style> — CSP style-src 'self' compliance (D27 emergency fix 2026-09-19T05:46Z). */

/* Product-page-specific layout — 2026-09-19 brand pass. Photo dominates on
   mobile (4:5 aspect), gallery is scrollable at wider breakpoints, price
   hierarchy tightens, availability treatment matches shop grid. */
.product-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .product-grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    gap: var(--s-10);
    align-items: start;
  }
}

.gallery { display: flex; flex-direction: column; gap: var(--s-3); }
.gallery .hero {
  width: 100%; aspect-ratio: 4 / 5;
  background: var(--bg-elev-1);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gallery .hero img { width: 100%; height: 100%; object-fit: contain; background: var(--surface, #111); transition: transform 0.4s var(--ease-out); }
.gallery .hero:hover img { transform: scale(1.02); }
.gallery .hero .noshot {
  color: var(--dim); font-size: 13px; line-height: 1.5;
  text-align: center; padding: var(--s-4);
}
.gallery .thumbs { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button {
  flex: 0 0 72px; height: 72px; padding: 0; cursor: pointer;
  background: var(--bg-elev-1);
  border: 2px solid var(--edge);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-fast), transform 0.06s;
}
.gallery .thumbs button:hover { border-color: var(--edge-hi); }
.gallery .thumbs button:active { transform: scale(0.97); }
.gallery .thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.buy-panel { display: flex; flex-direction: column; gap: var(--s-4); }
.buy-panel .brand-mark {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: var(--fw-semibold);
}
.buy-panel h1 {
  margin: 6px 0 6px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.buy-panel .subline { color: var(--dim); font-size: 14px; margin: 0; }
.buy-panel .price {
  font-size: 36px; font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.buy-panel .price small {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dim); font-weight: var(--fw-regular); margin-left: 8px;
}
.buy-panel .avail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  font-size: 12px; font-weight: var(--fw-medium);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.buy-panel .avail .dot { width: 8px; height: 8px; border-radius: 50%; }
.buy-panel .avail.live { border-color: var(--live-edge); background: var(--live-bg); color: var(--live); }
.buy-panel .avail.live .dot { background: var(--live); box-shadow: 0 0 0 3px rgba(126,224,160,0.15); }
.buy-panel .avail.gone { color: var(--dim); }
.buy-panel .avail.gone .dot { background: var(--dimmer); }

.qty-row { display: flex; align-items: center; gap: var(--s-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--edge); border-radius: var(--r-md); overflow: hidden; }
.qty button {
  width: 40px; height: 40px; background: transparent; border: 0; color: var(--ink);
  font-size: 18px; cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--bg-elev-2); }
.qty button:disabled { color: var(--dimmer); cursor: default; }
.qty .n { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--fw-medium); }

.section-block { margin-top: var(--s-10); }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 14px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.spec-list .v { color: var(--ink-2); font-weight: var(--fw-medium); text-align: right; }

/* D28 bulk-tier ladder — shown on the PDP when a SKU has quantity-break pricing. */
.bulk-ladder { margin: var(--s-3) 0 var(--s-4); padding: var(--s-3); border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--bg-elev-1); }
.bulk-ladder-label { color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; margin-bottom: var(--s-2); }
.bulk-ladder-list { list-style: none; padding: 0; margin: 0; }
.bulk-ladder-list .bulk-tier { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 8px; border-radius: var(--r-sm); font-size: 14px; }
.bulk-ladder-list .bulk-tier .k { color: var(--dim); font-variant-numeric: tabular-nums; }
.bulk-ladder-list .bulk-tier .v { color: var(--ink-2); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.bulk-ladder-list .bulk-tier.active { background: var(--bg-elev-2); }
.bulk-ladder-list .bulk-tier.active .k, .bulk-ladder-list .bulk-tier.active .v { color: var(--ink); }
/* D36 (2026-09-20): "contact us" CTA below the ladder when buyer wants more than
   the topmost tier. Small + subtle — the ladder is the primary read; this is a
   secondary path for wholesale-scale orders. */
.bulk-contact-cta { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--edge); font-size: 12px; color: var(--dim); }
.bulk-contact-cta a { color: var(--accent); text-decoration: underline; }
.line-total { margin-top: var(--s-2); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.line-total strong { color: var(--ink); font-weight: var(--fw-medium); }

/* D31 size picker — shown on the PDP when a family has 2+ per-size variants. */
.size-picker { margin: var(--s-3) 0 var(--s-3); }
.size-picker-label { color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; margin-bottom: var(--s-2); }
.size-picker-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { padding: 8px 14px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: transparent; color: var(--ink-2); cursor: pointer; font-weight: var(--fw-medium); font-size: 14px; min-width: 44px; }
.size-btn:hover { background: var(--bg-elev-1); }
.size-btn.active { border-color: var(--accent); color: var(--ink); background: var(--bg-elev-1); }
.size-btn.sold-out { color: var(--dimmer); }
.size-btn.sold-out .size-btn-note { display: inline-block; margin-left: 4px; font-size: 11px; color: var(--dimmer); }

/* D28c restock-watch opt-in (sold-out PDP) */
.restock-watch { padding: 12px; border: 1px solid var(--edge); border-radius: 10px; }
.restock-watch-row { display: flex; gap: 8px; align-items: center; }
.restock-watch-row .input { flex: 1 1 auto; min-width: 0; }
.restock-watch-row .btn { white-space: nowrap; }
@media (max-width: 420px) { .restock-watch-row { flex-direction: column; align-items: stretch; } }
