:root {
  --cream: #faf6ee;
  --paper: #fffdf8;
  --navy: #1d2b4a;
  --navy-soft: #31456f;
  --gold: #c9a24b;
  --gold-soft: #f0e3c0;
  --ink: #23262b;
  --muted: #6b6f77;
  --line: #e7ddc8;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
}
h1, h2, h3, .brand-name { font-family: 'Frank Ruhl Libre', Georgia, serif; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Sticky top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20,25,40,.18);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px;
}
.menu { position: relative; }
.menu-btn {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 8px 16px; font: 600 14px 'Inter'; cursor: pointer;
  min-height: 40px;
}
.menu-btn:hover { background: rgba(255,255,255,.12); }
.menu-drop {
  position: absolute; top: calc(100% + 8px); left: 0; width: 290px;
  max-width: calc(100vw - 32px); z-index: 50;
  background: #faf9f5; color: #1e2c4a;
  border: 1px solid #ddd7cb; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20,25,40,.16); overflow: hidden;
  padding: 8px 0;
}
.menu-h {
  font: 600 11.5px 'Inter'; letter-spacing: 1.1px; text-transform: uppercase;
  color: #71767f; margin: 0; padding: 10px 16px 4px;
}
.menu-sep { height: 1px; background: #ddd7cb; margin: 6px 0; }
.menu-drop a {
  display: flex; align-items: center; min-height: 50px; padding: 6px 16px;
  text-decoration: none; color: #1e2c4a; font: 500 16px 'Inter';
}
.menu-drop a:hover, .menu-drop a:focus-visible { background: var(--gold-soft); outline: none; }
.menu-drop a[aria-current="true"] { background: var(--gold-soft); font-weight: 600; }
.brand { flex: 1; text-align: center; line-height: 1.15; min-width: 0; }
.brand-home { display: block; }
.brand-logo { height: 56px; width: auto; max-width: 100%; display: inline-block; vertical-align: middle; }
.cart-btn {
  background: var(--gold); color: var(--navy); border: 0; border-radius: 999px;
  padding: 9px 18px; font: 700 14px 'Inter'; cursor: pointer; min-height: 40px;
}
.cart-btn:hover { filter: brightness(1.06); }
.cart-count {
  background: var(--navy); color: #fff; border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; font-size: 12px;
}
.shipbar {
  background: var(--gold); color: var(--navy);
  text-align: center; font: 600 13px 'Inter';
  padding: 7px 12px; letter-spacing: .2px;
}
.promobar {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; row-gap: 2px;
}
.promobar[hidden] { display: none; }
.promo-code {
  background: var(--navy); color: var(--gold-soft);
  border-radius: 6px; padding: 2px 10px;
  font: 700 13px 'Inter'; letter-spacing: 1px;
}
.promo-ends { font-weight: 600; opacity: .85; }
.shipslim {
  background: var(--paper); color: var(--navy);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font: 500 12px 'Inter'; letter-spacing: .2px;
  padding: 4px 12px; border-bottom: 1px solid var(--line);
}
.shipslim[hidden] { display: none; }
.hero-ship { color: var(--muted); font-size: 13px; margin: -8px 0 16px; }
@media (max-width: 640px) {
  .promobar { font-size: 11.5px; padding: 6px 10px; gap: 6px; }
  .promobar[hidden] { display: none; }
.promo-code { font-size: 11.5px; padding: 2px 8px; }
}

/* Hero */
.hero { margin: 0 auto 4px; padding: 0; text-align: center; }
.hero-frame {
  position: relative; overflow: hidden;
  height: min(26vh, 230px); min-height: 150px;
  background: #eed3b3;
}
.hero picture { display: contents; }
.hero img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.fx-scene {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 100%; aspect-ratio: 1448/860; pointer-events: none; z-index: 3;
}
.hero-text {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 12px clamp(16px, 4vw, 56px);
}
.hero-panel {
  max-width: 420px; text-align: center; padding: 0 8px;
}
/* Soft gradient scrim blended into the photo: cream on the text side,
   fading to transparent so the wording reads as part of the image. */
.hero-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(245,235,218,.97) 0%, rgba(245,235,218,.92) 32%,
    rgba(245,235,218,.62) 56%, rgba(245,235,218,0) 84%);
}
/* Subtle Chanukah effects over the hero photo (reduced-motion safe) */
.flame {
  position: absolute; left: calc(var(--x)*1%); top: calc(var(--y)*1%);
  width: 3.2%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,242,190,.9) 0%, rgba(255,205,100,.45) 42%, rgba(255,190,80,0) 72%);
  mix-blend-mode: screen;
  will-change: opacity, transform;
  animation-name: flame-flicker;
  animation-duration: var(--d);
  animation-timing-function: ease-in-out;
  animation-delay: var(--l);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
  animation-play-state: running;
}
@keyframes flame-flicker {
  from { opacity: .3; transform: translate(-50%,-52%) scale(.82); }
  to   { opacity: .8; transform: translate(-50%,-48%) scale(1.14); }
}
.menorah-glow {
  position: absolute; left: 79%; top: 6.5%; width: 34%; height: 15%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse, rgba(255,222,150,.22), rgba(255,222,150,0) 70%);
  mix-blend-mode: screen;
  will-change: opacity;
  animation-name: glow-pulse;
  animation-duration: 3.4s;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
  animation-play-state: running;
}
@keyframes glow-pulse { from { opacity: .5; } to { opacity: 1; } }
.dreidel-sheen { position: absolute; left: 3%; top: 73%; width: 16%; height: 27%; overflow: hidden; }
.dreidel-sheen::before {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: -140%; right: -140%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 44%, rgba(255,255,255,.30) 50%, rgba(255,255,255,0) 56%);
  transform: translateX(-60%);
  will-change: transform;
  animation-name: sheen;
  animation-duration: 7.5s;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-play-state: running;
}
@keyframes sheen {
  0%, 68% { transform: translateX(-60%); }
  92%, 100% { transform: translateX(60%); }
}
@media (prefers-reduced-motion: reduce) {
  .flame, .menorah-glow, .dreidel-sheen::before { animation: none; }
  .dreidel-sheen::before { display: none; }
  .flame { opacity: .45; }
}
.hero-text h1 { font-family: 'Inter', system-ui, sans-serif; font-size: 24px; font-weight: 600; letter-spacing: .1px; line-height: 1.25; margin: 0 0 6px; color: var(--navy); text-shadow: 0 0 14px rgba(255,248,235,.95), 0 1px 3px rgba(255,248,235,.7); }
.hero-text p { margin: 0 0 16px; }
.hero-text .hero-sub { font-size: 14px; line-height: 1.5; color: var(--navy-soft); margin: 0 auto 14px; text-shadow: 0 0 12px rgba(255,248,235,.95), 0 1px 2px rgba(255,248,235,.7); }
.hero-panel .btn.cta { background: var(--gold); color: var(--navy); font-weight: 600; padding: 9px 22px; font-size: 14px; }
.btn.cta {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  padding: 14px 34px; font-size: 16px; border-radius: 999px;
}
.btn.cta:hover { background: var(--navy-soft); }

/* Browse chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px;
}
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy);
  border-radius: 999px; padding: 11px 18px; font: 600 14px 'Inter'; cursor: pointer;
  min-height: 44px;
}
.chip:hover { background: var(--gold-soft); }
.chip[aria-pressed="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* Shelves */
.shelf { margin: 32px 0; scroll-margin-top: 150px; }
.shelf h2 {
  font-size: 26px; color: var(--navy); margin: 0 0 16px;
  border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 6px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(20,25,40,.12); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 1.15; object-fit: contain; background: #fff; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .num { font-size: 12px; font-weight: 700; color: #8a6d25; letter-spacing: .4px; }
.card .name { font-size: 13.5px; font-weight: 600; line-height: 1.35; min-height: 36px; }
.card .price { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: auto; }
.card .actions { display: flex; gap: 8px; }
.btn {
  border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer;
  font: 600 13.5px 'Inter'; min-height: 40px;
}
.btn.primary { background: var(--navy); color: #fff; flex: 1; }
.btn.primary:hover { background: var(--navy-soft); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--gold-soft); }
.btn.big { width: 100%; padding: 14px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.stepper { display: flex; align-items: center; gap: 10px; flex: 1; }
.stepper button {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer;
}
.stepper span { font-weight: 700; min-width: 18px; text-align: center; }

/* Cart panel (right) */
.scrim { position: fixed; inset: 0; background: rgba(20,25,40,.4); z-index: 45; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 50;
  background: var(--paper); box-shadow: -14px 0 40px rgba(20,25,40,.25);
  display: flex; flex-direction: column; overflow-y: auto;
}
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.cart-head h2 { margin: 0; font-size: 22px; color: var(--navy); }
.x { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); padding: 4px 10px; }
.cart-items { padding: 8px 20px; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.cart-item .nm { font-size: 13px; font-weight: 600; }
.cart-item .pr { color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.cart-item .ops { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link { background: none; border: 0; padding: 6px 0; color: var(--navy); font: 500 12.5px 'Inter'; text-decoration: underline; cursor: pointer; }
.pad { padding: 16px 20px; }
.muted { color: var(--muted); font-size: 13px; }
.err { color: #b3261e; font-size: 13px; }

.coupon { padding: 10px 20px 2px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; }
.coupon-msg { font: 500 13px 'Inter'; margin: 6px 0 2px; }
.coupon-msg.ok { color: #1e7a38; }
.coupon-msg.err { color: #b3261e; }
.coupon-remove { font-size: 12.5px; margin-top: 6px; }
.totals { padding: 12px 20px; }
.totals .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.totals .row.disc span { color: #1e7a38; }
.totals .row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 17px; color: var(--navy); }

.checkout { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.checkout h3 { margin: 12px 0 2px; color: var(--navy); font-size: 17px; }
input {
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  font: 400 14px 'Inter'; background: #fff; width: 100%; min-height: 44px;
}
input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
#payFields iframe { border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; height: 45px; display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pac-container { z-index: 60; font-family: 'Inter'; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px;
  font: 600 14px 'Inter'; box-shadow: 0 10px 30px rgba(20,25,40,.3);
  z-index: 70; opacity: 0; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }
.cart-open .toast { bottom: 92px; } /* clear the sticky cart footer bar */

.shelf h2 .count { font: 400 15px 'Inter'; color: var(--muted); }

/* Empty cart */
.cart-empty { text-align: center; padding: 52px 24px 44px; }
.cart-empty svg { color: var(--navy); opacity: .5; margin-bottom: 16px; }
.cart-empty h3 { font-size: 21px; font-weight: 500; color: var(--navy); margin: 0 0 22px; }

/* Footer */
.footer { background: var(--navy); color: #e9e4d8; margin-top: 48px; padding: 36px 0 26px; }
.footer h2 { color: #fff; margin-top: 0; }
.footer a { color: var(--gold); }
.fine { color: #9aa3b8; font-size: 12.5px; margin-top: 18px; }

@media (max-width: 640px) {
  .topbar-inner { padding: 8px 12px; gap: 10px; }
  .brand-logo { height: 42px; }
  .menu-btn { padding: 8px 13px; }
  .cart-btn { padding: 9px 14px; }
  .shipslim { font-size: 11.5px; }
  .hero-text h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
  .hero-text .hero-sub { font-size: 12.5px; margin: 0 auto 10px; }
  .hero-text .btn.cta { padding: 9px 24px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .actions { flex-direction: column; }
  .card .actions .btn { width: 100%; }
  .card .name { min-height: 54px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: 0 0 auto; }
}

@media (min-width: 681px) {
  .fx-scene {
    top: 50%; transform: translate(-50%,-50%);
    width: max(100%, clamp(1041px, 176.13vh, 1601px)); height: auto;
    aspect-ratio: 2172/543;
  }
  .fx-scene .flame { width: 1.15%; }
  .fx-scene .flame:nth-child(2) { --x: 55.07 !important; --y: 25.3 !important; }
  .fx-scene .flame:nth-child(3) { --x: 56.25 !important; --y: 25.8 !important; }
  .fx-scene .flame:nth-child(4) { --x: 57.45 !important; --y: 24.7 !important; }
  .fx-scene .flame:nth-child(5) { --x: 58.6 !important; --y: 24.5 !important; }
  .fx-scene .flame:nth-child(6) { --x: 60.3 !important; --y: 23.8 !important; }
  .fx-scene .flame:nth-child(7) { --x: 62.1 !important; --y: 25.5 !important; }
  .fx-scene .flame:nth-child(8) { --x: 63.25 !important; --y: 25.9 !important; }
  .fx-scene .flame:nth-child(9) { --x: 64.55 !important; --y: 23.9 !important; }
  .fx-scene .menorah-glow { left: 59.8% !important; top: 20% !important; width: 14% !important; height: 10% !important; }
  .fx-scene .dreidel-sheen { left: 28.5% !important; top: 68% !important; width: 5.5% !important; height: 20% !important; }
}

@media (max-width: 680px) {
  .hero-frame { height: auto; min-height: 0; }
  .hero img { height: auto; }
  .hero-frame { height: auto; min-height: 0; }
  .hero-frame::after { content: none; }
  .hero img { height: auto; }
  .hero-text { position: static; padding: 0; display: block; }
  .hero-text h1 { color: #fff; text-shadow: 0 1px 6px rgba(9,13,28,.5); font-size: 19px; }
  .hero-text .hero-sub { color: #f7f0de; text-shadow: 0 1px 6px rgba(9,13,28,.5); }
  .hero-panel {
    max-width: none; border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--navy); padding: 10px 16px 12px;
  }
  .hero-panel .btn.cta { padding: 7px 18px; font-size: 13px; }
}

[hidden]{display:none!important}

/* Free-shipping progress in cart */
.ship-progress { margin: 14px 0 4px; }
.ship-progress .muted { margin: 0 0 6px; }
.ship-progress .track { height: 8px; background: #eee6d4; border-radius: 999px; overflow: hidden; }
.ship-progress .fill { height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }

/* Confirmation details */
.confirm { margin: 12px 0; }
.confirm div { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.confirm dt { font-weight: 600; color: var(--navy); font-size: 13px; }
.confirm dd { margin: 0; font-size: 14px; }

/* Shipping info section */
.shipinfo { padding: 26px 0 6px; }
.shipinfo .wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.shipinfo h2 { font-size: 22px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 4px; margin: 0 0 10px; }
.shipinfo p { max-width: 640px; line-height: 1.55; }

/* ---- Search / sort toolbar ---- */
.toolbar{display:flex;gap:12px;margin:0 0 18px;flex-wrap:wrap}
#searchInput{flex:1;min-width:180px;padding:12px 14px;border:1.5px solid var(--line,#d8cfc0);border-radius:10px;font:inherit;background:#fff}
#sortSelect{padding:12px 14px;border:1.5px solid var(--line,#d8cfc0);border-radius:10px;font:inherit;background:#fff}

/* ---- Card action area: fixed size so cards never shift ---- */
.card .actions{min-height:40px}
.card .actions .btn.primary{white-space:nowrap}
.card .actions .stepper{width:100%;justify-content:center;align-items:center;min-height:40px}

/* ---- Saved for later (inside cart) ---- */
.saved-h{font-size:1rem;margin:18px 14px 8px;color:var(--navy,#1b2a4a)}
#savedBlock{border-top:1px solid var(--line,#d8cfc0);margin-top:16px;padding-bottom:8px}

/* ---- Back to top ---- */
.to-top{position:fixed;right:10px;bottom:18px;width:40px;height:40px;border-radius:50%;border:none;background:var(--navy,#1b2a4a);color:#fff;font-size:1.05rem;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25);z-index:60;opacity:.92}
.to-top:hover{background:#2a3d68}

/* ---- Anchor offset under sticky header ---- */
.shipinfo,.footer{scroll-margin-top:150px}

@media(max-width:640px){
  .toolbar{gap:8px}
  .card .actions{flex-direction:row}
}

/* ---- Mobile hardening ---- */
html{touch-action:manipulation}
html,body{overflow-x:clip}
.to-top{bottom:calc(100px + env(safe-area-inset-bottom,0px))}

/* ---- Two-step cart / checkout (Nov 2026) ---- */
.cart-scroll { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.cart-open .to-top { display: none !important; }
.cart-foot {
  position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,25,40,.08);
}
.foot-total { display: flex; flex-direction: column; line-height: 1.2; }
.foot-total span { font: 500 11.5px 'Inter'; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.foot-total b { font: 700 19px 'Inter'; color: var(--navy); }
.cart-foot .btn.big { flex: 1; }

/* compact cart items + smaller steppers */
.cart-item { grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; }
.cart-item img { width: 52px; height: 52px; }
.cart-item .stepper { gap: 6px; flex: 0 0 auto; }
.cart-item .stepper button { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.cart-item .stepper span { min-width: 16px; font-size: 13.5px; }
.cart-item .stepper .qty-in { width: 46px; text-align: center; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--navy); border: 1px solid var(--line); border-radius: 7px; padding: 4px 2px; background: #fff; }
.cart-item .stepper .qty-in::-webkit-outer-spin-button, .cart-item .stepper .qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item .stepper .qty-in:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.cart-item .ops { gap: 12px; }
.card .stepper { gap: 6px; }
.card .stepper button { width: 32px; height: 32px; font-size: 16px; }

.back-link { margin: 12px 0 0 20px; font-size: 13px; }
.ck-summary { margin: 10px 20px 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.ck-summary .line { display: flex; justify-content: space-between; padding: 2px 0; }
.ck-summary .line.t { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; color: var(--navy); }
.ck-summary .cnt { color: var(--muted); margin-bottom: 6px; }

/* availability notice */
.avail-note { margin: 10px 20px 0; padding: 10px 12px; background: #fdf6e3; border: 1px solid var(--gold-soft, #e8d9ac); border-radius: 10px; font: 400 12.5px/1.45 'Inter'; color: #6b5b1e; }
.shop-note { max-width: 1060px; margin: 0 auto 14px; padding: 10px 12px; }
.avail-check { align-items: flex-start; background: #fdf6e3; border: 1px solid var(--gold-soft, #e8d9ac); border-radius: 10px; padding: 10px 12px; }
.check-row { display: flex; gap: 10px; align-items: center; font: 400 13px/1.4 'Inter'; cursor: pointer; }
.check-row input { width: auto; min-height: 0; margin-top: 2px; flex: 0 0 auto; }
.avail-check span { color: #6b5b1e; }

/* out-of-stock / limited badges */
.card .stock-badge { display: inline-block; font: 600 11px 'Inter'; padding: 2px 8px; border-radius: 999px; margin-top: 2px; }
.card .stock-badge.oos { background: #fbe4e4; color: #a32c2c; }
.card .stock-badge.ltd { background: #fdf6e3; color: #8a6d1a; }
.btn.oos { background: #b9b2a2; cursor: not-allowed; }
.muted.tiny { font-size: 11.5px; margin-top: 4px; }

/* wallet express buttons */
#walletPay { padding: 4px 20px 0; }
.ap-wrap { min-height: 0; }
.ap-wrap .apple-pay-button, #apContainer button { width: 100%; min-height: 44px; border-radius: 10px; }
.gp-wrap iframe { width: 100%; height: 44px; border: 0; display: block; }
.wallet-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--muted); font: 500 12px 'Inter'; }
.wallet-or::before, .wallet-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* checkout selects match inputs */
.checkout select { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 14px 'Inter'; background: #fff; width: 100%; min-height: 44px; }
.checkout select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* processing overlay */
.processing {
  position: absolute; inset: 0; z-index: 6; background: rgba(250,247,240,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; font: 600 15px 'Inter'; color: var(--navy);
}
.processing .spin { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: zbspin 0.9s linear infinite; }
@keyframes zbspin { to { transform: rotate(360deg); } }

/* policy pages */
.policy { max-width: 720px; margin: 0 auto; padding: 34px 20px 10px; }
/* iOS Safari auto-zooms the page when a focused field is under 16px - keep fields at 16px on phones */
@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 340px) {
  .brand-logo { height: 36px; }
}

.policy h1 { font-size: 26px; color: var(--navy); border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 4px; margin-bottom: 16px; }
.policy p { line-height: 1.6; margin: 12px 0; max-width: 640px; }
.policy a { color: var(--navy); }
.footer .policies { margin: 14px 0 4px; font-size: 14px; }
.footer .policies a { color: var(--gold); text-decoration: none; }

/* return policy microcopy */
.final-note { display:block; font-size:11px; line-height:1.35; color:#8d8776; margin-top:6px; }
.final-note a { color:var(--navy-soft); text-decoration:underline; }
.final-sale-note::before { content:""; display:inline-block; width:12px; height:12px; margin-right:4px; vertical-align:-1.5px; background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6.75' fill='none' stroke='%236b6557' stroke-width='1.5'/><circle cx='8' cy='4.9' r='1.15' fill='%236b6557'/><rect x='7.15' y='7.1' width='1.7' height='5' rx='0.85' fill='%236b6557'/></svg>") no-repeat center/contain; }

.final-sale-note { font-size:12px; line-height:1.4; color:#6b6557; margin:0 0 8px; text-align:center; }
.final-sale-note a { color:var(--navy); text-decoration:underline; }
.policy-sub { font-size:18px; color:var(--navy); margin:18px 0 4px; }

/* Model label + product detail overlay */
.model-label { display: inline-block; width: fit-content; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--navy); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; }
.card img.has-detail, .card .name.has-detail { cursor: pointer; }
.pdp-overlay { position: fixed; inset: 0; background: rgba(20,25,40,.45); z-index: 60; overflow-y: auto; padding: 24px 14px; display: flex; justify-content: center; align-items: flex-start; }
.pdp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; width: 100%; position: relative; padding: 16px; }
.pdp-close { position: absolute; top: 6px; right: 6px; z-index: 1; }
.pdp-img { width: 100%; max-height: 300px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pdp-body { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.pdp-name { font-size: 17px; margin: 0; color: var(--navy); line-height: 1.35; }
.pdp-blurb { font-size: 14px; line-height: 1.5; margin: 0; }
.cmp-title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 16px; color: var(--navy); margin: 8px 0 0; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; background: #fff; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.cmp th { background: var(--gold-soft); color: var(--navy); }
.cmp td:first-child, .cmp th:first-child { width: 27%; font-weight: 600; color: var(--muted); font-size: 11.5px; padding-left: 6px; padding-right: 6px; }
.cmp .cur { background: #fbf3dd; }
.cmp .link { padding: 0; font-size: 12px; }
.pdp-add { margin-top: 4px; }
@media (max-width: 480px) {
  .pdp-overlay { padding: 12px 8px; }
  .pdp { padding: 12px; }
  .cmp { font-size: 11.5px; }
  .cmp th, .cmp td { padding: 6px 5px; }
}

/* Style picker (No. 117 variant selector) */
.style-pick { margin: 6px 0 2px; }
.style-pick-label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.style-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.style-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1 1 0; min-width: 0; border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 10px; padding: 5px 2px 4px; cursor: pointer; font-family: inherit; }
.style-opt:hover { border-color: var(--navy-soft); }
.style-opt.sel { border-color: var(--navy); background: #e8f0fb; }
.style-opt-img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; display: block; }
.style-opt-sw { width: 38px; height: 38px; border-radius: 8px; background: var(--sw, #ccc); border: 1px solid rgba(0,0,0,.15); display: block; }
.style-opt-name { font-size: 9.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.style-pick.need .style-opts { outline: 2px solid #c0392b; outline-offset: 3px; border-radius: 8px; }
.style-line { font-size: 12.5px; font-weight: 600; color: var(--navy); margin: 2px 0; }
.pdp-pick { margin: 10px 0; }

/* Homepage sections (categories, budget, featured, new arrivals) */
.home-sec{margin:26px 0 6px}
.home-sec h2{margin:0 0 12px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tile{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:14px;background:#fff;border:1px solid var(--line,#e3dccb);border-radius:12px;cursor:pointer;font:inherit;text-align:left;transition:box-shadow .15s,border-color .15s}
.tile:hover{border-color:#d9a441;box-shadow:0 2px 10px rgba(28,36,64,.10)}
.tile-name{font-weight:700;color:var(--navy,#1c2440);font-size:14.5px;line-height:1.25}
.tile-count{font-size:12.5px;color:#6a7186}
@media (max-width:680px){.tiles{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}

/* Dropdown menu groups */
.menu-drop{max-height:min(70vh,560px);overflow-y:auto}
.menu-group{padding:4px 0;border-bottom:1px solid var(--line,#e3dccb)}
.menu-group:last-child{border-bottom:0}
.menu-label{margin:4px 14px 2px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8a8fa3}

/* View All New Arrivals button */
.view-all-wrap{margin:14px 0 0;text-align:center}
.btn.view-all{display:inline-block;padding:10px 22px;border-radius:10px;border:1px solid var(--navy,#1c2440);background:var(--navy,#1c2440);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.btn.view-all:hover{background:#2a3355}

/* Load More */
.load-more-wrap{margin:18px 0 4px;text-align:center}
/* Clamp card titles to 2 lines */
.card .name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}

/* Menu close button (mobile) + independent scroll */
.menu-drop{overscroll-behavior:contain}
.menu-close{display:none;position:sticky;top:0;float:right;margin:6px 8px 0 0;width:36px;height:36px;border-radius:50%;border:1px solid var(--line,#e3dccb);background:#fff;font-size:22px;line-height:1;color:var(--navy,#1c2440);cursor:pointer;z-index:2}
@media (max-width:680px){.menu-close{display:block}}

/* Category tile images */
.tile-img{display:none}

/* Desktop hero: bigger headline, more prominent CTA */
@media (min-width:900px){
  .hero-text h1{font-size:26px;line-height:1.2}
  .hero-panel .btn.cta{padding:10px 26px;font-size:15px}
}

/* ---- Mobile homepage: products first (approved Nov 14) ---- */
@media (max-width: 680px) {
  /* Hero about 25% shorter, same design */
  .hero img { max-height: 158px; object-fit: cover; width: 100%; display: block; }
  .hero-frame .fx-scene { display: none; } /* flame positions are tuned for the full image */
  .hero-panel { padding: 10px 16px 11px; }
  .hero-text h1 { font-size: 19px; }
  .hero-text .hero-sub { font-size: 12px; margin: 0 auto 7px; }
  .hero-panel .btn.cta { padding: 8px 22px; font-size: 13.5px; }

  /* Section order: category strip, then the catalog. Promotional
     collections (New Arrivals, Shop by Budget, Featured Picks) stay
     reachable from the menu instead of stacking above the products. */
  main.wrap { display: flex; flex-direction: column; }
  #categories { order: 1; margin: 8px 0 2px; }
  #browse { order: 2; }
  #new, #budget, #featured { display: none !important; }

  /* Compact, horizontally scrollable category strip */
  #categories > h2 { display: none; }
  #catTiles.tiles {
    display: flex; overflow-x: auto; gap: 8px;
    padding: 2px 2px 8px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #catTiles.tiles::-webkit-scrollbar { display: none; }
  #catTiles .tile {
    flex: 0 0 auto; flex-direction: row; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 999px;
  }
  #catTiles .tile-img { display: none; }
  #catTiles .tile-name { font-size: 13px; white-space: nowrap; }
  #catTiles .tile-count { display: none; }
}

/* ---- Family Shared Cart ---- */
.fam-start { text-align: center; padding: 14px 4px 4px; border-top: 1px solid #e8e2d4; margin-top: 12px; }
.fam-start .tiny { margin: 6px 0 0; }
.fam-view { display: block; }
.fam-loading { text-align: center; padding: 24px 0; }
.fam-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.fam-title { font-weight: 700; color: #1c2440; }
.fam-status { font-size: 12px; color: #6b6455; }
.fam-leave { flex-shrink: 0; }
.fam-banner { background: #fdf6e4; border: 1px solid #ecd9a4; border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #5a4a1a; margin: 8px 0; }
.fam-banner.you { background: #eef4fb; border-color: #c8dcf2; color: #1c2440; }
.fam-invite { background: #f7f4ec; border: 1px solid #e8e2d4; border-radius: 10px; padding: 10px; margin: 10px 0; }
.fam-invite-title { font-weight: 700; font-size: 13px; color: #1c2440; margin-bottom: 6px; }
.fam-invite-link { width: 100%; font-size: 12px; padding: 8px; border: 1px solid #d9d2c0; border-radius: 8px; background: #fff; box-sizing: border-box; }
.fam-invite-btns { display: flex; gap: 8px; margin: 8px 0 4px; }
.fam-invite-btns .btn { flex: 1; text-align: center; font-size: 13px; padding: 8px 6px; }
.fam-wa { text-decoration: none; display: inline-block; }
.fam-regen { font-size: 12px; }
.fam-group { margin: 12px 0 4px; }
.fam-group-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: #1c2440; border-bottom: 2px solid #d9a441; padding-bottom: 4px; margin-bottom: 6px; }
.fam-sub { color: #6b6455; font-weight: 600; font-size: 13px; }
.fam-none { margin: 4px 0; }
.fam-kick { font-size: 12px; color: #a33; }
.fam-others { font-size: 13px; margin: 10px 0 0; }
.fam-totals { margin-top: 12px; }
.fam-coupon { margin-top: 10px; }
.fam-controls { margin-top: 12px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.fam-note { text-align: center; font-size: 13px; margin-top: 12px; }
.fam-overlay { position: fixed; inset: 0; background: rgba(20, 24, 40, .55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 18px; }
.fam-overlay[hidden] { display: none; }
.fam-modal { background: #fff; border-radius: 14px; padding: 20px 18px; max-width: 420px; width: 100%; position: relative; max-height: 88vh; overflow-y: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.fam-modal h3 { margin: 0 0 8px; color: #1c2440; }
.fam-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 24px; line-height: 1; color: #6b6455; cursor: pointer; }
.fam-label { display: block; font-size: 13px; font-weight: 600; color: #1c2440; margin: 10px 0; }
.fam-label input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px; border: 1px solid #d9d2c0; border-radius: 8px; font-size: 15px; }
.fam-modal .big { width: 100%; margin-top: 8px; }
.fam-modal .link { display: block; margin: 10px auto 0; text-align: center; }
.big-link { font-size: 13px; padding: 10px; margin: 6px 0; }
.fam-modal .fam-invite-btns { display: flex; gap: 8px; margin: 10px 0 6px; }

/* Desktop category tiles: names only, small tight cards (Sruly 2026-11-15) */
#catTiles .tile-count { display: none; }
#catTiles.tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
#catTiles .tile { padding: 6px 12px; gap: 0; border-radius: 9px; }
#catTiles .tile-name { font-size: 13px; }

/* ---- Free Local Pickup: delivery method choice ---- */
.delivery-opts { display: grid; gap: 10px; margin: 0 0 14px; }
.deliv-opt {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid #d8d2c4; border-radius: 12px; padding: 12px 14px;
  background: #fffdf8; transition: border-color .15s, background .15s;
}
.deliv-opt.sel { border-color: var(--navy); background: #f7f2e6; }
.deliv-opt input[type="radio"] { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; flex: 0 0 auto; }
.deliv-opt .do-body { display: grid; gap: 3px; }
.deliv-opt .do-name { font-weight: 600; color: var(--navy); font-size: 15px; }
.deliv-opt .do-desc { font-size: 13px; color: #5a5346; line-height: 1.45; }
.deliv-opt .do-note { color: #8a6d1f; font-weight: 500; }
