/* ==========================================================================
   Novara design system — storefront
   Emerald + warm ivory + clean white + charcoal typography, restrained UI.
   ========================================================================== */
:root {
  /* Brand */
  --accent: #087A5B;
  --accent-dark: #063D2F;
  --accent-hover: #066A4F;
  --accent-soft: #E7F4EF;

  /* Backgrounds */
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-soft: #F3F4F1;
  --surface-muted: #ECEFEA;

  /* Text */
  --ink: #171A19;
  --ink-soft: #39433F;
  --muted: #66716D;
  --muted-light: #8A9490;

  /* Borders */
  --border: #E1E5E2;
  --border-light: #ECEFED;

  /* Feedback */
  --success: #087A5B;
  --warning: #E7A52B;
  --danger: #D94B4B;
  --info: #4C78A8;

  /* Rating */
  --rating: #E7A52B;

  /* Special */
  --dark: #063D2F;
  --white: #FFFFFF;

  /* Typography */
  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  /* Legacy aliases kept so admin.css and any existing references resolve */
  --line: var(--border);
  --line-strong: #CFD6D1;
  --sale: var(--danger);
  --gold: var(--rating);
  --warn-bg: #FBF3E4;

  /* Shape & elevation */
  --radius: 9px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(23, 26, 25, 0.05);
  --shadow-md: 0 8px 24px rgba(23, 26, 25, 0.08);
  --shadow-lg: 0 16px 40px rgba(23, 26, 25, 0.12);

  --container: 1240px;
  --topbar-h: 36px;
}

* { box-sizing: border-box; }
/* The hidden attribute must always win over any display rule
   (e.g. .zoom-modal, .field, .flashes), or hidden overlays would
   stay visible with no way to close them. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; font-size: inherit; }
code { font-family: Consolas, "SF Mono", monospace; font-size: 0.9em; background: var(--surface-muted); padding: 1px 5px; border-radius: 5px; }
.line-through { text-decoration: line-through; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted--sm { font-size: 12.5px; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.45em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  background: transparent; color: var(--ink); white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #000; color: var(--white); }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: #C13D3D; color: var(--white); }
.btn--invert { background: var(--white); color: var(--ink); }
.btn--invert:hover { color: var(--accent); }
.btn--lg { padding: 13px 26px; font-size: 15.5px; border-radius: 10px; }
.btn--sm { padding: 7px 13px; font-size: 13.5px; border-radius: 8px; }
.btn--block { width: 100%; }
.linkbtn {
  background: none; border: none; padding: 0; color: var(--accent); font-weight: 600;
  font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.linkbtn--danger { color: var(--danger); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; border: none; background: transparent;
  cursor: pointer; color: var(--ink); position: relative; transition: background-color 160ms ease;
}
.icon-btn:hover { background: var(--surface-muted); color: var(--ink); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--accent-dark); color: #D6E0DA; font-size: 12.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: var(--topbar-h); }
.topbar__links a { color: #D6E0DA; margin: 0; }
.topbar__links a:hover { color: var(--white); }
.topbar__sep { margin: 0 7px; opacity: 0.5; }
@media (max-width: 640px) { .topbar__msg { display: none; } }

.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 60; }
.header__inner { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
/* wide logo (≈2.65:1) — height-driven, width follows aspect ratio */
.logo__mark { display: inline-flex; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.logo__mark img { height: 100%; width: auto; object-fit: contain; display: block; }
.logo:hover { color: var(--ink); }
@media (max-width: 640px) { .logo__mark { height: 34px; } }

.header-search { flex: 1; position: relative; max-width: 600px; }
.header-search--mobile { display: none; }
.header-search input {
  width: 100%; padding: 10px 46px 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-soft); font-size: 14.5px; font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.header-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 122, 91, 0.10); background: var(--surface); }
.header-search__btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--accent); color: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-search__btn:hover { background: var(--accent-hover); }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
  overflow: hidden; z-index: 70; max-height: 400px; overflow-y: auto;
}
.suggest__item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border-light); }
.suggest__item:last-child { border-bottom: none; }
.suggest__item:hover { background: var(--accent-soft); }
.suggest__item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-soft); }
.suggest__name { font-weight: 600; font-size: 14px; }
.suggest__empty { padding: 14px; color: var(--muted); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: var(--white); border-radius: 999px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.badge--empty { display: none; }
.account-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); min-width: 190px;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; z-index: 70;
}
.dropdown a, .dropdown__logout {
  display: block; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  background: none; border: none; text-align: left; cursor: pointer; color: var(--ink); font-weight: 500;
}
.dropdown a:hover, .dropdown__logout:hover { background: var(--accent-soft); color: var(--accent); }
.nav-toggle { display: none; }

.catnav { border-top: 1px solid var(--border-light); background: var(--surface); }
.catnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.catnav__inner::-webkit-scrollbar { display: none; }
.catnav__inner a {
  padding: 7px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.catnav__inner a:hover { background: var(--accent-soft); color: var(--accent); }
.catnav__all { color: var(--accent) !important; margin-left: auto; }

/* ---------- drawer (mobile nav) ---------- */
.drawer-backdrop, .zoom-modal {
  position: fixed; inset: 0; background: rgba(6, 61, 47, 0.5); z-index: 90;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); background: var(--surface);
  z-index: 95; transform: translateX(-105%); transition: transform 0.25s ease; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.drawer__logo { display: inline-flex; height: 36px; border-radius: 8px; overflow: hidden; }
.drawer__logo img { height: 100%; width: auto; object-fit: contain; display: block; }
.drawer__search input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-soft); font-family: inherit; font-size: 14.5px; }
.drawer__section { padding: 6px 10px 12px; border-bottom: 1px solid var(--border-light); }
.drawer__section a { display: flex; padding: 10px 10px; border-radius: 8px; font-weight: 550; align-items: center; gap: 11px; color: var(--ink-soft); }
.drawer__section a:hover { background: var(--accent-soft); color: var(--accent); }
.drawer__section a svg { flex-shrink: 0; }
.drawer__body { padding: 12px; }

/* ---------- flashes ---------- */
.flashes { max-width: var(--container); margin: 14px auto 0; padding: 0 20px; display: grid; gap: 8px; }
.flash {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: var(--radius); font-weight: 550; font-size: 14.5px; box-shadow: var(--shadow-sm);
}
.flash--success { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #BBDCCF; }
.flash--error { background: #FCE9E9; color: #8F2323; border: 1px solid #F0C4C4; }
.flash--info { background: #EEF2FD; color: #2F4B8F; border: 1px solid #CCD6EF; }
.flash__close { background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 13px; }
.flash__close:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { background: var(--accent-dark); color: #F2F6F3; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 72px 20px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: #9CC7B4; font-weight: 700; margin-bottom: 14px; }
.hero__title { font-family: var(--font-heading); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 16px; }
.hero__title em { font-style: normal; color: #9AD9BC; }
.hero__sub { color: #C6D2CB; font-size: 1.05rem; max-width: 52ch; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__points { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; color: #B4C1B9; font-size: 13.5px; }
.hero__points span { color: #9AD9BC; margin-right: 6px; }
/* ---------- premium hero reward offer ---------- */

.hero__offer {
  min-width: 0;
}

.reward {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  padding: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(154, 217, 188, 0.18), transparent 30%),
    radial-gradient(circle at 5% 100%, rgba(8, 122, 91, 0.22), transparent 35%),
    linear-gradient(145deg, #0D5940 0%, #094832 48%, #063A2B 100%);
  border: 1px solid rgba(154, 217, 188, 0.28);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.30),
    0 8px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.reward:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 65px rgba(0, 0, 0, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

/* premium top accent */
.reward::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #087A5B 0%,
    #79D5AE 45%,
    #A7E4C6 70%,
    rgba(167, 228, 198, 0) 100%
  );
  z-index: 2;
}

/* ambient glow */
.reward::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -150px;
  right: -110px;
  border-radius: 50%;
  background: rgba(126, 218, 178, 0.12);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.reward__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  left: -120px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(8, 122, 91, 0.20);
  filter: blur(18px);
  pointer-events: none;
}

/* .reward__glow must keep position:absolute, so it is excluded here. */
.reward > *:not(.reward__glow) {
  position: relative;
  z-index: 1;
}

/* limited reward badge */

.reward__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  background: rgba(167, 228, 198, 0.10);
  border: 1px solid rgba(167, 228, 198, 0.24);
  color: #B4E8CF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.reward__pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #78D5A9;
  box-shadow: 0 0 0 0 rgba(120, 213, 169, 0.55);
  animation: rewardPulse 2.6s infinite;
}

@keyframes rewardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 213, 169, 0.5);
  }

  65% {
    box-shadow: 0 0 0 9px rgba(120, 213, 169, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(120, 213, 169, 0);
  }
}

/* offer content */

.reward__eyebrow {
  margin: 0 0 8px;
  color: #80CDA9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reward__title {
  margin: 0 0 13px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: #F4FAF7;
}

.reward__discount {
  display: inline-block;
  position: relative;
  margin-left: 4px;
  color: #A9E8C9;
  font-size: 1.12em;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 20px rgba(126, 218, 178, 0.16);
}

.reward__discount::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 5px;
  border-radius: 999px;
  background: rgba(120, 213, 169, 0.22);
}

.reward__plus {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #ECF7F1;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* delivery van icon — gentle delivery bob */
.reward__van {
  width: 1.9em;
  height: auto;
  flex: 0 0 auto;
  color: #A9E8C9;
  overflow: visible;
  filter: drop-shadow(0 3px 10px rgba(126, 218, 178, 0.35));
  transform: translateY(-0.03em);
  animation: vanDrive 2.6s ease-in-out infinite;
}

.reward__van-speed {
  color: #79D5AE;
  opacity: 0.75;
  animation: vanSpeed 1.5s ease-in-out infinite;
}

.reward__van-speed:nth-of-type(2) {
  animation-delay: 0.22s;
}

@keyframes vanDrive {
  0%, 100% { transform: translate(0, -0.03em); }
  50% { transform: translate(0.06em, calc(-0.03em - 1.5px)); }
}

@keyframes vanSpeed {
  0%, 100% { opacity: 0.85; transform: translateX(0); }
  50% { opacity: 0.25; transform: translateX(-2.6px); }
}

.reward__sub {
  max-width: 440px;
  margin: 0 0 22px;
  color: #B8CEC3;
  font-size: 13.5px;
  line-height: 1.6;
}

/* countdown */

.reward__countdown {
  margin-bottom: 17px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(2, 28, 21, 0.30);
  border: 1px solid rgba(190, 231, 214, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.reward__countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 2px;
  color: #8FAEA1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reward__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8DDBB5;
}

.reward__live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70D1A2;
  box-shadow: 0 0 8px rgba(112, 209, 162, 0.6);
}

.reward__timer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.rtimer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 11px 5px 9px;
  border-radius: 11px;
  background:
    linear-gradient(
      180deg,
      rgba(17, 69, 53, 0.86),
      rgba(3, 37, 28, 0.78)
    );
  border: 1px solid rgba(193, 230, 216, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.10);
}

.rtimer::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 0;
  height: 1px;
  background: rgba(173, 230, 207, 0.18);
}

.rtimer strong {
  display: block;
  color: #F4FAF7;
  font-size: 1.55rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.rtimer span {
  display: block;
  margin-top: 4px;
  color: #89A99C;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reward__timer.is-urgent .rtimer {
  border-color: rgba(217, 140, 110, 0.45);
}

.reward__timer.is-urgent strong {
  color: #FFD0BE;
}

/* CTA */

.reward__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 9px 24px rgba(8, 122, 91, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.reward__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 13px 28px rgba(8, 122, 91, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.reward__cta:active {
  transform: translateY(0);
}

.reward__arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.reward__cta:hover .reward__arrow {
  transform: translateX(3px);
}

/* expired note */

.reward__note {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: #E8C88A;
  background: rgba(232, 200, 138, 0.10);
  border: 1px solid rgba(232, 200, 138, 0.22);
  font-size: 12px;
}

.reward.is-expired .reward__timer strong {
  color: #EDA6A6;
}

.reward.is-expired .reward__cta {
  opacity: 0.6;
  pointer-events: none;
}

/* responsive */

@media (max-width: 1080px) {
  .reward {
    padding: 27px;
  }

  .reward__title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .reward {
    padding: 22px 18px 19px;
    border-radius: 17px;
  }

  .reward__kicker {
    margin-bottom: 18px;
    font-size: 9px;
    padding: 6px 11px 6px 9px;
  }

  .reward__eyebrow {
    font-size: 9px;
  }

  .reward__title {
    font-size: 1.72rem;
    letter-spacing: -0.04em;
  }

  .reward__plus {
    margin-top: 8px;
    font-size: 0.59em;
    gap: 6px;
  }

  .reward__van {
    width: 2em;
  }

  .reward__sub {
    margin-bottom: 18px;
    font-size: 12.5px;
  }

  .reward__countdown {
    padding: 11px;
    margin-bottom: 14px;
  }

  .reward__timer {
    gap: 6px;
  }

  .rtimer {
    padding: 9px 3px 8px;
    border-radius: 9px;
  }

  .rtimer strong {
    font-size: 1.3rem;
  }

  .rtimer span {
    font-size: 8px;
  }

  .reward__cta {
    min-height: 48px;
    font-size: 13.5px;
  }
}

@media (max-width: 360px) {
  .reward {
    padding: 20px 15px 17px;
  }

  .reward__title {
    font-size: 1.55rem;
  }

  .reward__countdown {
    padding: 9px;
  }

  .rtimer strong {
    font-size: 1.18rem;
  }
}

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section--alt { background: var(--surface-soft); }
.section--tight { padding: 18px 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; gap: 16px; }
.section__title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; }
.section__link { color: var(--accent); font-weight: 650; font-size: 14px; flex-shrink: 0; }

/* Auto-fit so the strip reads well regardless of how many categories exist.
   One row up to 6 tiles; beyond that it wraps to a second row. */
.cats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1;
  background: var(--accent-dark); box-shadow: var(--shadow-sm);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 160ms ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile__name {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 12px; color: var(--white); font-weight: 700; font-size: 14px;
  background: linear-gradient(transparent, rgba(6, 61, 47, 0.82));
}

.promo-band { padding: 0 0 8px; }
.promo-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo { border-radius: var(--radius-lg); padding: 32px 28px; color: var(--white); display: flex; flex-direction: column; align-items: flex-start; }
/* "Hot offer" pill. Sits in normal flow above the kicker so it can never
   overlap the card copy at any width. Amber matches the store's rating accent
   and reads as "attention" without introducing a new colour. */
.promo__badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 14px; padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #2A1B00;
  background: linear-gradient(135deg, #F7C25A, #E7A52B);
  box-shadow: 0 6px 16px rgba(231, 165, 43, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.promo__badge-dot {
  width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: #7A3D00;
  box-shadow: 0 0 0 0 rgba(122, 61, 0, 0.5);
  animation: promoHot 2.4s ease-in-out infinite;
}
@keyframes promoHot {
  0% { box-shadow: 0 0 0 0 rgba(122, 61, 0, 0.45); }
  60% { box-shadow: 0 0 0 7px rgba(122, 61, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 61, 0, 0); }
}
.promo--accent { background: var(--accent); }
.promo--ink { background: var(--accent-dark); }
.promo__kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11.5px; font-weight: 700; opacity: 0.88; }
.promo__title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 750; margin: 8px 0 6px; letter-spacing: -0.025em; }
.promo__text { margin: 0 0 18px; opacity: 0.92; max-width: 40ch; }

/* ---------- product grid & card ---------- */
.grid--products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard {
  background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.pcard:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }
.pcard__media { position: relative; aspect-ratio: 1/1; background: var(--surface-soft); display: block; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.pcard__badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 750; color: var(--white);
}
.pcard__badge--sale { background: var(--danger); }
.pcard__badge--best { background: var(--accent-dark); top: 40px; }
.pcard__overlay {
  position: absolute; inset: 0; background: rgba(250, 249, 245, 0.86); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--ink); letter-spacing: 0.02em;
}
.pcard__lowstock {
  position: absolute; bottom: 10px; left: 10px; background: var(--warn-bg); color: #8A5A1F;
  font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 6px;
}
.pcard__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard__brand { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pcard__name { font-family: var(--font-heading); font-size: 15px; font-weight: 650; line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.pcard__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__norating { font-size: 12.5px; color: var(--muted); }
.pcard__actions { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.pcard__wish { width: 36px; height: 36px; flex-shrink: 0; }
.pcard__wish.is-active { color: var(--danger); }
.pcard__wish.is-active svg { fill: var(--danger); }

/* ---------- price ---------- */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__now { font-weight: 800; font-size: 17px; letter-spacing: -0.015em; color: var(--ink); }
.price__was { color: var(--muted-light); text-decoration: line-through; font-size: 13.5px; }
.price__off { color: var(--danger); font-weight: 700; font-size: 12px; background: #FCE9E9; padding: 2px 7px; border-radius: 6px; }

/* ---------- stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 1.5px; }
.stars--md .star { width: 20px; height: 20px; }
.stars--sm .star { width: 14px; height: 14px; }
.star--full path { fill: var(--rating); }
.star--half path { fill: var(--rating); }
.star--empty path { fill: #DCDCD4; }
.stars__count { margin-left: 5px; font-size: 12.5px; color: var(--muted); }

/* ---------- listing / shop ---------- */
.layout-listing { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 130px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filters__title { font-family: var(--font-heading); font-size: 16px; font-weight: 750; margin: 0; }
.filters__reset { background: none; border: none; font-size: 15px; cursor: pointer; color: var(--muted); }
.fgroup { border-top: 1px solid var(--border-light); padding: 14px 0; }
.fgroup__title { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.fcheck { display: flex; gap: 9px; align-items: center; font-size: 14px; padding: 5px 0; cursor: pointer; }
.fcheck input { width: 16px; height: 16px; accent-color: var(--accent); }
.fradio { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.fradio input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; }
.fradio__n { margin-left: auto; color: var(--muted); font-size: 12px; background: var(--surface-muted); border-radius: 999px; padding: 1px 8px; }
.fradio a.fcat { display: block; padding: 4px 0; font-size: 14px; font-weight: 650; color: var(--accent); }
.fprice { display: flex; gap: 8px; align-items: center; }
.fprice label { flex: 1; font-size: 12.5px; color: var(--muted); }
.fprice input { width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.fgroup--actions { display: flex; gap: 8px; }
.filters-toggle { display: none; }

.listing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.listing__title { font-size: 1.6rem; margin: 0; }
.listing__meta { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.listing__tools { display: flex; gap: 10px; align-items: center; }
.sortform { display: flex; align-items: center; gap: 8px; }
.sortform__label { font-size: 13px; color: var(--muted); }
.sortform select, .toolbar__select {
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 13.5px; cursor: pointer;
}
.sortform select:focus, .toolbar__select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 122, 91, 0.10); }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 6px; margin: 30px 0 6px; flex-wrap: wrap; justify-content: center; }
.pagination__item {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-weight: 620; font-size: 14px;
}
.pagination__item:hover { border-color: var(--accent); color: var(--accent); }
.pagination__item.is-current { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }
.pagination__ellipsis { padding: 0 4px; color: var(--muted); align-self: center; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 18px 0; }
.empty__icon { font-size: 34px; display: block; margin-bottom: 12px; }
.empty__title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 6px; }
.empty__text { color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* ---------- PDP ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs__here { color: var(--ink); font-weight: 600; }
.pdp__main { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

.gallery__main {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-soft); border: 1px solid var(--border);
  position: relative;
}
/* Bulletproof square frame: the padding-top trick forces a 1:1 box in every
   browser (no aspect-ratio support needed). The image fills it absolutely.
   Square uploads (e.g. 1200×1200) are shown pixel-perfect with no crop. */
.gallery__main::before { content: ""; display: block; padding-top: 100%; }
.gallery__main img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; cursor: zoom-in;
}
.gallery__empty { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumb {
  border: 2px solid transparent; border-radius: 9px; overflow: hidden; padding: 0; background: var(--surface);
  cursor: pointer; box-shadow: none; border-color: var(--border);
}
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

.pdp__brand { font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pdp__title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 8px; }
.pdp__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pdp__sku { font-size: 12.5px; color: var(--muted); }
.pdp__norating { color: var(--muted); font-size: 13.5px; }
.pdp .price__now { font-size: 27px; }
.pdp .price__was { font-size: 16px; }
.pdp__short { color: var(--ink-soft); margin: 12px 0 4px; }
.pdp__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 14px 0 4px; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.stock-dot--in { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stock-dot--out { background: var(--danger); box-shadow: 0 0 0 3px #F7DCDC; }

.variants__group { margin: 16px 0; }
.variants__label { font-family: var(--font-heading); font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.variants__options { display: flex; flex-wrap: wrap; gap: 8px; }
.vopt {
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 620; font-size: 14px; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.vopt:hover { border-color: var(--accent); }
.vopt.is-selected { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }
.vopt.is-unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.variants__missing { color: var(--danger); font-size: 13.5px; font-weight: 600; }

.pdp__buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 22px 0; }
.pdp__form { flex: 1; min-width: 150px; }
.pdp__wish { align-self: center; border: 1px solid var(--border); }
.pdp__wish.is-active { color: var(--danger); border-color: var(--danger); }
.pdp__wish.is-active svg { fill: var(--danger); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.qty--sm { border-radius: 8px; }
.qty__btn { width: 38px; height: 42px; background: var(--surface); border: none; font-size: 17px; font-weight: 650; cursor: pointer; color: var(--ink); }
.qty__btn:hover { background: var(--surface-soft); }
.qty__input {
  width: 52px; height: 42px; border: none; text-align: center; font-size: 15px; font-weight: 650; font-family: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm .qty__btn { width: 30px; height: 34px; font-size: 15px; }
.qty--sm .qty__input { width: 40px; height: 34px; font-size: 14px; }

.pdp__assurances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 20px 0; padding: 18px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.pdp__assurances dt { font-size: 12px; color: var(--muted); font-weight: 650; }
.pdp__assurances dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 550; }
.pdp__share { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.pdp__share a { color: var(--accent); font-weight: 650; cursor: pointer; background: none; border: none; font-size: 13.5px; }

.pdp__tabs { margin-top: 44px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs__btn { padding: 11px 18px; background: none; border: none; font-family: var(--font-heading); font-weight: 650; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__btn.is-active { color: var(--ink); border-color: var(--accent); }
.tabs__panel { display: none; padding: 20px 4px; }
.tabs__panel.is-active { display: block; }
.pdp__desc { max-width: 72ch; color: var(--ink-soft); }
.spec-table { max-width: 640px; border-collapse: collapse; }
.spec-table th { text-align: left; padding: 10px 16px 10px 0; color: var(--muted); font-size: 13.5px; font-weight: 650; border-bottom: 1px solid var(--border-light); width: 38%; vertical-align: top; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14.5px; }

/* bundle */
.bundle { margin-top: 36px; }
.bundle__row { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; flex-wrap: wrap; }
.bundle__items { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.bundle__item { width: 150px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bundle__item img { border-radius: 9px; object-fit: cover; background: var(--surface-soft); }
.bundle__item strong { font-size: 13.5px; }
.bundle__cta { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* zoom modal */
.zoom-modal { position: fixed; inset: 0; z-index: 100; background: rgba(6, 30, 23, 0.92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.zoom-modal img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.zoom-modal__close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.reviews__summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 130px; }
.reviews__score { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; margin-bottom: 16px; }
.reviews__avg { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.reviews__count { color: var(--muted); font-size: 13.5px; }
.rrow { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.rrow__stars { font-size: 12.5px; color: var(--muted); width: 32px; }
.rrow__bar { flex: 1; height: 7px; background: var(--surface-muted); border-radius: 99px; overflow: hidden; }
.rrow__fill { height: 100%; background: var(--rating); border-radius: 99px; }
.rrow__n { font-size: 12.5px; color: var(--muted); width: 22px; text-align: right; }
.review { border-bottom: 1px solid var(--border-light); padding: 16px 0; }
.review__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.review__author { font-weight: 700; font-size: 14px; }
.review__verified { color: var(--accent); font-size: 12px; font-weight: 700; background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.review__date { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.review__title { margin: 4px 0; font-size: 15px; }
.review__body { color: var(--ink-soft); margin: 4px 0 0; max-width: 70ch; }
.review-form { margin-top: 26px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.review-form__title { margin-bottom: 14px; }
.review-form__rating { margin-bottom: 12px; }
.review-form__label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; color: var(--ink-soft); }
.star-input { display: flex; gap: 2px; }
.star-btn { background: none; border: none; font-size: 26px; color: #D8D8CF; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-btn.is-active { color: var(--rating); }
.review-form__note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.reviews__morepage { color: var(--muted); }

/* ---------- forms ---------- */
.form-row { display: grid; gap: 0 16px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.form-row--4 { grid-template-columns: repeat(4, 1fr); }
.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 650; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit;
  font-size: 14.5px; background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 122, 91, 0.10); }
.field input[disabled] { background: var(--surface-soft); color: var(--muted); }
.field__hint { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.form-error { background: #FCE9E9; color: #8F2323; border: 1px solid #F0C4C4; padding: 10px 14px; border-radius: 9px; font-size: 14px; margin: 0 0 12px; }
.form-errors { background: #FCE9E9; color: #8F2323; border: 1px solid #F0C4C4; padding: 14px 18px; border-radius: 12px; margin: 0 0 20px; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.curr { color: var(--muted); font-weight: 550; }

/* ---------- panels (shared) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.panel--flat { box-shadow: none; }
.panel__title { font-family: var(--font-heading); font-size: 16px; font-weight: 750; margin-bottom: 16px; letter-spacing: -0.015em; }
.panel__sub { color: var(--muted); font-size: 13.5px; margin: -10px 0 14px; }
.sublabel { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 14px 0 6px; }

.sumline { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.sumline--green { color: var(--accent); font-weight: 600; }
.sumline--warn { color: #8A5A1F; }
.sumline--total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 17px; }

.chip {
  display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12px;
  font-weight: 700; background: var(--surface-muted); color: var(--ink-soft); white-space: nowrap;
}
.chip--pending { background: var(--warn-bg); color: #8A5A1F; }
.chip--confirmed, .chip--processing { background: #E8F0FD; color: #2F4B8F; }
.chip--packed, .chip--shipped, .chip--out_for_delivery { background: #ECE6FB; color: #5D3FA8; }
.chip--delivered { background: var(--accent-soft); color: var(--accent-dark); }
.chip--cancelled, .chip--returned, .chip--refunded { background: #FCE9E9; color: #8F2323; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.table td { padding: 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.table--hover tbody tr:hover { background: var(--surface-soft); }
.table--tight th, .table--tight td { padding: 8px 10px; }

/* ---------- cart ---------- */
.page-title { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 22px; letter-spacing: -0.03em; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); align-items: start; }
.cart-item--problem { background: #FDF6F4; margin: 0 -12px; padding: 16px 12px; border-radius: 10px; }
.cart-item__img img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-soft); }
.cart-item__noimg { width: 96px; height: 96px; border-radius: 10px; background: var(--surface-soft); display: inline-block; }
.cart-item__name { font-weight: 650; font-size: 15px; }
.cart-item__opts { margin: 4px 0 0; color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.cart-item__sku { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.cart-item__low { color: #8A5A1F; font-size: 12.5px; font-weight: 600; margin: 4px 0 0; }
.cart-item__problem { color: var(--danger); font-size: 13px; font-weight: 600; margin: 4px 0 0; }
.cart-item__removeform { margin-top: 6px; }
.cart-item__unit { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; text-align: center; }
.cart-item__total { font-weight: 750; font-size: 15.5px; min-width: 90px; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 0; flex-wrap: wrap; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 130px; }
.cart-summary__title { font-family: var(--font-heading); font-size: 17px; font-weight: 750; margin-bottom: 14px; }
.cart-summary .sumline--total { font-size: 18px; }
.coupon { margin: 16px 0 6px; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: 14px; text-transform: uppercase;
}
.coupon__row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 122, 91, 0.10); }
.coupon__error { color: var(--danger); font-size: 12.5px; margin: 6px 0 0; }
.cart-summary .btn--block { margin-top: 14px; }
.cart-summary__note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- checkout ---------- */
.checkout__form { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.ship-options { display: grid; gap: 10px; }
.ship-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.ship-opt.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.ship-opt input { accent-color: var(--accent); }
.ship-opt__info { display: flex; flex-direction: column; gap: 2px; }
.ship-opt__info strong { font-size: 14.5px; }
.ship-opt__info span { font-size: 13px; color: var(--muted); }
.ship-opt__eta { font-size: 12.5px; color: var(--accent); font-weight: 650; }
.ship-opt__price { font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.pay-options { display: grid; gap: 10px; }
.pay-opt {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; background: var(--surface);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.pay-opt.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-opt input { margin-top: 3px; accent-color: var(--accent); }
.pay-opt strong { display: block; font-size: 14.5px; }
.pay-opt span span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-items { display: grid; gap: 12px; margin-bottom: 16px; max-height: 300px; overflow-y: auto; }
.co-item { display: flex; gap: 12px; align-items: center; }
.co-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-soft); }
.co-item__info { flex: 1; display: flex; flex-direction: column; }
.co-item__name { font-weight: 600; font-size: 13.5px; }
.co-item__opts { color: var(--muted); font-size: 12px; }
.co-item__qty { color: var(--muted); font-size: 12.5px; }
.co-item__price { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.saved-addresses { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.saved-addresses__label { font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.saved-address {
  text-align: left; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-size: 13px;
}
.saved-address:hover { border-color: var(--accent); }
.saved-address.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.checkout-empty { text-align: center; }

/* ---------- order pages ---------- */
.order-success { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 24px; margin-bottom: 24px; }
.order-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.order-success__title { font-family: var(--font-heading); font-size: 1.75rem; margin-bottom: 8px; }
.order-success__sub { color: var(--ink-soft); max-width: 60ch; margin: 0 auto 6px; }
.order-success__hint { color: var(--muted); font-size: 13.5px; }
.order-layout { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
.order-address { font-style: normal; line-height: 1.6; }
.order-notes { color: var(--ink-soft); font-size: 14px; }
.order-pay { font-size: 14px; }
.order-status-badge { display: inline-flex; padding: 6px 16px; border-radius: 6px; font-weight: 750; font-size: 14px; margin-bottom: 8px; }
.order-status-badge--pending { background: var(--warn-bg); color: #8A5A1F; }
.order-status-badge--delivered { background: var(--accent-soft); color: var(--accent-dark); }
.order-status-badge--cancelled, .order-status-badge--returned, .order-status-badge--refunded { background: #FCE9E9; color: #8F2323; }
.order-status-badge--shipped, .order-status-badge--out_for_delivery, .order-status-badge--packed, .order-status-badge--processing, .order-status-badge--confirmed { background: #ECE6FB; color: #5D3FA8; }
.tracker { list-style: none; margin: 0 0 14px; padding: 0; }
.tracker__step { position: relative; padding: 0 0 18px 30px; }
.tracker__step::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.tracker__step:last-child::before { display: none; }
.tracker__dot {
  position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--border); background: var(--surface); z-index: 1;
}
.tracker__step.is-done .tracker__dot { background: var(--accent); border-color: var(--accent); }
.tracker__step.is-current .tracker__dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tracker__label { font-weight: 650; font-size: 14px; display: block; }
.tracker__step.is-current .tracker__label { color: var(--accent); }
.tracker__time { color: var(--muted); font-size: 12px; display: block; }
.order-history h3 { font-family: var(--font-heading); font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
.hist-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.hist-row__time { color: var(--muted); font-size: 12.5px; }
.hist-row__note { font-size: 13px; color: var(--ink-soft); }

.track-card { max-width: 640px; }
.track-form { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; align-items: end; }
.track-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.track-error { color: var(--danger); font-weight: 600; margin: 12px 0 0; }
.track-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-top: 18px; }
.track-result__head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.track-result__hint { color: var(--muted); font-size: 12.5px; }

/* ---------- account ---------- */
.acct-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.acct-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; position: sticky; top: 130px; }
.acct-nav__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.acct-nav__link:hover { background: var(--accent-soft); color: var(--accent); }
.acct-nav__link--admin { border-top: 1px solid var(--border-light); margin-top: 8px; padding-top: 12px; }
.acct-nav__logout { padding: 10px 12px; margin-top: 6px; border-top: 1px solid var(--border-light); }
.acct-nav__logout button { background: none; border: none; color: var(--danger); font-weight: 650; cursor: pointer; font-size: 14px; padding: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; }
.stat-card__value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-card__label { color: var(--muted); font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.addr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.addr-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.addr-card__label { font-weight: 750; font-size: 13.5px; }
.addr-card address { font-style: normal; line-height: 1.6; font-size: 13.5px; color: var(--ink-soft); }
.addr-card__actions { display: flex; gap: 12px; margin-top: 10px; }
.addr-edit { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.addr-edit summary { cursor: pointer; color: var(--accent); font-weight: 650; font-size: 13.5px; }
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* ---------- auth pages ---------- */
.auth-page { display: flex; justify-content: center; padding-top: 48px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.auth-card__title { font-size: 1.55rem; margin-bottom: 4px; }
.auth-card__sub { color: var(--muted); margin-bottom: 22px; }
.auth-card__foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; flex-wrap: wrap; gap: 8px; }
.auth-card__foot a { color: var(--accent); font-weight: 650; }
.auth-card__demo { margin-top: 18px; padding: 12px 14px; background: var(--surface-soft); border-radius: 9px; font-size: 13px; color: var(--muted); }

/* ---------- prose / contact / error ---------- */
.prose { max-width: 760px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.prose h2 { margin-top: 30px; font-size: 1.25rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.contact-card h2 { font-size: 1rem; }
.error-page { display: flex; justify-content: center; padding-top: 60px; }
.error-card { text-align: center; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 28px; }
.error-card__code { font-family: var(--font-heading); font-size: 3.4rem; font-weight: 800; color: var(--line-strong); display: block; letter-spacing: -0.04em; }
.error-card__msg { color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- footer ---------- */
.footer { background: var(--accent-dark); color: #B9CBC2; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 48px 20px 30px; }
.footer__logo { display: inline-flex; height: 40px; border-radius: 8px; overflow: hidden; background: var(--white); }
.footer__logo img { height: 100%; width: auto; object-fit: contain; display: block; }
.footer__tagline { font-size: 13.5px; line-height: 1.6; max-width: 36ch; }
.footer__social { display: flex; gap: 14px; margin-top: 12px; }
.footer__social a { color: #B9CBC2; font-size: 13px; text-transform: capitalize; }
.footer__social a:hover { color: var(--white); }
.footer__col h3 { font-family: var(--font-heading); color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer__col a, .footer__col p { display: block; color: #B9CBC2; font-size: 13.5px; padding: 3px 0; }
.footer__col a:hover { color: var(--white); }
.footer__addr { line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; padding: 16px 20px; font-size: 12.5px; flex-wrap: wrap; gap: 6px; }

/* ---------- skeleton ---------- */
.skeleton { background: var(--surface-muted); border-radius: 8px; position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .cats-strip { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; padding: 56px 20px; gap: 34px; }
  .hero__offer { max-width: 620px; }
}
@media (max-width: 920px) {
  .layout-listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 85; border-radius: 0; display: none; }
  .filters.is-open { display: block; overflow-y: auto; }
  .filters-toggle { display: inline-flex; }
  .pdp__main { grid-template-columns: 1fr; gap: 26px; }
  .reviews { grid-template-columns: 1fr; }
  .reviews__summary { position: static; }
  .cart-layout, .checkout__form, .order-layout, .acct-layout { grid-template-columns: 1fr; }
  .filters form { max-width: 100%; }
  .acct-nav { position: static; display: flex; overflow-x: auto; }
  .acct-nav__link { white-space: nowrap; }
  .acct-nav__logout { border-top: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .form-row--3, .form-row--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .header-search { display: none; }
  /* On mobile, search is the primary discovery tool, so show a full-width
     search row beneath the logo instead of hiding search completely. */
  .header__inner { height: auto; padding: 10px 0; flex-wrap: wrap; row-gap: 10px; }
  .header-search--mobile { display: flex; flex-basis: 100%; order: 3; max-width: none; }
  .header-search--mobile input { border-radius: 10px; }
  .header-actions .wishlist-btn,
  .header-actions .account-menu { display: none; }
  .drawer .drawer__search { display: block; }
  .grid--products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats-strip { grid-template-columns: repeat(2, 1fr); }
  /* Mobile: the hero benefit list is hidden to keep the hero compact;
     it remains visible on tablet/desktop. */
  .hero__points { display: none; }
  .catnav { display: none; }
  .promo-band__inner { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__qty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
  .cart-item__total { grid-column: 1 / -1; text-align: left; }
  .form-row--2, .form-row--3, .form-row--4 { grid-template-columns: 1fr; }
  .track-form { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .pdp__buy .btn--lg { width: 100%; }
  .bundle__row { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .pdp__assurances { grid-template-columns: 1fr; }
  main.container { padding-top: 18px; }
  .page-title { font-size: 1.5rem; }
  .section { padding: 36px 0; }
  .hero__inner { padding: 40px 16px 44px; gap: 26px; }
  .hero__offer { max-width: 100%; }
  /* Mobile: the whole card opens the product (JS handles the tap) while the
     interactive controls inside keep their own pointer/behaviour. */
  .pcard { cursor: pointer; }
  .pcard a, .pcard button, .pcard input, .pcard select, .pcard label, .pcard form { cursor: auto; }
  .pcard button, .pcard a[href] { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

  .reward,
  .reward__cta,
  .reward__arrow,
  .reward__van {
    transition: none;
    animation: none;
  }

  .reward__pulse,
  .reward__van-speed {
    animation: none;
  }
}
