/* =============================================================================
   WASHA DATA — design system
   Green / white / dark navy. Light and dark modes.

   Written as one hand-maintained stylesheet rather than a compiled framework:
   production must not depend on a Node build, and a single cached file is the
   cheapest thing shared hosting can serve.

   Structure:
     1. Tokens          6. Forms
     2. Reset           7. Cards & product UI
     3. Layout          8. Badges, alerts, tables
     4. Typography      9. Navigation (desktop + mobile bottom bar)
     5. Buttons        10. Utilities, skeletons, print
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --green-50:  #e8f5ee;
  --green-100: #c6e7d5;
  --green-200: #9bd5b7;
  --green-300: #6cc296;
  --green-400: #3da878;
  --green-500: #137d48;  /* primary */
  --green-600: #0f6a3d;
  --green-700: #0b5531;
  --green-800: #084024;
  --green-900: #052b18;

  --navy-50:  #f2f4f8;
  --navy-100: #e2e6ee;
  --navy-200: #c3cad8;
  --navy-300: #9aa5b8;
  --navy-400: #6b7a93;
  --navy-500: #475569;
  --navy-600: #334155;
  --navy-700: #1f2a3c;
  --navy-800: #16202f;
  --navy-900: #101828;  /* dark navy */
  --navy-950: #0a111c;

  /* Semantic */
  --success:    #137d48;
  --success-bg: #e8f5ee;
  --warning:    #b45309;
  --warning-bg: #fef3e2;
  --danger:     #b42318;
  --danger-bg:  #fdecea;
  --info:       #1d4ed8;
  --info-bg:    #e8eefc;

  /* Surfaces — light mode */
  --bg:            #f5f7fa;
  --bg-subtle:     #eef1f6;
  --surface:       #ffffff;
  --surface-2:     #fafbfd;
  --surface-sunken: #f0f3f8;
  --border:        #dfe4ed;
  --border-strong: #c6cedb;

  /* Text */
  --text:          #101828;
  --text-muted:    #5a6678;
  --text-subtle:   #7b869a;
  --text-inverse:  #ffffff;
  --text-on-brand: #ffffff;

  /* Accent aliases used across components */
  --brand:        var(--green-500);
  --brand-hover:  var(--green-600);
  --brand-active: var(--green-700);
  --brand-soft:   var(--green-50);
  --focus-ring:   color-mix(in srgb, var(--green-500) 45%, transparent);

  /* Spacing — 4px base */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

  /* Shadows — soft, low-contrast; no heavy drop shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.10), 0 4px 10px rgba(16, 24, 40, 0.05);

  /* Typography scale */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs:   0.75rem;   --lh-xs:   1.5;
  --fs-sm:   0.8125rem; --lh-sm:   1.55;
  --fs-base: 0.9375rem; --lh-base: 1.6;
  --fs-md:   1rem;      --lh-md:   1.6;
  --fs-lg:   1.125rem;  --lh-lg:   1.5;
  --fs-xl:   1.375rem;  --lh-xl:   1.35;
  --fs-2xl:  1.75rem;   --lh-2xl:  1.25;
  --fs-3xl:  2.25rem;   --lh-3xl:  1.18;

  --fw-normal: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* Layout */
  --container: 1200px;
  --header-h: 64px;
  --bottomnav-h: 60px;
  --sidebar-w: 260px;

  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light;
}

/* Dark mode — explicit choice */
:root[data-theme="dark"] {
  --bg:            #0a111c;
  --bg-subtle:     #0d1725;
  --surface:       #101828;
  --surface-2:     #16202f;
  --surface-sunken: #0d1623;
  --border:        #22304a;
  --border-strong: #324663;

  --text:          #e9eef5;
  --text-muted:    #9aa8bd;
  --text-subtle:   #76869e;

  --brand:        var(--green-400);
  --brand-hover:  var(--green-300);
  --brand-active: var(--green-200);
  --brand-soft:   rgba(61, 168, 120, 0.14);
  --focus-ring:   color-mix(in srgb, var(--green-300) 50%, transparent);

  --success:    #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --warning:    #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger:     #f87171;
  --danger-bg:  rgba(248, 113, 113, 0.12);
  --info:       #7aa2f7;
  --info-bg:    rgba(122, 162, 247, 0.12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

/* Dark mode — follow the operating system, unless light was chosen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0a111c;
    --bg-subtle:     #0d1725;
    --surface:       #101828;
    --surface-2:     #16202f;
    --surface-sunken: #0d1623;
    --border:        #22304a;
    --border-strong: #324663;

    --text:          #e9eef5;
    --text-muted:    #9aa8bd;
    --text-subtle:   #76869e;

    --brand:        var(--green-400);
    --brand-hover:  var(--green-300);
    --brand-active: var(--green-200);
    --brand-soft:   rgba(61, 168, 120, 0.14);
    --focus-ring:   color-mix(in srgb, var(--green-300) 50%, transparent);

    --success:    #4ade80;
    --success-bg: rgba(74, 222, 128, 0.12);
    --warning:    #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --danger:     #f87171;
    --danger-bg:  rgba(248, 113, 113, 0.12);
    --info:       #7aa2f7;
    --info-bg:    rgba(122, 162, 247, 0.12);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
  }
}

/* -----------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* Remove the default ring only where we supply our own */
:focus:not(:focus-visible) { outline: none; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

/* Skip link for keyboard and screen-reader users */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff;
  padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }

.container-narrow { max-width: 720px; }
.container-form   { max-width: 460px; }

.page { padding-block: var(--sp-6) var(--sp-12); }
@media (min-width: 768px) { .page { padding-block: var(--sp-8) var(--sp-16); } }

.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-8); }

.row { display: flex; gap: var(--sp-4); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.row-center { display: flex; align-items: center; gap: var(--sp-2); }
.row-wrap { flex-wrap: wrap; }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
  .layout-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-8); align-items: start; }
}

/* Main content leaves room for the fixed mobile bar */
main { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + var(--sp-4)); }
@media (min-width: 900px) { main { padding-bottom: 0; } }

/* -----------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 { margin: 0; font-weight: var(--fw-semibold); line-height: 1.25; letter-spacing: -0.011em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { margin: 0; }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}

.page-title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.page-lede  { color: var(--text-muted); font-size: var(--fs-md); max-width: 60ch; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.section-head h2 { letter-spacing: -0.015em; }
.section-head .link-more { font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; }

.muted  { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small  { font-size: var(--fs-sm); }
.xs     { font-size: var(--fs-xs); }
.mono   { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: -0.01em; }
.strong { font-weight: var(--fw-semibold); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.prose { max-width: 70ch; color: var(--text); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-8); font-size: var(--fs-lg); }
.prose h3 { margin-top: var(--sp-6); font-size: var(--fs-md); }
.prose ul, .prose ol { padding-left: var(--sp-5); margin-block: 0; }
.prose li + li { margin-top: var(--sp-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .page-note {
  background: var(--warning-bg); border-left: 3px solid var(--warning);
  padding: var(--sp-3) var(--sp-4); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-sm);
}

/* Price presentation */
.price { font-weight: var(--fw-bold); font-size: var(--fs-lg); letter-spacing: -0.015em; color: var(--text); }
.price-sm { font-size: var(--fs-md); }
.price-lg { font-size: var(--fs-2xl); }
.price-compare { color: var(--text-subtle); text-decoration: line-through; font-weight: var(--fw-normal); font-size: var(--fs-sm); }
.price-currency { font-size: 0.72em; font-weight: var(--fw-semibold); color: var(--text-muted); margin-right: 0.15em; }

/* -----------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.625rem 1rem;
  min-height: 42px;          /* comfortable touch target without being oversized */
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary { background: var(--brand); color: var(--text-on-brand); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }
:root[data-theme="dark"] .btn-primary { color: var(--navy-950); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: var(--navy-950); }
}

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-sunken); border-color: var(--text-subtle); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-sunken); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.93); }

.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger-bg); }

.btn-sm { padding: 0.4rem 0.7rem; min-height: 34px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-lg { padding: 0.8rem 1.4rem; min-height: 50px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-icon { padding: 0.5rem; min-height: 40px; min-width: 40px; }

/* Busy state driven by JS on form submit */
.btn[data-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[data-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  color: var(--text-on-brand);
  animation: spin 0.6s linear infinite;
}
.btn-secondary[data-busy="true"]::after, .btn-ghost[data-busy="true"]::after { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: var(--sp-4); }
.field-label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text);
}
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-hint { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); }
.field-error { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--danger); font-weight: var(--fw-medium); }

.input, .select, .textarea {
  display: block; width: 100%;
  padding: 0.625rem 0.75rem;
  min-height: 42px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface-sunken); color: var(--text-subtle); cursor: not-allowed;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent); }

.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6678' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2.25rem;
}
:root[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa8bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Input with a leading affix, e.g. the +255 phone prefix */
.input-group { display: flex; align-items: stretch; }
.input-group .input-affix {
  display: inline-flex; align-items: center; padding-inline: 0.75rem;
  background: var(--surface-sunken); border: 1px solid var(--border-strong); border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-size: var(--fs-sm); color: var(--text-muted); white-space: nowrap;
}
.input-group .input { border-radius: 0 var(--r-md) var(--r-md) 0; }

.checkbox, .radio { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; }
.checkbox input, .radio input {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--brand); cursor: pointer;
}
.checkbox-text { font-size: var(--fs-sm); line-height: 1.5; }

.fieldset { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); margin: 0 0 var(--sp-5); }
.fieldset > legend { padding-inline: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); }

.form-grid { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.form-actions {
  display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border);
}

/* OTP entry */
.otp-input {
  font-family: var(--font-mono);
  font-size: 1.5rem; letter-spacing: 0.5em; text-align: center;
  padding-left: 0.5em; font-weight: var(--fw-semibold);
}

/* Toggle switch for settings */
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 42px; height: 24px; flex: none; border-radius: var(--r-full);
  background: var(--border-strong); position: relative; transition: background var(--transition);
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-xs); transition: transform var(--transition);
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--focus-ring); }

/* -----------------------------------------------------------------------------
   7. Cards and product UI
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: var(--sp-5); }
.card-pad-sm { padding: var(--sp-4); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.card-body { padding: var(--sp-5); }
.card-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Product card */
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
@media (hover: hover) { .product-card:hover { transform: translateY(-2px); } }

.product-card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--surface-sunken);
  display: grid; place-items: center; overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-3); }
.product-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-card__brand { font-size: var(--fs-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.04em; font-weight: var(--fw-medium); }
.product-card__title { font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--text); line-height: 1.4; }
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--brand); text-decoration: none; }
.product-card__foot { margin-top: auto; padding-top: var(--sp-2); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.product-card__actions { position: absolute; top: var(--sp-2); right: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); z-index: 2; }

.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); box-shadow: var(--shadow-xs);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.icon-btn svg { width: 17px; height: 17px; }

/* Product detail gallery */
.gallery-main {
  aspect-ratio: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-5); }
.gallery-thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-1); scrollbar-width: thin; }
.gallery-thumb {
  flex: none; width: 66px; height: 66px; border-radius: var(--r-md);
  border: 2px solid var(--border); background: var(--surface);
  overflow: hidden; padding: 0; transition: border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery-thumb[aria-current="true"] { border-color: var(--brand); }

/* Specification table */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; color: var(--text-muted); font-weight: var(--fw-medium); }
.spec-table td { color: var(--text); font-weight: var(--fw-medium); }
.spec-table tr + tr { border-top: 1px solid var(--border); }
.spec-table tbody tr:nth-child(odd) { background: var(--surface-2); }

/* Quantity stepper */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.qty button {
  width: 38px; border: 0; background: transparent; color: var(--text-muted);
  font-size: var(--fs-lg); line-height: 1; transition: background var(--transition), color var(--transition);
}
.qty button:hover:not(:disabled) { background: var(--surface-sunken); color: var(--text); }
.qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty input {
  width: 48px; border: 0; border-inline: 1px solid var(--border); text-align: center;
  background: transparent; font-weight: var(--fw-medium); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--surface-sunken); }

/* Empty state */
.empty {
  text-align: center; padding: var(--sp-12) var(--sp-5);
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface-2);
}
.empty-icon { width: 44px; height: 44px; margin: 0 auto var(--sp-4); color: var(--text-subtle); }
.empty h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.empty p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 42ch; margin-inline: auto; }
.empty .btn { margin-top: var(--sp-5); }

/* Order summary panel */
.summary-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-2); font-size: var(--fs-sm); }
.summary-row dt { color: var(--text-muted); }
.summary-row dd { margin: 0; font-weight: var(--fw-medium); text-align: right; }
.summary-total {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border);
  font-size: var(--fs-md); font-weight: var(--fw-bold);
}

/* Stepper for checkout */
.steps { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-6); overflow-x: auto; padding-bottom: var(--sp-1); }
.step {
  flex: 1; min-width: 92px; padding: var(--sp-2) var(--sp-3);
  border-top: 3px solid var(--border); font-size: var(--fs-xs); color: var(--text-subtle);
}
.step[data-state="done"] { border-top-color: var(--brand); color: var(--text-muted); }
.step[data-state="current"] { border-top-color: var(--brand); color: var(--text); font-weight: var(--fw-semibold); }
.step-num { display: block; font-size: var(--fs-xs); color: var(--text-subtle); }

/* -----------------------------------------------------------------------------
   8. Badges, alerts, tables
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 0.2rem 0.55rem; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  line-height: 1.5; white-space: nowrap;
}
.badge-neutral { background: var(--surface-sunken); color: var(--text-muted); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-brand   { background: var(--brand-soft); color: var(--brand); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--r-md);
  font-size: var(--fs-sm); line-height: 1.55;
  border: 1px solid transparent;
}
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert strong { font-weight: var(--fw-semibold); }
.alert a { color: inherit; text-decoration: underline; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-subtle);
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
.table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }

.pagination { display: flex; gap: var(--sp-1); align-items: center; justify-content: center; margin-top: var(--sp-6); flex-wrap: wrap; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: var(--sp-2);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--text-muted); background: var(--surface);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: var(--fw-semibold); }
.pagination .disabled { opacity: 0.45; pointer-events: none; }

/* Stat tile for dashboards */
.stat { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.stat-label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: var(--fw-medium); }
.stat-value { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; margin-top: var(--sp-2); font-variant-numeric: tabular-nums; }
.stat-meta { font-size: var(--fs-xs); color: var(--text-subtle); margin-top: var(--sp-1); }
.stat-zero .stat-value { color: var(--text-subtle); font-weight: var(--fw-semibold); }

/* -----------------------------------------------------------------------------
   9. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; object-fit: contain; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: var(--r-md); background: var(--brand); color: #fff;
  font-weight: var(--fw-bold); font-size: var(--fs-sm); letter-spacing: -0.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--text);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.brand-name .accent { color: var(--brand); }
.brand-tag { font-size: 0.625rem; color: var(--text-subtle); letter-spacing: 0.08em; text-transform: uppercase; }

.header-search { flex: 1; max-width: 520px; position: relative; display: none; }
@media (min-width: 900px) { .header-search { display: block; } }
.header-search .input { padding-left: 2.4rem; background: var(--surface-sunken); border-color: transparent; }
.header-search .input:focus { background: var(--surface); border-color: var(--brand); }
.header-search svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-subtle); pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }

.header-icon {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  color: var(--text-muted); background: transparent; border: 0;
  transition: background var(--transition), color var(--transition);
}
.header-icon:hover { background: var(--surface-sunken); color: var(--text); text-decoration: none; }
.header-icon svg { width: 20px; height: 20px; }
.header-icon .count {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding-inline: 4px;
  border-radius: var(--r-full); background: var(--brand); color: #fff;
  font-size: 10px; font-weight: var(--fw-bold); line-height: 17px; text-align: center;
  border: 2px solid var(--surface);
}
.header-icon .count[data-count="0"] { display: none; }

/* Theme toggle: show the icon for the mode you would switch TO */
.icon-when-dark { display: none; }
.icon-when-light { display: block; }
:root[data-theme="dark"] .icon-when-dark { display: block; }
:root[data-theme="dark"] .icon-when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-when-dark { display: block; }
  :root:not([data-theme="light"]) .icon-when-light { display: none; }
}

/* Desktop primary nav */
.primary-nav { display: none; gap: var(--sp-1); }
@media (min-width: 900px) { .primary-nav { display: flex; } }
.primary-nav a {
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.primary-nav a:hover { color: var(--text); background: var(--surface-sunken); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

/* Mobile search bar under the header */
.mobile-search { padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); background: var(--surface); }
@media (min-width: 900px) { .mobile-search { display: none; } }
.mobile-search .wrap { position: relative; }
.mobile-search .input { padding-left: 2.4rem; background: var(--surface-sunken); border-color: transparent; }
.mobile-search svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-subtle); }

/* --- Mobile bottom navigation (the app-like part) --- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 900px) { .bottom-nav { display: none; } }

.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: var(--bottomnav-h); padding: var(--sp-2) var(--sp-1);
  color: var(--text-subtle); font-size: 10.5px; font-weight: var(--fw-medium);
  text-decoration: none; position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition);
}
.bottom-nav a svg { width: 21px; height: 21px; stroke-width: 1.9; }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bottom-nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--brand);
}
.bottom-nav .count {
  position: absolute; top: 6px; left: 54%;
  min-width: 15px; height: 15px; padding-inline: 3px;
  border-radius: var(--r-full); background: var(--brand); color: #fff;
  font-size: 9px; font-weight: var(--fw-bold); line-height: 15px; text-align: center;
}
.bottom-nav .count[data-count="0"] { display: none; }

/* Focused flows (checkout, OTP) hide the bar so the task owns the screen */
body[data-focus-mode="true"] .bottom-nav { display: none; }
body[data-focus-mode="true"] main { padding-bottom: var(--sp-8); }

/* Footer */
.site-footer { margin-top: var(--sp-16); background: var(--navy-900); color: var(--navy-200); }
.site-footer a { color: var(--navy-200); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--sp-8); padding-block: var(--sp-10); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-col h4 { font-size: var(--fs-sm); color: #fff; margin-bottom: var(--sp-4); font-weight: var(--fw-semibold); letter-spacing: 0.02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: var(--sp-2); }
.footer-col a { font-size: var(--fs-sm); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--sp-5); font-size: var(--fs-xs); color: var(--navy-300);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--navy-400); }

/* Drawer (mobile filters, admin nav) */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16, 24, 40, 0.55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.drawer-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 95; background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.drawer-bottom {
  left: 0; right: 0; bottom: 0; max-height: 85dvh;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer-left { top: 0; bottom: 0; left: 0; width: min(300px, 84vw); transform: translateX(-100%); }
.drawer[data-open="true"] { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); flex: none;
}
.drawer-body { padding: var(--sp-5); overflow-y: auto; flex: 1; }
.drawer-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); flex: none; display: flex; gap: var(--sp-3); }
.drawer-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: var(--sp-3) auto 0; }

/* Toast notifications */
.toast-stack {
  position: fixed; z-index: 120; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + var(--sp-4));
  display: flex; flex-direction: column; gap: var(--sp-2);
  width: min(420px, calc(100vw - 2rem)); pointer-events: none;
}
@media (min-width: 900px) { .toast-stack { bottom: var(--sp-6); left: auto; right: var(--sp-6); transform: none; } }
.toast {
  pointer-events: auto; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); display: flex; gap: var(--sp-3); align-items: flex-start;
  animation: toast-in 200ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast-success { background: var(--success); color: #fff; }
.toast-error   { background: var(--danger);  color: #fff; }
.toast-info    { background: var(--navy-800); color: #fff; }
.toast-warning { background: var(--warning); color: #fff; }

/* Offline banner */
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 140;
  background: var(--warning); color: #fff;
  padding: var(--sp-2) var(--sp-4); text-align: center;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  transform: translateY(-100%); transition: transform var(--transition);
}
.offline-banner[data-visible="true"] { transform: none; }

/* Install prompt */
.install-card {
  position: fixed; z-index: 110;
  left: var(--sp-4); right: var(--sp-4);
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + var(--sp-4));
  padding: var(--sp-4); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: none; gap: var(--sp-3); align-items: center;
}
.install-card[data-visible="true"] { display: flex; }
@media (min-width: 900px) { .install-card { left: auto; right: var(--sp-6); bottom: var(--sp-6); max-width: 380px; } }

/* -----------------------------------------------------------------------------
   10. Utilities, skeletons, print
   -------------------------------------------------------------------------- */
.hide { display: none !important; }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px)  { .hide-desktop { display: none !important; } }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.ml-auto { margin-left: auto; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.relative { position: relative; }

.divider { height: 1px; background: var(--border); margin-block: var(--sp-5); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--bg-subtle) 37%, var(--surface-sunken) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-text { height: 0.85em; margin-block: 0.3em; }
.skeleton-title { height: 1.2em; width: 60%; }
.skeleton-card { height: 260px; }

/* Horizontal scroller for product rails */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr);
  gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2); margin-inline: calc(var(--sp-4) * -1); padding-inline: var(--sp-4);
  scrollbar-width: thin;
}
.scroller > * { scroll-snap-align: start; }
@media (min-width: 700px) { .scroller { grid-auto-columns: minmax(220px, 1fr); margin-inline: 0; padding-inline: 0; } }

/* Hero */
.hero {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--green-800) 100%);
  color: #fff; padding: var(--sp-10) var(--sp-5);
}
@media (min-width: 768px) { .hero { padding: var(--sp-16) var(--sp-12); } }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: rgba(255, 255, 255, 0.82); max-width: 50ch; margin-top: var(--sp-4); font-size: var(--fs-md); }
.hero .btn-primary { background: #fff; color: var(--green-700); }
.hero .btn-primary:hover { background: var(--green-50); }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.hero-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }
.hero-media { position: absolute; inset-block: 0; right: 0; width: 42%; display: none; }
@media (min-width: 900px) { .hero-media { display: block; } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

/* Category tile */
.category-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-3); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.category-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); text-decoration: none; }
@media (hover: hover) { .category-tile:hover { transform: translateY(-2px); } }
.category-tile__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand);
}
.category-tile__icon svg { width: 24px; height: 24px; }
.category-tile__name { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text); line-height: 1.35; }
.category-tile__count { font-size: var(--fs-xs); color: var(--text-subtle); }

/* Trust / advantage strip */
.advantage { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.advantage__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); }
.advantage__icon svg { width: 20px; height: 20px; }
.advantage h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.advantage p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Timeline (order status history) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-left: var(--sp-8); padding-bottom: var(--sp-5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.timeline li[data-state="done"]::before { background: var(--brand); border-color: var(--brand); }
.timeline li[data-state="current"]::before { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline-title { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.timeline-meta { font-size: var(--fs-xs); color: var(--text-subtle); margin-top: 2px; }

/* Rating stars */
.stars { display: inline-flex; gap: 1px; color: #f0a800; }
.stars svg { width: 14px; height: 14px; }
.stars .off { color: var(--border-strong); }

@media print {
  .site-header, .site-footer, .bottom-nav, .toast-stack, .no-print, .install-card { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; box-shadow: none; }
  a { color: #000; text-decoration: none; }
  main { padding-bottom: 0; }
}
