/* ============================================================
   BaduMart.com — Ceylon Trading House
   Palette: Sri Lanka Flag — crimson #8D153A · gold #F5A800 · saffron #F36C21 · green #1A5C38
   Type: Fraunces (display) · Plus Jakarta Sans (body)
   Mobile-first: base styles target phones, min-width queries scale up.
   ============================================================ */

:root {
  /* Brand */
  --garnet: #8D153A;          /* Sri Lanka flag crimson */
  --garnet-deep: #5E0E28;
  --garnet-soft: #A62547;
  --garnet-50: #FBEFF2;
  --turmeric: #F5A800;        /* Sri Lanka flag gold */
  --turmeric-bright: #FFB800;
  --turmeric-50: #FFF6DE;
  --saffron: #F36C21;         /* Sri Lanka flag saffron */
  --lagoon: #1A5C38;          /* Sri Lanka flag green */
  --lagoon-soft: #22734A;
  --lagoon-50: #E8F3EC;

  /* Neutrals (warm) */
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F5EFE6;
  --sand: #F8F1E6;
  --ink: #1D1316;
  --ink-2: #4E3F43;
  --ink-soft: #7C6A6E;
  --line: #ECE2D5;
  --line-strong: #DDCDB9;

  --danger: #B3372E;
  --danger-50: #FBECEA;
  --ok: #2E7D4F;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 999px;
  --shadow-xs: 0 1px 2px rgba(46, 10, 20, .06);
  --shadow-soft: 0 1px 2px rgba(46, 10, 20, .05), 0 4px 16px rgba(46, 10, 20, .06);
  --shadow: 0 2px 6px rgba(46, 10, 20, .06), 0 16px 40px rgba(46, 10, 20, .12);
  --ring: 0 0 0 4px rgba(245, 168, 0, .28);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --gutter: 16px;
  --header-h: 64px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); }
body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lagoon); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--garnet); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 em, h2 em { font-style: italic; color: var(--turmeric-bright); }

code {
  font-size: .85em;
  background: var(--surface-2);
  padding: .1em .4em;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.centered { text-align: center; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }
.centered.lede, .centered .lede { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--turmeric);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 500;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }

/* ---------- Batik strip (Sri Lanka flag colour sequence) ---------- */
.batik-strip {
  height: 4px;
  background:
    repeating-linear-gradient(135deg,
      var(--turmeric) 0 10px,
      var(--garnet)   10px 22px,
      var(--saffron)  22px 28px,
      var(--lagoon)   28px 40px);
}
.batik-strip.light { opacity: .6; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--garnet-deep);
  color: #FFE7B0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: .45rem var(--gutter);
}
.topbar p { margin: 0; }
.topbar strong { color: var(--turmeric-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(46, 10, 20, .08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--garnet);
  flex: none;
}
.brand:hover { opacity: .9; }
/* mix-blend-mode:multiply hides the logo's white background on the light header */
.brand-logo {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply;
  transition: height .2s var(--ease);
}

.main-nav { display: none; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--pill);
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--garnet); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--garnet);
  color: #fff;
  border-radius: var(--pill);
  font-size: .68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
  box-shadow: 0 0 0 2px var(--surface);
}

.header-search { display: none; }

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-field .icon-sm {
  position: absolute;
  left: 14px;
  color: var(--ink-soft);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
  padding: 0 1rem 0 2.6rem;
  font: inherit;
  font-size: 1rem; /* ≥16px prevents iOS zoom on focus */
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search-field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--turmeric);
  box-shadow: var(--ring);
}

.mobile-search {
  padding: 0 var(--gutter) .75rem;
}
.mobile-search[hidden] { display: none; }

/* Account dropdown (desktop) */
.account-menu { position: relative; display: none; }
.account-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 44px;
  padding: 0 .9rem 0 .7rem;
  border-radius: var(--pill);
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--surface-2); color: var(--garnet); }
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  animation: pop-in .16s var(--ease);
}
.menu-pop a, .menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  border: 0;
  background: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--garnet); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.header-actions .header-signin { display: none; }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 19, 22, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 360px);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  padding-bottom: var(--safe-bottom);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .6rem .6rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.drawer-head .brand-logo { height: 44px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem var(--gutter) 1.5rem; }
.drawer-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.2rem 0 .4rem;
}
.drawer-label:first-child { margin-top: 0; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a, .drawer-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 .75rem;
  margin: 0 -.75rem;
  border-radius: var(--radius-sm);
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.drawer-links a:hover, .drawer-links button:hover { background: var(--surface-2); color: var(--garnet); }
.drawer-links a[aria-current="page"] { color: var(--garnet); background: var(--garnet-50); }
.drawer-links .icon-sm { color: var(--ink-soft); }
.drawer-links form { margin: 0; }
.drawer-links form button { width: calc(100% + 1.5rem); }

/* ---------- Bottom tab bar (phones) ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.bottom-nav a[aria-current="page"] { color: var(--garnet); }
.bottom-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--garnet);
}
.bottom-nav .icon-wrap { position: relative; }
.bottom-nav .cart-count { top: -6px; right: -12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  padding: .6rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-gold {
  background: var(--turmeric);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(245, 168, 0, .28);
}
.btn-gold:hover { background: var(--turmeric-bright); color: var(--ink); box-shadow: 0 8px 22px rgba(245, 168, 0, .36); }

.btn-primary { background: var(--garnet); color: #fff; box-shadow: 0 6px 16px rgba(141, 21, 58, .24); }
.btn-primary:hover { background: var(--garnet-soft); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--garnet);
  color: var(--garnet);
}
.btn-ghost:hover { background: var(--garnet); color: #fff; }

.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #93281f; color: #fff; }

.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 36px; padding: .35rem .95rem; font-size: .84rem; }

.link-button {
  border: 0;
  background: none;
  color: var(--danger);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  padding: .25rem 0;
}
.link-button:hover { text-decoration: underline; }

.inline-form { display: inline; margin: 0; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ---------- Toast ---------- */
.toast, .admin-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + var(--safe-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--ink);
  color: #fff;
  padding: .75rem .9rem .75rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 400;
  font-weight: 600;
  font-size: .92rem;
  animation: toast-in .3s var(--ease);
}
.has-bottom-nav .toast { bottom: calc(var(--bottom-nav-h) + .8rem + var(--safe-bottom)); }
.toast::before, .admin-toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--lagoon-soft);
  font-size: .8rem;
}
.toast a {
  color: var(--turmeric-bright);
  font-weight: 700;
  white-space: nowrap;
  padding: .25rem .5rem;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(243, 108, 33, .35), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(26, 92, 56, .35), transparent 60%),
    linear-gradient(135deg, var(--garnet) 0%, var(--garnet-deep) 100%);
  color: #FBEFE0;
}
.hero-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--turmeric-bright);
  opacity: .12;
}
.hero-inner {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  font-weight: 800;
  color: var(--turmeric-bright);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 184, 0, .3);
  border-radius: var(--pill);
  padding: .35rem .85rem;
  margin-bottom: 1.1rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 7.5vw, 3.8rem);
  font-weight: 600;
  margin-bottom: .9rem;
}
.hero-lede {
  font-size: 1.02rem;
  color: #F1DCC8;
  max-width: 50ch;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--garnet); border-color: #fff; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  font-weight: 600;
  color: #F1DCC8;
}
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .icon-sm { color: var(--turmeric-bright); }

.hero-stamp {
  display: none;
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(255, 184, 0, .7);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  color: var(--turmeric-bright);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: inset 0 0 0 10px rgba(255, 184, 0, .06);
}

.hero-compact .hero-inner { padding-top: 2.5rem; padding-bottom: 2.75rem; }

/* ---------- Sections ---------- */
.section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .35rem;
}
.section-title { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}

/* ---------- Category tiles ---------- */
/* Phones: horizontal swipe row; larger screens: grid */
.category-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter));
  padding: .25rem var(--gutter) 1rem;
  scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-tile {
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 170px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent, var(--turmeric));
}
.category-tile:nth-child(4n+2) { --accent: var(--garnet); }
.category-tile:nth-child(4n+3) { --accent: var(--saffron); }
.category-tile:nth-child(4n+4) { --accent: var(--lagoon); }
.category-tile h3 { margin: 0; font-size: 1.18rem; }
.category-tile p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  color: var(--ink);
}
.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--garnet);
  font-weight: 700;
  font-size: .85rem;
  margin-top: auto;
  padding-top: .6rem;
}
.category-tile:hover .tile-cta .icon-sm { transform: translateX(3px); }
.tile-cta .icon-sm { transition: transform .2s var(--ease); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-media {
  position: relative;
  display: block;
  background: var(--sand);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body {
  padding: .75rem .8rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}
.product-card-category {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .64rem;
  color: var(--lagoon);
  font-weight: 800;
  margin: 0;
}
.product-card-title {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a { color: var(--ink); }
.product-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.product-card-title a:hover { color: var(--garnet); }
.product-card-foot {
  margin-top: auto;
  padding-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.product-card-price { margin: 0; line-height: 1.25; }
.product-card-foot form { position: relative; z-index: 2; margin: 0; }
.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--turmeric);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 168, 0, .3);
  transition: transform .15s ease, background .15s ease;
}
.add-btn:hover { background: var(--turmeric-bright); transform: scale(1.06); }
.add-btn:active { transform: scale(.94); }

.price { font-weight: 800; color: var(--ink); font-size: 1rem; }
.compare-price {
  color: var(--ink-soft);
  font-size: .8rem;
  margin-left: .3rem;
  font-weight: 500;
}

.badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: var(--turmeric);
  color: var(--ink);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--pill);
  padding: .3em .75em;
  z-index: 2;
  box-shadow: var(--shadow-xs);
}
.badge-sale { background: var(--garnet); color: #fff; }
.badge-out { background: rgba(29, 19, 22, .78); color: #fff; }
.badge-sale + .badge-out { top: 2.3rem; }
.badge-mini {
  position: static;
  display: inline-block;
  margin-left: .4rem;
  box-shadow: none;
  vertical-align: middle;
}

/* ---------- Promise section ---------- */
.promise { background: var(--surface-2); }
.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.promise-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.promise-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--garnet-50);
  color: var(--garnet);
}
.promise-item:nth-child(2) .promise-icon { background: var(--turmeric-50); color: #9A6A00; }
.promise-item:nth-child(3) .promise-icon { background: var(--lagoon-50); color: var(--lagoon); }
.promise-grid h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: 0; margin-bottom: .25rem; }
.promise-grid p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }

/* ---------- Page headings ---------- */
.page-title { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 .25rem; }
.page-title .muted { font-family: var(--font-body); font-size: .5em; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.page-head { margin-bottom: 1.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
}

/* ---------- Shop layout ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.shop-sidebar { min-width: 0; }
.sidebar-title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}
/* Phones: swipeable chips */
.category-list {
  position: relative;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: .1rem var(--gutter) .4rem;
  scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }
.category-list a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.category-list a:hover { border-color: var(--garnet); color: var(--garnet); }
.category-list a.active {
  background: var(--garnet);
  border-color: var(--garnet);
  color: #fff;
}

.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.sort-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.sort-form select, .select {
  -webkit-appearance: none;
  appearance: none;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 0 2.3rem 0 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237C6A6E' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  cursor: pointer;
}

.search-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-size: .92rem;
  margin-bottom: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--garnet);
}
.empty-state h2 { font-size: 1.35rem; color: var(--ink); }
.empty-state .btn { margin-top: 1rem; }

.pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.pagination .page:hover { border-color: var(--garnet); color: var(--garnet); }
.pagination .page.current {
  background: var(--garnet);
  border-color: var(--garnet);
  color: #fff;
}

/* ---------- Product detail ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--ink-soft);
  padding-top: 1rem;
  white-space: nowrap;
  overflow: hidden;
}
.breadcrumbs a { color: var(--ink-soft); font-weight: 600; }
.breadcrumbs a:hover { color: var(--garnet); }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.breadcrumbs .sep { opacity: .5; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}
.product-detail-media {
  position: relative;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: start;
}
.product-detail-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-detail-media .badge { top: 1rem; left: 1rem; font-size: .72rem; }
.product-title { font-size: clamp(1.7rem, 5.5vw, 2.5rem); margin: .3rem 0 .5rem; }
.product-lede { color: var(--ink-2); font-size: 1.02rem; }
.product-detail-price { display: flex; align-items: baseline; gap: .4rem; margin: .5rem 0 .75rem; }
.product-detail-price .price { font-size: 1.7rem; }
.product-detail-price .compare-price { font-size: 1.05rem; }
.save-pill {
  background: var(--garnet-50);
  color: var(--garnet);
  border-radius: var(--pill);
  padding: .15rem .6rem;
  font-size: .78rem;
  font-weight: 800;
  margin-left: .3rem;
}
.stock-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .88rem;
}
.stock-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock-note.in { color: var(--ok); }
.stock-note.low { color: #A35F00; }
.stock-note.out { color: var(--danger); }

.add-to-cart-form {
  display: flex;
  gap: .75rem;
  align-items: stretch;
  margin: 1.25rem 0;
}
.add-to-cart-form .btn { flex: 1; min-height: 52px; font-size: 1rem; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  overflow: hidden;
  background: var(--surface);
  flex: none;
}
.qty-btn {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  width: 44px;
  height: 50px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.qty-btn:hover { background: var(--surface-2); color: var(--garnet); }
.qty-control input {
  width: 2.6rem;
  border: 0;
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  background: transparent;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-control input:focus { outline: none; }
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control.qty-sm .qty-btn { width: 36px; height: 38px; font-size: 1.1rem; }
.qty-control.qty-sm input { width: 2.2rem; font-size: 1rem; }

.perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: .6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.perks li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.perks .icon-sm { color: var(--lagoon); }

.product-description { color: var(--ink-2); line-height: 1.75; }
.product-description h2 { font-size: 1.2rem; }

/* ---------- Cart & summaries ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.cart-lines { display: flex; flex-direction: column; gap: .75rem; }
.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas:
    "media info"
    "media controls";
  column-gap: .9rem;
  row-gap: .6rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem;
  box-shadow: var(--shadow-xs);
}
.cart-line-media {
  grid-area: media;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sand);
}
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { grid-area: info; min-width: 0; }
.cart-line-info h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .1rem; }
.cart-line-info h3 a { color: var(--ink); }
.cart-line-info h3 a:hover { color: var(--garnet); }
.cart-line-info p { margin: 0; font-size: .85rem; }
.cart-line-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.cart-line-controls form { margin: 0; }
.cart-line-total { font-weight: 800; font-size: 1.02rem; margin: 0; }
.remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.remove-btn:hover { background: var(--danger-50); color: var(--danger); }
.cart-line-end { display: flex; align-items: center; gap: .25rem; }

.cart-summary, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.cart-summary h2, .form-card h2 { font-size: 1.25rem; margin-top: 0; }
.cart-summary .btn + .btn { margin-top: .6rem; }

.summary-lines {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0 0 .75rem;
  border-bottom: 1px dashed var(--line-strong);
}
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  font-size: .92rem;
}
.summary-lines li span:first-child { color: var(--ink-2); }
.summary-lines li span:last-child { font-weight: 700; white-space: nowrap; }

.summary-dl { margin: 0 0 1rem; }
.summary-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  font-size: .95rem;
}
.summary-dl dt { color: var(--ink-soft); font-weight: 600; }
.summary-dl dd { margin: 0; font-weight: 700; }
.summary-dl .summary-total {
  border-top: 1px solid var(--line);
  margin-top: .5rem;
  padding-top: .8rem;
  font-size: 1.15rem;
}
.summary-dl .summary-total dt { color: var(--ink); font-weight: 800; }
.summary-dl .summary-total dd { font-weight: 800; }

.ship-progress { margin: 0 0 1.1rem; }
.ship-progress p { font-size: .85rem; color: var(--ink-2); margin-bottom: .45rem; }
.ship-progress-bar {
  height: 8px;
  border-radius: var(--pill);
  background: var(--surface-2);
  overflow: hidden;
}
.ship-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--turmeric), var(--saffron));
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

/* ---------- Forms ---------- */
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: .86rem;
  color: var(--ink-2);
  margin-bottom: .35rem;
}
.form-row input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  font-family: inherit;
  font-size: 1rem; /* ≥16px prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237C6A6E' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--turmeric);
  box-shadow: var(--ring);
}
.form-row input.input-validation-error, .form-row select.input-validation-error, .form-row textarea.input-validation-error {
  border-color: var(--danger);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: .9rem;
  padding: .6rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.form-row input[type="file"]::file-selector-button {
  border: 0;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem .9rem;
  margin-right: .8rem;
  cursor: pointer;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
.check-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
}
.check-row label { margin: 0; font-weight: 600; cursor: pointer; }
.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--garnet);
  cursor: pointer;
}
.form-error { color: var(--danger); font-weight: 600; margin-bottom: .8rem; }
.form-error:empty, .validation-summary-valid { display: none; }
.form-error ul { margin: 0; padding-left: 1.1rem; }
div.form-error:not(:empty):not(.validation-summary-valid) {
  background: var(--danger-50);
  border: 1px solid #F0C9C4;
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
}
.field-error { color: var(--danger); font-size: .82rem; font-weight: 600; display: block; margin-top: .3rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

.auth-wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.auth-form { max-width: 440px; margin: 0 auto; }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto .9rem;
  border-radius: 16px;
  background: var(--garnet-50);
  color: var(--garnet);
}
.auth-foot { text-align: center; margin-top: 1.1rem; font-size: .92rem; color: var(--ink-soft); }
.page-narrow { max-width: 600px; margin: 0 auto; }
.page-mid { max-width: 880px; margin: 0 auto; }
.block-title { font-size: 1.3rem; }
.step-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  margin: 0 0 .9rem;
}
.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--garnet);
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 800;
}
.checkout-step + .checkout-step { margin-top: 1.5rem; }
.checkout-summary { order: -1; }

/* ---------- Success ---------- */
.success-page { padding-top: 3rem; padding-bottom: 3.5rem; }
.success-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 0 10px var(--lagoon-50);
  animation: pop-in .4s var(--ease);
}
.success-page .form-card { margin: 1.75rem 0; }

/* ---------- Customer orders ---------- */
.orders-list { display: flex; flex-direction: column; gap: .75rem; }
.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main total"
    "status chev";
  align-items: center;
  gap: .35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.order-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.order-card-main { grid-area: main; min-width: 0; }
.order-card-main strong { font-size: 1rem; }
.order-card-main p { margin: 0; }
.order-card .status { grid-area: status; justify-self: start; }
.order-card-total { grid-area: total; font-weight: 800; text-align: right; }
.order-card .icon-sm { grid-area: chev; justify-self: end; color: var(--ink-soft); }

.order-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: var(--pill);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3em .8em;
  background: var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: #FBF0D6; color: #7A5B12; }
.status-paid { background: #DFF1E5; color: var(--ok); }
.status-processing { background: #E0ECF7; color: #1F5C8B; }
.status-shipped { background: #ECE5F7; color: #5B3E96; }
.status-delivered { background: #DFF1E5; color: var(--ok); }
.status-cancelled { background: #F8E0DD; color: var(--danger); }

.address-block { line-height: 1.75; color: var(--ink-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--garnet-deep);
  color: #E8D6BE;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.footer-about { grid-column: 1 / -1; }
.site-footer h3 {
  font-family: var(--font-body);
  color: var(--turmeric-bright);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.site-footer nav a { color: #E8D6BE; display: block; padding: .3rem 0; font-size: .92rem; }
.site-footer a:hover { color: var(--turmeric-bright); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}
.footer-brand em { color: var(--turmeric-bright); }
.footer-note { font-size: .9rem; max-width: 42ch; color: #D9C3A8; }
.footer-contact { margin-top: .75rem; font-size: .9rem; color: #D9C3A8; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-size: .8rem;
  text-align: center;
  color: #C9B393;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   About page
   ============================================================ */
.about-story { max-width: 70ch; margin: 0 auto; }
.about-story p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 1.1rem; }

.about-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.about-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-xs);
}
.about-step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--turmeric);
  display: block;
  line-height: 1;
  margin-bottom: .75rem;
}
.about-step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.about-step p { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; margin: 0; }

.cta-band {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(245, 168, 0, .18), transparent 70%),
    var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.25rem;
}
.cta-band .lede { margin: .5rem auto 1.4rem; }
.cta-band .button-row { justify-content: center; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-width: 0;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--garnet-50);
  color: var(--garnet);
  margin-bottom: .6rem;
}
.contact-card h3 { font-family: var(--font-body); font-size: .9rem; font-weight: 800; letter-spacing: 0; color: var(--ink); margin: 0 0 .2rem; }
.contact-card p, .contact-card a { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--garnet); }

.alert-success {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--lagoon-50);
  border: 1px solid #A9D5BA;
  color: var(--lagoon);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  margin: 1.25rem 0;
  font-weight: 600;
}
.alert-error {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--danger-50);
  border: 1px solid #E8B4AF;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  margin: 1.25rem 0;
  font-weight: 600;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: #F4F1EC; }
.admin-shell { min-height: 100vh; }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 60px;
  padding: 0 .5rem 0 .25rem;
  background: var(--garnet-deep);
  color: #fff;
}
.admin-topbar .icon-btn { color: #fff; }
.admin-topbar .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-topbar-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.admin-topbar-title em { color: var(--turmeric-bright); }
.admin-topbar .admin-label { margin: 0 0 0 auto; padding-right: .6rem; }

.admin-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 310;
  width: 264px;
  background: linear-gradient(180deg, var(--garnet-deep) 0%, #4A0B20 100%);
  color: #EAD9C2;
  display: flex;
  flex-direction: column;
  padding: 1rem .85rem;
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform .3s var(--ease), visibility .3s;
}
.admin-sidebar.is-open { transform: none; visibility: visible; box-shadow: var(--shadow); }
.admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 305;
  background: rgba(29, 19, 22, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.admin-backdrop.is-open { opacity: 1; visibility: visible; }

.admin-sidebar .brand { justify-content: center; margin-bottom: .25rem; }
/* screen blending lets the gold show through on the dark sidebar */
.admin-brand-logo { height: 92px; mix-blend-mode: screen; opacity: .95; }
.admin-label {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--turmeric-bright);
  text-align: center;
  margin-bottom: 1.4rem;
}
.admin-nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #EAD9C2;
  min-height: 44px;
  padding: 0 .85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .94rem;
}
.admin-nav a .icon-sm { opacity: .8; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a[aria-current="page"] {
  background: rgba(255, 184, 0, .14);
  color: var(--turmeric-bright);
  box-shadow: inset 3px 0 0 var(--turmeric-bright);
}
.admin-nav a[aria-current="page"] .icon-sm { opacity: 1; }
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.admin-sidebar-foot a, .admin-sidebar-foot .link-button {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 42px;
  padding: 0 .85rem;
  border-radius: 12px;
  color: #C9B393;
  font-size: .9rem;
  font-weight: 600;
  width: 100%;
  text-decoration: none;
}
.admin-sidebar-foot a:hover, .admin-sidebar-foot .link-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar-foot form { margin: 0; }

.admin-main { padding: 1.25rem var(--gutter) 3rem; min-width: 0; }
.admin-title { font-size: clamp(1.45rem, 4vw, 1.85rem); margin-bottom: .25rem; }
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.admin-head .admin-title { margin: 0; }
.admin-search {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.admin-search input {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 0 1rem;
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
}
.admin-search input:focus { outline: none; border-color: var(--turmeric); box-shadow: var(--ring); }
.admin-search .btn { min-height: 44px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid #E6DFD3;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}
.stat-card:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, var(--garnet), var(--garnet-deep)); border-color: transparent; }
.stat-card:first-child .stat-value { color: #fff; }
.stat-card:first-child .stat-label { color: #F1DCC8; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--garnet);
  margin: 0 0 .25rem;
  overflow-wrap: anywhere;
}
.stat-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.stat-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.1rem; }
.stat-row .stat-card { flex: 1 1 130px; }
.stat-row .stat-card:first-child { grid-column: auto; }

.admin-panel {
  background: var(--surface);
  border: 1px solid #E6DFD3;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
  min-width: 0;
}
.admin-panel h2 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: 0; margin: 0 0 .9rem; }
.admin-panel h2 + .admin-table, .admin-panel h2 + .table-wrap { margin-top: -.25rem; }
.admin-panel h2:not(:first-child) { margin-top: 1.5rem; }
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.admin-columns > .admin-panel { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid #E6DFD3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.admin-panel .table-wrap { border: 0; box-shadow: none; border-radius: 0; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.admin-table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #FAF7F2;
  border-bottom: 1px solid #E6DFD3;
  padding: .7rem .85rem;
  white-space: nowrap;
}
.admin-panel .admin-table th { background: transparent; padding-left: .25rem; padding-right: .25rem; }
.admin-table td {
  border-bottom: 1px solid #F0EBE2;
  padding: .7rem .85rem;
  vertical-align: middle;
}
.admin-panel .admin-table td { padding-left: .25rem; padding-right: .25rem; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tfoot td { border-top: 1px solid #E6DFD3; border-bottom: 0; }
.admin-table tbody tr { transition: background .12s ease; }
.admin-table tbody tr:hover td { background: #FCFAF6; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .warn { color: var(--danger); font-weight: 800; }
.admin-table .actions { white-space: nowrap; text-align: right; }
.admin-table .actions > * + * { margin-left: .4rem; }
.admin-table .thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--sand);
  border: 1px solid var(--line);
}
.admin-table a:not(.btn) { font-weight: 700; color: var(--garnet); }
.admin-table .mobile-thumb { display: none; }
.kv-table td:first-child { color: var(--ink-soft); font-weight: 700; width: 40%; }

.pill {
  display: inline-block;
  border-radius: var(--pill);
  padding: .2em .7em;
  font-size: .74rem;
  font-weight: 700;
  background: var(--lagoon-50);
  color: var(--lagoon);
}
.pill-muted { background: var(--surface-2); color: var(--ink-soft); }

/* Phones: list tables become stacked cards (labels come from data-label, set by site.js) */
@media (max-width: 759.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-wrap:has(.table-stack) { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .table-stack tbody { display: flex; flex-direction: column; gap: .65rem; }
  .table-stack tr {
    background: var(--surface);
    border: 1px solid #E6DFD3;
    border-radius: var(--radius);
    padding: .5rem .9rem;
    box-shadow: var(--shadow-xs);
  }
  .admin-panel .table-stack tr { box-shadow: none; }
  .table-stack tbody tr:hover td { background: transparent; }
  .table-stack td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: right !important;
    padding: .45rem 0 !important;
    border-bottom: 1px dashed #EEE7DC;
  }
  .table-stack td:last-child { border-bottom: 0; }
  .table-stack td::before {
    content: attr(data-label);
    flex: none;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: left;
  }
  .table-stack td[data-label=""]::before { display: none; }
  .table-stack td.cell-primary {
    justify-content: flex-start;
    text-align: left !important;
    font-size: 1rem;
    gap: .75rem;
  }
  .table-stack td.cell-primary::before { display: none; }
  .table-stack td.actions { justify-content: flex-end; padding-top: .7rem !important; }
  .table-stack td.actions::before { display: none; }
  .table-stack td.cell-thumb { display: none; }
  .table-stack .mobile-thumb { display: block; }
}

.admin-form { max-width: 760px; }
.admin-form .form-actions { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.form-section-title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.5rem 0 .75rem;
}
.form-section-title:first-child { margin-top: 0; }
.current-image { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; font-size: .82rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.current-image img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.toggle-group { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ============================================================
   Admin Orders — KPI chips
   ============================================================ */
.orders-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  width: 100%;
}
.kpi-item {
  background: var(--surface);
  border: 1px solid #E6DFD3;
  border-radius: 12px;
  padding: .65rem .9rem;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}
.kpi-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--garnet);
  line-height: 1.15;
}
.kpi-lbl {
  display: block;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-soft);
  margin-top: .15rem;
}
.kpi-warn { border-color: #F3D27A; background: #FFF9EA; }
.kpi-warn .kpi-num { color: #8A6300; }
.kpi-ok { border-color: #A9D5BA; background: #F0F8F3; }
.kpi-ok .kpi-num { color: var(--lagoon); }

/* ============================================================
   Admin Orders — Filter panel
   ============================================================ */
.orders-filter-panel {
  background: var(--surface);
  border: 1px solid #E6DFD3;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}
.orders-filter-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 52px;
  padding: 0 1.1rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.orders-filter-panel > summary::-webkit-details-marker { display: none; }
.orders-filter-panel > summary .icon-sm { transition: transform .2s ease; color: var(--ink-soft); }
.orders-filter-panel[open] > summary .icon-sm { transform: rotate(180deg); }
.orders-filter-panel form { padding: 0 1.1rem 1.1rem; }
.orders-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  align-items: end;
}
.filter-field-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.filter-wide, .filter-btns { grid-column: 1 / -1; }
.filter-field-group label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.filter-field-group input[type="search"],
.filter-field-group input[type="date"],
.filter-field-group select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 .8rem;
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  height: 44px;
}
.filter-field-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.2rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237C6A6E' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
.filter-field-group input:focus, .filter-field-group select:focus {
  outline: none;
  border-color: var(--turmeric);
  box-shadow: var(--ring);
}
.filter-btns { display: flex; gap: .5rem; }
.filter-btns .btn { flex: 1; min-height: 44px; }

.active-filters {
  display: flex;
  gap: .45rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.active-filters-label { font-size: .8rem; }
.filter-chip {
  background: var(--garnet-50);
  color: var(--garnet);
  border-radius: var(--pill);
  padding: .25rem .8rem;
  font-size: .78rem;
  font-weight: 700;
}

.orders-result-count { margin-bottom: .6rem; font-size: .9rem; }
.order-num-link { font-weight: 800; color: var(--garnet); }
.order-num-link:hover { text-decoration: underline; }
.row-name { font-weight: 700; }
.row-sub { font-size: .78rem; color: var(--ink-soft); }
.orders-total { font-weight: 800; }
tr.is-clickable { cursor: pointer; }

.status-form {
  display: flex;
  gap: .6rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.status-form select { flex: 1 1 160px; }

/* ============================================================
   Breakpoints (mobile-first)
   ============================================================ */

/* ---------- ≥ 480px: large phones ---------- */
@media (min-width: 480px) {
  .product-grid { gap: 1rem; }
  .product-card-body { padding: .9rem 1rem 1rem; }
  .product-card-title { font-size: .98rem; }
  .category-grid { grid-auto-columns: 46%; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card:first-child { grid-column: span 3; }
}

/* ---------- ≥ 760px: tablets ---------- */
@media (min-width: 760px) {
  :root { --gutter: 24px; --header-h: 76px; }

  body.has-bottom-nav { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .has-bottom-nav .toast { bottom: 1.5rem; }

  .topbar { font-size: .78rem; }
  .brand-logo { height: 60px; }
  .site-header.is-scrolled .brand-logo { height: 52px; }

  .header-search { display: block; width: 240px; }
  .search-toggle { display: none; }
  .mobile-search { display: none !important; }
  .account-menu { display: block; }
  .header-actions .header-signin { display: inline-flex; }

  .hero-inner { padding-top: 5rem; padding-bottom: 5.5rem; }
  .hero-lede { font-size: 1.12rem; }
  .hero-compact .hero-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  .section { padding-top: 4rem; padding-bottom: 4rem; }

  .category-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 1.1rem;
  }

  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .product-card-body { padding: 1rem 1.1rem 1.15rem; }
  .price { font-size: 1.08rem; }

  .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .promise-item { flex-direction: column; padding: 1.5rem; }
  .about-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

  .cart-line {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-areas: "media info controls";
    align-items: center;
    padding: 1rem;
    column-gap: 1.25rem;
  }
  .cart-line-media { width: 96px; height: 96px; }
  .cart-line-controls { gap: 1.25rem; flex-wrap: nowrap; }
  .cart-line-total { min-width: 5.5em; text-align: right; }

  .cart-summary, .form-card { padding: 1.6rem; }

  .contact-info { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding-top: 3.5rem; }
  .footer-about { grid-column: auto; }

  .order-card {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "main status total chev";
    padding: 1.1rem 1.4rem;
  }
  .order-card-total { min-width: 6em; }

  .orders-kpi { display: flex; width: auto; }
  .kpi-item { text-align: center; min-width: 96px; }
  .orders-filter-grid { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
  .filter-wide, .filter-btns { grid-column: auto; }
  .filter-btns .btn { flex: none; }

  .admin-main { padding: 1.75rem 2rem 3rem; }
  .admin-panel { padding: 1.4rem 1.5rem; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .stat-card:first-child { grid-column: auto; }
}

/* ---------- ≥ 1024px: desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 84px; }

  .nav-toggle { display: none; }
  .brand-logo { height: 68px; }
  .site-header.is-scrolled .brand-logo { height: 56px; }
  .header-inner { gap: 1.5rem; }
  .main-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
  }
  .main-nav a {
    position: relative;
    color: var(--ink-2);
    font-weight: 700;
    font-size: .95rem;
    padding: .55rem .85rem;
    border-radius: var(--pill);
  }
  .main-nav a:hover { color: var(--garnet); background: var(--surface-2); }
  .main-nav a[aria-current="page"] { color: var(--garnet); }
  .main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    margin-left: -9px;
    border-radius: 3px;
    background: var(--turmeric);
  }
  .header-search { width: 260px; }

  .hero-stamp { display: flex; }
  .hero-content { max-width: 620px; }

  .shop-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; }
  .shop-sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .category-list {
    flex-direction: column;
    gap: .15rem;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .category-list a {
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0 .9rem;
    font-size: .94rem;
  }
  .category-list a:hover { background: var(--surface); color: var(--garnet); }
  .category-list a.active { background: var(--garnet); color: #fff; }

  .product-detail { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; padding-top: 1.5rem; padding-bottom: 4rem; }
  .product-detail-media { position: sticky; top: calc(var(--header-h) + 24px); }
  .add-to-cart-form .btn { flex: 0 1 260px; }

  .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; }
  .cart-summary.sticky { position: sticky; top: calc(var(--header-h) + 24px); }
  .checkout-summary { order: 0; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; }
  .contact-info { grid-template-columns: 1fr; }

  /* Admin: persistent sidebar */
  .admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .admin-topbar, .admin-backdrop { display: none; }
  .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: auto;
    transform: none;
    visibility: visible;
    z-index: auto;
  }
  .admin-main { padding: 2rem 2.5rem 3rem; }
  .admin-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

/* ---------- ≥ 1200px: wide ---------- */
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .shop-main .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   Destination & shipping: header bar, start page, cart summary
   ============================================================ */
.ship-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.ship-bar-inner {
  display: flex;
  align-items: center;
  gap: .4rem .75rem;
  min-height: 42px;
}
.bm-dest {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  min-height: 40px;
}
.bm-dest:hover { color: var(--garnet); }
/* Windows has no flag emoji, so flags use Noto Color Emoji */
.flag, .bm-flag, .country-flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.bm-flag { font-size: 1.1rem; line-height: 1; }
.bm-name, .bm-hide-sm { display: none; }
.bm-sep { color: var(--ink-soft); }
.bm-edit { width: 14px; height: 14px; color: var(--ink-soft); }
.bm-code { font-weight: 800; }
.bm-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .4rem;
  margin: 0 0 0 auto;
  color: var(--ink-2);
  text-align: right;
  justify-content: flex-end;
  line-height: 1.35;
}
.bm-text strong { color: var(--ink); }
.bm-warn { color: var(--danger); font-weight: 600; }
.bm-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: var(--pill);
  font-weight: 600;
  white-space: nowrap;
}
.bm-pill .icon-sm { width: 15px; height: 15px; }
.bm-pill strong { font-size: 1.02em; font-weight: 800; }
.bm-pill small { font-size: .78em; font-weight: 700; opacity: .8; }
.bm-pill-weight { background: var(--lagoon-50); color: var(--lagoon); border: 1px solid #A9D5BA; }
.bm-pill-weight strong { color: var(--lagoon); }
.bm-pill-ship { background: var(--turmeric-50); color: #7A4A00; border: 1px solid #F3D27A; }
.bm-pill-ship strong { color: var(--garnet); }
.ship-bar-inner .bm-text { gap: .35rem; padding: .35rem 0; }
.ship-bar.is-prompt { background: var(--turmeric-50); border-top-color: #F3D27A; }
.ship-bar.is-prompt .bm-text {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 1;
  white-space: normal;
  font-weight: 600;
  line-height: 1.35;
}
.ship-bar.is-prompt .btn { flex: none; min-height: 34px; }

/* Start page */
.start-head { max-width: 680px; }
.start-form { display: flex; flex-direction: column; gap: 1.75rem; }
.start-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.start-step legend { padding: 0; }
.choice-card {
  position: relative;
  display: flex;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.choice-card:hover { border-color: var(--line-strong); }
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card:has(input:checked) {
  border-color: var(--garnet);
  box-shadow: 0 0 0 3px rgba(141, 21, 58, .12), var(--shadow-soft);
}
.choice-card:has(input:focus-visible) { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.choice-card.is-disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.country-card {
  align-items: center;
  gap: .6rem;
  padding: .7rem .8rem;
  min-height: 56px;
}
.country-flag { font-size: 1.6rem; line-height: 1; flex: none; }
.country-name { font-weight: 700; font-size: .92rem; line-height: 1.25; flex: 1; min-width: 0; }
.country-cur { font-size: .7rem; font-weight: 800; color: var(--ink-soft); letter-spacing: .04em; }

.country-ship { margin-top: .15rem; font-size: .74rem; font-weight: 700; color: var(--lagoon); line-height: 1.3; }
.country-ship.is-unavailable { color: var(--danger); font-weight: 600; }

.start-summary {
  position: sticky;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
}
.start-summary-text {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0;
  font-size: .82rem;
  color: var(--ink-2);
}
.start-summary-text[hidden] { display: none; }
.start-summary .btn { width: 100%; }
.start-summary .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Product fit & weight */
.product-card-weight { margin: 0; font-size: .74rem; font-weight: 600; color: var(--ink-soft); }
.product-card-note { margin: .35rem 0 0; font-size: .72rem; font-weight: 700; color: var(--danger); }
.weight-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .9rem;
  color: var(--ink-2);
  margin: 0 0 .75rem;
}
.weight-note .icon-sm { color: var(--lagoon); }
.price-note { margin: -.4rem 0 .75rem; }

/* Cart & checkout */
.toast.toast-warn::before { content: "!"; background: var(--saffron); font-weight: 800; }
.alert-warn {
  background: #FFF4E5;
  border: 1px solid #F5C58A;
  color: #7A3E00;
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .92rem;
}
.cart-line-total small { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); text-align: right; }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.summary-ship {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  margin-bottom: 1rem;
  font-size: .85rem;
}
.summary-ship label { display: block; font-weight: 700; margin-bottom: .4rem; }
.summary-ship .select { width: 100%; height: 40px; font-size: .92rem; }
.summary-ship-weight { margin: .55rem 0 0; color: var(--ink-2); }
.ship-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .7rem; }
.ship-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--lagoon-50);
  border: 1px solid #A9D5BA;
  color: var(--lagoon);
}
.ship-stat-label { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ship-stat-value { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; color: var(--lagoon); }
.ship-stat-cost { background: var(--turmeric-50); border-color: #F3D27A; color: #7A4A00; }
.ship-stat-cost .ship-stat-value { color: var(--garnet); }
[data-live="cart"][aria-busy="true"] .ship-stat-value { opacity: .45; transition: opacity .15s; }

/* Brief pop + glow when the cart weight or shipping cost changes */
@keyframes lk-value-flash {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(245, 168, 0, .55); }
  25%  { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(245, 168, 0, .35); }
  60%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(245, 168, 0, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(245, 168, 0, 0); }
}
@keyframes lk-value-text {
  0%, 100% { filter: none; }
  30%      { filter: brightness(1.25) saturate(1.3); }
}
.bm-pill.is-changed, .ship-stat.is-changed { animation: lk-value-flash .9s var(--ease); }
.is-changed [data-highlight] { animation: lk-value-text .9s var(--ease); }
[data-live="cart"][aria-busy="true"] .cart-summary dd,
[data-live="cart"][aria-busy="true"] .cart-line-total { opacity: .45; transition: opacity .15s; }
.summary-dl dt small { font-weight: 500; color: var(--ink-soft); }
.charge-note {
  font-size: .82rem;
  color: var(--ink-2);
  background: var(--lagoon-50);
  border-radius: var(--radius-sm);
  padding: .6rem .75rem;
  margin: -.25rem 0 1rem;
}
.cart-summary .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.locked-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  padding: .6rem .9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight: 600;
}
.locked-field a { font-size: .85rem; font-weight: 700; }

/* Admin EMS rate editor */
.rate-table input {
  width: 100%;
  min-width: 80px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 .6rem;
  font: inherit;
  font-size: 1rem;
  text-align: right;
}
.rate-table td { padding-top: .3rem !important; padding-bottom: .3rem !important; }

@media (min-width: 480px) {
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bm-name { display: inline; }
}
@media (min-width: 760px) {
  .ship-bar { font-size: .86rem; }
  .bm-hide-sm { display: inline; }
  .country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .start-summary { bottom: 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .start-summary .btn { width: auto; flex: none; }
}
@media (min-width: 1024px) {
  .country-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Hover-only effects shouldn't stick on touch screens */
@media (hover: none) {
  .product-card:hover, .category-tile:hover, .order-card:hover, .btn:hover { transform: none; }
  .product-card:hover .product-card-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Storefront at catalog scale: mega menu, aisles, rails, pager
   ============================================================ */

/* ---------- Hero: stats + product collage ---------- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #E3C6B2;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.hero-collage { display: none; }
.hero-polaroid {
  position: absolute;
  margin: 0;
  width: 210px;
  padding: 10px 10px 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(20, 4, 10, .38);
  transition: transform .5s var(--ease);
}
.hero-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sand);
}
.hero-polaroid figcaption {
  padding: .55rem .2rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-polaroid-1 { top: 0; left: 30px; transform: rotate(-7deg); z-index: 1; }
.hero-polaroid-2 { top: 60px; right: 0; transform: rotate(6deg); z-index: 2; }
.hero-polaroid-3 { bottom: 0; left: 90px; transform: rotate(-2deg); z-index: 3; }
.hero-collage:hover .hero-polaroid-1 { transform: rotate(-10deg) translate(-8px, -6px); }
.hero-collage:hover .hero-polaroid-2 { transform: rotate(9deg) translate(8px, -4px); }
.hero-collage:hover .hero-polaroid-3 { transform: rotate(0deg) translateY(6px); }
.hero-seal {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 40px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--turmeric);
  color: var(--garnet-deep);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 0 0 6px rgba(245, 168, 0, .25), 0 14px 30px rgba(20, 4, 10, .35);
  transform: rotate(12deg);
}

/* ---------- How it works band ---------- */
.how-it-works {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: grid;
  gap: 1rem;
}
.how-steps li { display: flex; align-items: flex-start; gap: .85rem; }
.how-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--garnet-50);
  color: var(--garnet);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.how-steps li:nth-child(2) .how-num { background: var(--turmeric-50); color: #9A6A00; }
.how-steps li:nth-child(3) .how-num { background: var(--lagoon-50); color: var(--lagoon); }
.how-steps h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 800; letter-spacing: 0; margin: .1rem 0; }
.how-steps p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }

.section-flush { padding-top: 0; }

/* ---------- Aisle tiles (home) ---------- */
/* Phones: swipe row; larger screens: grid */
.aisle-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 38%;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter));
  padding: .25rem var(--gutter) 1rem;
  scrollbar-width: none;
}
.aisle-grid::-webkit-scrollbar { display: none; }
.aisle-tile {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .15rem;
  padding: .85rem .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
.aisle-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.aisle-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: .55rem;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.aisle-media img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.aisle-tile:hover .aisle-media img { transform: scale(1.07); }
.aisle-name { font-weight: 800; font-size: .9rem; line-height: 1.3; }
.aisle-count { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.aisle-tile-all { background: var(--garnet); border-color: var(--garnet); color: #fff; }
.aisle-tile-all:hover { color: #fff; border-color: var(--garnet-soft); background: var(--garnet-soft); }
.aisle-tile-all .aisle-media { background: rgba(255, 255, 255, .1); color: var(--turmeric-bright); }
.aisle-tile-all .aisle-media .icon { width: 40%; height: 40%; }
.aisle-tile-all .aisle-count { color: #F1DCC8; }

/* ---------- Product rails (home) ---------- */
.rail-head-actions { display: flex; align-items: center; gap: .4rem; }
.rail-head-actions .section-link { margin-right: .4rem; }
.rail-btn {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.rail-btn:hover:not(:disabled) { border-color: var(--garnet); color: var(--garnet); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter));
  padding: .25rem var(--gutter) 1.25rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail > .product-card { scroll-snap-align: start; }

/* ---------- Categories mega menu (desktop header) ---------- */
.mega-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--ink-2);
  font-weight: 700;
  font-size: .95rem;
  padding: .55rem .7rem .55rem .85rem;
  border-radius: var(--pill);
  cursor: pointer;
}
.mega-menu > summary::-webkit-details-marker { display: none; }
.mega-menu > summary:hover, .mega-menu[open] > summary { color: var(--garnet); background: var(--surface-2); }
.mega-menu > summary.is-active { color: var(--garnet); }
.mega-caret { transition: transform .2s var(--ease); }
.mega-menu[open] .mega-caret { transform: rotate(180deg); }
/* Anchored to the sticky header, so the panel spans the content width */
.mega-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  width: min(1176px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem 1.25rem;
  z-index: 120;
  animation: pop-in .18s var(--ease);
}
.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 .35rem .8rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.mega-head p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.mega-head a { font-weight: 700; }
.mega-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .15rem .5rem;
}
.main-nav .mega-grid a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .4rem .45rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
}
.main-nav .mega-grid a:hover { background: var(--surface-2); color: var(--garnet); }
.main-nav .mega-grid a[aria-current="page"] { background: var(--garnet-50); color: var(--garnet); }
.main-nav .mega-grid a[aria-current="page"]::after { display: none; }
.mega-thumb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mega-thumb img { width: 86%; height: 86%; object-fit: contain; }
.mega-name { flex: 1; min-width: 0; line-height: 1.25; }
.mega-count { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Counts in drawer + shop sidebar ---------- */
.drawer-count, .cat-count {
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.category-list a .cat-count { margin-left: .4rem; }
.category-list a.active .cat-count { color: rgba(255, 255, 255, .75); }
.shop-count { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.shop-count strong { color: var(--ink); }

/* ---------- Windowed pagination ---------- */
.pagination { align-items: center; }
.page-gap { min-width: 24px; text-align: center; color: var(--ink-soft); font-weight: 700; }
.pagination .page-step { gap: .25rem; padding: 0 .9rem; }
.page-step-label { display: none; }

/* ---------- Scroll reveal (only when JS adds .reveal; content stays visible without it) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 480px) {
  .aisle-grid { grid-auto-columns: 28%; }
  .product-rail { grid-auto-columns: 40%; }
  .page-step-label { display: inline; }
}

@media (min-width: 760px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.5rem 0; }
  .aisle-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 1rem;
  }
  .product-rail { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); gap: 1.25rem; margin: 0; padding: .25rem 0 1.25rem; }
  .rail-btn { display: grid; }
}

@media (min-width: 1024px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 2rem; }
  .hero-collage { display: block; position: relative; height: 420px; }
  .aisle-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .product-rail { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); }

  /* Long aisle lists scroll inside the sticky sidebar instead of running off-screen */
  .shop-sidebar {
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: .25rem;
  }
  .category-list a { justify-content: space-between; min-height: 36px; font-size: .9rem; }
}

@media (min-width: 1200px) {
  .product-rail { grid-auto-columns: calc((100% - 4 * 1.25rem) / 5); }
}

@media (hover: none) {
  .aisle-tile:hover { transform: none; }
  .aisle-tile:hover .aisle-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PayHere checkout
   ============================================================ */
.summary-dl .summary-charge dt { color: var(--lagoon); font-weight: 700; }
.summary-dl .summary-charge dd { color: var(--lagoon); font-weight: 800; }

.payhere-handoff .form-card { margin: 1.5rem 0; }
.handoff-spinner {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 4px solid var(--turmeric-50);
  border-top-color: var(--turmeric);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Admin list pager (Products, Categories, Orders, Customers)
   ============================================================ */
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: 1.25rem;
}
.admin-pager-count { margin: 0; font-size: .88rem; }
.admin-pager-count strong { color: var(--ink); }
.admin-pagination { margin-top: 0; gap: .3rem; }
.admin-pagination .page { min-width: 38px; height: 38px; padding: 0 .6rem; font-size: .88rem; }
.admin-pager-size { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.admin-pager-size .select { height: 38px; font-size: .9rem; padding-left: .85rem; }

/* Phones: count, pages, then rows selector, each on its own line */
@media (max-width: 759.98px) {
  .admin-pager { flex-direction: column; align-items: stretch; text-align: center; }
  .admin-pager-size { justify-content: center; }
}

/* ============================================================
   A–Z product index (/products)
   ============================================================ */
.product-index .page-head { margin-bottom: 1rem; }
.product-index-pages { justify-content: flex-start; margin: 0 0 1.5rem; }
.product-index-pages:last-child { margin: 2rem 0 0; }
.product-index-letter {
  font-size: 1.4rem;
  color: var(--garnet);
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
  margin: 1.75rem 0 .75rem;
}
.product-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem 1.5rem;
}
.product-index-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; font-size: .92rem; line-height: 1.4; }
.product-index-list a { color: var(--ink); font-weight: 600; }
.product-index-list a:hover { color: var(--garnet); }
.product-index-list .product-index-cat { color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
@media (min-width: 760px) { .product-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
