/* ==========================================================================
   beranimurah.com — Design System (Merged: Liquid Glass + UI/UX Pro Max)
   Tema: dark modern, gradient emerald→cyan→violet as accents
   Glass effect TERBATAS (header, drawer, modal) — bukan di seluruh kartu
   Typography: Rubik (heading) + Inter (body) — dari Redesign
   Extended: Aurora blobs, stagger animations, glass cards — dari Hermes
   ========================================================================== */

/* --- Design tokens --- */
:root {
  /* Warna dasar */
  --bg: #05070d;
  --bg-elevated: #0d1120;
  --surface: #10152a;
  --surface-hover: #161c38;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  /* Teks */
  --text: #f1f5f9;
  --text-muted: #98a2b8;
  --text-subtle: #66708a;

  /* Brand gradient: emerald → cyan → violet — dipakai sebagai AKSEN */
  --brand-1: #10b981;
  --brand-2: #22d3ee;
  --brand-3: #8b5cf6;
  --brand-gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));

  --primary: var(--brand-1);
  --primary-contrast: #04120c;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);

  /* Glass — dipakai hanya di header, drawer mobile, modal/dropdown */
  --glass-bg: rgba(13, 17, 32, 0.72);
  --glass-border: rgba(148, 163, 184, 0.16);
  --glass-blur: 16px;

  /* Tipografi: Rubik (heading) + Inter (body) — dari Redesign */
  --font-heading: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;

  /* Bayangan */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 8px 30px rgba(16, 185, 129, 0.18);

  /* Transisi */
  --t-fast: 120ms ease-out;
  --t-base: 200ms ease-out;

  --z-header: 100;
  --z-drawer: 200;
  --z-toast: 300;

  --container-max: 1180px;
}

/* ==========================================================================
   EXTENSIONS FROM HERMES: Aurora, Stagger, Gradient Text
   ========================================================================== */

/* Gradient text utility */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Aurora background blobs — dari Hermes, opsi visual */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 90%, rgba(34, 211, 238, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  animation: aurora-shift 25s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes aurora-shift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(-2%, 1%) scale(1.02) rotate(0.5deg); }
  66% { transform: translate(1%, -0.5%) scale(0.99) rotate(-0.3deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Stagger animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fade-in-up 0.5s ease-out forwards; }

.stagger > * { opacity: 0; animation: fade-in-up 0.5s ease-out forwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }

/* ==========================================================================
   BASE STYLES (from Redesign)
   ========================================================================== */

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

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

main.wrap { padding: var(--sp-6) var(--sp-4); min-height: 60vh; }

/* ==========================================================================
   SITE HEADER: Glass sticky
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--t-base), border-color var(--t-base);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: var(--sp-4); flex-wrap: wrap;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: var(--sp-2);
}
.logo::before {
  content: ''; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-gradient);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.site-header nav { display: flex; gap: var(--sp-1); align-items: center; flex-wrap: wrap; }
.site-header nav a {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-md);
  font-weight: 500; font-size: 0.9rem; color: var(--text-muted);
  transition: all var(--t-fast);
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text); background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn, button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  border-radius: var(--radius-lg); border: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--t-fast);
  text-decoration: none; white-space: nowrap;
}
.btn-primary, button[type="submit"] {
  background: var(--brand-gradient);
  color: var(--primary-contrast);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover, button[type="submit"]:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-secondary {
  background: var(--glass-bg); color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--glass-bg); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   FORMS
   ========================================================================== */

form { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 480px; }
label { display: flex; flex-direction: column; gap: var(--sp-1);
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
input, textarea, select {
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 1rem;
  transition: all var(--t-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
input::placeholder { color: var(--text-subtle); opacity: 0.6; }

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */

.product-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  display: block; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: all var(--t-base);
}
.product-card:hover {
  transform: translateY(-4px); border-color: var(--border-strong);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-1);
}
.product-card-img {
  aspect-ratio: 1; background: var(--bg);
  border-bottom: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base); }
.product-card:hover .product-card-img img { transform: scale(1.03); }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-subtle); font-size: 0.8rem; }

.product-card h3 { padding: var(--sp-4) var(--sp-4) var(--sp-2); font-size: 1.05rem; line-height: 1.3; }
.product-card .price { padding: 0 var(--sp-4) var(--sp-4); font-weight: 700; font-size: 1.15rem; font-family: var(--font-heading); color: var(--brand-1); }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }

.product-gallery-main {
  position: sticky;
  top: var(--sp-6);
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-detail-info { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.product-detail-info h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0; }
.product-detail-info .price { font-size: 1.5rem; font-weight: 700; color: var(--brand-1); margin-bottom: 0; }
.product-detail-info .stock { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }
.product-detail-info .description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-line;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 0;
}

@media (max-width: 600px) {
  .product-gallery-main {
    position: static;
    max-height: 420px;
  }
}

.variant-group { margin-bottom: var(--sp-4); }
.variant-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-subtle); margin-bottom: var(--sp-2); text-transform: uppercase; letter-spacing: 0.06em; }
.variant-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.variant-buttons button {
  min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all var(--t-fast);
}
.variant-buttons button:hover { border-color: var(--brand-1); background: var(--surface-hover); }
.variant-buttons button.active { border-color: var(--brand-1); background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(34,211,238,0.1)); color: var(--brand-1); box-shadow: 0 0 0 1px var(--brand-1); }
.variant-buttons button:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */

.cart-table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; }
.cart-table th, .cart-table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.cart-table th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.cart-table tbody tr:hover td { background: var(--surface); }

.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); max-width: 360px; }
.cart-summary .total { font-size: 1.35rem; font-weight: 700; color: var(--brand-1); }

/* ==========================================================================
   ADMIN NAV
   ========================================================================== */

.admin-nav { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-nav a { padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-md); font-weight: 600; font-size: 0.85rem; color: var(--text-muted); transition: all var(--t-fast); }
.admin-nav a:hover, .admin-nav a.active { color: var(--brand-1); background: var(--surface); border: 1px solid var(--border-strong); }

/* ==========================================================================
   AUTH FORMS
   ========================================================================== */

.auth-form { max-width: 420px; margin: var(--sp-10) auto; padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.auth-form h2 { font-family: var(--font-heading); text-align: center; margin-bottom: var(--sp-2); }
.auth-form p { text-align: center; color: var(--text-muted); margin-bottom: var(--sp-5); }

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); margin-bottom: var(--sp-4); font-size: 0.9rem; }
.alert-error { background: var(--danger-bg); border: 1px solid var(--danger); color: #fca5a5; }
.alert-success { background: var(--success-bg); border: 1px solid var(--success); color: #6ee7b7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { border-top: 1px solid var(--border); margin-top: var(--sp-8); padding: var(--sp-6) 0; color: var(--text-subtle); font-size: 0.85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ==========================================================================
   FOCUS & SELECTION
   ========================================================================== */

:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: rgba(16, 185, 129, 0.3); color: var(--text); }

/* ==========================================================================
   SKIP LINK — Aksesibilitas
   ========================================================================== */

.skip-link {
  position: fixed;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 9999;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: all var(--t-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  overflow: visible;
  clip: auto;
  clip-path: none;
  opacity: 1;
  outline: 3px solid rgba(16, 185, 129, 0.4);
  outline-offset: 3px;
  color: var(--brand-1);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   HERO SECTION — Homepage (improved layout)
   ========================================================================== */

.hero {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(16, 185, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.hero-eyebrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  font-weight: 700;
}

.hero h1 .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--sp-6);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.btn-lg {
  min-height: 52px;
  padding: 0 var(--sp-7);
  font-size: 1rem;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  text-align: left;
}

.value-prop {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
}

.value-prop:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.value-prop svg {
  width: 24px;
  height: 24px;
  color: var(--brand-1);
  flex-shrink: 0;
}

.value-prop h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.value-prop p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.hero-illustration {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  height: 200px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

/* Hero responsive */
@media (max-width: 900px) {
  .value-props {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    max-width: 320px;
    height: 160px;
    opacity: 0.08;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: var(--sp-6) 0 var(--sp-4);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    max-width: 280px;
  }

  .value-prop {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--sp-3);
  }

  .value-prop svg {
    width: 20px;
    height: 20px;
  }

  .value-prop h3 {
    font-size: 0.85rem;
  }

  .value-prop p {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   HEADER IMPROVEMENTS
   ========================================================================== */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-accent {
  color: var(--brand-1);
  font-weight: 700;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-gradient);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--t-fast);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.auth-nav a {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--t-fast);
  text-decoration: none;
}

.auth-nav a:hover {
  color: var(--text);
  background: var(--glass-bg);
}

.auth-nav .btn-secondary {
  padding: var(--sp-2) var(--sp-4);
  min-height: 40px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
}

.nav-toggle:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Cart count badge */
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--brand-1);
  color: var(--primary-contrast);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: var(--sp-1);
}

/* Mobile drawer improvements */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
}

.mobile-drawer[data-open="true"] {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(4px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: var(--sp-6) var(--sp-4);
  overflow-y: auto;
  animation: drawer-slide-in 0.3s ease-out;
}

@keyframes drawer-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-drawer-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.mobile-drawer-close:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
}

.mobile-drawer-close svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer-panel nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.mobile-drawer-panel a {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: all var(--t-fast);
}

.mobile-drawer-panel a:hover {
  background: var(--surface-hover);
  color: var(--brand-1);
}

.drawer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-4) 0;
}

.mobile-drawer-panel form {
  margin-top: var(--sp-2);
}

/* Mobile nav toggle */
@media (max-width: 900px) {
  .primary-nav,
  .auth-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Section heading */
.section-heading {
  margin-bottom: var(--sp-5);
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.section-heading h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ==========================================================================
   BUTTONS — Extended sizes
   ========================================================================== */

.btn-sm {
  min-height: 36px;
  padding: 0 var(--sp-3);
  font-size: 0.8rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 var(--sp-7);
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}