/* ============================================================
   ADORN — additions on top of the Rack & Box base styles
   (lookbook module, colour/size selectors, tracking, misc)
   ============================================================ */

/* ---------- secondary currency ---------- */
.price-alt { font-size: 0.68em; color: var(--ink-faint); margin-left: 8px; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
.btn .price-alt { display: none; }

/* ---------- split hero: image must fill its column ---------- */
.hero-split-media .ph { width: 100%; }

/* ---------- serif display everywhere ---------- */
.serif { font-weight: 500; }
.hero-h, .hero-stk-h { letter-spacing: 0; }

/* ---------- category strip: 8 tiles ---------- */
.cat-strip.adorn-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .cat-strip.adorn-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- product card ---------- */
.swatch-more { font-size: 10px; color: var(--ink-faint); align-self: center; letter-spacing: 0.06em; }

/* ---------- PDP: breadcrumb, colour + size selectors ---------- */
.pdp-crumb { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: inline-block; }
.pdp-crumb:hover { text-decoration: underline; }
.opt-val { font-style: normal; color: var(--ink); font-weight: 500; }
.opt-optional { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 9px; margin-left: 10px; vertical-align: 2px; }

.cswatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cswatch {
  width: 34px; height: 34px; border-radius: 50%; position: relative; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--c-deep) 18%, transparent);
  display: grid; place-items: center; color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.cswatch.lite { color: var(--c-deep); }
.cswatch:hover { transform: scale(1.1); }
.cswatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.custom-color-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; }

.scale-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 100px; overflow: hidden; margin-top: 12px; }
.scale-btn { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; color: var(--ink-soft); transition: all .25s; }
.scale-btn.on { background: var(--ink); color: var(--bg); }
.size-hint { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- lookbook teaser (home) ---------- */
.lbt-sec { background: var(--surface-2); }
.lbt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.lbt-h { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.02; margin-top: 16px; }
.lbt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .lbt-grid { grid-template-columns: 1fr; } }
.lbt-card { display: block; width: 100%; text-align: left; border-radius: var(--radius); overflow: hidden; position: relative; }
.lbt-card .ph { border-radius: var(--radius); }
.lbt-cap { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px 0; }
.lbt-cap .mono { font-size: 10.5px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.lbt-cap .serif { font-size: 24px; }
.lbt-count { font-size: 12.5px; color: var(--ink-faint); }

/* static pin (teaser + grid) */
.lbt-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,253,248,0.95); border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 6px rgba(0,0,0,0.35); transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none;
}
.lbt-pin::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(255,253,248,0.75); animation: pin-pulse 2.2s infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- lookbook page grid ---------- */
.lbk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .lbk-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1280px) { .lbk-grid { grid-template-columns: repeat(4, 1fr); } }
.lbk-card { display: block; width: 100%; text-align: left; }
.lbk-card .ph { border-radius: var(--radius); overflow: hidden; }
.lbk-expand {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(20,16,12,0.62); color: #f6f1e7; backdrop-filter: blur(6px);
  padding: 7px 12px; border-radius: 100px;
}
.lbk-cap { display: flex; flex-direction: column; gap: 3px; padding: 14px 4px 6px; }
.lbk-cap .mono { font-size: 10.5px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.lbk-cap .serif { font-size: 22px; }

/* ---------- full-screen look viewer ---------- */
.lbv {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: color-mix(in oklab, var(--c-deep) 94%, black);
  animation: lbv-in .35s var(--ease);
}
@keyframes lbv-in { from { opacity: 0; } to { opacity: 1; } }
.lbv-top {
  display: flex; align-items: center; gap: 18px; padding: 14px 22px;
  color: #f6f1e7; border-bottom: 1px solid rgba(246,241,231,0.12); flex: 0 0 auto;
}
.lbv-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lbv-title .mono { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-bright); }
.lbv-title .serif { font-size: 22px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv-counter { margin-left: auto; font-size: 12px; color: rgba(246,241,231,0.6); }
.lbv-close { color: #f6f1e7; }
.lbv-close:hover { color: var(--accent-bright); }

.lbv-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; min-height: 0; }
.lbv-figure { position: relative; height: 100%; aspect-ratio: 3 / 4; max-width: min(92vw, 640px); margin: 0; }
.lbv-img { position: absolute !important; inset: 0; height: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.lbv-img.ph { padding: 0; }
.lbv-arrow {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  color: #f6f1e7; border: 1px solid rgba(246,241,231,0.25); transition: all .25s; z-index: 5;
}
.lbv-arrow:hover { background: rgba(246,241,231,0.12); border-color: rgba(246,241,231,0.5); }
@media (max-width: 720px) {
  .lbv-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,16,12,0.5); }
  .lbv-arrow.prev { left: 10px; } .lbv-arrow.next { right: 10px; }
  .lbv-stage { padding: 12px; }
  .lbv-figure { max-width: 100%; width: 100%; height: auto; max-height: 100%; }
}

/* interactive pins */
.lbv-pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 6;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
}
.lbv-pin-dot {
  width: 16px; height: 16px; border-radius: 50%; display: block;
  background: rgba(255,253,248,0.96); border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5); transition: transform .25s var(--ease), background .25s;
  position: relative;
}
.lbv-pin-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(255,253,248,0.7); animation: pin-pulse 2.2s infinite;
}
.lbv-pin:hover .lbv-pin-dot { transform: scale(1.2); }
.lbv-pin.on .lbv-pin-dot { background: var(--accent-bright); transform: scale(1.25); }
.lbv-pin.on .lbv-pin-dot::after { animation: none; opacity: 0; }

/* mini product card */
.lbv-mini {
  position: absolute; z-index: 8; width: 218px;
  background: var(--c-paper); color: var(--c-deep); border-radius: var(--radius);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.65);
  transform: translate(16px, 16px); overflow: hidden; cursor: default;
  animation: mini-in .28s var(--ease);
}
@keyframes mini-in { from { opacity: 0; transform: translate(16px, 26px); } to { opacity: 1; transform: translate(16px, 16px); } }
.lbv-mini.flip-x { transform: translate(calc(-100% - 16px), 16px); }
.lbv-mini.flip-x { animation-name: mini-in-x; }
@keyframes mini-in-x { from { opacity: 0; transform: translate(calc(-100% - 16px), 26px); } to { opacity: 1; transform: translate(calc(-100% - 16px), 16px); } }
.lbv-mini.flip-y { transform: translate(16px, calc(-100% - 16px)); animation-name: mini-in-y; }
@keyframes mini-in-y { from { opacity: 0; transform: translate(16px, calc(-100% - 6px)); } to { opacity: 1; transform: translate(16px, calc(-100% - 16px)); } }
.lbv-mini.flip-x.flip-y { transform: translate(calc(-100% - 16px), calc(-100% - 16px)); animation-name: mini-in-xy; }
@keyframes mini-in-xy { from { opacity: 0; transform: translate(calc(-100% - 16px), calc(-100% - 6px)); } to { opacity: 1; transform: translate(calc(-100% - 16px), calc(-100% - 16px)); } }
.lbv-mini-media .ph { height: 120px; }
.lbv-mini-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.lbv-mini-cat { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-family: var(--font-mono); }
.lbv-mini-name { font-size: 18px; line-height: 1.1; }
.lbv-mini-price { font-size: 13.5px; margin-top: 2px; }
.lbv-mini-cta {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-paper); background: var(--c-deep); padding: 9px 12px; border-radius: 3px;
  justify-content: center; transition: gap .25s, background .25s;
}
.lbv-mini-cta:hover { gap: 12px; background: var(--accent); }
@media (max-width: 720px) {
  .lbv-mini { width: 188px; }
  .lbv-mini-media .ph { height: 96px; }
}

/* bottom shelf */
.lbv-shelf { flex: 0 0 auto; padding: 12px 22px 16px; border-top: 1px solid rgba(246,241,231,0.12); color: #f6f1e7; }
.lbv-shelf-label { display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246,241,231,0.55); margin-bottom: 10px; }
.lbv-shelf-items { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.lbv-shelf-item {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto; text-align: left;
  border: 1px solid rgba(246,241,231,0.16); border-radius: 6px; padding: 6px 12px 6px 6px;
  color: #f6f1e7; transition: all .25s; max-width: 240px;
}
.lbv-shelf-item .ph { border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
.lbv-shelf-item:hover, .lbv-shelf-item.on { border-color: var(--accent-bright); background: rgba(246,241,231,0.08); }
.lbv-shelf-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lbv-shelf-txt span:first-child { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv-hint { font-size: 11.5px; color: rgba(246,241,231,0.45); margin-top: 10px; }
@media (max-width: 720px) { .lbv-hint { display: none; } .lbv-shelf { padding: 10px 14px 12px; } }

/* ---------- order tracking ---------- */
.track-form { display: flex; gap: 14px; align-items: flex-end; max-width: 680px; margin: 0 auto; flex-wrap: wrap; }
.track-form .field { min-width: 180px; }
.track-btn { flex: 0 0 auto; }
.track-result { max-width: 680px; margin: 44px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.track-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.track-no { font-size: 15px; }
.track-eta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-soft); text-align: right; }
.track-line { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; }
.track-step { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px;
  background: var(--line-2);
}
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--accent); }
.track-dot {
  width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto; z-index: 1;
  border: 1.5px solid var(--line-2); background: var(--bg); display: grid; place-items: center;
  color: var(--on-accent); font-size: 0;
}
.track-step.done .track-dot { background: var(--accent); border-color: var(--accent); }
.track-step.now .track-dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.track-step-body { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.track-step-body strong { font-size: 14.5px; }
.track-step-body span { font-size: 12.5px; color: var(--ink-faint); }
.track-step.now .track-step-body strong { color: var(--accent); }
.track-items { border-top: 1px solid var(--line); padding-top: 20px; }
.track-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 8px 0; transition: padding-left .25s; }
.track-item:hover { padding-left: 6px; }
.track-item .ph { border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.track-help { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }

/* ---------- footer extras ---------- */
.footer-contact-link {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: color-mix(in oklab, var(--footer-ink) 72%, transparent); font-size: 14px; width: fit-content;
  transition: color .25s;
}
.footer-contact-link:hover { color: var(--footer-ink); }
.pay-logo-svg { width: 26px; height: 16px; display: none; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; }
.footer-powered a:hover { color: var(--footer-ink); }

/* ---------- light-theme hero text on images ---------- */
.hero-centered .hero-h.on-img, .hero-centered .hero-sub.on-img { color: #f6f1e7; }

/* ============================================================
   COLLAGE HERO — Adorn's multi-panel arrangement
   ============================================================ */
.hero-collage { padding: 108px 10px 10px; }
.hcg-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr);
  gap: 10px; height: clamp(540px, calc(96vh - 118px), 800px);
}
.hcg-panel { position: relative; overflow: hidden; border-radius: var(--radius); display: block; text-align: left; }
.hcg-panel .ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.hcg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: transparent; }
.hcg-panel.a { grid-column: 1 / 6; grid-row: 1 / 7; }
.hcg-panel.b { grid-column: 6 / 10; grid-row: 1 / 4; }
.hcg-panel.c { grid-column: 10 / 13; grid-row: 1 / 4; }
.hcg-panel.d { grid-column: 6 / 9; grid-row: 4 / 7; }
.hcg-panel.e { grid-column: 9 / 13; grid-row: 4 / 7; }

.hcg-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 68%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(26,19,12,0.78), rgba(26,19,12,0.34) 48%, transparent);
}
.hcg-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(20px, 3vw, 40px); color: #f6f1e7; }
.hcg-h { font-size: clamp(36px, 4.4vw, 66px); line-height: 1.0; color: #fffdf8; margin: 14px 0 12px; }
.hcg-cta { margin-top: 22px; flex-wrap: wrap; gap: 12px; }

.hcg-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  background: rgba(250,246,238,0.94); color: var(--c-deep);
  padding: 10px 15px; border-radius: 100px; transition: gap .25s, background .25s;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.4);
}
.hcg-panel:hover .hcg-chip { gap: 12px; background: #fffdf8; }

@media (max-width: 1080px) {
  .hero-collage { padding-top: 96px; }
  .hcg-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; height: auto; }
  .hcg-panel.a { grid-column: 1 / -1; grid-row: auto; height: clamp(420px, 58vh, 560px); }
  .hcg-panel.b, .hcg-panel.c, .hcg-panel.d, .hcg-panel.e { grid-column: auto; grid-row: auto; height: 230px; }
}
@media (max-width: 600px) {
  .hero-collage { padding: 92px 8px 8px; }
  .hcg-grid { gap: 8px; }
  .hcg-panel.a { height: clamp(380px, 56vh, 480px); }
  .hcg-panel.b, .hcg-panel.c, .hcg-panel.d, .hcg-panel.e { height: 168px; }
  .hcg-h { font-size: clamp(32px, 9.6vw, 40px); }
  .hcg-chip { padding: 8px 12px; font-size: 10px; left: 10px; bottom: 10px; }
}

/* ============================================================
   RESPONSIVE AUDIT FIXES (375 / 768 / 1280)
   ============================================================ */
html, body { overflow-x: hidden; }

/* product grids: 4 → 3 → 2, never shrinking illegibly */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* size options always wrap (19 ring sizes) */
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* drawers & modals never exceed viewport */
.drawer { max-width: 100vw; }
.modal { max-width: calc(100vw - 32px); }

@media (max-width: 1080px) {
  .lbt-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 860px) {
  .lbt-grid { grid-template-columns: 1fr 1fr; }
  .lbt-cap .serif { font-size: 19px; }
  .lbt-count { font-size: 11.5px; }
}
@media (max-width: 760px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .collections-grid { grid-template-columns: 1fr; }
  .checkout-top { flex-wrap: wrap; }
  .lbt-head { margin-bottom: 30px; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; align-items: stretch; }
  .track-form .field { min-width: 0; }
  .track-btn { width: 100%; }
  .track-meta { flex-direction: column; }
  .track-eta { text-align: left; }
  /* comfortable tap targets */
  .cswatch { width: 40px; height: 40px; }
  .size-btn { min-width: 44px; min-height: 42px; }
  .pdp .qty button { width: 42px; height: 42px; }
  .pdp-buy { flex-wrap: wrap; }
  .pdp-buy .btn { flex: 1 1 100%; order: 3; }
  .cart-row { grid-template-columns: 96px 1fr; gap: 14px; }
  .summary { padding: 20px; }
  .size-table th, .size-table td { padding: 8px 10px; font-size: 12.5px; }
  .lbt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 8px; gap: 10px; }
  .trust-item:not(:last-child) { border-right: none; }
  .trust-t { font-size: 12.5px; }
  .trust-s { font-size: 11px; }
}

/* ---------- tap-target upgrades ---------- */
.announce { overflow: hidden; }
.rb-logo { padding: 8px 2px; }
.link-arrow { padding: 8px 0; }
.testi-dots { gap: 4px; }
.tdot { width: 32px; height: 32px; background: transparent; border: none; position: relative; }
.tdot.on { background: transparent; }
.tdot::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px;
  border-radius: 50%; background: var(--line-2); transition: background .25s, transform .25s;
}
.tdot.on::before { background: var(--accent); transform: scale(1.3); }
@media (max-width: 720px) {
  .opt-link, .clear-btn, .cart-remove, .back-link { padding: 10px 0; }
  .ditem-x { width: 34px; height: 34px; display: grid; place-items: center; }
  .qty.sm button { width: 38px; height: 38px; }
  .cur-btn { padding: 9px 12px; }
  .scale-btn { padding: 10px 16px; }
  .achip { min-height: 34px; }
  .checkout-steps { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
  .lbv-mini { width: 176px; max-width: calc(100vw - 40px); }
  .search-res { min-height: 44px; }
}
@media (max-width: 480px) {
  .lbv-mini, .lbv-mini.flip-x, .lbv-mini.flip-y, .lbv-mini.flip-x.flip-y {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100vw - 32px); max-width: 320px;
  }
}
