/* ════════════════════════════════════════════════════════
   Sarvam Mall — storefront
   Warm Sarvam Mall palette · rounded cards · confident accents
   Base = mobile, then scale up with min-width
   ════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --ink:       #2D3B36;
  --wine:      #2D3B36;
  --berry:     #7A9A6B;
  --gold:      #D4CDBC;
  --gold-soft: #EEE9DC;
  --cream:     #EAE6D9;
  --paper:     #F4F0E6;
  --surface:   #FCFAF5;
  --mute:      #737E76;
  --line:      rgba(45, 59, 54, 0.12);
  --shadow:    0 14px 34px rgba(45, 59, 54, 0.09);
  --shadow-sm: 0 6px 18px rgba(45, 59, 54, 0.06);
  --pink-soft: #E8EEE4;
  --lilac:     #EAE6DC;
  --mint:      #E6EDE2;
  --butter:    #F0EBDD;
  --sky:       #E7ECE8;
  --radius:    22px;
  --radius-sm: 14px;
  --section-gap: 24px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --header-h:  56px;
}
@media (max-width: 579px) {
  .nav-wrap { gap: 8px; padding: 0 12px; }
  .logo { gap: 7px; }
  .logo-img { height: 36px; max-width: 28px; }
  .logo-text em { font-size: 18px; }
  .brand-sub { display: none !important; }
  .nav-actions { gap: 5px; }
  .nav-actions .profile-btn { display: none !important; }
  .nav-actions .icon-btn,
  .nav-actions .search-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }
}
@media (max-width: 360px) {
  .nav-wrap { gap: 6px; padding: 0 8px; }
  .logo { gap: 6px; }
  .logo-img { height: 32px; max-width: 25px; }
  .logo-text em { font-size: 16px; }
  .nav-actions .icon-btn,
  .nav-actions .search-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; max-width: 100%; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(52vw 40vw at 8% -4%, rgba(122, 154, 107, .13), transparent 70%),
    radial-gradient(46vw 34vw at 98% 6%, rgba(212, 205, 188, .24), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* line-height 0 kills anonymous BOM/whitespace text-node gaps above the header */
  line-height: 0;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-top: 0 !important;
  padding-bottom: env(safe-area-inset-bottom);
}
body > * { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
h1, h2, h3, h4 {
  font-family: Outfit, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(24px, 6vw, 34px); }
h2 { font-size: clamp(21px, 5vw, 28px); }
h3 { font-size: 17px; }
.container { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.text-center { text-align: center; }
.muted { color: var(--mute); font-size: 13px; }
::selection { background: var(--pink-soft); }

/* Keep horizontal and vertical scrolling while hiding scrollbar chrome. */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-x, .trust-row, .filters, .thumbs, .order-steps {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ════════════════════════════════════
   ANNOUNCEMENT BAR (removed — keep zeroed so old HTML/cache cannot leave a gap)
   ════════════════════════════════════ */
.announcement,
.marquee {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  line-height: 0 !important;
}

/* ════════════════════════════════════
   HEADER — flush to top, elements vertically centered
   ════════════════════════════════════ */
body.app-shell {
  margin: 0;
  padding-top: 0 !important;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  margin: 0 !important;
  padding: 0 !important;
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 242, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .3s var(--ease);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.site-header.compact { box-shadow: 0 6px 22px rgba(88, 44, 64, .08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 14px;
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1;
  height: 100%;
  text-decoration: none;
}
.nav-actions .header-bag,
.nav-actions .profile-btn,
.nav-actions .search-toggle {
  position: relative;
  border: 1px solid rgba(45, 59, 54, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
}
.nav-actions .header-bag svg,
.nav-actions .profile-btn svg { width: 20px; height: 20px; }
.nav-actions .header-bag:hover,
.nav-actions .profile-btn:hover { background: var(--pink-soft); }
.nav-actions .header-bag:focus-visible,
.nav-actions .profile-btn:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}
.logo-img {
  width: auto;
  height: 38px;
  max-width: 32px;
  object-fit: contain;
  object-position: center;
  border: none;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
  display: block;
  transition: transform .3s var(--ease);
}
.logo:hover .logo-img { transform: scale(1.06); }
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}
.logo-text em {
  font-family: Outfit, sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.brand-blue { color: #1d85ff !important; }
.brand-sky { color: #56a3ff !important; font-style: normal; }
.brand-sub {
  font-family: Outfit, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1d85ff;
  line-height: 1;
  margin-top: 2px;
  white-space: nowrap;
  display: none;
}
.brand-sub .dot { color: #ff66c3; font-weight: 800; margin: 0 2px; }

@media (min-width: 580px) {
  .logo { gap: 10px; }
  .logo-img { height: 42px; max-width: 36px; }
  .logo-text em { font-size: 20px; }
  .brand-sub { display: block !important; font-size: 8.5px; }
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  height: 100%;
}

.icon-btn, .search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  background: #fff;
  border-radius: 16px;
  color: var(--wine);
  box-shadow: 0 4px 14px rgba(45, 59, 54, .08);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.icon-btn:hover, .search-toggle:hover {
  background: var(--pink-soft);
  box-shadow: 0 6px 18px rgba(45, 59, 54, .12);
}
.icon-btn:active, .search-toggle:active { transform: scale(.94); }
.icon-btn:focus-visible, .search-toggle:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}
.search-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.search-toggle[aria-expanded="true"] {
  background: var(--berry);
  color: #fff;
}

@media (pointer: coarse) {
  .icon-btn, .search-toggle {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: 14px;
  background: #fff;
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.avatar-cropper { margin: 8px 0 16px; }
.avatar-crop-preview {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pink-soft);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.avatar-crop-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}
.avatar-crop-frame {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(92, 35, 56, 0.25);
}
.avatar-crop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.avatar-crop-tools label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.avatar-crop-tools input[type="range"] { width: 140px; }


/* Legacy cart pill (kept for compatibility) */
.cart-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--wine); color: #fff;
  padding: 9px 14px; border-radius: 14px;
  font-size: 12px; font-weight: 600;
}
.cart-count {
  background: var(--gold); color: var(--ink);
  border-radius: 99px; padding: 0 6px;
  font-size: 10px; font-weight: 700; min-width: 18px; text-align: center; line-height: 18px;
}

/* Slide-down search (overlays below header so it never adds top/bottom gap) */
.search-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 210;
  padding: 0 0 12px;
  background: rgba(250, 248, 242, 0.96);
  backdrop-filter: blur(18px);
  animation: slideDown .25s var(--ease);
}
.search-bar[hidden] { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search-bar form { display: flex; align-items: center; gap: 8px; }
.search-bar input[type="search"] {
  flex: 1;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.search-bar input[type="search"]:focus { box-shadow: 0 0 0 3px var(--pink-soft), var(--shadow-sm); }
.search-bar button[type="submit"] {
  height: 46px; padding: 0 20px;
  border: 0; border-radius: 16px;
  background: var(--wine); color: #fff;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}

/* Drawer nav is retired — floating bottom bar is used everywhere */
.menu-toggle, .nav-overlay, .nav, .nav-inner, .nav-mega, .nav-drop, .lang-switch, .quick-view {
  display: none !important;
}

/* ════════════════════════════════════
   FLOATING BOTTOM TAB BAR
   ════════════════════════════════════ */
.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 260;
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: min(440px, calc(100% - 20px));
  margin: 0 auto;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(88, 44, 64, .16), 0 2px 6px rgba(88, 44, 64, .06);
  box-sizing: border-box;
}
.app-tabbar a, .app-tabbar .tab-more {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 2px 8px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: var(--mute);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  transition: background .24s var(--ease), color .2s, transform .18s var(--ease);
}
.app-tabbar svg {
  width: 21px; height: 21px; flex-shrink: 0;
  stroke-width: 1.8;
  transition: transform .24s var(--ease);
}
.app-tabbar a:active, .app-tabbar .tab-more:active { transform: scale(.93); }
.app-tabbar a.is-on, .app-tabbar .tab-more.is-on {
  background: linear-gradient(180deg, var(--surface), var(--pink-soft));
  color: var(--wine);
  font-weight: 600;
}
.app-tabbar a.is-on svg, .app-tabbar .tab-more.is-on svg { transform: translateY(-1px) scale(1.05); }
.tab-badge {
  position: absolute;
  top: 5px;
  left: calc(50% + 5px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--wine);
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.header-bag { position: relative; }
.header-bag .tab-badge {
  top: -3px;
  right: -3px;
  left: auto;
  box-shadow: 0 0 0 2px var(--surface);
}
.app-shell main { padding-bottom: 0; }
.app-shell.has-pdp main { padding-bottom: 0; }
.app-shell .toast { bottom: 92px; }
.app-shell .site-footer { padding-bottom: 80px; position: relative; z-index: 1; }
body.home-page main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: var(--section-gap) 0 0;
}
body.home-page main > .section { padding: 0; }
body.home-page main > .banner { margin: 0 auto; }
body.home-page .trust-row { padding: 0; }
body.home-page main + .site-footer { margin-top: var(--section-gap); }
body.more-open { overflow: hidden; }

/* More sheet */
.more-sheet {
  position: fixed; inset: 0; z-index: 270;
  background: rgba(44, 30, 38, .42);
  backdrop-filter: blur(3px);
  align-items: flex-end; justify-content: center;
  padding: 12px 12px calc(76px + env(safe-area-inset-bottom));
  overflow-y: auto;
  display: none;
  pointer-events: none;
}
.more-sheet.is-open { display: flex; pointer-events: auto; }
.more-sheet[hidden] { display: none !important; }
.more-sheet-card {
  width: min(460px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 26px;
  padding: 20px 16px 16px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 -10px 40px rgba(44, 30, 38, .22);
  animation: sheetUp .3s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.more-sheet-card strong {
  padding: 2px 6px 12px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
}
.more-sheet-divider { height: 1px; margin: 8px 6px; background: var(--line); }
.more-sheet-card a {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s;
}
.more-sheet-card a:active { background: var(--cream); }
.more-sheet-card .btn { margin-top: 10px; width: 100%; text-align: center; }

/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */
.btn, button.btn, input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(180deg, #edb457, var(--gold));
  color: #35200c;
  border: 0;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(226, 166, 66, .28);
  transition: transform .2s var(--ease), box-shadow .25s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn.wine {
  background: linear-gradient(180deg, #6d2a43, var(--wine));
  color: #fff;
  box-shadow: 0 8px 20px rgba(92, 35, 56, .26);
}
.btn.ghost {
  background: #fff;
  color: var(--wine);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn.sm { padding: 10px 15px; font-size: 13px; border-radius: 13px; }
.btn:disabled, .btn[disabled] {
  opacity: .45;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.text-link {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--wine);
}

/* ════════════════════════════════════
   HERO CAROUSEL (rounded card)
   ════════════════════════════════════ */
.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  min-height: 0;
  background: #2c1e26;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-track { height: 100%; min-height: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: opacity .9s ease, transform 7s linear;
}
.slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(44,20,30,.78) 0%, rgba(44,20,30,.3) 62%, rgba(44,20,30,.08) 100%);
}
.slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); }
.slide-copy {
  position: relative; z-index: 1;
  padding: 34px 22px 66px;
  color: #fff;
}
.slide.is-active .slide-copy { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.slide-copy h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 8vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  margin: 0 0 12px;
}
.slide-copy p { color: rgba(255,255,255,.86); max-width: 440px; font-size: 14px; margin: 0 0 20px; }
.hero-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 10px;
}
.slide-copy .hero-kicker { color: var(--gold-soft); }

.carousel-btn {
  position: absolute; bottom: 20px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-size: 20px; border-radius: 13px;
  backdrop-filter: blur(8px); transition: .25s;
}
.carousel-btn:hover { background: #fff; color: var(--wine); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { left: 62px; }
.carousel-dots { position: absolute; bottom: 36px; right: 18px; display: flex; gap: 5px; }
.carousel-dots button {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 99px;
  background: rgba(255,255,255,.42);
  transition: width .3s var(--ease), background .3s;
}
.carousel-dots button.is-active { width: 20px; background: var(--gold); }
.carousel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.carousel-progress i { display: block; height: 100%; width: 0; background: var(--gold); animation: load 5.5s linear infinite; }
@keyframes load { from { width: 0; } to { width: 100%; } }

/* ════════════════════════════════════
   TRUST CHIPS
   ════════════════════════════════════ */
.trust-bar { background: transparent; border: 0; }
.trust-row {
  display: flex; gap: 8px;
  padding: 16px 0 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.trust-row span {
  flex-shrink: 0;
  background: #fff;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ════════════════════════════════════
   SECTIONS / GRID
   ════════════════════════════════════ */
.section { padding: 34px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: clamp(21px, 5.2vw, 30px); }
.grid { display: grid; gap: 12px; }

/* Category cards */
.cats { grid-template-columns: 1fr 1fr; }
.cat-card {
  border-radius: var(--radius);
  padding: 8px 8px 12px;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.cat-card:nth-child(5n+1) { background: var(--pink-soft); }
.cat-card:nth-child(5n+2) { background: var(--lilac); }
.cat-card:nth-child(5n+3) { background: var(--mint); }
.cat-card:nth-child(5n+4) { background: var(--butter); }
.cat-card:nth-child(5n+5) { background: var(--sky); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:active { transform: scale(.98); }
.cat-img {
  width: 100%; height: 118px;
  border-radius: 16px;
  background-color: #fff;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.cat-card:hover .cat-img { transform: scale(1.03); }
.cat-card span {
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--berry);
  padding: 11px 8px 2px;
}
.cat-card strong { font-size: 15px; font-weight: 600; padding: 0 8px; }

/* ════════════════════════════════════
   PRODUCT CARDS
   ════════════════════════════════════ */
.products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,243,238,0.96));
  border: 1px solid rgba(45, 59, 54, 0.08);
  border-radius: 22px;
  padding: 10px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-link {
  display: block; position: relative;
  border-radius: 18px; overflow: hidden;
  background: var(--cream);
}
.product-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.05); }
.sold-flag {
  position: absolute; left: 8px; top: 8px;
  background: rgba(44,30,38,.86); color: #fff;
  font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.like-form { position: absolute; top: 15px; right: 15px; z-index: 2; }
.like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94); border: 0;
  border-radius: 999px; padding: 8px 10px;
  color: var(--berry); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.like-btn:hover { transform: scale(1.08); }
.like-btn.liked { background: var(--wine); color: #fff; animation: heart .45s var(--ease); }
@keyframes heart { 0%{transform:scale(1)} 40%{transform:scale(1.22)} 100%{transform:scale(1)} }

.stars { display: inline-flex; align-items: center; gap: 2px; color: #e3d2c6; font-size: 13px; }
.stars .on { color: var(--gold); }
.stars em { font-style: normal; color: var(--mute); font-size: 11px; margin-left: 5px; }

.product-card .meta {
  padding: 12px 4px 2px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.product-card h3 {
  margin: 0; font-size: 14px; line-height: 1.4; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
}
.price-row {
  display: flex; align-items: baseline; gap: 7px;
  flex-wrap: wrap;
}
.price { color: var(--wine); font-weight: 700; font-size: 17px; }
.compare { color: var(--mute); text-decoration: line-through; font-weight: 400; font-size: 12px; }
.card-buy { margin-top: auto; }
.card-buy .btn {
  width: 100%;
  padding: 12px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4b2a2f 0%, #2d1a29 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(58, 35, 42, 0.18);
}
.card-desc { color: var(--mute); font-size: 12px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stock-pill {
  display: inline-block; padding: 5px 11px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
}
.stock-pill.in  { background: var(--mint); color: #1d6b45; }
.stock-pill.out { background: var(--pink-soft); color: #97304d; }

@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-card {
    padding: 12px;
  }
  .product-card h3 { font-size: 15px; }
  .card-buy .btn { font-size: 14px; }
}

/* ════════════════════════════════════
   BANNERS
   ════════════════════════════════════ */
.banner {
  margin: 14px auto;
  width: min(1180px, calc(100% - 24px));
  background: linear-gradient(135deg, #2a413a 0%, #1d2f2b 48%, #162421 100%);
  color: #fff;
  padding: 28px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.banner h2 { font-size: clamp(22px, 5.6vw, 32px) !important; margin: 6px 0 6px !important; }
.banner p { margin: 0; font-size: 14px; opacity: .9; }
.banner .btn {
  background: linear-gradient(180deg, #eed69f, var(--gold));
  color: #2d2a1d;
  box-shadow: 0 10px 24px rgba(214, 176, 85, 0.28);
}
.banner-light {
  background: linear-gradient(135deg, #f5f0e7 0%, #f1f4ef 45%, #edf1ea 100%);
  color: var(--ink);
  border: 1px solid rgba(45, 59, 54, .08);
}
.banner-light p { opacity: 1; color: var(--mute); }
.banner-kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .85;
  color: #d9ebde;
}

/* ════════════════════════════════════
   INSTAGRAM STRIP
   ════════════════════════════════════ */
.insta-strip {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  height: auto;
}
.insta-copy {
  display: grid;
  gap: 10px;
  width: 100%;
  height: auto;
}
.insta-copy .hero-kicker {
  margin-bottom: 0;
}
.insta-img {
  width: min(100%, 520px);
  max-width: 520px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #edf3eb, #dfeae1);
  padding: 18px;
  margin: 0 auto;
  display: block;
}

@media (min-width: 900px) {
  .banner {
    padding: 40px 42px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .banner > div { flex: 1; min-width: 0; }
  .banner .btn {
    flex-shrink: 0;
    min-width: 180px;
  }
  .insta-strip {
    flex-direction: row;
    gap: 36px;
    align-items: center;
    min-height: 0;
  }
  .insta-copy,
  .insta-img {
    flex: 1 1 0;
    max-width: 50%;
    width: 50%;
    height: auto;
  }
  .insta-copy { padding-right: 10px; }
}

@media (max-width: 720px) {
  .banner {
    padding: 22px 18px;
    border-radius: 22px;
    gap: 16px;
  }
  .banner h2 {
    font-size: clamp(22px, 7vw, 32px) !important;
    line-height: 1.08;
  }
  .banner p {
    font-size: 12.5px;
    line-height: 1.6;
  }
  .banner .btn {
    width: 100%;
    justify-content: center;
  }
  .insta-strip {
    gap: 16px;
    width: min(100%, calc(100% - 20px));
  }
  .insta-copy h2 {
    font-size: clamp(24px, 8vw, 32px);
  }
  .insta-copy p {
    font-size: 13px;
    line-height: 1.6;
  }
  .insta-img {
    width: min(100%, 320px);
    max-width: 100%;
    padding: 14px;
  }
}

/* ════════════════════════════════════
   SHOP PAGE
   ════════════════════════════════════ */
.shop-layout { display: flex; flex-direction: column; gap: 16px; padding: 18px 0 40px; }
.shop-layout h1 { margin: 0 0 2px; }
.shop-layout > div > p { color: var(--mute); font-size: 13px; margin: 0 0 14px; }
.filters {
  display: flex; gap: 8px; align-items: center;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(45, 59, 54, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.filters h3, .filters strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.filters-close,
.filters-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.filters-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
}
.filters-open { display: none; min-height: 40px; padding: 8px 11px; }
.filters-open svg { width: 17px; height: 17px; }
.filters-open:focus-visible,
.filters-close:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.filters-backdrop { display: none; }
.shop-results-heading { min-width: 0; }
.shop-results-heading > div { min-width: 0; }
.shop-results-heading .filters-open { display: none; }
.filters-hint {
  color: var(--mute);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
}
.filters-list {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 1px 3px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.filters-list a { flex-shrink: 0; }
.filters a {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px; font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.filters a:hover { background: var(--cream); }
.filters a.active { background: var(--wine); color: #fff; }

/* ════════════════════════════════════
   PRODUCT DETAIL PAGE
   ════════════════════════════════════ */
.pdp { padding: 14px 0 34px; }
.pdp-crumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; color: var(--mute); margin-bottom: 14px;
}
.pdp-crumb a { color: var(--mute); }
.pdp-crumb a:hover { color: var(--wine); }
.pdp-grid { display: flex; flex-direction: column; gap: 18px; }
.pdp-gallery .gallery-main {
  position: relative;
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pdp-gallery .gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.thumb-btn {
  width: 62px; height: 62px; flex-shrink: 0;
  padding: 0; border: 2px solid transparent;
  background: var(--cream); border-radius: 16px; overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease);
}
.thumb-btn.is-active { border-color: var(--berry); }
.thumb-btn:active { transform: scale(.94); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }

.pdp-buy {
  background: #fff;
  border-radius: 26px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.pdp-buy h1 { margin: 4px 0 8px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.pdp-rating a { color: var(--berry); font-weight: 600; }
.pdp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pdp-price .price { font-size: 28px; }
.pdp-save {
  background: var(--wine); color: #fff;
  border-radius: 999px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em;
}
.field-label {
  width: 100%;
  font-size: 11.5px; font-weight: 600;
  color: var(--mute); letter-spacing: .08em; text-transform: uppercase;
}
.size-row, .qty-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.size-row label {
  margin: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px; cursor: pointer;
  background: #fff;
  transition: border-color .2s;
}
.size-row input { display: none; }
.size-row label span { display: block; padding: 10px 16px; border-radius: 12px; font-weight: 500; }
.size-row input:checked + span { background: var(--wine); color: #fff; }
.qty-row input[type=number] {
  width: 58px; text-align: center;
  padding: 10px 6px; margin: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.qty-row button {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 0; background: var(--cream);
  color: var(--wine); font-size: 20px; font-weight: 600;
  transition: transform .2s var(--ease), background .2s;
}
.qty-row button:active { transform: scale(.92); background: var(--pink-soft); }
.pdp-actions { display: flex; gap: 10px; margin: 16px 0 8px; }
.pdp-actions .btn { flex: 1; }
.pdp-trust { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 14px 0 10px; list-style: none; }
.pdp-trust li {
  font-size: 11.5px; font-weight: 500;
  border-radius: 999px; padding: 7px 12px; color: var(--ink);
}
.pdp-trust li:nth-child(3n+1) { background: var(--mint); }
.pdp-trust li:nth-child(3n+2) { background: var(--sky); }
.pdp-trust li:nth-child(3n+3) { background: var(--butter); }
.pdp-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-specs span {
  font-size: 12px; background: var(--paper);
  border-radius: 10px; padding: 6px 10px; color: var(--mute);
}
.social-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.share-btn {
  padding: 9px 14px; border-radius: 999px;
  background: var(--cream); color: var(--wine);
  font-size: 12.5px; font-weight: 600;
}
.lead { font-size: 14.5px; color: var(--mute); margin: 0 0 4px; }

/* Segmented tabs */
.pdp-tabs { padding: 6px 0 30px; }
.tab-bar {
  display: flex; gap: 4px;
  background: #fff;
  border-radius: 18px;
  padding: 5px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.tab-bar button {
  flex: 1; min-width: max-content;
  background: none; border: 0;
  border-radius: 14px; padding: 11px 14px;
  font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s;
}
.tab-bar button.is-on { background: var(--pink-soft); color: var(--wine); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pdp-sticky {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 170;
  width: min(440px, calc(100% - 20px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px 10px 18px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(88,44,64,.16);
}
.pdp-sticky .price { font-size: 19px; }
.pdp-sticky .btn { padding: 12px 20px; }

.details-box { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.details-box p { margin: 0; }
.reviews-block { padding: 0 0 34px; }
.review-grid { display: flex; flex-direction: column; gap: 16px; }
.comment-card {
  background: #fff; border-radius: 18px;
  padding: 15px 17px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.comment-card strong { display: block; font-size: 14px; margin: 4px 0; }
.comment-card p { margin: 4px 0; font-size: 14px; }
.comment-card small { color: var(--mute); font-size: 11.5px; }
.rate-input { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.rate-input label {
  margin: 0; padding: 8px 12px;
  border-radius: 12px; background: var(--cream);
  font-size: 13px; display: inline-flex; align-items: center; gap: 5px;
}
.rate-input input { width: auto; }

.zoom-overlay {
  position: fixed; inset: 0; background: rgba(30, 18, 24, .9); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .25s var(--ease);
}
.zoom-overlay img { max-width: 96vw; max-height: 92vh; object-fit: contain; cursor: zoom-out; border-radius: 18px; }
.zoom-box img { cursor: zoom-in; }

/* ════════════════════════════════════
   CART / CHECKOUT
   ════════════════════════════════════ */
.cart-page { padding: 22px 0 30px; max-width: 100%; }
.bag-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.bag-head h1 { margin: 0; }
.bag-count {
  background: #fff; color: var(--mute);
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.bag-empty {
  background: #fff; border-radius: 26px;
  padding: 42px 24px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.bag-empty-art {
  width: 78px; height: 78px; margin: 0 auto 16px;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--pink-soft), var(--lilac));
  display: grid; place-items: center;
  font-size: 34px;
}
.bag-empty h2 { margin: 0 0 6px; }
.bag-empty p { color: var(--mute); font-size: 14px; margin: 0 auto 20px; max-width: 320px; }

.bag-layout { display: flex; flex-direction: column; gap: 16px; }
.bag-list { display: flex; flex-direction: column; gap: 12px; }
.bag-item {
  display: flex; gap: 13px;
  background: #fff; border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.bag-thumb {
  width: 92px; flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px; overflow: hidden;
  background: var(--cream);
}
.bag-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.bag-name {
  font-size: 14.5px; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bag-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.bag-chip {
  background: var(--paper); color: var(--mute);
  border-radius: 999px; padding: 4px 10px;
  font-size: 11.5px; white-space: nowrap;
}
.bag-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px; margin-top: auto;
}
.qty-stepper {
  display: inline-flex; align-items: center;
  background: var(--paper);
  border-radius: 999px;
  padding: 3px;
}
.qty-stepper button {
  width: 32px; height: 32px;
  border: 0; border-radius: 999px;
  background: #fff; color: var(--wine);
  font-size: 17px; font-weight: 600; line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease);
}
.qty-stepper button:active { transform: scale(.9); }
.qty-stepper button:disabled { opacity: .35; box-shadow: none; }
.qty-stepper span {
  min-width: 34px; text-align: center;
  font-size: 14px; font-weight: 600;
}
.bag-line { font-size: 16px; font-weight: 700; color: var(--wine); }
.bag-info > form { align-self: flex-start; }
.bag-remove {
  background: none; border: 0; padding: 0;
  color: var(--mute); font-size: 12.5px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.bag-remove:hover { color: #8f2b48; }
.bag-more {
  display: block; text-align: center;
  padding: 14px; border-radius: var(--radius);
  border: 1.5px dashed var(--line);
  color: var(--wine); font-size: 13.5px; font-weight: 600;
}
.bag-more:hover { background: #fff; }

.bag-sum {
  background: #fff; border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.bag-sum h2 { margin: 0 0 12px; font-size: 18px; }
.sum-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 7px 0;
  font-size: 14px; color: var(--mute);
}
.sum-row b { color: var(--ink); font-weight: 600; }
.sum-row.total {
  margin-top: 6px; padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}
.sum-row.total b { font-size: 21px; color: var(--wine); }
.bag-sum .btn { width: 100%; margin-top: 14px; }
.sum-note { color: var(--mute); font-size: 12px; margin: 10px 0 0; text-align: center; }
.cart-table, .admin-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-table th, .admin-table th {
  text-align: left; padding: 13px 14px;
  background: var(--cream);
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.cart-table td, .admin-table td {
  padding: 13px 14px; border-top: 1px solid var(--line);
  text-align: left; font-size: 13.5px;
}
.cart-piece { display: flex; gap: 11px; align-items: center; }
.cart-piece img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--radius-sm); flex-shrink: 0; }
@media (max-width: 720px) {
  .cart-table { background: transparent; box-shadow: none; border-radius: 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; box-sizing: border-box; }
  .cart-table tr {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }
  .cart-table td { border: 0; padding: 5px 0; }
  .cart-table td form { display: flex; gap: 8px; align-items: center; }
  .cart-table td input[type="number"] { width: 74px; margin: 0; }
}
.checkout-grid { display: flex; flex-direction: column; gap: 16px; padding: 18px 0 40px; }
.checkout-main { display: grid; min-width: 0; gap: 10px; }
.checkout-wizard { min-width: 0; }
.checkout-wizard.is-enhanced [data-checkout-panel][hidden] { display: none; }
.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkout-progress li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--mute);
  font-size: 11px;
}
.checkout-progress li > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--mute);
  font-size: 11px;
  font-weight: 700;
}
.checkout-progress li.is-active {
  border-color: rgba(122, 154, 107, .35);
  background: #f7f9f4;
  color: var(--ink);
}
.checkout-progress li.is-active > span { background: var(--berry); color: #fff; }
.checkout-progress li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-panel-heading { margin-bottom: 16px; }
.checkout-panel-heading > span {
  color: #638451;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.checkout-panel-heading h1 { margin: 4px 0; font-size: clamp(22px, 5vw, 28px); }
.checkout-panel-heading p { margin: 0; color: var(--mute); font-size: 12px; }
.checkout-review-list { display: grid; gap: 8px; }
.checkout-review-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.checkout-review-item img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--paper);
  object-fit: contain;
}
.checkout-review-item > div { display: grid; gap: 4px; min-width: 0; }
.checkout-review-item strong { color: var(--ink); font-size: 12px; line-height: 1.35; }
.checkout-review-item small { color: var(--mute); font-size: 10px; }
.checkout-review-item > b { color: var(--ink); font-size: 12px; white-space: nowrap; }
.checkout-bill { display: grid; gap: 8px; margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.checkout-bill [hidden] { display: none !important; }
.checkout-bill > div { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 12px; }
.checkout-bill b { color: var(--ink); font-weight: 600; }
.checkout-bill .checkout-bill-discount,
.checkout-bill .checkout-bill-discount b { color: #527445; }
.checkout-bill-total {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 700;
}
.checkout-bill-total b { font-size: 16px; }
.checkout-next { width: 100%; }
.checkout-step-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.checkout-step-actions .btn { min-width: 120px; }
.checkout-coins-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, 125px);
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(122, 154, 107, .2);
  border-radius: 14px;
  background: linear-gradient(110deg, #f1f5ed, #fff);
}
.checkout-coins-card > div { display: grid; gap: 3px; }
.checkout-coins-card strong { color: var(--ink); font-size: 12px; }
.checkout-coins-card small { color: var(--mute); font-size: 10px; }
.checkout-coins-card label { grid-column: 2; grid-row: 1; margin: 0; font-size: 10px; }
.checkout-coins-card input { grid-column: 2; grid-row: 2; min-height: 40px; margin: 0; padding: 7px 9px; }
.checkout-payment-options { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.checkout-payment-options legend { margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}
.checkout-payment-option:has(input:checked) { border-color: var(--berry); background: #f7f9f4; }
.checkout-payment-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--berry); }
.checkout-payment-option > span { display: grid; gap: 3px; }
.checkout-payment-option strong { color: var(--ink); font-size: 12px; }
.checkout-payment-option small { color: var(--mute); font-size: 10px; font-weight: 400; }
.checkout-final-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  align-items: baseline;
  margin-top: 14px;
  padding: 12px;
  border-radius: 13px;
  background: var(--paper);
}
.checkout-final-summary > span { color: var(--mute); font-size: 11px; }
.checkout-final-summary > strong { color: var(--ink); font-size: 18px; }
.checkout-final-summary > small { grid-column: 1 / -1; color: #526e45; font-size: 10px; }
.checkout-aside { min-width: 0; }
.checkout-aside > p { margin: 0 0 14px; color: var(--mute); font-size: 12px; }
.checkout-aside-total { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.checkout-aside-total strong { color: var(--ink); font-size: 18px; }
.checkout-aside > small { color: var(--mute); font-size: 10px; }
.order-reward-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(122, 154, 107, .22);
  border-radius: 16px;
  background: linear-gradient(120deg, #f0f5eb, #fff);
  text-align: left;
}
.order-reward-card > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: #526e45;
  font-size: 20px;
}
.order-reward-card > div { display: grid; gap: 3px; }
.order-reward-card strong { color: var(--ink); font-size: 13px; }
.order-reward-card p { margin: 0; color: var(--mute); font-size: 11px; }
.order-reward-card small { color: #526e45; font-size: 10px; }
.order-reward-card.is-pending { border-color: rgba(212, 205, 188, .8); background: #fbf8f0; }
.order-reward-card.is-pending > span { background: var(--gold-soft); color: var(--ink); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.card h1, .card h2 { margin: 0 0 12px; }
.card h3 { margin: 20px 0 6px; }

label {
  display: block;
  font-size: 12.5px; font-weight: 500;
  color: var(--mute);
  margin: 14px 0 6px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  font: inherit; font-size: 14.5px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
input[type=file] { padding: 11px 13px; background: var(--paper); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c7c85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
}
label.check {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
label.check:hover { border-color: var(--berry); }
label.check input { width: auto; accent-color: var(--wine); }
.alert {
  padding: 13px 16px; margin: 0 0 16px;
  background: var(--mint); color: #1b5c3b;
  border: 0; border-radius: var(--radius-sm);
  font-size: 14px;
}
.alert.error { background: var(--pink-soft); color: #8f2b48; }

/* ════════════════════════════════════
   AUTH / ACCOUNT
   ════════════════════════════════════ */
.auth { max-width: 430px; margin: 26px auto 40px; padding: 0 12px; }
.auth .card { padding: 24px 20px; border-radius: 26px; }
.auth h1 { margin-bottom: 6px; }
.auth p { font-size: 14px; }
.auth .btn { width: 100%; }
.auth-page {
  width: min(980px, calc(100% - 28px));
  max-width: 980px;
  min-height: min(680px, calc(100vh - var(--header-h) - 48px));
  margin: 34px auto 44px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .88fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(45, 59, 54, .08);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px);
  color: #F4F0E6;
  background:
    radial-gradient(circle at 88% 16%, rgba(212, 205, 188, .3) 0 90px, transparent 91px),
    radial-gradient(circle at 14% 94%, rgba(122, 154, 107, .3), transparent 36%),
    linear-gradient(145deg, #2D3B36, #3E5548 70%, #52634F);
}
.auth-showcase::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -170px;
  bottom: -180px;
  border: 1px solid rgba(244, 240, 230, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(244, 240, 230, .04), 0 0 0 58px rgba(244, 240, 230, .035);
  pointer-events: none;
}
.auth-eyebrow {
  display: block;
  color: var(--berry);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-showcase .auth-eyebrow { color: #D4CDBC; }
.auth-showcase h1 {
  max-width: 480px;
  margin: 16px 0 12px;
  color: #F4F0E6;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .98;
}
.auth-showcase > p {
  max-width: 390px;
  margin: 0;
  color: rgba(244, 240, 230, .78);
  font-size: 15px;
  line-height: 1.7;
}
.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}
.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(244, 240, 230, .92);
  font-size: 13px;
}
.auth-benefits i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, .24);
  border-radius: 50%;
  color: #D4CDBC;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}
.auth-card {
  align-self: center;
  width: 100%;
  padding: clamp(24px, 4vw, 42px) !important;
  border-radius: 0 !important;
  background: var(--surface);
  box-shadow: none;
}
.auth-card-heading { margin-bottom: 22px; }
.auth-card-heading h2 {
  margin: 8px 0 5px;
  color: var(--ink);
  font-size: 28px;
}
.auth-card-heading p {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.55;
}
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background .2s, border-color .2s, transform .2s;
}
.auth-google:hover { background: #F8F6EF; border-color: rgba(45, 59, 54, .22); }
.auth-google:active { transform: scale(.99); }
.auth-google svg { width: 19px; height: 19px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--mute);
  font-size: 11px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #F0EBDD;
}
.auth-mode-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.auth-mode-switch button.is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(45, 59, 54, .08);
}
.auth-mode-switch button:focus-visible,
.auth-google:focus-visible,
.auth-card a:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}
.auth-form[hidden] { display: none; }
.auth-form label {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.auth-form input {
  min-height: 48px;
  margin: 0 0 16px;
  border-color: rgba(45, 59, 54, .14);
  border-radius: 13px;
  background: #fff;
}
.auth-form input::placeholder { color: #A0A8A1; }
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-label-row a, .auth-switch a {
  color: #58744E;
  font-size: 12px;
  font-weight: 600;
}
.auth-label-row a { margin-bottom: 7px; }
.auth-hint {
  margin: -4px 0 16px;
  color: var(--mute);
  font-size: 12px !important;
  line-height: 1.5;
}
.auth-optional { color: var(--mute); font-weight: 400; }
.auth-switch {
  margin: 20px 0 0;
  color: var(--mute);
  text-align: center;
  font-size: 12px !important;
}
.auth-verify { min-height: 460px; }
@media (max-width: 720px) {
  .auth-page {
    width: min(480px, calc(100% - 24px));
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 22px auto 32px;
    border-radius: 24px;
  }
  .auth-showcase { padding: 25px 24px; }
  .auth-showcase h1 { margin: 9px 0 7px; font-size: 36px; }
  .auth-showcase > p { font-size: 13px; }
  .auth-benefits { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .auth-benefits span { font-size: 11px; }
  .auth-benefits i { width: 25px; height: 25px; flex-basis: 25px; }
  .auth-card { padding: 26px 22px !important; }
  .auth-card-heading { margin-bottom: 18px; }
  .auth-verify .auth-benefits { display: none; }
}
@media (max-width: 480px) {
  .auth-page {
    margin: 12px auto 18px;
    border-radius: 18px;
  }
  .auth-showcase {
    padding: 14px 18px;
  }
  .auth-showcase h1 {
    margin: 5px 0 0;
    font-size: 24px;
    line-height: 1.15;
  }
  .auth-showcase > p,
  .auth-benefits {
    display: none;
  }
  .auth-card {
    padding: 16px 18px !important;
  }
  .auth-card-heading {
    margin-bottom: 12px;
  }
  .auth-card-heading h2 {
    margin: 5px 0 3px;
    font-size: 21px;
  }
  .auth-card-heading p {
    font-size: 12px;
    line-height: 1.4;
  }
  .auth-google {
    min-height: 44px;
    padding: 8px 12px;
  }
  .auth-divider {
    gap: 8px;
    margin: 12px 0;
    font-size: 10px;
  }
  .auth-mode-switch {
    margin-bottom: 12px;
    padding: 3px;
  }
  .auth-mode-switch button {
    min-height: 44px;
  }
  .auth-form label,
  .auth-card form label {
    margin: 8px 0 4px;
    font-size: 11px;
  }
  .auth-form input,
  .auth-card form input {
    min-height: 44px;
    margin-bottom: 10px;
    padding: 9px 12px;
    font-size: 14px;
  }
  .auth-hint {
    margin: 0 0 10px;
    font-size: 11px !important;
  }
  .auth-card .btn {
    min-height: 44px;
    padding: 10px 14px;
  }
  .auth-switch {
    margin-top: 12px;
    font-size: 11px !important;
  }
  .auth .alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 12px;
  }
}
.account-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0 32px;
}
.account-side {
  background: #fff;
  border-radius: 22px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.account-side h2 { margin: 0 0 2px; font-size: 19px; }
.account-side p { margin: 2px 0; font-size: 13px; color: var(--mute); }
.avatar {
  width: 86px; height: 86px; border-radius: 30px;
  object-fit: contain; margin: 0 auto 12px;
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.account-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.account-nav a {
  display: block; padding: 10px 14px;
  border-radius: 12px; background: var(--paper);
  color: var(--mute); font-size: 13.5px; font-weight: 500;
}
.account-nav a.active { background: var(--pink-soft); color: var(--wine); font-weight: 600; }
.saved-address-card { margin-bottom: 10px; }
.saved-address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.saved-address-default {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: #1e6b3a;
  font-size: 11px;
  font-weight: 600;
}
.saved-address-card > p { margin: 8px 0; color: var(--mute); font-size: 13px; }
.saved-address-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.saved-address-actions form { margin: 0; }
.saved-address-actions .btn { min-height: 40px; }
.account-form-card {
  padding: 18px 18px;
  border-radius: 18px;
}
.account-form-card > p.muted { margin: 0 0 8px; }
.account-form-card textarea { min-height: 84px; }
.account-summary-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(122, 154, 107, .22);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(122, 154, 107, .15), transparent 45%),
    linear-gradient(145deg, #fff 30%, #fbfcf8 100%);
  box-shadow: 0 12px 30px rgba(45, 59, 54, .07);
}
.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-section-heading h1,
.account-section-heading h2 { margin: 2px 0 4px; }
.account-section-heading h1 { font-size: clamp(23px, 3vw, 29px); letter-spacing: -.04em; }
.account-section-heading > div { min-width: 0; }
.account-section-heading .muted { margin: 0; }
.account-edit-shortcut {
  min-height: 38px !important;
  border-color: rgba(122, 154, 107, .25) !important;
  background: #f7f9f4 !important;
  color: #526e45 !important;
  box-shadow: none !important;
}
.account-edit-shortcut svg { width: 15px; height: 15px; }
.account-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: #638451;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.account-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 16px 0 0;
}
.account-details > div {
  display: grid;
  grid-template-columns: minmax(92px, .34fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(45, 59, 54, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.account-details > div:hover {
  border-color: rgba(122, 154, 107, .28);
  box-shadow: 0 5px 14px rgba(45, 59, 54, .045);
  transform: translateY(-1px);
}
.account-details .account-detail-bio {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.account-details dt {
  margin: 0;
  color: var(--mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.account-details dd {
  overflow-wrap: anywhere;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
}
.account-details .account-detail-bio dd { text-align: left; }
.account-details dd small {
  display: block;
  margin-top: 2px;
  color: var(--mute);
  font-size: 10px;
  font-weight: 400;
}
.account-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(122, 154, 107, .15);
  border-radius: 12px;
  background: linear-gradient(100deg, #f0f5eb, #f8faf5);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}
.account-recommendation strong {
  flex: 0 0 auto;
  color: #526e45;
  font-size: 10px;
  text-transform: uppercase;
}
.account-address-summary {
  border: 1px solid rgba(45, 59, 54, .08);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.account-address-summary .account-section-heading { align-items: center; }
.account-address-summary .account-section-heading h2 { font-size: 18px; }
.account-address-summary .account-section-heading .btn { flex: 0 0 auto; }
.account-address-list { display: grid; gap: 8px; margin-top: 12px; }
.account-address-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed rgba(45, 59, 54, .18);
  border-radius: 14px;
  background: var(--surface);
}
.account-address-empty > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--mint);
  color: #526e45;
  font-size: 19px;
}
.account-address-empty p { display: grid; gap: 2px; margin: 0; }
.account-address-empty strong { color: var(--ink); font-size: 12px; }
.account-address-empty small { color: var(--mute); font-size: 11px; }
.account-address-item {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(45, 59, 54, .08);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--surface));
}
.account-address-item p { margin: 6px 0 3px; color: var(--ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-address-item > span { font-size: 12px; }
.account-form-card.account-disclosure { padding: 0; overflow: hidden; }
.account-disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}
.account-disclosure-summary:hover { background: rgba(122, 154, 107, .06); }
.account-disclosure-summary::-webkit-details-marker { display: none; }
.account-disclosure-summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.account-disclosure-summary strong { color: var(--ink); font-size: 14px; }
.account-disclosure-summary small { color: var(--mute); font-size: 12px; }
.account-disclosure-summary:focus-visible { outline: 3px solid var(--berry); outline-offset: -3px; }
.account-disclosure-indicator {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--paper);
}
.account-disclosure-indicator::before,
.account-disclosure-indicator::after {
  position: absolute;
  top: 13px;
  left: 8px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}
.account-disclosure-indicator::after { transform: rotate(90deg); transition: transform .18s ease; }
.account-disclosure[open] .account-disclosure-indicator::after { transform: rotate(0); }
.account-disclosure-content { padding: 0 15px 14px; }
.account-disclosure[open] .account-disclosure-summary { border-bottom: 1px solid var(--line); }
.account-disclosure-content > p.muted { margin: 12px 0; }

/* Wallet */
.wallet-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #4a1c2f 0%, var(--wine) 45%, #8d3457 100%);
  color: #fff;
  border-radius: 26px;
  padding: 22px 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.wallet-hero::after {
  content: "";
  position: absolute; right: -40px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 231, 189, .14);
}
.wallet-label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.wallet-balance { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.wallet-balance i { font-style: normal; font-size: 30px; }
.wallet-balance strong { font-size: 44px; font-weight: 600; line-height: 1; }
.wallet-hero p { margin: 0 0 18px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.wallet-hero .btn { position: relative; z-index: 1; }

.wallet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.wallet-stat {
  background: #fff; border-radius: 18px;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.wallet-stat span {
  display: block; font-size: 11.5px; color: var(--mute);
  letter-spacing: .04em; margin-bottom: 4px;
}
.wallet-stat b { font-size: 22px; font-weight: 700; }
.plus  { color: #1e6b45; }
.minus { color: #97304d; }

.refer-card { margin-bottom: 12px; }
.refer-card h2 { margin-bottom: 4px; }
.refer-card > p { margin: 0 0 14px; }
.refer-code {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  background: var(--paper);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.refer-code span {
  font-size: 18px; font-weight: 700;
  letter-spacing: .14em; color: var(--wine);
}
.refer-card .btn.wine { width: 100%; }

.coin-list { list-style: none; margin: 0; padding: 0; }
.coin-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.coin-list li:first-child { border-top: 0; padding-top: 4px; }
.coin-dot {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
}
.coin-dot.plus  { background: var(--mint); }
.coin-dot.minus { background: var(--pink-soft); }
.coin-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coin-info strong { font-size: 14px; font-weight: 500; }
.coin-info span { font-size: 11.5px; }
.coin-amt { font-size: 15px; font-weight: 700; white-space: nowrap; }
.coin-list li.coin-empty {
  display: block; color: var(--mute); font-size: 13.5px;
  padding: 6px 0 2px; border-top: 0;
}

/* Orders list (customer) */
.order-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 59, 54, .1);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(45, 59, 54, .07);
  transition: box-shadow .2s ease, transform .2s ease;
}
.order-card:hover { box-shadow: 0 14px 34px rgba(45, 59, 54, .11); transform: translateY(-2px); }
.order-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-id { display: grid; gap: 3px; min-width: 0; }
.order-id > strong { overflow-wrap: anywhere; font-size: 15px; letter-spacing: .02em; }
.order-id .muted { font-size: 12px; }
.order-label, .order-summary-label { color: var(--mute); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.order-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.order-badges .badge { margin: 0; }
.order-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .7fr); gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-total, .order-eta { display: grid; gap: 3px; }
.order-total span { color: var(--mute); font-size: 12px; }
.order-total strong { font-size: 24px; letter-spacing: -.03em; }
.order-eta { justify-self: end; min-width: 170px; padding: 10px 13px; border: 1px solid rgba(122, 154, 107, .22); border-radius: 12px; background: #f7f9f4; }
.order-eta strong { font-size: 13px; }
.order-eta small { color: var(--mute); font-size: 11px; }
.order-items-preview { display: grid; gap: 6px; padding: 14px 0 4px; font-size: 12px; }
.order-items-preview > span:not(.order-summary-label) { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.order-items-preview b { white-space: nowrap; }
.order-items-preview > small { color: var(--mute); }
.order-map-link { margin: 10px 0; font-size: 13px; font-weight: 600; }
.order-map-link a { text-decoration: none; }
.order-map-link a:hover { text-decoration: underline; }
.order-track { display: flex; list-style: none; padding: 0; margin: 20px 0 16px; }
.order-track li {
  flex: 1; text-align: center; position: relative;
  font-size: 10.5px; color: var(--mute);
}
.order-track li::before {
  content: "";
  display: block; position: relative; z-index: 1;
  width: 13px; height: 13px; border: 3px solid #fff;
  margin: 0 auto 7px; border-radius: 50%;
  background: #ecdfe4;
  box-shadow: 0 0 0 1px #ecdfe4;
}
.order-track li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 6px; left: calc(50% + 9px); width: calc(100% - 18px); height: 2px; background: #e7e9e5; }
.order-track li.is-done::after { background: var(--wine); }
.order-track li.is-done::before, .order-track li.is-on::before { background: var(--wine); }
.order-track li.is-on { color: var(--wine); font-weight: 700; }
.order-inspection-note { margin: 12px 0; padding: 11px 13px; border-left: 3px solid #aeb8a7; border-radius: 0 10px 10px 0; background: #f7f8f5; color: #536057; font-size: 12px; line-height: 1.55; }
.order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 15px; margin-top: 14px; border-top: 1px solid var(--line); }
.order-invoice-btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.order-invoice-btn:hover { transform: translateY(-1px); background: #fff; color: var(--ink); }
.order-invoice-btn svg { width: 17px; height: 17px; }
.orders-heading { margin: 0 0 20px; }
.orders-heading .hero-kicker { font-size: 10px; letter-spacing: .13em; }
.orders-heading h1 { margin: 3px 0; }
.orders-heading p { margin: 0; color: var(--mute); font-size: 13px; }

.badge {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  margin-left: 4px;
}
.badge-order-pending, .badge-pay-pending { background: var(--butter); color: #8a5a00; }
.badge-order-confirmed { background: var(--sky); color: #1d4f91; }
.badge-order-packed { background: var(--lilac); color: #5b3d9c; }
.badge-order-shipped { background: #e2f4fa; color: #0b5f73; }
.badge-order-delivered, .badge-pay-paid { background: var(--mint); color: #1e6b3a; }
.badge-order-cancelled, .badge-pay-failed { background: var(--pink-soft); color: #8f2b48; }
.badge-pay-cod { background: var(--lilac); color: #5b3d9c; }
.badge-pay-refunded { background: #ececec; color: #555; }
.badge-status-active { background: var(--mint); color: #1e6b3a; }
.badge-status-hidden, .badge-status-draft { background: #ececec; color: #555; }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  color: var(--ink);
  padding: 28px 0 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px 24px; }
.footer-grid h4 {
  margin: 0 0 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.footer-grid p,
.footer-info-item { font-size: 13px; color: var(--mute); margin: 5px 0; line-height: 1.45; }
.footer-tagline { font-size: 12.5px; font-weight: 600; color: var(--wine); margin: 3px 0 8px; }
.footer-grid a, .copy { display: block; color: var(--ink); font-size: 13px; }
.footer-grid a { margin-bottom: 6px; transition: color .15s ease; }
.footer-grid a:hover { color: var(--berry); }
.footer-wa { display: inline-block !important; color: #16a34a !important; font-weight: 600; }
.footer-wa:hover { text-decoration: underline; }
.footer-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 5px;
}
.footer-cat-grid a {
  margin-bottom: 0;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 1px 0;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  border: none;
  box-shadow: none;
  background: transparent;
}
.footer-logo span { font-family: "Cormorant Garamond", serif; font-size: 19px; font-weight: 700; color: var(--wine); }
.footer-location { color: var(--mute); font-size: 13px; }
.footer-insta { color: var(--berry) !important; font-size: 13px; font-weight: 600; }
.copy {
  text-align: center; padding: 14px 16px;
  border-top: 1px solid var(--line);
  margin-top: 18px; font-size: 12px; color: var(--mute);
}

/* ════════════════════════════════════
   UTILITIES
   ════════════════════════════════════ */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 14px; z-index: 280;
  background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: 16px;
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500;
  animation: rise .4s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
}
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.show { opacity: 1; transform: none; transition: .65s var(--ease); }
.bounce-icon { display: inline-flex; align-items: center; transition: transform .25s var(--ease); }
.bounce-icon:hover { transform: scale(1.1) rotate(-5deg); }

/* ════════════════════════════════════
   ADMIN FALLBACK  (admin.css loads after and wins)
   ════════════════════════════════════ */
.admin-body { display: flex; flex-direction: column; min-height: 100vh; }
.admin-side { background: #fff; color: var(--ink); padding: 20px 14px; }
.admin-side nav a { display: block; padding: 9px 8px; color: var(--ink); font-size: 14px; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fff; }
.admin-top h1 { margin: 0; font-size: 22px; }
.admin-content { padding: 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; padding: 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 24px; }
.form-row { display: flex; flex-direction: column; gap: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }

/* ════════════════════════════════════════════════════
   ↑↑ MOBILE DEFAULTS  ↑↑   ↓↓ SCALE UP ↓↓
   ════════════════════════════════════════════════════ */

@media (min-width: 380px) {
  .logo-img { width: 40px; height: 40px; }
  .logo-text em { font-size: 17px; }
  .logo-text > span { font-size: 10px; letter-spacing: 0.24em; }
  .nav-wrap { padding: 0 16px; }
}

@media (min-width: 480px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .cat-img { height: 140px; }
}

@media (min-width: 640px) {
  :root { --header-h: 58px; }
  .container { width: min(1180px, calc(100% - 40px)); }
  .hero-carousel, .banner { width: min(1180px, calc(100% - 40px)); }
  .grid { gap: 16px; }

  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat-img { height: 150px; }
  .products { grid-template-columns: repeat(3, 1fr); }

  .section { padding: 44px 0; }
  .banner { padding: 36px 32px; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1.15fr 1.85fr 1fr; gap: 20px 32px; align-items: start; }

  .slide-copy { padding: 52px 36px 72px; }
}

@media (min-width: 900px) {
  :root { --header-h: 60px; }

  .menu-toggle, .nav-overlay, .nav { display: none !important; }
  .app-tabbar { display: flex !important; max-width: 470px; }
  .app-shell .site-footer { display: block; }
  .app-shell .toast { bottom: 100px; }

  .cats     { grid-template-columns: repeat(5, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); }
  .cat-img { height: 160px; }

  .section { padding: 60px 0; }
  .banner { padding: 44px; }

  /* Two-column layouts */
  .shop-layout { flex-direction: row; align-items: flex-start; gap: 28px; }
  .filters {
    flex-direction: column; align-items: stretch;
    flex: 0 0 230px; position: sticky; top: 92px;
    overflow: visible;
    background: #fff; border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow-sm);
  }
  .filters-heading { display: block; }
  .filters-close { display: none; }
  .filters-list {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    max-height: min(65vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0;
  }
  .filters-hint { display: none; }
  .filters h3, .filters strong { margin-bottom: 6px; }
  .filters a { box-shadow: none; background: transparent; border-radius: 12px; padding: 9px 12px; }
  .filters a:hover { background: var(--paper); }
  .shop-layout > div { flex: 1; min-width: 0; }

  .pdp-grid { flex-direction: row; align-items: flex-start; gap: 34px; }
  .pdp-gallery { flex: 1; position: sticky; top: 92px; }
  .pdp-buy { flex: 1; padding: 26px 24px; }
  .pdp-sticky { display: none; }

  .bag-layout { flex-direction: row; align-items: flex-start; gap: 22px; }
  .bag-list { flex: 1.5; min-width: 0; }
  .bag-sum { flex: 1; position: sticky; top: 92px; padding: 22px; }

  .checkout-grid { flex-direction: row; align-items: flex-start; gap: 24px; }
  .checkout-main { flex: 1.5; }
  .checkout-aside { flex: 1; position: sticky; top: 92px; }

  .account-page { flex-direction: row; gap: 24px; }
  .account-side { flex: 0 0 250px; position: sticky; top: 92px; }
  .account-nav { flex-direction: column; }
  .account-nav a { text-align: left; }
  .account-page > div { flex: 1; min-width: 0; }

  .insta-strip { flex-direction: row; gap: 36px; align-items: center; }
  .insta-img { max-height: 480px; flex: 1; }
  .insta-copy { flex: 1; }

  .review-grid { flex-direction: row; align-items: flex-start; }
  .review-grid > * { flex: 1; min-width: 0; }

  .admin-body { flex-direction: row; }
  .admin-side { width: 220px; flex-shrink: 0; }
  .form-row   { flex-direction: row; }
  .stats      { grid-template-columns: repeat(4, 1fr); }

  .slide-copy { padding: 80px 56px 86px; }
}

@media (min-width: 1200px) {
  .logo-text em { font-size: 20px; }
  .logo-text > span { font-size: 11px; letter-spacing: 0.28em; }
  .logo-img { width: 44px; height: 44px; }
  .nav-wrap { padding: 0 20px; }
}

@media (max-width: 720px) {
  :root { --section-gap: 14px; }
  .container { width: min(1180px, calc(100% - 20px)); }
  .section { padding: 18px 0; }
  .section-head { gap: 8px; margin-bottom: 10px; }
  .section-head h2 { font-size: clamp(18px, 5vw, 23px); }
  .hero-carousel { width: calc(100% - 20px); border-radius: 20px; }
  .slide-copy { display: flex; height: 100%; flex-direction: column; justify-content: center; padding: 10px 14px 38px; }
  .slide-copy .hero-kicker { margin-bottom: 5px; font-size: 8px; }
  .slide-copy h1 { margin-bottom: 5px; font-size: clamp(20px, 6.5vw, 34px); }
  .slide-copy p { max-width: 72%; margin-bottom: 7px; font-size: 10px; line-height: 1.3; }
  .slide-copy .btn { min-height: 32px; align-self: flex-start; padding: 6px 10px; font-size: 10px; }
  .carousel-btn { bottom: 8px; width: 28px; height: 28px; font-size: 16px; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { left: 44px; }
  .carousel-dots { bottom: 18px; right: 10px; }
  .trust-row { gap: 6px; padding: 8px 0 0; }
  .trust-row span { padding: 7px 10px; font-size: 11px; }
  .grid { gap: 8px; }
  .cat-card { padding: 6px 6px 8px; border-radius: 16px; }
  .cat-img { height: clamp(76px, 25vw, 104px); border-radius: 12px; }
  .cat-card span { padding: 7px 6px 1px; font-size: 9px; }
  .cat-card strong { padding: 0 6px; font-size: 12px; line-height: 1.25; }
  .product-card { padding: 6px; border-radius: 16px; }
  .product-card .card-link { border-radius: 12px; }
  .product-card .meta { gap: 3px; padding: 8px 2px 2px; }
  .product-card h3 { font-size: 12px; }
  .price { font-size: 14px; }
  .compare { font-size: 10px; }
  .card-buy .btn { min-height: 40px; padding: 8px 8px; font-size: 11px; border-radius: 11px; }
  .like-form { top: 8px; right: 8px; }
  .like-btn { min-width: 36px; min-height: 36px; justify-content: center; padding: 5px 8px; }
  .banner {
    width: calc(100% - 20px);
    gap: 10px;
    margin: 8px auto;
    padding: 16px 14px;
    border-radius: 18px;
  }
  .banner h2 { font-size: clamp(19px, 5vw, 24px) !important; }
  .banner p { font-size: 12px; line-height: 1.45; }
  .banner .btn { min-height: 42px; padding: 9px 14px; font-size: 12px; }
  .shop-layout,
  .checkout-grid,
  .account-page {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 18px;
  }
  .shop-layout {
    display: block;
  }
  .shop-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .shop-results-heading h1 { font-size: clamp(20px, 5vw, 26px); }
  .shop-results-heading > div > p { margin: 0; }
  .shop-results-heading .filters-open { display: inline-flex; flex: 0 0 auto; }
  .shop-layout > .filters {
    position: fixed;
    z-index: 310;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    max-height: none;
    align-items: stretch;
    gap: 12px;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 18px 0 0 18px;
    box-shadow: -12px 0 36px rgba(45, 59, 54, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
  }
  .shop-layout > .filters.is-open { transform: translateX(0); visibility: visible; }
  .filters-heading {
    flex: 0 0 auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .filters h3 {
    width: auto;
    font-size: 14px;
    letter-spacing: .06em;
  }
  .filters-close { display: inline-flex; }
  .filters-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 309;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(26, 34, 30, .42);
  }
  body.shop-filters-open { overflow: hidden; }
  .filters-list {
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0 2px 16px;
  }
  .filters-list a {
    flex: 0 0 auto;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 13px;
    text-align: left;
    white-space: normal;
  }
  .cart-page { padding: 10px 0 18px; }
  .bag-head { gap: 7px; margin-bottom: 10px; }
  .bag-count { padding: 4px 8px; font-size: 11px; }
  .bag-layout,
  .bag-list { gap: 8px; }
  .bag-item { gap: 9px; padding: 9px; border-radius: 16px; }
  .bag-thumb { width: 72px; border-radius: 12px; }
  .bag-info { gap: 5px; }
  .bag-row { gap: 6px; }
  .bag-name { font-size: 13px; }
  .bag-chip { padding: 3px 7px; font-size: 10px; }
  .qty-stepper button { width: 30px; height: 30px; }
  .bag-sum { padding: 12px; border-radius: 16px; }
  .bag-sum h2 { margin-bottom: 8px; font-size: 16px; }
  .sum-row { padding: 5px 0; font-size: 12px; }
  .sum-row.total { padding-top: 9px; font-size: 13px; }
  .sum-row.total b { font-size: 18px; }
  .sum-note { margin-top: 7px; font-size: 11px; }
  .bag-empty { padding: 24px 14px; border-radius: 18px; }
  .bag-empty-art { width: 56px; height: 56px; margin-bottom: 10px; border-radius: 18px; font-size: 25px; }
  .bag-empty p { margin-bottom: 12px; font-size: 12px; }
  .checkout-grid { gap: 10px; }
  .checkout-main { gap: 8px; }
  .checkout-wizard { padding: 14px 11px; }
  .checkout-progress li { justify-content: center; gap: 5px; padding: 7px 4px; font-size: 10px; }
  .checkout-progress li > span { flex-basis: 21px; width: 21px; height: 21px; font-size: 10px; }
  .checkout-review-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 7px; }
  .checkout-review-item img { width: 48px; height: 48px; }
  .checkout-review-item strong { font-size: 11px; }
  .checkout-review-item > b { font-size: 11px; }
  .checkout-panel-heading { margin-bottom: 12px; }
  .checkout-step-actions { margin-top: 14px; }
  .checkout-step-actions .btn { flex: 1; min-width: 0; }
  .checkout-aside { padding: 12px; }
  .pdp { padding: 8px 0 18px; }
  .pdp-grid { gap: 10px; }
  .pdp-gallery .gallery-main { border-radius: 18px; }
  .pdp-buy { padding: 14px 12px; border-radius: 18px; }
  .pdp-buy h1 { margin: 2px 0 5px; font-size: 22px; }
  .pdp-rating { gap: 6px; margin-bottom: 6px; font-size: 12px; }
  .pdp-price { gap: 7px; margin-bottom: 8px; }
  .pdp-price .price { font-size: 23px; }
  .size-row, .qty-row { gap: 6px; margin: 9px 0; }
  .size-row label span { padding: 8px 12px; }
  .qty-row button { width: 40px; height: 40px; }
  .pdp-actions { gap: 7px; margin: 10px 0 6px; }
  .pdp-actions .btn { min-height: 44px; padding: 9px 10px; font-size: 12px; }
  .pdp-trust { gap: 5px; margin: 8px 0 6px; }
  .pdp-trust li { padding: 5px 8px; font-size: 10px; }
  .pdp-specs span { padding: 5px 8px; font-size: 11px; }
  .pdp-tabs { padding: 4px 0 18px; }
  .tab-bar { margin-bottom: 10px; padding: 3px; border-radius: 14px; }
  .tab-bar button { padding: 9px 10px; font-size: 12px; }
  .details-box { padding: 12px; border-radius: 16px; }
  .review-grid { gap: 10px; }
  .comment-card { padding: 11px 12px; margin-bottom: 7px; border-radius: 14px; }
  .comment-card p { font-size: 12px; }
  .pdp-sticky { gap: 8px; padding: 8px 9px 8px 12px; border-radius: 16px; }
  .pdp-sticky .price { font-size: 16px; }
  .pdp-sticky .btn { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .auth:not(.auth-page) { margin: 12px auto 18px; }
  .card { padding: 13px 11px; border-radius: 16px; }
  .card h1, .card h2 { margin-bottom: 8px; }
  .card h3 { margin: 12px 0 5px; }
  .card > p { margin: 6px 0; }
  .card > p:last-child,
  .card form > p:last-child { margin-bottom: 0; }
  .card form > p { margin: 7px 0 0; }
  .form-row { gap: 6px; }
  label { margin: 8px 0 4px; font-size: 11.5px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]),
  select,
  textarea {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }
  textarea { min-height: 76px; }
  input[type="file"] { min-height: 44px; padding: 7px; }
  label.check { min-height: 42px; margin: 7px 0; padding: 8px 10px; font-size: 12px; }
  .alert { padding: 8px 10px; margin-bottom: 9px; font-size: 12px; }
  .btn { min-height: 44px; padding: 10px 15px; font-size: 13px; }
  .btn.sm { min-height: 40px; padding: 8px 11px; font-size: 12px; }
  .search-bar { padding-bottom: 8px; }
  .search-bar form { gap: 6px; }
  .search-bar input[type="search"] { min-height: 44px; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
  .search-bar button[type="submit"] { height: 44px; padding: 0 13px; border-radius: 12px; }
  .site-footer { margin-top: 16px; padding-top: 20px; }
  .footer-grid { gap: 14px 10px; }
  .footer-cat-grid { column-gap: 12px; row-gap: 4px; }
  .footer-grid h4 { margin-bottom: 6px; font-size: 10px; }
  .footer-grid p,
  .footer-grid a { font-size: 12px; }
  .footer-grid p { margin: 4px 0; }
  .footer-grid a { margin-bottom: 5px; }
  .footer-logo { gap: 7px; margin-bottom: 6px; }
  .footer-logo-img { width: 34px; height: 34px; border-radius: 10px; }
  .copy { padding: 12px 8px; margin-top: 14px; font-size: 10px; }
  .more-sheet { padding: 8px 8px calc(64px + env(safe-area-inset-bottom)); }
  .more-sheet-card { padding: 10px 10px 8px; border-radius: 18px; }
  .more-sheet-card strong { padding: 2px 5px 6px; font-size: 10px; }
  .more-sheet-card a { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .more-sheet-card .btn { min-height: 40px; margin-top: 6px; }
  .app-tabbar { bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 16px); padding: 4px; border-radius: 20px; }
  .app-tabbar a, .app-tabbar .tab-more { gap: 3px; padding: 7px 2px 6px; font-size: 9px; }
  .app-tabbar svg { width: 19px; height: 19px; }
  .app-shell .site-footer { padding-bottom: 68px; }
  .app-shell .toast { bottom: 76px; padding: 9px 12px; font-size: 12px; }
  .account-page > div {
    display: grid;
    min-width: 0;
    gap: 9px;
    align-content: start;
  }
  .account-side { padding: 12px 10px; border-radius: 16px; }
  .account-side h2 { font-size: 17px; }
  .account-side p { font-size: 11px; }
  .avatar { width: 64px; height: 64px; margin-bottom: 7px; border-radius: 22px; }
  .account-nav { gap: 4px; margin-top: 7px; }
  .account-nav a { padding: 7px 9px; border-radius: 10px; font-size: 11px; }
  .account-form-card { padding: 12px 10px; }
  .account-summary-card { padding: 14px 11px; border-radius: 17px; }
  .account-summary-card .account-section-heading { gap: 7px; }
  .account-section-heading h1 { font-size: 23px; }
  .account-summary-card .account-section-heading .muted { font-size: 11px; }
  .account-edit-shortcut { min-height: 36px !important; padding: 7px 9px !important; }
  .account-details { margin-top: 14px; gap: 6px; }
  .account-details > div { grid-template-columns: minmax(78px, .34fr) minmax(0, 1fr); gap: 8px; padding: 9px 10px; border-radius: 11px; }
  .account-details dt { font-size: 9px; }
  .account-details dd { font-size: 12px; }
  .account-recommendation { gap: 6px; margin-top: 10px; padding: 9px 10px; font-size: 10px; }
  .account-address-summary { padding: 12px 10px; border-radius: 16px; }
  .account-address-summary .account-section-heading h2 { font-size: 16px; }
  .account-address-summary .account-section-heading .muted { font-size: 10px; }
  .account-address-summary .account-section-heading .btn { min-height: 36px; padding: 7px 8px; font-size: 10px; }
  .account-address-item { padding: 10px; }
  .account-address-empty { gap: 8px; padding: 9px; }
  .account-address-empty strong { font-size: 11px; }
  .account-address-empty small { font-size: 10px; }
  .account-form-card > p.muted { font-size: 11px; }
  .account-form-card .form-row { gap: 6px; }
  .saved-address-card { padding: 11px 10px; margin-bottom: 8px; }
  .saved-address-card > p { margin: 6px 0; font-size: 12px; line-height: 1.45; }
  .saved-address-actions { gap: 5px; }
  .saved-address-actions .btn { min-height: 38px; padding: 7px 9px; font-size: 11px; }
  .wallet-hero { padding: 14px 12px 15px; border-radius: 16px; }
  .wallet-balance { gap: 7px; margin: 5px 0 2px; }
  .wallet-balance i { font-size: 24px; }
  .wallet-balance strong { font-size: 32px; }
  .wallet-hero p { margin-bottom: 10px; font-size: 12px; }
  .wallet-stats { gap: 6px; margin-bottom: 8px; }
  .wallet-stat { padding: 9px; border-radius: 13px; }
  .wallet-stat b { font-size: 19px; }
  .refer-code { gap: 6px; padding: 9px 10px; margin-bottom: 8px; }
  .coin-list li { gap: 8px; padding: 8px 0; }
  .coin-dot { width: 30px; height: 30px; border-radius: 10px; }
  .coin-info strong { font-size: 12px; }
  .coin-info span { font-size: 10px; }
  .coin-amt { font-size: 13px; }
  .order-card { padding: 15px; margin-bottom: 12px; border-radius: 17px; }
  .order-card:hover { transform: none; }
  .order-hero { gap: 8px; padding-bottom: 12px; }
  .order-id > strong { font-size: 13px; }
  .order-badges { gap: 3px; }
  .order-badges .badge { padding: 4px 7px; font-size: 9px; }
  .order-summary { grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; }
  .order-total strong { font-size: 21px; }
  .order-eta { min-width: 0; padding: 8px 10px; }
  .order-eta strong { font-size: 11px; }
  .order-track { margin: 15px 0 12px; }
  .order-track li { font-size: 9px; }
  .order-track li::before { margin-bottom: 4px; }
  .order-track li:not(:last-child)::after { top: 5px; }
  .order-actions { justify-content: stretch; }
  .order-invoice-btn { width: 100%; }
  .payment-message { padding: 16px 0; }
  .product-card .stock-pill { padding: 4px 7px; font-size: 9px; }
}

.checkout-location-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin: 10px 0 14px;
}
.checkout-location-tools a { color: #526e45; font-size: 13px; font-weight: 600; }
.checkout-location-tools small { flex-basis: 100%; }
.checkout-policy-note,
.order-delivery-otp,
.order-return-item {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid rgba(122, 154, 107, .2);
  border-radius: 14px;
  background: #f7f9f4;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.order-delivery-otp { background: #fff9e9; border-color: #efdfb5; }
.order-delivery-otp strong { font-size: 18px; letter-spacing: .12em; }
.order-delivery-otp span,
.order-return-item .muted { color: var(--mute); }
.order-return-form { display: grid; gap: 8px; }
.order-return-form label { margin: 2px 0; }
.support-page { padding-top: 28px; padding-bottom: 36px; }
.support-intro { margin-bottom: 20px; }
.support-intro h1 { margin: 4px 0; }
.support-intro p { max-width: 680px; color: var(--mute); }
.support-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.support-policy-grid .card { margin: 0; }
.support-policy-grid h2,
.support-form-card h2 { margin: 0 0 8px; font-size: 18px; }
.support-policy-grid p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.6; }
.support-form-card { margin-top: 16px; }

@media (max-width: 600px) {
  .support-policy-grid { grid-template-columns: 1fr; }
  .checkout-location-tools { align-items: flex-start; }
  .checkout-location-tools .btn { min-height: 42px; }
  .order-delivery-otp strong { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


.footer-logo-text {
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.footer-logo-text strong { color: #1d85ff; }
.footer-logo-text em { color: #56a3ff; font-style: normal; }
