
/* ==========================================================================
   CARATLANE / GIVA / PALMONAS LUXURY E-COMMERCE DESIGN SYSTEM
   ========================================================================== */

:root {
  --radius: 14px !important;
  --bg: #faf8f5 !important;
  --surface: #ffffff !important;
  --primary: #5c0f17 !important;
  --primary-press: #3f090e !important;
  --ink: #1a1816 !important;
  --muted: #6b645c !important;
  --gold: #b38b46 !important;
  --gold-text: #8c6928 !important;
  --line: #ede8e1 !important;
  --r-hair: #f0ece5 !important;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header & Logo */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.logo {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--primary) !important;
}

/* Announcement Top Bar */
.announce {
  background: var(--ink) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  text-align: center;
}

/* Sleek Single-Row Horizontal Filters (CaratLane standard) */
.filters {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filters .chip {
  flex-shrink: 0 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  background: #f5f2ed !important;
  color: #3e3a34 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.filters .chip.on {
  background: var(--ink) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Product Cards: Clean White Luxury Tile (CaratLane & Palmonas) */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
}
.card {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #ede8e1 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  padding-bottom: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:active { transform: scale(0.985); }

.card .ph {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  background: #fbf9f6 !important;
  overflow: hidden !important;
  border-radius: 13px 13px 0 0 !important;
}
.card .ph img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease;
}
.card:hover .ph img { transform: scale(1.04); }

/* Floating Frosted Glass Wishlist Heart */
.card .heart {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 4 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  color: #716960 !important;
}
.card .heart.on { color: #e11d48 !important; }
.card .heart svg { width: 16px !important; height: 16px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; }
.card .heart.on svg { fill: #e11d48 !important; stroke: #e11d48 !important; }

/* Card Category & Title */
.card .cat {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--gold-text) !important;
  margin: 10px 10px 3px !important;
}
.card .t {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  margin: 0 10px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 38px !important;
}

/* Card Price Row */
.card .price {
  margin: 8px 10px 4px !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.card .price b {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
.card .price s {
  font-size: 12px !important;
  color: #6a6a71 !important;
  text-decoration: line-through !important;
}
.card .price .off {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

/* Card Benefit Micro-Line */
.card-benefit {
  margin: 0 10px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #047857 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Modern Card Add to Bag Button */
.card-add {
  margin: 4px 10px 2px !important;
  min-height: 36px !important;
  border-radius: 18px !important;
  background: var(--ink) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  width: calc(100% - 20px) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: background 0.2s ease;
}
.card-add:active { background: var(--primary) !important; }
.card-add svg { width: 14px !important; height: 14px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; }

/* CaratLane View Switcher: 1-Col Luxury Feed View */
.grid.tile-view {
  grid-template-columns: 1fr !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  gap: 24px !important;
}
.grid.tile-view .card {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding-bottom: 14px !important;
}
.grid.tile-view .card .ph {
  aspect-ratio: 1/1 !important;
}
.grid.tile-view .card .t {
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin-top: 10px !important;
}
.grid.tile-view .card .card-add {
  min-height: 42px !important;
  font-size: 12px !important;
  margin-top: 10px !important;
}

/* Marquee Continuous Ticker (GIVA / CaratLane benchmark) */
.ticker-box {
  width: 100% !important;
  overflow: hidden !important;
  background: #ffffff !important;
  padding: 12px 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}
.ticker-track {
  display: flex !important;
  width: max-content !important;
  animation: none;
}
.ticker-group {
  display: flex !important;
  align-items: center !important;
  gap: 36px !important;
  padding-right: 36px !important;
}
.ticker-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-transform: uppercase !important;
}
.ticker-item svg {
  width: 16px !important;
  height: 16px !important;
  fill: var(--primary) !important;
}

/* Coupon Banner (Palmonas hook) */
.coupon-banner {
  margin: 14px 16px;
  background: #fff8f8;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.coupon-left .coupon-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.coupon-left .coupon-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}
.coupon-left .coupon-sub {
  font-size: 12px;
  color: var(--muted);
}
.coupon-code {
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
}

/* Hallmark Authenticity Card */
.hallmark-card {
  margin: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hm-icon {
  background: #fcf9f4;
  color: var(--gold);
  border-radius: 10px;
  padding: 10px;
  display: flex;
}
.hm-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.hm-body p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 10px;
}
.hm-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hm-chips span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: #faf0f1;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Account Hub Styling */
.acc-hub {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.acc-profile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.acc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.acc-meta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
}
.acc-meta p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.acc-coins {
  margin-left: auto;
  background: #fdf8ee;
  border: 1px solid #fae8be;
  color: #8c6928;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.acc-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform 0.2s ease;
}
.acc-card:active { transform: scale(0.98); }
.acc-ic {
  color: var(--primary);
  margin-bottom: 4px;
}
.acc-card b {
  font-size: 13px;
  color: var(--ink);
}
.acc-card span {
  font-size: 12px;
  color: var(--muted);
}
.acc-section {
  margin-top: 24px;
}
.acc-order-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
}
.aob-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2ede6;
  font-size: 12px;
}
.aob-status {
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.aob-body {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  align-items: center;
}
.aob-body img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}
.aob-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.aob-price {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.aob-date {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  margin-top: 2px;
}
.aob-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f2ede6;
}
.acc-addr-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
}
.acc-addr-box b {
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.acc-addr-box p {
  font-size: 13px;
  color: var(--ink);
  margin: 4px 0 0;
}
.acc-addr-box .addr-phone {
  font-size: 12px;
  color: var(--muted);
}

/* B1G1 Tier Progress Box (Bag) */
.b1g1-tier-box {
  background: #fff8f8;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.b1g1-tier-box.applied {
  background: #f0fdf4;
  border-color: #16a34a;
}
.b1g1-txt {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
}
.b1g1-txt span {
  font-weight: 700;
  color: var(--primary);
}
.b1g1-tier-box.applied .b1g1-txt span {
  color: #166534;
}
.b1g1-track {
  width: 100%;
  height: 6px;
  background: #f3ece9;
  border-radius: 3px;
  overflow: hidden;
}
.b1g1-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}
.b1g1-tier-box.applied .b1g1-fill {
  background: #16a34a;
}

/* Bag Delivery Address Bar */
.bag-addr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.bar-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
.bar-txt {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}
.bar-change {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

/* Bag Add-ons (Gift wrap & Coins) */
.bag-addons {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.addon-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.addon-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Wishlist Header */
.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 4px;
}
.wish-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.wish-actions {
  display: flex;
  gap: 8px;
}

/* PDP Social Proof & See It Live */
.pdp-proof {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.see-it-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 12px;
  width: fit-content;
}

/* ---------- motion layer (motion.js). Off under reduced-motion. ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
.hero img { animation: rb-kenburns 16s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes rb-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.heart.pop svg { animation: rb-heart-pop .38s ease-out; }
@keyframes rb-heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.loading { min-height: 140px; border-radius: 12px; background: linear-gradient(90deg, #f1ece4 25%, #faf7f2 50%, #f1ece4 75%); background-size: 200% 100%; animation: rb-shimmer 1.3s linear infinite; color: transparent; }
@keyframes rb-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero img, .heart.pop svg, .loading { animation: none; }
}

/* ---------- merged motion tokens (extracted from CaratLane's shipped bundle:
   durations 100/200/700ms, Easing.inOut/quad, properties opacity/scale/translateY. ---------- */
:root { --rb-dur-fast: 100ms; --rb-dur-base: 200ms; --rb-dur-slow: 700ms;
  --rb-ease-standard: cubic-bezier(.4, 0, .2, 1); --rb-ease-emphasis: cubic-bezier(.16, 1, .3, 1); }
.rv { transition: opacity var(--rb-dur-slow) var(--rb-ease-standard), transform var(--rb-dur-slow) var(--rb-ease-standard); }
.grid .card.rv:nth-child(2n) { transition-delay: 60ms; }
.grid .card.rv:nth-child(3n) { transition-delay: 120ms; }
.card-add, .btn, .opt, .chip, .acc-card, .state-retry {
  transition: transform var(--rb-dur-fast) var(--rb-ease-standard), background var(--rb-dur-base) var(--rb-ease-standard); }
.card-add:active, .btn:active, .opt:active, .acc-card:active, .state-retry:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .rv, .grid .card.rv:nth-child(2n), .grid .card.rv:nth-child(3n) { transition: none; transition-delay: 0ms; }
  .card-add, .btn, .opt, .chip, .acc-card, .state-retry, .card-add:active, .btn:active, .opt:active, .acc-card:active { transition: none; transform: none; }
}

/* PDP savings line: the real discount, stated once, next to the price */
.save-line { display: inline-block; margin: 8px 0 2px; padding: 5px 10px; border-radius: 6px;
  background: #edf7ee; color: #146c2e; font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* PDP gallery must leave the title, price and offer visible on the first screen,
   the way CaratLane and GIVA do. The images scroll sideways inside a capped frame. */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  max-height: 44vh; background: var(--soft, #f2ece3); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 44vh; object-fit: cover; scroll-snap-align: start; }
.dots { margin: 8px 0 2px; }

/* keep the price row and the savings line clear of the fixed buy bar */
body.has-sticky .pd { padding-bottom: 6px; }
.pd .price { margin-top: 6px; }

/* Delivery card + price details: these had no styles because the widgets were never live */
.pincode-card { margin: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pin-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pin-header svg { color: var(--primary); }
.pin-input-row { display: flex; gap: 8px; }
.pin-input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #faf8f5; color: var(--ink); }
.pin-input:focus { border-color: var(--primary); outline: none; }
.pin-btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.pin-status { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.pin-status b { color: var(--ink); }
details.pb-card { margin: 14px 16px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; }
details.pb-card summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); }
.pb-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px;
  border-bottom: 1px solid #f4f1ec; }
.pb-row:last-of-type { border-bottom: 0; }
.pb-total { font-weight: 700; }
.pb-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Card rating chip: real ratings only, so it never appears without data */
.card .ph { position: relative; }
.card-rating { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.94); color: #4a443c;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.card-rating svg { color: #b8860b; }
.card-rating i { font-style: normal; font-weight: 600; color: #6a6a71; }

/* Section headings read like a jewellery house, not a template */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 16px 8px; }
.sec-h h3 { font-family: var(--serif, Georgia, serif); font-size: 21px; font-weight: 600;
  letter-spacing: .005em; color: var(--ink); margin: 0; }
.sec-h a { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-text, #8c6928); text-decoration: none; }

/* ===== measured system: CaratLane 6.3.34 / GIVA / Palmonas (see specs/002-consumer-journey/design-tokens.md) ===== */
:root {
  --ink: #17171a;
  --ink-2: #6f6f76;
  --bg: #ffffff;
  --paper: #faf9f7;
  --surface: #ffffff;
  --soft: #f5f5f5;
  --line: #e7e5e2;
  --primary: #8c0c2c;          /* GIVA crimson: actions */
  --primary-press: #6d0a22;
  --accent: #7c54fc;           /* CaratLane violet: offers and badges only */
  --accent-soft: #ede9fe;
  --festive-from: #640c8c;
  --festive-to: #7c54fc;
  --radius: 10px;
  --font-display: "Poppins", Georgia, "Times New Roman", serif;
  --font-ui: "Work Sans", "Lato", system-ui, -apple-system, sans-serif;
}
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); }
h1, h2, h3, .sec-h, .wordmark, .tx-h1 { font-family: var(--font-display); letter-spacing: -0.01em; }
/* product first screen: gallery must leave title + price visible */
.gallery img { height: 40vh; }
/* offers take the violet accent, never the action colour */
.coupon-banner { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 12px; }
.coupon-banner .tag, .coupon-banner b, .coupon-banner strong { color: #5b21b6; }
/* sticky action bar: primary action is the dominant, full-width control */
.buybar { display: flex; gap: 8px; align-items: center; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.buybar .btn { min-height: 48px; }
.buybar .btn.primary { order: 3; flex: 1 1 0; min-width: 0; padding-inline: 12px; }
.buybar .btn:not(.primary) { flex: 0 0 auto; padding-inline: 12px; }

/* Impeccable findings from CI: text was flush against card/box edges */
.card .ph { padding: 0; }
.ticker-box { padding: 10px 16px !important; }
.card { padding-bottom: 12px; }
.card .ph { margin-bottom: 10px; }
/* every functional label sits at or above the 12px floor now */
.sec-h a, .more, .type, .tag, .rating, .note { font-size: 12px; line-height: 1.35; }

/* CI axe: dark label on saturated swatch fills was 1.2-2.7:1 */
.om-swatch { color: #ffffff; }
.om-swatch[style*="#d4af37"], .om-swatch[style*="#f4c2c2"] { color: #1a1816; }
/* Impeccable: photo children were flush against the card edge */
.card .ph { padding: 3px; background: var(--soft); }

/* gallery: real multi-image product galleries + thumbnail strip */
.gwrap { position: relative; background: var(--soft); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery > .gitem { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gitem img { width: 100%; height: 32vh; object-fit: cover; display: block; }
.gthumbs { display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; }
.gthumbs::-webkit-scrollbar { display: none; }
.gthumb { flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.gthumb.on { border-color: var(--ink); border-width: 2px; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* spec table: labelled rows, never invented values */
.spec { margin: 4px 0 0; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row dt { color: var(--ink-2); }
.spec-row dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.spec-note { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }

/* bag totals: rows had no layout, so labels and values collided */
.bag-summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 16px; font-size: 15px; color: var(--ink); }
.bag-summary .row span:last-child { text-align: right; white-space: nowrap; }
.bag-summary .row.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
/* the sticky CTA must never cover the last row */
body.has-sticky .bag-summary { padding-bottom: 96px; }
.bag-summary .b1g1-tier-box, .bag-summary .bag-addr-row, .bag-summary .bag-addons { margin-left: 16px; margin-right: 16px; }

/* requested offer band: real B1G1 with the real end date */
.flash { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px; padding: 14px 16px; border-radius: 12px; background: #5a1680; color: #fff; text-decoration: none; }
.flash-l { display: flex; flex-direction: column; gap: 2px; }
.flash-l b { font-size: 15px; }
.flash-l span { font-size: 12px; opacity: .92; }
.flash-cta { background: #fff; color: var(--festive-from); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600; white-space: nowrap; }
/* product video slide */
.gvideo { position: relative; }
.gvideo video { width: 100%; height: 32vh; object-fit: cover; display: block; background: #000; }
.gplay { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.62); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 12px; }
/* the sticky CTA must never sit on top of the last readable line */
body.has-sticky #view { padding-bottom: 96px; }
/* page transition + list stagger: motion that marks a change, under 400 ms */
#view.rt-enter { animation: rb-route .28s cubic-bezier(.16,1,.3,1); }
@keyframes rb-route { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rail > *, .grid > * { animation: rb-item .32s cubic-bezier(.16,1,.3,1) both; }
.rail > *:nth-child(2), .grid > *:nth-child(2) { animation-delay: .04s; }
.rail > *:nth-child(3), .grid > *:nth-child(3) { animation-delay: .08s; }
.rail > *:nth-child(4), .grid > *:nth-child(4) { animation-delay: .12s; }
.rail > *:nth-child(5), .grid > *:nth-child(5) { animation-delay: .16s; }
.rail > *:nth-child(n+6), .grid > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rb-item { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* offline state */
.offline-bar { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 60; background: #17171a; color: #fff; font-size: 12px; padding: 10px 16px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  #view.rt-enter, .rail > *, .grid > * { animation: none !important; }
}

/* the announcement strip is swipeable, not auto-scrolling: motion is user-driven and the
   detector no longer flags it as a marquee. */
.ticker-box { overflow-x: auto !important; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ticker-track { animation: none !important; width: auto !important; }
.ticker-group { display: flex; gap: 28px; padding: 0 4px; }
.ticker-item { scroll-snap-align: start; }

/* announcement strip: one clean line, no clipping, no wrapping */
.ticker-box { padding: 10px 16px !important; scrollbar-width: none; }
.ticker-box::-webkit-scrollbar { display: none; }
.ticker-group { padding: 0 16px; gap: 24px; }
.ticker-item { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em; }

/* hero carousel: real campaign creatives, sliding track, thin-bar dots */
.carou { position: relative; overflow: hidden; background: var(--soft); }
.carou-track { display: flex; transition: transform .5s cubic-bezier(.16,1,.3,1); will-change: transform; }
.carou-slide { flex: 0 0 100%; display: block; }
.carou-slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.carou-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; justify-content: center; }
.carou-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.carou-dots i.on { background: #fff; }
/* trust architecture */
.whylove { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.whylove li { display: flex; gap: 12px; align-items: flex-start; }
.wl-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: #5b21b6; display: grid; place-items: center; }
.wl-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.wl-t { display: flex; flex-direction: column; gap: 2px; }
.wl-t b { font-size: 14px; }
.wl-t span { font-size: 12px; color: var(--ink-2); }
/* FAQ accordion */
.faq { margin-top: 4px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 14px 0; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--ink-2); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
/* colour harmonizer: jewel-toned ribbon with metal active states */
.om-palette { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.om-palette::-webkit-scrollbar { display: none; }
.om-swatch { position: relative; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 14px; border: 0; padding: 0; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); outline: 1px solid rgba(0,0,0,.10); outline-offset: -1px; scroll-snap-align: start; transition: transform .22s cubic-bezier(.2,.9,.3,1); }
.om-swatch:active { transform: scale(.96); }
.om-swatch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.om-swatch span { position: absolute; inset: auto 0 0 0; padding: 22px 8px 9px; font-size: 12px; font-weight: 500; color: #fff; text-align: left; background: rgba(0,0,0,.48); }
/* gallery: 1:1 product photography + double-tap zoom */
.gitem { overflow: hidden; }
.gitem img { aspect-ratio: 1/1; height: auto; width: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.gitem img.zoomed { transform: scale(1.9); cursor: zoom-out; }
/* spring micro-interactions */
.btn, .chip, .opt, .om-swatch, .gthumb { transition: transform .18s cubic-bezier(.2,.9,.3,1), background-color .2s ease, border-color .2s ease; }
.btn:active, .chip:active, .opt:active, .gthumb:active { transform: scale(.97); }
.sheet-card { animation: rb-sheet .3s cubic-bezier(.2,.9,.3,1); }
@keyframes rb-sheet { from { transform: translateY(26px); opacity: .7; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .carou-track, .btn, .chip, .opt, .om-swatch, .gthumb, .gitem img, .sheet-card { transition: none !important; animation: none !important; }
}

/* Checkout hand-off sheet: was unstyled, so it rendered under the fixed tab bar and its CTA could not be tapped. */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(20, 12, 14, .42); }
.sheet-card { width: 100%; max-width: 560px; margin: 0 auto; background: var(--surface, #fff); border-radius: 12px 12px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.sheet-card h3 { font: 400 22px/1.2 var(--serif); margin: 0 0 8px; }
.sheet-card p { font-size: 14px; color: var(--muted, #5f5f64); margin: 0 0 18px; line-height: 1.5; }
.sheet-actions { display: grid; gap: 10px; }
.sheet-actions .btn { width: 100%; }

/* ===== Work Order 2: per-screen visual rules ===== */
/* (d) one shadow style everywhere, including the bars theme.css draws */
.buybar, nav.tabs, .sheet-card { box-shadow: 0 2px 12px rgba(0,0,0,.06) !important; }
/* (a) cards stay 4:5, photography never crops the face or the piece */
.card .ph { aspect-ratio: 4 / 5 !important; height: auto !important; overflow: hidden; }
.card .ph img, .card .ph video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.tiles .card .ph { aspect-ratio: 4 / 5 !important; }
/* campaign banners are 8:3 art: show them at 8:3, so nothing is cut */
.carou-slide img { aspect-ratio: 8 / 3 !important; object-fit: cover; object-position: 50% 50%; }
/* (c) 12px floor and 44px targets */
.badge, [data-bag-count] { font-size: 12px !important; min-width: 20px; height: 20px; line-height: 20px; }
.card .heart { width: 44px !important; height: 44px !important; top: 4px !important; right: 4px !important; }
.card .heart svg { width: 20px; height: 20px; }
.card-add { min-height: 44px !important; border-radius: 22px !important; }

/* WO2 shop: the colour harmonizer header had no styles, so its copy sat on the screen edge */
.outfit-matcher-widget { padding: 20px 0 8px; }
.om-header { padding: 0 16px 12px; }
.om-tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #5b21b6; }
.om-header h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 6px 0 4px; color: var(--ink); }
.om-header p { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0; }

.outfit-matcher-widget .om-palette { padding: 6px 16px 10px !important; margin: 0 !important; }

/* WO2: snapping rows snap to their padding edge, not the screen edge */
.om-palette, .gthumbs, .ticker-box, .chips, .filters, .rail { scroll-padding-inline: 16px; }

/* WO2 product: Drop a Royal Hint was unstyled, and at max scroll its button sat under the buy bar */
.hint-card { display: flex; align-items: center; gap: 12px; margin: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); cursor: pointer; }
.hint-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: #5b21b6; display: grid; place-items: center; }
.hint-icon svg { width: 22px; height: 22px; }
.hint-content { flex: 1 1 auto; min-width: 0; }
.hint-content h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.hint-content p { font-size: 13px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.hint-btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
/* clearance: buy bar (about 76px) plus breathing room, so the last control is never under it */
body.has-sticky #view { padding-bottom: 140px !important; }

/* WO2 bag: text actions are real tap targets (44px), not 20px links */
.line .rm, .bar-change { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.line .qty button { min-width: 44px; min-height: 44px; }

/* WO2 account: icons had no size or stroke, so each SVG filled its card as a black blob */
.acc-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: #5b21b6; display: grid; place-items: center; margin-bottom: 8px; }
.acc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acc-card { min-height: 44px; }

/* WO2: anything scrolled into view (focus, anchors) lands above the sticky bars, never under them */
html { scroll-padding-top: 72px; scroll-padding-bottom: 150px; }

/* ===== Reels: poster underneath, at most one live video on top, overlay above both ===== */
.reel-card { position: relative; background: #000; }
.reel-poster, .reel-video-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-poster { z-index: 0; object-position: 50% 30%; }
.reel-video-player { z-index: 1; background: transparent; }
.reel-overlay { z-index: 2; }
.reel-card.no-media .reel-video-player { display: none; }
.reel-stats { font-size: 12px; color: #fff; background: rgba(0,0,0,.6); border-radius: 6px; padding: 4px 8px; }
.reels-loading { padding: 16px; }
.reels-empty { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 10px; color: #fff; padding: 24px; }
.reels-empty h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0; }
.reels-empty p { font-size: 14px; color: rgba(255,255,255,.8); margin: 0 0 8px; }
.rpd-left { text-decoration: none; color: inherit; }
.rpd-price s { color: rgba(255,255,255,.72); font-weight: 400; margin-left: 6px; }
.rpd-add-btn { min-height: 44px; border-radius: 22px; }
.rpd-add-btn[disabled] { opacity: .6; }
.reel-btn.save-btn.on { color: #d4af37; }
/* ===== Home: Shop-the-look rail (same curated videos, product photo as poster) ===== */
.look-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.look-rail::-webkit-scrollbar { display: none; }
.look-card { flex: 0 0 136px; position: relative; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.look-card img { width: 136px; aspect-ratio: 9 / 16; object-fit: cover; object-position: 50% 30%; border-radius: 12px; display: block; background: var(--soft); }
.look-play { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.look-play svg { width: 13px; height: 13px; fill: currentColor; }
.look-meta { display: block; padding: 8px 2px 0; }
.look-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; }
.look-price { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }

.reel-stats[data-note]::after { content: " \00b7 " attr(data-note); }
