/**
 * EVOLYX Shop : système visuel sœur d’evolyx.cm
 *
 * Boutique (brand) : stratégie Committed, or en voix (CTA, prix, kicker, sélection).
 * Admin (product) : héritage Restrained, mêmes tokens.
 *
 * Scène : un client à Yaoundé, téléphone en main, compare une photo produit
 * le jour au marché ou le soir sous néon de salon, puis envoie WhatsApp.
 * Les deux ambiances existent ; le défaut est le système.
 *
 * OKLCH, neutres teintés or (hue ~91). Jamais noir/blanc purs.
 */

:root {
  color-scheme: light;

  --surface: oklch(0.985 0.008 91);
  --surface-page: oklch(0.968 0.01 91);
  --surface-container: oklch(0.945 0.012 91);
  --surface-high: oklch(0.915 0.016 91);
  --on-surface: oklch(0.24 0.02 80);
  --on-variant: oklch(0.46 0.024 80);
  --on-muted: oklch(0.58 0.018 80);
  --outline: oklch(0.9 0.016 91);
  --outline-strong: oklch(0.84 0.02 91);

  --gold: oklch(0.766 0.139 91.1);
  --gold-strong: oklch(0.705 0.135 89.6);
  --gold-text: oklch(0.544 0.106 87.4);
  --gold-soft: oklch(0.766 0.139 91.1 / 0.16);
  --on-gold: oklch(0.24 0.02 80);

  --danger: oklch(0.5 0.16 29);
  --danger-surface: oklch(0.96 0.02 25);
  --danger-outline: oklch(0.86 0.05 25);
  --success: oklch(0.45 0.1 151);
  --success-surface: oklch(0.95 0.03 151);
  --success-outline: oklch(0.86 0.05 151);
  --warning: oklch(0.55 0.12 70);
  --warning-surface: oklch(0.96 0.03 85);
  --info: oklch(0.48 0.1 250);
  --info-surface: oklch(0.95 0.025 250);
  --whatsapp: oklch(0.72 0.16 155);
  --whatsapp-text: oklch(0.38 0.08 155);

  --shadow-sm: 0 1px 2px oklch(0.24 0.02 80 / 0.05), 0 1px 3px oklch(0.24 0.02 80 / 0.04);
  --shadow-md: 0 2px 4px -1px oklch(0.24 0.02 80 / 0.05), 0 10px 18px -6px oklch(0.24 0.02 80 / 0.1);
  --shadow-lg: 0 4px 8px -2px oklch(0.24 0.02 80 / 0.06), 0 24px 44px -12px oklch(0.24 0.02 80 / 0.14);

  --glow: radial-gradient(62% 58% at 18% 8%, oklch(0.766 0.139 91.1 / 0.2), transparent 70%);
  --grid-line: oklch(0.24 0.02 80 / 0.045);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 64px;
  --container: 1120px;

  --color-black: var(--on-surface);
  --color-white: var(--surface);
  --color-gold: var(--gold);
  --color-gray-light: var(--surface-container);
  --color-gray-medium: var(--outline-strong);
  --color-gray-dark: var(--on-variant);
  --color-success: var(--success);
  --color-error: var(--danger);
  --color-warning: var(--warning);
  --color-info: var(--info);

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-tooltip: 1100;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --size-xs: 0.75rem;
  --size-sm: 0.875rem;
  --size-base: 1rem;
  --size-lg: 1.125rem;
  --size-xl: 1.5rem;
  --size-2xl: 2rem;
  --size-3xl: 2.5rem;
  --size-4xl: 3rem;
  --transition-fast: 160ms var(--ease-standard);
  --transition-base: 220ms var(--ease-standard);
  --font-body: var(--font-sans);
  --font-display: var(--font-sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --surface: oklch(0.23 0.014 80);
    --surface-page: oklch(0.18 0.012 80);
    --surface-container: oklch(0.27 0.016 80);
    --surface-high: oklch(0.32 0.018 80);
    --on-surface: oklch(0.96 0.012 91);
    --on-variant: oklch(0.76 0.02 85);
    --on-muted: oklch(0.62 0.016 85);
    --outline: oklch(0.34 0.016 80);
    --outline-strong: oklch(0.42 0.02 80);
    --gold-strong: oklch(0.829 0.124 92.8);
    --gold-text: oklch(0.829 0.124 92.8);
    --gold-soft: oklch(0.766 0.139 91.1 / 0.18);
    --on-gold: oklch(0.24 0.02 80);
    --danger: oklch(0.79 0.12 25);
    --danger-surface: oklch(0.28 0.05 25);
    --danger-outline: oklch(0.42 0.08 25);
    --success: oklch(0.82 0.08 151);
    --success-surface: oklch(0.28 0.04 151);
    --success-outline: oklch(0.4 0.06 151);
    --warning: oklch(0.82 0.1 85);
    --warning-surface: oklch(0.3 0.04 80);
    --info: oklch(0.78 0.08 250);
    --info-surface: oklch(0.28 0.04 250);
    --whatsapp: oklch(0.78 0.15 155);
    --whatsapp-text: oklch(0.82 0.1 155);
    --shadow-sm: 0 1px 2px oklch(0.12 0.01 80 / 0.45);
    --shadow-md: 0 2px 4px -1px oklch(0.12 0.01 80 / 0.4), 0 10px 18px -6px oklch(0.12 0.01 80 / 0.5);
    --shadow-lg: 0 4px 8px -2px oklch(0.12 0.01 80 / 0.4), 0 24px 44px -12px oklch(0.12 0.01 80 / 0.55);
    --glow: radial-gradient(62% 58% at 18% 8%, oklch(0.766 0.139 91.1 / 0.22), transparent 70%);
    --grid-line: oklch(0.96 0.012 91 / 0.045);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --surface: oklch(0.23 0.014 80);
  --surface-page: oklch(0.18 0.012 80);
  --surface-container: oklch(0.27 0.016 80);
  --surface-high: oklch(0.32 0.018 80);
  --on-surface: oklch(0.96 0.012 91);
  --on-variant: oklch(0.76 0.02 85);
  --on-muted: oklch(0.62 0.016 85);
  --outline: oklch(0.34 0.016 80);
  --outline-strong: oklch(0.42 0.02 80);
  --gold-strong: oklch(0.829 0.124 92.8);
  --gold-text: oklch(0.829 0.124 92.8);
  --gold-soft: oklch(0.766 0.139 91.1 / 0.18);
  --on-gold: oklch(0.24 0.02 80);
  --danger: oklch(0.79 0.12 25);
  --danger-surface: oklch(0.28 0.05 25);
  --danger-outline: oklch(0.42 0.08 25);
  --success: oklch(0.82 0.08 151);
  --success-surface: oklch(0.28 0.04 151);
  --success-outline: oklch(0.4 0.06 151);
  --warning: oklch(0.82 0.1 85);
  --warning-surface: oklch(0.3 0.04 80);
  --info: oklch(0.78 0.08 250);
  --info-surface: oklch(0.28 0.04 250);
  --whatsapp: oklch(0.78 0.15 155);
  --whatsapp-text: oklch(0.82 0.1 155);
  --shadow-sm: 0 1px 2px oklch(0.12 0.01 80 / 0.45);
  --shadow-md: 0 2px 4px -1px oklch(0.12 0.01 80 / 0.4), 0 10px 18px -6px oklch(0.12 0.01 80 / 0.5);
  --shadow-lg: 0 4px 8px -2px oklch(0.12 0.01 80 / 0.4), 0 24px 44px -12px oklch(0.12 0.01 80 / 0.55);
  --glow: radial-gradient(62% 58% at 18% 8%, oklch(0.766 0.139 91.1 / 0.22), transparent 70%);
  --grid-line: oklch(0.96 0.012 91 / 0.045);
}

:root[data-theme='light'] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--surface-page);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body.nav-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.15;
  color: var(--on-surface);
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 0.75rem;
  color: var(--on-variant);
  max-width: 72ch;
}

a {
  color: var(--gold-text);
  text-decoration: none;
}

a:hover { color: var(--on-surface); }

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 2px;
  border-radius: 4px;
}

.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--on-gold);
  padding: 0.5rem 1rem;
  z-index: 2000;
  font-weight: 600;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-gold { color: var(--gold-text); }
.text-gray { color: var(--on-muted); }
.text-error { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 1.75rem; }
.text-3xl { font-size: 2rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 600; }
.hidden { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition:
    background-color 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard),
    box-shadow 0.25s var(--ease-standard),
    transform 0.2s var(--ease-standard);
}

.btn:active { transform: scale(0.985); }

.btn-primary,
.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-gold:hover {
  background: var(--gold-strong);
  color: var(--on-gold);
  box-shadow: var(--shadow-md);
}

.btn-secondary,
.btn-outline {
  background: var(--surface);
  color: var(--on-surface);
  border-color: var(--outline-strong);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

.btn-ghost {
  color: var(--on-surface);
  padding-inline: 0.5rem;
}

.btn-ghost:hover { background: var(--surface-container); }

.btn-danger {
  background: var(--danger);
  color: var(--surface);
}

.btn-danger:hover { filter: brightness(0.95); color: var(--surface); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: oklch(0.18 0.03 155);
}

.btn-whatsapp:hover { filter: brightness(0.96); color: oklch(0.18 0.03 155); }

.btn-sm { min-height: 2.25rem; padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { min-height: 3rem; padding: 0.8rem 1.4rem; }
.btn.disabled,
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-surface);
}

input,
textarea,
select {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.6875rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline-strong);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 0.9375rem;
  font-family: inherit;
}

textarea { min-height: 6rem; resize: vertical; }

input::placeholder,
textarea::placeholder {
  color: var(--on-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold-text);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-group { margin-bottom: 1rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-container);
}

.theme-toggle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.theme-toggle-btn:hover { color: var(--on-surface); }

.theme-toggle-btn.is-active {
  background: var(--surface);
  color: var(--on-surface);
  box-shadow: var(--shadow-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  isolation: isolate;
  background: var(--surface);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom-color: var(--outline);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
  background: var(--surface);
}

.brand,
.brand-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.brand-accent { color: var(--gold-text); font-weight: 600; }

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav .nav-link {
  color: var(--on-variant);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.is-active {
  color: var(--on-surface);
  background: var(--surface-container);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-size: 1.1rem;
}

.cart-link:hover { background: var(--surface-container); color: var(--on-surface); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--on-surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.15rem;
}

.nav-toggle:hover { background: var(--surface-container); }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: oklch(0.24 0.02 80 / 0.32);
  cursor: pointer;
}

.site-header.menu-open .mobile-nav-backdrop {
  display: block;
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 2;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.1rem;
  border-top: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  max-height: min(70vh, calc(100dvh - var(--header-h)));
  overflow-y: auto;
}

.site-header.menu-open .mobile-nav {
  display: flex;
}

.mobile-nav[hidden],
.mobile-nav-backdrop[hidden] {
  display: none !important;
}

.mobile-nav-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--on-variant);
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: var(--surface-container);
  color: var(--on-surface);
}

@media (min-width: 900px) {
  .site-nav { display: flex; flex: 1; justify-content: center; }
  .nav-toggle,
  .mobile-nav,
  .mobile-nav-backdrop { display: none !important; }
}

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 2.75rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 20% 20%, oklch(0.2 0.02 80) 18%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -10% auto auto -8%;
  width: min(42rem, 90vw);
  height: 22rem;
  background: var(--glow);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 38rem;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-bottom: 0.85rem;
}

.hero h1 { margin-bottom: 0.85rem; }

.hero p {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured,
.catalog {
  padding: 1.25rem 0 3.75rem;
}

.featured { padding-top: 0.25rem; }

.featured[hidden] { display: none !important; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  align-items: end;
}

.filters .form-group {
  flex: 1;
  min-width: 180px;
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out-quint),
    box-shadow 0.35s var(--ease-standard),
    border-color 0.25s var(--ease-standard);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--outline-strong);
}

.product-card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-link:hover { color: inherit; }

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-container);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: var(--on-gold);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-info {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.product-category {
  color: var(--on-muted);
  font-size: 0.75rem;
  margin: 0;
  font-weight: 600;
}

.product-name { font-size: 1.02rem; margin: 0; color: var(--on-surface); }
.product-description {
  font-size: 0.875rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-price { font-weight: 700; color: var(--gold-text); }

.catalog-state {
  text-align: center;
  padding: 3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
}

.catalog-state p { margin-inline: auto; }

.catalog-state-error {
  background: var(--danger-surface);
  border-color: var(--danger-outline);
}

.product-card.is-skeleton {
  pointer-events: none;
  min-height: 22rem;
}

.product-card.is-skeleton .skel {
  display: block;
  background: linear-gradient(90deg, var(--surface-container) 0%, var(--surface-high) 50%, var(--surface-container) 100%);
  background-size: 200% 100%;
  animation: skel 1.2s var(--ease-standard) infinite;
}

.skel-img { height: 220px; }
.skel-line { height: 0.75rem; margin: 0.85rem 1rem 0; border-radius: 4px; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-80 { width: 80%; }

@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.pagination { display: flex; justify-content: center; margin-top: 2.25rem; }
.pagination-controls { display: flex; align-items: center; gap: 1rem; }
.pagination-info { color: var(--on-variant); font-size: 0.875rem; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--outline);
  background: var(--surface);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.6fr 0.8fr 1.1fr; }
}

.footer-tagline { max-width: 36ch; font-size: 0.9rem; }
.footer-city { color: var(--on-muted); font-size: 0.875rem; }

.site-footer h2 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--on-variant); font-size: 0.875rem; }
.site-footer a:hover { color: var(--on-surface); }

.footer-contact a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact i { color: var(--gold-text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  font-size: 0.75rem;
  color: var(--on-muted);
}

.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: var(--on-muted); }
.footer-bottom p { margin: 0; color: var(--on-muted); }

.page-main { flex: 1; padding: 2rem 0 3.25rem; }

.legal-page {
  max-width: 42rem;
  padding-bottom: 2rem;
}
.legal-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.legal-page h1 { margin-bottom: 0.35rem; }
.legal-meta { color: var(--on-muted); font-size: 0.875rem; margin-bottom: 1.75rem; }
.legal-page h2 { font-size: 1.05rem; margin: 1.75rem 0 0.6rem; }
.legal-page p, .legal-page li { color: var(--on-variant); font-size: 0.9375rem; line-height: 1.65; }
.legal-page ul { padding-left: 1.15rem; margin: 0.4rem 0 1rem; }
.legal-dl { margin: 0.75rem 0 0; }
.legal-dl > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--outline);
}
.legal-dl dt { font-size: 0.8rem; color: var(--on-muted); font-weight: 600; }
.legal-dl dd { margin: 0; font-size: 0.9375rem; }
@media (min-width: 640px) {
  .legal-dl > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}

.form-check {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.form-check label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
}

.wishlist-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wishlist-btn:hover { border-color: var(--gold); color: var(--gold-text); }
.wishlist-btn.is-active { background: var(--gold-soft); color: var(--gold-text); border-color: var(--gold); }
.product-card .wishlist-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 40px;
  height: 40px;
}

.page-product #reviewsSection,
.page-product #relatedSection { width: 100%; }
.product-extras { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--outline); }
.product-extras-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.page-product .review-form h3 { font-size: 1rem; margin-bottom: 0.85rem; }
.reviews-list { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.25rem; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.review-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; align-items: center; margin: 0 0 0.4rem; }
.review-stars { color: var(--gold-text); letter-spacing: 0.05em; }
.review-form { max-width: 32rem; padding: 1.15rem; }

.promo-box { margin: 0.75rem 0; }
.promo-input { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.promo-input input { flex: 1; min-width: 0; }

.product-detail-wrapper { padding: 0; }
.product-detail-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem 3.25rem;
    align-items: start;
  }
  .product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.product-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  aspect-ratio: 1;
  max-height: min(32rem, calc(100dvh - var(--header-h) - 3rem));
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
}
.product-gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-details-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.product-details-info > .card,
.product-details-info .product-detail-desc,
.product-details-info .product-meta {
  background: none;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
  border-radius: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--on-muted);
  margin: 0 0 0.85rem;
}
.breadcrumb a { color: var(--on-muted); }
.breadcrumb a:hover { color: var(--on-surface); }

.thumbnail-images {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}
.thumbnail {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 0.3rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
  cursor: pointer;
}
.thumbnail.active,
.thumbnail:hover { border-color: var(--gold); }

.product-detail-title {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.product-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
}
.product-detail-cat {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-muted);
}
.product-detail-price {
  margin: 0 0 1.15rem;
  max-width: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold-text);
}
.product-detail-kicker {
  margin: 0 0 0.3rem;
  max-width: none;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-muted);
}
.product-detail-desc {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-surface);
  white-space: pre-wrap;
}

.stock { padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.in-stock { background: var(--success-surface); color: var(--success); }
.out-stock { background: var(--danger-surface); color: var(--danger); }

.variations-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.variation-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--on-variant);
}
.variation-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variation-group:last-of-type .variation-options { margin-bottom: 0; }
.variation-info { margin-top: 0.15rem; }
.variation-info p { margin: 0; color: var(--on-muted); max-width: none; }
.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--outline-strong);
  cursor: pointer;
}
.color-option.selected { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.size-option {
  min-width: 44px;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--outline-strong);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  color: var(--on-surface);
}
.size-option.selected { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.size-option.disabled,
.size-option:disabled { opacity: 0.35; cursor: not-allowed; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--outline);
  font-size: 0.75rem;
  color: var(--on-muted);
  max-width: none;
}
.product-meta span { display: inline-flex; align-items: center; }
.product-meta span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 0.7em;
  margin: 0 0.7rem;
  background: var(--outline-strong);
}

.purchase-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.15rem;
}
.quantity-input,
.quantity-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  vertical-align: middle;
  background: var(--surface);
}
.quantity-input button,
.quantity-control button {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-container);
  cursor: pointer;
  color: var(--on-surface);
  font-size: 1.125rem;
  line-height: 1;
}
.quantity-input button:hover,
.quantity-control button:hover {
  background: var(--surface-high);
}
.quantity-input input,
.quantity-control input {
  width: 2.75rem;
  min-width: 2.5rem;
  max-width: 3.25rem;
  flex: 0 0 2.75rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.quantity-input input { min-height: 44px; }
.quantity-input input:focus,
.quantity-control input:focus {
  box-shadow: none;
  border-color: transparent;
  outline: none;
}
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}
.quantity-selector { flex-shrink: 0; }
.quantity-input button { min-height: 44px; }
#addToCartBtn { flex: 1 1 12rem; min-width: 0; }

@media (max-width: 480px) {
  .product-gallery-stage {
    max-height: none;
    padding: 1rem;
  }
  #addToCartBtn {
    flex: 1 1 100%;
    order: 3;
  }
}

.cart-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .cart-grid { grid-template-columns: 1fr 20rem; align-items: start; }
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.9rem 1rem;
  padding: 1rem;
  align-items: start;
}

.cart-thumb-wrap {
  width: 5.5rem;
  height: 5.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-container);
  border: 1px solid var(--outline);
  flex-shrink: 0;
}

.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cart-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cart-card-body h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--on-surface);
}

.cart-card-body p {
  margin: 0;
  max-width: none;
}

.cart-line-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-text);
}

.cart-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}

.quantity-control button {
  flex: 0 0 2.25rem;
  width: 2.25rem;
}
.quantity-control input { min-height: 36px; }

.cart-summary { height: fit-content; position: sticky; top: calc(var(--header-h) + 1rem); }
.summary-row { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.9rem; gap: 1rem; }
.summary-row.total { border-top: 1px solid var(--outline); margin-top: 0.5rem; font-weight: 700; }

.order-confirmation { max-width: 36rem; margin: 0 auto; }
.order-details { background: var(--surface-container); border-radius: var(--radius-md); padding: 1.25rem; margin: 1.25rem 0; }
.order-details ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.order-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.badge-pending { background: var(--warning-surface); color: var(--warning); padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending { background: var(--warning-surface); color: var(--warning); }
.status-confirmed { background: var(--info-surface); color: var(--info); }
.status-preparing { background: var(--surface-high); color: var(--on-variant); }
.status-shipped { background: var(--info-surface); color: var(--info); }
.status-delivered { background: var(--success-surface); color: var(--success); }
.status-cancelled { background: var(--danger-surface); color: var(--danger); }

.tracking-form { max-width: 28rem; margin: 1.5rem auto 0; }
.order-status-card { max-width: 36rem; margin: 1.5rem auto; }
.order-info { background: var(--surface-container); border-radius: var(--radius-md); padding: 1.25rem; margin-top: 1.5rem; }
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.9rem; }
.help-box { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--outline); }
.timeline-item { display: flex; gap: 0.85rem; margin-bottom: 1.1rem; opacity: 0.4; }
.timeline-item.is-active { opacity: 1; }
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-item.is-current .timeline-dot { box-shadow: 0 0 0 3px var(--gold-soft); }
.timeline-label { font-weight: 600; margin: 0; color: var(--on-surface); }
.timeline-now { color: var(--gold-text); font-weight: 600; font-size: 0.8125rem; margin-top: 0.25rem; }

.modal {
  position: fixed;
  inset: 0;
  background: oklch(0.24 0.02 80 / 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 1rem;
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--outline);
}
.modal-header, .modal-footer, .modal-body { padding: 1.1rem 1.25rem; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--outline); }
.modal-footer { display: flex; gap: 0.6rem; border-top: 1px solid var(--outline); }
.modal-footer .btn { flex: 1; }
.modal-close { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--on-variant); }

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--on-surface);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-tooltip);
}
.toast-success { background: var(--success); color: var(--surface); }
.toast-error { background: var(--danger); color: var(--surface); }
.toast-warning { background: var(--warning); color: var(--on-gold); }
.toast-action { color: inherit; font-weight: 700; text-decoration: underline; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: opacity 0.22s, transform 0.22s; }

.loading-spinner { display: flex; justify-content: center; gap: 0.4rem; padding: 2rem; }
.loading-spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s var(--ease-standard) infinite;
}
.loading-spinner span:nth-child(2) { animation-delay: 0.15s; }
.loading-spinner span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--surface-page);
}

.login-shell { width: 100%; max-width: 400px; }
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--on-surface);
  font-weight: 700;
}
.login-brand:hover { color: var(--on-surface); }
.login-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.login-page .btn-lg { width: 100%; }

.phone-row { display: flex; gap: 0.5rem; }
.phone-row select { width: 108px; flex-shrink: 0; }

@media (max-width: 768px) {
  .filters { flex-direction: column; }
  .filters .form-group, .filters .btn { width: 100%; }
  .hero { padding-top: 2rem; }
  .order-info-grid { grid-template-columns: 1fr; }
  .cart-card { grid-template-columns: 4.5rem 1fr; }
  .cart-thumb-wrap { width: 4.5rem; height: 4.5rem; }
  .theme-toggle-btn { width: 2rem; height: 2rem; }
}

@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;
  }
  .product-card:hover { transform: none; }
}
