/* =========================================================
   Zen Store — Design System
   ========================================================= */

:root {
  /* Color palette — modern blue with warm gold accent */
  --c-primary: #1e3a8a;
  --c-primary-hover: #1e40af;
  --c-primary-soft: #eff6ff;
  --c-accent: #3b82f6;
  --c-accent-soft: #dbeafe;
  --c-gold: #f59e0b;
  --c-gold-soft: #fef3c7;
  --c-success: #10b981;
  --c-danger: #ef4444;

  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-2: #f1f5f9;
  --c-border: #e2e8f0;
  --c-border-strong: #cbd5e1;

  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-text-soft: #94a3b8;
  --c-text-on-primary: #ffffff;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --sh-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --sh-xl: 0 24px 48px rgba(15, 23, 42, 0.18);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Layout */
  --container: 1280px;
  --header-h: 72px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--c-text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }

/* ----- Container ----- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
@media (max-width: 640px) { .container { padding: 0 var(--sp-4); } }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  box-shadow: var(--sh-sm);
}
.nav-main {
  display: flex;
  gap: var(--sp-2);
  flex: 1;
}
.nav-main a {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-weight: 500;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
  position: relative;
}
.nav-main a:hover { color: var(--c-primary); background: var(--c-primary-soft); }
.nav-main a.active { color: var(--c-primary); background: var(--c-primary-soft); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: var(--c-text);
  position: relative;
  transition: all var(--t-fast);
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-primary); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--c-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid white;
  transition: transform var(--t-med);
}
.cart-badge.bump { animation: bump 0.4s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: white;
    flex-direction: column;
    padding: var(--sp-4);
    gap: 0;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
    transform: translateY(-110%);
    transition: transform var(--t-med);
  }
  .nav-main.open { transform: translateY(0); }
  .nav-main a { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); }
  .menu-toggle { display: grid; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}
.btn-primary:hover { background: var(--c-primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4); }
.btn-secondary {
  background: white;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-secondary:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
}
.btn-ghost:hover { background: var(--c-surface-2); }
.btn-accent {
  background: var(--c-gold);
  color: white;
}
.btn-accent:hover { background: #d97706; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* =========================================================
   Hero — Home
   ========================================================= */
.hero {
  padding: var(--sp-8) 0 var(--sp-9);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: var(--c-gold-soft);
  color: #92400e;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.hero h1 {
  margin-bottom: var(--sp-4);
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
  max-width: 480px;
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.hero-stats { display: flex; gap: var(--sp-6); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--c-primary); }
.hero-stat span { font-size: 0.8rem; color: var(--c-text-muted); }
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-height: 520px;
  margin-left: auto;
  width: 100%;
  display: grid;
  place-items: center;
}
.hero-trending {
  display: flex; align-items: center; gap: 12px;
  margin-top: var(--sp-5); padding: 12px;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  max-width: 460px;
}
.hero-trending-label { font-size: .75rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; padding-right: 12px; border-right: 1px solid var(--c-border); }
.hero-trending-thumbs { display: flex; gap: -4px; }
.hero-trending-thumbs a { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--sh-sm); overflow: hidden; margin-left: -10px; background: var(--c-bg-soft); transition: transform var(--t-fast); }
.hero-trending-thumbs a:first-child { margin-left: 0; }
.hero-trending-thumbs a:hover { transform: translateY(-3px); z-index: 2; }
.hero-trending-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hero-trending-link { margin-left: auto; color: var(--c-primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at center, var(--c-accent-soft) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-visual::after {
  content: '';
  position: absolute;
  width: 80%; aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  opacity: 0.08;
  animation: spin 18s linear infinite;
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(30, 58, 138, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-20px) rotate(-8deg); } }
@media (max-width: 900px) {
  .hero { padding: var(--sp-6) 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/3; }
}

/* =========================================================
   Sections / Cards
   ========================================================= */
.section { padding: var(--sp-8) 0; }
.section-tight { padding: var(--sp-6) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section-head.compact { margin-bottom: var(--sp-4); }
.section-head .eyebrow { color: var(--c-accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { margin-top: 4px; }
.section-head .head-link { color: var(--c-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.section-head .head-link:hover { gap: 10px; transition: gap var(--t-fast); }

.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  transition: all var(--t-med);
}
.card:hover { box-shadow: var(--sh-md); border-color: var(--c-border-strong); }

/* =========================================================
   Categories grid
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: var(--sp-5);
  color: white;
  transition: all var(--t-med);
  isolation: isolate;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
  z-index: 1;
  transition: opacity var(--t-med);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card > * { position: relative; z-index: 2; }
.cat-card h3 { color: white; font-size: 1.5rem; }
.cat-card p { font-size: 0.9rem; opacity: 0.9; margin-top: 4px; }

/* Visual-only category card (image dominant, single label) */
.cat-card-visual { aspect-ratio: 4/5; padding: var(--sp-3); justify-content: flex-end; }
.cat-card-visual::before { background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.7) 100%); }
.cat-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); color: var(--c-text);
  padding: 10px 18px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  align-self: flex-start;
  transition: transform var(--t-fast), gap var(--t-fast), background var(--t-fast);
}
.cat-card-visual:hover .cat-label { gap: 14px; background: var(--c-primary); color: #fff; }
@media (max-width: 768px) { .cat-card-visual { aspect-ratio: 1/1; } }

/* Compact features (icon + short label) */
.features-compact .feature { padding: var(--sp-3); justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
.features-compact .feature-icon { width: 56px; height: 56px; font-size: 1.4rem; }
.features-compact .feature strong { font-size: .95rem; }

/* Lookbook visual grid */
.lookbook {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: var(--sp-3);
}
.lookbook .lb-tile:nth-child(1) { grid-row: span 2; }
.lookbook .lb-tile:nth-child(4) { grid-column: span 2; }
/* Hide overflow tiles if more than 4 ever rendered */
.lookbook .lb-tile:nth-child(n+5) { display: none; }
.lb-tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--c-primary-soft); display: block;
}
.lb-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.lb-tile:hover img { transform: scale(1.08); }
.lb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,.15), rgba(30,58,138,.55));
  opacity: 0; transition: opacity .3s ease;
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
}
.lb-tile:hover .lb-overlay { opacity: 1; }
@media (max-width: 768px) {
  .lookbook { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .lookbook .lb-tile:nth-child(1), .lookbook .lb-tile:nth-child(4) { grid-row: auto; grid-column: auto; }
}

.cat-card .cta {
  margin-top: var(--sp-4);
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  color: var(--c-primary);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.85rem;
  transition: gap var(--t-fast);
}
.cat-card:hover .cta { gap: 12px; }
@media (max-width: 768px) { .cat-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Product grid + cards
   ========================================================= */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}
.prod-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-accent); }
.prod-thumb {
  aspect-ratio: 1;
  background: var(--c-surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.prod-thumb img { width: 80%; height: 80%; object-fit: contain; transition: transform 0.5s ease; }
.prod-card:hover .prod-thumb img { transform: scale(1.08) rotate(-3deg); }
.prod-tag {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--c-gold);
  color: white;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.prod-fav {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: white;
  box-shadow: var(--sh-sm);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--t-med);
  color: var(--c-text-muted);
}
.prod-card:hover .prod-fav { opacity: 1; transform: translateY(0); }
.prod-fav:hover { color: var(--c-danger); }
.prod-fav.active { color: var(--c-danger); opacity: 1; transform: translateY(0); }
.prod-info { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.prod-cat { font-size: 0.75rem; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.prod-name { font-weight: 600; font-size: 1rem; color: var(--c-text); }
.prod-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.prod-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--c-primary); }
.prod-add {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: white;
  display: grid;
  place-items: center;
  transition: all var(--t-fast);
}
.prod-add:hover { background: var(--c-accent); transform: scale(1.1); }

/* =========================================================
   Filter bar
   ========================================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.chip {
  padding: 6px 14px;
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid transparent;
}
.chip:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.chip.active { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.filter-spacer { flex: 1; }
.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: white;
  color: var(--c-text);
  cursor: pointer;
  font-size: 0.85rem;
}
.sort-select:focus { outline: 2px solid var(--c-accent); outline-offset: 2px; border-color: var(--c-accent); }

/* =========================================================
   Page header
   ========================================================= */
.page-head {
  padding: var(--sp-7) 0 var(--sp-5);
  background: linear-gradient(180deg, var(--c-primary-soft), transparent);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--sp-2); }
.page-head .crumbs { font-size: 0.85rem; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.page-head .crumbs a { color: var(--c-primary); }

/* =========================================================
   Forms
   ========================================================= */
.form-card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-md);
  max-width: 460px;
  margin: 0 auto;
}
.form-card h2 { margin-bottom: var(--sp-2); }
.form-card .subtitle { color: var(--c-text-muted); margin-bottom: var(--sp-5); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: white;
  transition: all var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.field .err { display: block; color: var(--c-danger); font-size: 0.8rem; margin-top: 4px; min-height: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-foot { text-align: center; margin-top: var(--sp-5); color: var(--c-text-muted); font-size: 0.9rem; }
.form-foot a { color: var(--c-primary); font-weight: 600; }

/* =========================================================
   Cart
   ========================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  align-items: center;
}
.cart-item-img {
  width: 100px; height: 100px;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  overflow: hidden;
}
.cart-item-img img { width: 80%; height: 80%; object-fit: contain; }
.cart-item-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-meta { font-size: 0.8rem; color: var(--c-text-muted); }
.cart-item-actions { display: flex; flex-direction: column; align-items: end; gap: var(--sp-3); }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
}
.qty-stepper button {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: white;
  color: var(--c-text);
  display: grid; place-items: center;
  transition: all var(--t-fast);
  font-weight: 600;
}
.qty-stepper button:hover { background: var(--c-primary); color: white; }
.qty-stepper span { padding: 0 12px; font-weight: 600; min-width: 32px; text-align: center; }
.cart-item-price { font-family: var(--font-display); font-weight: 700; color: var(--c-primary); }
.cart-item-remove {
  background: transparent;
  color: var(--c-text-soft);
  font-size: 0.8rem;
}
.cart-item-remove:hover { color: var(--c-danger); }
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-img { width: 80px; height: 80px; }
  .cart-item-actions { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
.cart-summary {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
.cart-summary h3 { margin-bottom: var(--sp-4); }
.summary-row { display: flex; justify-content: space-between; padding: var(--sp-2) 0; }
.summary-row.total { border-top: 1px solid var(--c-border); margin-top: var(--sp-3); padding-top: var(--sp-3); font-size: 1.15rem; font-weight: 700; }
.summary-row.total span:last-child { color: var(--c-primary); font-family: var(--font-display); }

/* Empty states */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px dashed var(--c-border-strong);
}
.empty-state-icon {
  width: 80px; height: 80px;
  margin: 0 auto var(--sp-4);
  background: var(--c-primary-soft);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--c-primary);
  font-size: 2rem;
}
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { color: var(--c-text-muted); margin-bottom: var(--sp-4); }

/* =========================================================
   Product detail
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-7);
  padding: var(--sp-6) 0 var(--sp-8);
}
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.pd-gallery {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
}
.pd-main-img {
  aspect-ratio: 1;
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  overflow: hidden;
}
.pd-main-img img { width: 80%; height: 80%; object-fit: contain; transition: transform var(--t-med); }
.pd-main-img { position: relative; }
.pd-fav {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-border);
  color: var(--c-text-muted); cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.1rem; box-shadow: var(--sh-sm);
  transition: all var(--t-fast);
}
.pd-fav:hover { color: var(--c-danger); transform: scale(1.08); }
.pd-fav.active { color: #fff; background: var(--c-danger); border-color: var(--c-danger); }
.edit-inline { margin-bottom: 12px; }
.edit-inline .input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 1rem;
  background: #fff; outline: none;
}
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-3); }
.pd-thumb {
  aspect-ratio: 1;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  overflow: hidden;
}
.pd-thumb:hover { border-color: var(--c-accent); }
.pd-thumb.active { border-color: var(--c-primary); }
.pd-thumb img { width: 70%; height: 70%; object-fit: contain; }

.pd-info .pd-cat { color: var(--c-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pd-info h1 { font-size: 2rem; margin: 4px 0 var(--sp-3); }
.pd-rating { display: flex; gap: 2px; color: var(--c-gold); margin-bottom: var(--sp-3); font-size: 0.9rem; }
.pd-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c-primary); margin-bottom: var(--sp-4); }
.pd-price small { font-size: 1rem; color: var(--c-text-soft); text-decoration: line-through; margin-left: var(--sp-2); font-weight: 500; }
.pd-desc { color: var(--c-text-muted); margin-bottom: var(--sp-5); }
.pd-section { margin-bottom: var(--sp-4); }
.pd-section h4 { font-size: 0.9rem; margin-bottom: var(--sp-2); }
.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-2); }
.size-grid button {
  padding: 10px 0;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-weight: 600;
  background: white;
  transition: all var(--t-fast);
}
.size-grid button:hover { border-color: var(--c-accent); }
.size-grid button.active { border-color: var(--c-primary); background: var(--c-primary); color: white; }
.pd-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }

/* =========================================================
   Features strip
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(16px);
  animation: featureIn .65s cubic-bezier(.2,.7,.2,1) forwards;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
  cursor: default;
}
.features .feature:nth-child(1) { animation-delay: .05s; }
.features .feature:nth-child(2) { animation-delay: .18s; }
.features .feature:nth-child(3) { animation-delay: .31s; }
.features .feature:nth-child(4) { animation-delay: .44s; }
.feature:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, var(--c-primary-soft), transparent);
  box-shadow: 0 12px 28px -16px rgba(30, 58, 138, .35);
}
@keyframes featureIn {
  to { opacity: 1; transform: translateY(0); }
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s ease, color .3s ease;
}
.feature-icon::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  opacity: 0;
  transition: opacity .35s ease;
}
.feature-icon i { position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.08); color: #fff; }
.feature:hover .feature-icon::before { opacity: 1; }
.feature:hover .feature-icon i { animation: iconPop .6s ease; }
@keyframes iconPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
.feature strong { display: block; font-size: 0.92rem; transition: color .3s ease; }
.feature:hover strong { color: var(--c-primary); }
.feature span { font-size: 0.8rem; color: var(--c-text-muted); }
@media (max-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .feature { animation: none; opacity: 1; transform: none; }
  .feature:hover { transform: none; }
  .feature:hover .feature-icon { transform: none; }
  .feature:hover .feature-icon i { animation: none; }
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  margin: var(--sp-7) auto;
  padding: var(--sp-7);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: var(--r-xl);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before, .newsletter::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.newsletter::before { width: 220px; height: 220px; top: -80px; right: -60px; }
.newsletter::after { width: 160px; height: 160px; bottom: -60px; left: -40px; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: white; margin-bottom: var(--sp-2); }
.newsletter p { opacity: 0.9; max-width: 480px; margin: 0 auto var(--sp-5); }
.newsletter form { display: flex; max-width: 460px; margin: 0 auto; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }
.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-text);
}
.newsletter input:focus { outline: 3px solid white; }
.newsletter .btn { background: var(--c-text); }
.newsletter .btn:hover { background: black; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--c-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: white; }
.foot-brand p { margin: var(--sp-3) 0; max-width: 300px; }
.foot-socials { display: flex; gap: var(--sp-2); }
.foot-socials a {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  color: white;
  transition: all var(--t-fast);
}
.foot-socials a:hover { background: var(--c-accent); transform: translateY(-3px); }
.foot-col h4 { color: white; font-size: 0.95rem; margin-bottom: var(--sp-3); }
.foot-col a { display: block; padding: 4px 0; font-size: 0.9rem; transition: color var(--t-fast); }
.foot-col a:hover { color: white; }
.foot-bottom {
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* =========================================================
   Toast
   ========================================================= */
.toast-wrap {
  position: fixed;
  top: calc(var(--header-h) + var(--sp-3));
  right: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 1000;
  pointer-events: none;
}
.toast {
  background: white;
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--sh-lg);
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-left: 4px solid var(--c-primary);
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}
.toast.success { border-left-color: var(--c-success); }
.toast.error { border-left-color: var(--c-danger); }
.toast.fading { animation: toast-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes toast-in { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateX(110%); opacity: 0; } }

/* =========================================================
   Auth panel (login/signup)
   ========================================================= */
.auth-shell {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  padding: var(--sp-6) var(--sp-4);
}
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  width: 100%;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, .25);
}
.auth-aside {
  position: relative;
  background: #1e3a8a center/cover no-repeat;
  background-image: url('../images/extras/login.jpg');
  color: #fff;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
  overflow: hidden;
  min-height: 560px;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(30,58,138,.55) 0%, rgba(30,58,138,.15) 45%, rgba(15,23,42,.78) 100%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; align-self: flex-start; padding: 8px 14px; background: rgba(15,23,42,.45); border-radius: var(--r-pill); backdrop-filter: blur(8px); }
.auth-aside-brand .brand-mark { background: rgba(255,255,255,.2); }
.auth-aside-caption { max-width: 320px; }
.auth-aside-caption .tagline { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; background: rgba(255,255,255,.18); border-radius: var(--r-pill); margin-bottom: 12px; backdrop-filter: blur(6px); }
.auth-aside-caption h2 { color: #fff; font-size: 1.85rem; line-height: 1.15; margin-bottom: 8px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.auth-aside-caption p { color: #fff; opacity: .95; line-height: 1.5; font-size: .92rem; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.auth-aside-brand, .auth-aside-brand span { color: #fff; }
.auth-aside-caption .tagline { color: #fff; }
.auth-form-pane { padding: var(--sp-7); display: flex; flex-direction: column; justify-content: center; }
.auth-form-pane .form-card { box-shadow: none; border: 0; padding: 0; max-width: none; background: transparent; }
@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-form-pane { padding: var(--sp-5); }
}

/* Password input with visibility toggle */
.input-with-action { position: relative; }
.input-with-action input { padding-right: 44px; }
.input-action-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; padding: 8px; cursor: pointer;
  color: var(--c-text-muted); border-radius: var(--r-sm);
}
.input-action-btn:hover { color: var(--c-primary); background: var(--c-primary-soft); }
.field input.invalid, .field select.invalid { border-color: var(--c-danger); background: #fff5f5; }
.field input.valid { border-color: #10b981; }
.field-hint { display: block; color: var(--c-text-muted); font-size: .75rem; margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--c-primary); }
.checkbox-row a { color: var(--c-primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: var(--sp-4) 0; color: var(--c-text-muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.password-meter { height: 4px; background: var(--c-border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.password-meter-bar { height: 100%; width: 0; transition: width .3s ease, background .3s ease; }

/* =========================================================
   Profile / Admin
   ========================================================= */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0 var(--sp-7);
  align-items: start;
}
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  text-align: center;
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  box-shadow: 0 8px 32px -16px rgba(15,23,42,.18);
}
.profile-cover {
  height: 96px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  position: relative;
}
.profile-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.4), transparent 55%);
}
.profile-card-body { padding: 0 var(--sp-5) var(--sp-5); margin-top: -52px; }
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin: 0 auto var(--sp-3);
  border: 4px solid var(--c-surface);
  box-shadow: 0 6px 18px rgba(30,58,138,.35);
  position: relative;
  z-index: 1;
}
.profile-name-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.profile-card h3 { font-size: 1.15rem; }
.member-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--c-gold-soft); color: #92400e;
}
.profile-email { font-size: .85rem; color: var(--c-text-muted); margin-bottom: var(--sp-4); word-break: break-word; }
.profile-mini-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: var(--sp-4);
  padding: var(--sp-3); background: var(--c-bg); border-radius: var(--r-md);
}
.profile-mini-stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--c-primary); }
.profile-mini-stat span { font-size: .7rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.profile-card .btn-block + .btn-block { margin-top: 8px; }
.quick-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.quick-action {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-3); text-align: center; text-decoration: none; color: var(--c-text);
  transition: all var(--t-fast); cursor: pointer; display: block;
}
.quick-action:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(30,58,138,.4); }
.quick-action-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--c-primary-soft); color: var(--c-primary);
  display: grid; place-items: center; margin: 0 auto 10px; font-size: 1.05rem;
}
.quick-action strong { display: block; font-size: .88rem; margin-bottom: 2px; }
.quick-action span { font-size: .72rem; color: var(--c-text-muted); }
@media (max-width: 600px) { .quick-actions { grid-template-columns: 1fr; } }
.order-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.order {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.order-head h4 { font-size: 1rem; }
.order-meta { font-size: 0.8rem; color: var(--c-text-muted); }
.status {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
}
.status-pending { background: var(--c-gold-soft); color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.order-items { display: flex; flex-direction: column; gap: var(--sp-2); }
.order-item { display: flex; justify-content: space-between; font-size: 0.9rem; }
.order-item span:last-child { color: var(--c-text-muted); }
.order-total { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--c-border); display: flex; justify-content: space-between; font-weight: 700; }
.order-total span:last-child { color: var(--c-primary); }

/* =========================================================
   Checkout
   ========================================================= */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.profile-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.profile-stat-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--c-primary-soft); color: var(--c-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.profile-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--c-text); line-height: 1; }
.profile-stat-label { font-size: .78rem; color: var(--c-text-muted); margin-top: 2px; }
@media (max-width: 600px) { .profile-stats { grid-template-columns: 1fr; } }

.section-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.section-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4); }
.section-block-head .num {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--c-primary); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .9rem;
}
.section-block-head h3 { font-size: 1.1rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0 var(--sp-7);
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.pay-opt {
  padding: var(--sp-4);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: all var(--t-fast);
}
.pay-opt:hover { border-color: var(--c-accent); }
.pay-opt.active { border-color: var(--c-primary); background: var(--c-primary-soft); }
.pay-opt-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: white; display: grid; place-items: center; }
.pay-opt strong { display: block; font-size: 0.9rem; }
.pay-opt span { font-size: 0.75rem; color: var(--c-text-muted); }

/* EasyPaisa payment modal */
.ep-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px;
  animation: epFade .2s ease;
}
.ep-overlay.open { display: flex; }
@keyframes epFade { from { opacity: 0; } to { opacity: 1; } }
.ep-modal {
  background: #fff; border-radius: 18px; max-width: 460px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15,23,42,.4);
  animation: epPop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes epPop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.ep-head {
  background: linear-gradient(135deg, #00a651, #008740);
  color: #fff; padding: 18px 22px; border-radius: 18px 18px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.ep-head-title { display: flex; align-items: center; gap: 12px; }
.ep-head-logo {
  width: 40px; height: 40px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; color: #00a651; font-weight: 800; font-family: var(--font-display);
}
.ep-head h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.ep-head small { display: block; opacity: .9; font-size: .75rem; margin-top: 2px; }
.ep-close {
  background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.ep-close:hover { background: rgba(255,255,255,.3); }
.ep-body { padding: 22px; }
.ep-amount {
  text-align: center; padding: 14px; background: #f0fdf4; border: 1px dashed #22c55e;
  border-radius: 12px; margin-bottom: 16px;
}
.ep-amount-label { font-size: .75rem; color: #15803d; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ep-amount-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: #15803d; line-height: 1.1; margin-top: 2px; }
.ep-qr-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px; background: #f8fafc; border-radius: 12px; margin-bottom: 16px;
}
.ep-qr-wrap img { width: 200px; height: 200px; border-radius: 8px; background: #fff; padding: 8px; border: 1px solid #e2e8f0; }
.ep-qr-caption { font-size: .8rem; color: var(--c-text-muted); text-align: center; }
.ep-merchant {
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
  padding: 14px; margin-bottom: 16px;
}
.ep-merchant-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.ep-merchant-row + .ep-merchant-row { border-top: 1px solid var(--c-border); }
.ep-merchant-row .lbl { font-size: .8rem; color: var(--c-text-muted); }
.ep-merchant-row .val { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.ep-copy {
  background: var(--c-primary-soft); border: 0; color: var(--c-primary);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: .75rem;
}
.ep-copy:hover { background: var(--c-primary); color: #fff; }
.ep-steps { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; }
.ep-steps li {
  position: relative; padding: 8px 0 8px 32px; font-size: .85rem; color: var(--c-text); counter-increment: step;
}
.ep-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.ep-tx-field { margin-bottom: 14px; }
.ep-tx-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.ep-tx-field input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: 10px;
  font-family: inherit; font-size: .9rem; outline: none;
}
.ep-tx-field input:focus { border-color: var(--c-primary); }
.ep-tx-field .hint { display: block; font-size: .72rem; color: var(--c-text-muted); margin-top: 4px; }
.ep-actions { display: flex; gap: 10px; }
.ep-actions .btn { flex: 1; }
.ep-note {
  margin-top: 14px; padding: 10px 12px; background: #fffbeb; border-left: 3px solid #f59e0b;
  border-radius: 6px; font-size: .78rem; color: #92400e; line-height: 1.5;
}
@media (max-width: 480px) {
  .ep-qr-wrap img { width: 170px; height: 170px; }
  .ep-amount-value { font-size: 1.4rem; }
}

/* Pending review badge on thank-you */
.review-banner {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 16px 18px; margin: 20px auto; max-width: 480px; text-align: left;
  display: flex; gap: 14px; align-items: flex-start;
}
.review-banner i { color: #d97706; font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.review-banner strong { display: block; color: #92400e; margin-bottom: 4px; }
.review-banner span { font-size: .85rem; color: #78350f; line-height: 1.5; }

/* =========================================================
   Thank you
   ========================================================= */
.thanks {
  text-align: center;
  padding: var(--sp-9) var(--sp-4);
  max-width: 600px;
  margin: 0 auto;
}
.thanks-check {
  width: 100px; height: 100px;
  border-radius: var(--r-pill);
  background: var(--c-success);
  color: white;
  display: grid; place-items: center;
  margin: 0 auto var(--sp-5);
  font-size: 3rem;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.thanks h1 { margin-bottom: var(--sp-3); }
.thanks p { color: var(--c-text-muted); margin-bottom: var(--sp-5); }

/* =========================================================
   Admin
   ========================================================= */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
}
.stat-card span { color: var(--c-text-muted); font-size: 0.85rem; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--c-primary); margin-top: 4px; }
.admin-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.admin-actions .btn { padding: 6px 14px; font-size: 0.8rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  padding-top: 15vh;
  justify-content: center;
}
.search-overlay.open { display: flex; }
.search-panel {
  background: white;
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.search-panel input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 1rem;
}
.search-panel input:focus { outline: none; border-color: var(--c-accent); }
.search-results { overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-2); }
.search-result {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.search-result:hover { background: var(--c-surface-2); }
.search-result img { width: 48px; height: 48px; object-fit: contain; background: var(--c-surface-2); border-radius: var(--r-sm); padding: 4px; }
.search-result-info { flex: 1; }
.search-result-info strong { display: block; font-size: 0.9rem; }
.search-result-info span { font-size: 0.75rem; color: var(--c-text-muted); }
.search-result-price { color: var(--c-primary); font-weight: 700; }
.search-empty { padding: var(--sp-5); text-align: center; color: var(--c-text-muted); }
