/* ============================================================
   AUREA MARKET - Sistema de Diseño Premium
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* ---------- TOKENS ---------- */
:root {
  --white: #FFFFFF;
  --warm: #FAFAF7;
  --gold: #D4AF37;
  --gold-soft: #E5C76B;
  --gold-50: rgba(212,175,55,.08);
  --gold-100: rgba(212,175,55,.15);
  --royal: #174EA6;
  --sky: #4CA9FF;
  --royal-50: rgba(23,78,166,.08);
  --ink: #101114;
  --ink-80: #1a1c20;
  --text: #101114;
  --text-dark: #101114;
  --muted: #60646C;
  --muted-2: #8A8F98;
  --border: rgba(16,17,20,.08);
  --border-strong: rgba(16,17,20,.14);
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --shadow-sm: 0 1px 2px rgba(16,17,20,.04), 0 1px 3px rgba(16,17,20,.06);
  --shadow: 0 4px 12px rgba(16,17,20,.06), 0 2px 4px rgba(16,17,20,.04);
  --shadow-lg: 0 20px 40px -12px rgba(16,17,20,.15), 0 8px 16px -8px rgba(16,17,20,.1);
  --shadow-xl: 0 30px 60px -15px rgba(16,17,20,.25);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1400px;
  --header-h: 140px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 24px; flex-wrap: wrap;
}
.section-title h2 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); }
.section-title .eyebrow {
  display: block; font-family: 'Inter', sans-serif;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.section-title .link-more {
  font-weight: 600; color: var(--royal); font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-title .link-more:hover { color: var(--gold); }

/* ---------- GRID ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px; font-weight: 600; font-size: .95rem;
  transition: all .3s var(--ease); white-space: nowrap;
  border: 1px solid transparent; letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-80) 100%);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--ink); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--ink);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(212,175,55,.5); }
.btn-royal { background: var(--royal); color: var(--white); }
.btn-royal:hover { background: #123d80; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent; border-color: var(--border-strong); color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--muted); padding: 12px 18px; }
.btn-ghost:hover { color: var(--ink); background: var(--warm); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 18px 36px; font-size: 1rem; border-radius: 16px; }
.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--warm); transition: all .25s var(--ease);
}
.btn-icon:hover { background: var(--ink); color: var(--white); transform: scale(1.05); }
.btn-icon.gold:hover { background: var(--gold); color: var(--ink); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: .72rem;
  font-weight: 600; letter-spacing: .02em;
}
.badge-discount { background: var(--danger); color: white; }
.badge-new { background: var(--royal); color: white; }
.badge-hot { background: var(--gold); color: var(--ink); }
.badge-free { background: var(--success); color: white; }
.badge-out { background: var(--muted); color: white; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.75);
  font-size: .82rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 22px; }
.topbar-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,175,55,.12); color: var(--gold-soft);
  padding: 3px 12px; border-radius: 999px; font-weight: 500;
}

/* ---------- HEADER ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(12px);
}
.header-main {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-weight: 800;
  box-shadow: 0 6px 16px -4px rgba(212,175,55,.5);
}
.logo span.gold { color: var(--gold); }

/* Search */
.search-bar {
  display: flex; align-items: stretch;
  background: var(--warm); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: all .3s var(--ease);
  max-width: 720px;
}
.search-bar:focus-within {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-50);
}
.search-cat {
  padding: 0 18px; border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--muted); cursor: pointer;
  background: transparent; white-space: nowrap;
}
.search-cat:hover { color: var(--ink); }
.search-input {
  flex: 1; padding: 15px 18px; border: none; outline: none;
  background: transparent; font-size: .95rem;
}
.search-input::placeholder { color: var(--muted-2); }
.search-btn {
  padding: 0 24px; background: var(--ink); color: var(--white);
  display: flex; align-items: center; gap: 8px; font-weight: 600;
  transition: background .2s;
}
.search-btn:hover { background: var(--gold); color: var(--ink); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.action-btn {
  position: relative; padding: 10px 12px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .75rem; color: var(--muted); transition: all .2s;
  min-width: 56px;
}
.action-btn svg { width: 22px; height: 22px; stroke-width: 1.8; }
.action-btn:hover { background: var(--warm); color: var(--ink); }
.action-btn .count {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.location-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  font-size: .82rem; color: var(--muted); background: var(--warm);
}
.location-btn strong { color: var(--ink); font-weight: 600; }

/* Nav categories */
.nav-cats {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-cats-inner {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; padding: 0; scrollbar-width: none;
}
.nav-cats-inner::-webkit-scrollbar { display: none; }
.nav-cat {
  padding: 14px 18px; font-size: .9rem; font-weight: 500;
  color: var(--muted); white-space: nowrap; position: relative;
  transition: color .2s;
}
.nav-cat::after {
  content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: transform .3s var(--ease); border-radius: 2px;
}
.nav-cat:hover, .nav-cat.active { color: var(--ink); }
.nav-cat:hover::after, .nav-cat.active::after { transform: scaleX(1); }
.nav-cat.all {
  background: var(--ink); color: var(--white);
  border-radius: 10px; padding: 8px 16px; margin: 6px 8px 6px 0;
}
.nav-cat.all::after { display: none; }
.nav-cat.all:hover { background: var(--gold); color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; min-height: 520px;
  background: linear-gradient(135deg, #1a1c20 0%, #2a2d35 50%, #174EA6 100%);
  margin-top: 32px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; padding: 60px 72px;
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-content { color: var(--white); max-width: 520px; position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; background: rgba(212,175,55,.18);
  color: var(--gold-soft); padding: 6px 16px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 24px;
  border: 1px solid rgba(212,175,55,.3);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white); line-height: 1.1; margin-bottom: 20px;
  font-weight: 700;
}
.hero-title em {
  font-style: italic; color: var(--gold-soft);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 36px; max-width: 440px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-product {
  width: 85%; max-width: 480px; filter: drop-shadow(0 40px 60px rgba(0,0,0,.4));
  animation: float 6s ease-in-out infinite;
}
.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dot {
  width: 32px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s;
}
.hero-dot.active { background: var(--gold); width: 56px; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: white;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); z-index: 5; transition: all .2s;
}
.hero-nav:hover { background: var(--gold); color: var(--ink); }
.hero-nav.prev { left: 24px; } .hero-nav.next { right: 24px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ---------- CATEGORY CARDS ---------- */
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1 / 1.1; cursor: pointer;
  background: var(--warm); transition: all .4s var(--ease);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16,17,20,.75) 100%);
  z-index: 1; transition: opacity .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.cat-card:hover::before { opacity: .9; }
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px; z-index: 2; color: white;
}
.cat-info h3 { color: white; font-size: 1.3rem; margin-bottom: 4px; }
.cat-info span { font-size: .85rem; opacity: .8; }
.cat-arrow {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(20px); opacity: 0; transition: all .3s var(--ease);
}
.cat-card:hover .cat-arrow { transform: translateX(0); opacity: 1; }

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all .35s var(--ease); position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.product-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--warm);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.product-actions {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(12px); opacity: 0; transition: all .3s var(--ease);
}
.product-card:hover .product-actions { transform: translateX(0); opacity: 1; }
.product-actions .btn-icon {
  width: 38px; height: 38px; background: var(--white);
  box-shadow: var(--shadow);
}
.product-actions .btn-icon:hover { background: var(--ink); color: white; }
.product-actions .btn-icon.active { background: var(--danger); color: white; }
.product-info { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-brand {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}
.product-name {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: .98rem; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.product-name:hover { color: var(--royal); }
.product-seller { font-size: .8rem; color: var(--muted); }
.product-rating {
  display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted);
}
.product-rating .stars { color: var(--gold); display: flex; gap: 1px; }
.product-pricing { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 6px; }
.product-price {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 1.25rem; color: var(--ink);
}
.product-price-old {
  font-size: .88rem; color: var(--muted-2); text-decoration: line-through;
}
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--muted); padding-top: 4px;
}
.product-add {
  width: 100%; padding: 12px; margin-top: 12px;
  background: var(--ink); color: var(--white);
  border-radius: 12px; font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(8px); transition: all .3s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.product-card:hover .product-add { opacity: 1; transform: translateY(0); }
.product-add:hover { background: var(--gold); color: var(--ink); }

/* Flash deals variant */
.flash-card .product-media { aspect-ratio: 4 / 3; }
.flash-progress {
  height: 6px; background: var(--warm); border-radius: 3px;
  overflow: hidden; margin-top: 8px;
}
.flash-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--danger), var(--warning));
  border-radius: 3px;
}
.flash-sold { font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* ---------- CAROUSEL ---------- */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 280px;
  gap: 20px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.carousel > * { scroll-snap-align: start; }
.carousel-wrap { position: relative; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: all .2s;
}
.carousel-nav:hover { background: var(--ink); color: white; }
.carousel-nav.prev { left: -10px; }
.carousel-nav.next { right: -10px; }

/* ---------- BRANDS ---------- */
.brands {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.brand-item {
  background: var(--white); aspect-ratio: 2 / 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  font-weight: 700; color: var(--muted);
  transition: all .3s; cursor: pointer;
}
.brand-item:hover { color: var(--ink); background: var(--warm); }

/* ---------- SELLER CARD ---------- */
.seller-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all .3s var(--ease); text-align: center;
}
.seller-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-100); }
.seller-logo {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--warm), #f0ebe0);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--royal);
  border: 3px solid var(--white); box-shadow: var(--shadow);
}
.seller-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.seller-meta {
  display: flex; justify-content: center; gap: 16px;
  font-size: .85rem; color: var(--muted); margin: 12px 0 16px;
  flex-wrap: wrap;
}
.seller-meta strong { color: var(--ink); }
.seller-cats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.seller-cats span {
  padding: 4px 10px; background: var(--warm); border-radius: 999px;
  font-size: .75rem; color: var(--muted);
}

/* ---------- BENEFITS ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.benefit {
  background: var(--white); padding: 32px 24px; text-align: center;
  transition: background .2s;
}
.benefit:hover { background: var(--warm); }
.benefit-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px; background: var(--gold-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.benefit h4 { font-family: 'Inter', sans-serif; font-size: .98rem; margin-bottom: 4px; }
.benefit p { font-size: .85rem; color: var(--muted); }

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--ink) 0%, #1a2540 100%);
  border-radius: var(--radius-xl); padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 70%);
}
.newsletter-text { position: relative; z-index: 1; }
.newsletter-text h2 { color: white; font-size: 2.2rem; margin-bottom: 12px; }
.newsletter-text p { color: rgba(255,255,255,.65); font-size: 1rem; }
.newsletter-form {
  display: flex; background: var(--white);
  border-radius: 16px; padding: 6px; position: relative; z-index: 1;
}
.newsletter-form input {
  flex: 1; padding: 16px 20px; border: none; outline: none;
  background: transparent; font-size: .95rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,.65);
  margin-top: 80px; padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 56px;
}
.footer h4 {
  font-family: 'Inter', sans-serif; color: white;
  font-size: .95rem; font-weight: 600; margin-bottom: 20px;
  letter-spacing: .02em;
}
.footer .logo { color: white; margin-bottom: 18px; }
.footer-about p { font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--ink); }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .88rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-contact li {
  display: flex; gap: 10px; font-size: .88rem; margin-bottom: 14px;
  align-items: flex-start;
}
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: .85rem;
}
.footer-payments { display: flex; gap: 10px; }
.footer-payments span {
  padding: 6px 12px; background: rgba(255,255,255,.08);
  border-radius: 6px; font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.8);
}

/* ---------- COUNTDOWN ---------- */
.countdown {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--danger); color: white;
  padding: 8px 18px; border-radius: 12px; font-weight: 700;
}
.countdown-box {
  background: rgba(0,0,0,.2); padding: 4px 10px;
  border-radius: 6px; font-variant-numeric: tabular-nums;
  min-width: 36px; text-align: center;
}
.countdown-label { font-size: .75rem; font-weight: 500; opacity: .85; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted); padding: 24px 0;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.page-header {
  background: linear-gradient(135deg, var(--warm), #f5f1e6);
  padding: 40px 0; margin-bottom: 40px;
}
.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-header p { color: var(--muted); margin-top: 6px; }

/* ---------- CATALOG / SIDEBAR ---------- */
.catalog-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  align-items: flex-start;
}
.sidebar {
  position: sticky; top: 150px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.filter-block { padding: 20px 0; border-bottom: 1px solid var(--border); }
.filter-block:first-child { padding-top: 0; }
.filter-block:last-child { border-bottom: none; padding-bottom: 0; }
.filter-block h4 {
  font-family: 'Inter', sans-serif; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px; color: var(--ink);
}
.filter-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: .9rem; cursor: pointer;
  color: var(--muted); transition: color .2s;
}
.filter-list li:hover { color: var(--ink); }
.filter-list input { accent-color: var(--gold); }
.filter-list .count { margin-left: auto; font-size: .8rem; color: var(--muted-2); }
.price-range { display: flex; gap: 10px; }
.price-range input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .88rem; outline: none;
}
.price-range input:focus { border-color: var(--gold); }
.range-slider {
  height: 4px; background: var(--border); border-radius: 2px;
  margin: 20px 0; position: relative;
}
.range-slider-fill {
  position: absolute; left: 20%; right: 30%; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 2px;
}
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  box-shadow: inset 0 0 0 1px var(--border);
}
.color-swatch:hover, .color-swatch.active { border-color: var(--ink); transform: scale(1.1); }
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .85rem; cursor: pointer;
  transition: all .2s;
}
.size-chip:hover { border-color: var(--ink); }
.size-chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* Catalog toolbar */
.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.catalog-count { font-size: .9rem; color: var(--muted); }
.catalog-count strong { color: var(--ink); }
.view-toggle {
  display: flex; background: var(--warm); border-radius: 10px; padding: 3px;
}
.view-toggle button {
  padding: 8px 12px; border-radius: 7px; color: var(--muted);
  display: flex; align-items: center;
}
.view-toggle button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.sort-select {
  padding: 10px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--white); font-size: .9rem;
  cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--gold); }

/* List view */
.product-list .product-card {
  flex-direction: row; aspect-ratio: auto;
}
.product-list .product-media { width: 240px; flex-shrink: 0; aspect-ratio: 1; }
.product-list .product-info { flex: 1; padding: 24px; justify-content: center; }
.product-list .product-add { max-width: 220px; opacity: 1; transform: none; }

/* ---------- PRODUCT DETAIL ---------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: flex-start;
}
.gallery { display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: all .2s;
  background: var(--warm);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--warm); cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}

.pd-header .pd-brand {
  color: var(--gold); font-weight: 600; font-size: .8rem;
  letter-spacing: .15em; text-transform: uppercase;
}
.pd-header h1 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin: 10px 0 14px; }
.pd-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: .88rem; color: var(--muted); padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pd-meta .rating { color: var(--gold); display: flex; align-items: center; gap: 4px; }
.pd-meta a { color: var(--royal); }
.pd-pricing {
  display: flex; align-items: baseline; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.pd-price {
  font-family: 'Inter', sans-serif; font-size: 2.4rem; font-weight: 800;
  color: var(--ink);
}
.pd-price-old { font-size: 1.2rem; color: var(--muted-2); text-decoration: line-through; }
.pd-discount {
  background: var(--danger); color: white; padding: 4px 10px;
  border-radius: 6px; font-size: .8rem; font-weight: 700;
}
.pd-stock {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--success); font-weight: 600; font-size: .9rem;
  margin-top: 10px;
}
.pd-variant { padding: 20px 0; border-bottom: 1px solid var(--border); }
.pd-variant h5 {
  font-family: 'Inter', sans-serif; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px; color: var(--ink);
}
.pd-variant h5 span { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.pd-colors { display: flex; gap: 10px; }
.pd-color {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all .2s;
  box-shadow: inset 0 0 0 1px var(--border);
}
.pd-color.active { border-color: var(--ink); transform: scale(1.1); }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size {
  padding: 10px 18px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .9rem; cursor: pointer;
  font-weight: 500; transition: all .2s;
}
.pd-size:hover { border-color: var(--ink); }
.pd-size.active { background: var(--ink); color: white; border-color: var(--ink); }
.pd-size.out { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

.pd-qty-row {
  display: flex; align-items: center; gap: 16px; padding: 20px 0;
}
.qty-control {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.qty-control button {
  width: 44px; height: 48px; font-size: 1.2rem;
  transition: background .2s;
}
.qty-control button:hover { background: var(--warm); }
.qty-control input {
  width: 56px; height: 48px; text-align: center;
  border: none; outline: none; font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pd-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-cta-secondary {
  display: flex; gap: 12px; margin-top: 12px;
}

.pd-seller-card {
  margin-top: 24px; background: var(--warm);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 16px; align-items: center;
}
.pd-seller-logo {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.4rem; color: var(--royal);
}
.pd-seller-info { flex: 1; }
.pd-seller-info h5 { font-family: 'Inter', sans-serif; font-size: 1rem; }
.pd-seller-info p { font-size: .8rem; color: var(--muted); }
.pd-shipping {
  margin-top: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.pd-shipping-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; font-size: .9rem;
}
.pd-shipping-row svg { color: var(--gold); flex-shrink: 0; }
.pd-shipping-row strong { margin-left: auto; color: var(--success); }

/* Tabs */
.tabs { margin-top: 64px; border-top: 1px solid var(--border); }
.tabs-nav {
  display: flex; gap: 32px; overflow-x: auto;
  border-bottom: 1px solid var(--border); scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 20px 0; font-weight: 600; color: var(--muted);
  position: relative; white-space: nowrap; font-size: .95rem;
  transition: color .2s;
}
.tab-btn::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2.5px; background: var(--gold); transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.tab-btn.active { color: var(--ink); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-panel { padding: 40px 0; display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 14px 0; font-size: .92rem; }
.specs-table td:first-child { color: var(--muted); width: 35%; }

/* Reviews */
.review-summary {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  padding: 32px; background: var(--warm); border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.review-big { text-align: center; }
.review-score {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 700; line-height: 1; color: var(--ink);
}
.review-big .stars { color: var(--gold); font-size: 1.2rem; margin: 8px 0; }
.review-bars { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.review-bar-row { display: grid; grid-template-columns: 40px 1fr 40px; gap: 12px; align-items: center; font-size: .85rem; }
.review-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.review-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 4px; }
.review-item {
  padding: 24px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
}
.review-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--sky));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}
.review-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-head h5 { font-family: 'Inter', sans-serif; font-size: .95rem; }
.review-head .date { font-size: .8rem; color: var(--muted); }
.review-item .stars { color: var(--gold); margin-bottom: 10px; font-size: .85rem; }
.review-item p { font-size: .92rem; color: var(--text); line-height: 1.6; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--white);
  transition: all .2s;
}
.faq-item.active { border-color: var(--gold-100); box-shadow: var(--shadow); }
.faq-q {
  padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-weight: 600;
}
.faq-q svg { transition: transform .3s; color: var(--gold); }
.faq-item.active .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  padding: 0 24px;
}
.faq-item.active .faq-a { max-height: 400px; padding: 0 24px 24px; }
.faq-a p { color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ---------- CART ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: flex-start; }
.cart-items { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-item {
  background: var(--white); padding: 20px;
  display: grid; grid-template-columns: 100px 1fr auto; gap: 20px;
  align-items: center;
}
.cart-item-img {
  width: 100px; height: 100px; border-radius: 12px; overflow: hidden; background: var(--warm);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 4px; }
.cart-item-info .seller { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.cart-item-info .variant { font-size: .8rem; color: var(--muted-2); }
.cart-item-price { text-align: right; }
.cart-item-price .price { font-weight: 700; font-size: 1.1rem; }
.cart-item-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.cart-item-actions button { font-size: .82rem; color: var(--muted); }
.cart-item-actions button:hover { color: var(--danger); }
.cart-summary {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: sticky; top: 150px;
}
.cart-summary h3 { font-family: 'Inter', sans-serif; font-size: 1.2rem; margin-bottom: 20px; }
.cart-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; font-size: .92rem; color: var(--muted);
}
.cart-row strong { color: var(--ink); }
.cart-row.total {
  border-top: 1px solid var(--border); margin-top: 10px;
  padding-top: 18px; font-size: 1.25rem; font-weight: 700; color: var(--ink);
}
.cart-row.success { color: var(--success); }
.coupon {
  display: flex; gap: 8px; margin: 16px 0;
  padding: 16px; background: var(--warm); border-radius: 12px;
}
.coupon input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 10px; outline: none; background: var(--white);
}
.coupon input:focus { border-color: var(--gold); }

/* ---------- CHECKOUT ---------- */
.checkout-steps {
  display: flex; justify-content: center; gap: 0;
  margin-bottom: 48px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 0 8px;
}
.step::before {
  content: ''; position: absolute; top: 18px; left: 50%; right: -50%;
  height: 2px; background: var(--border); z-index: 0;
}
.step:last-child::before { display: none; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--warm); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; position: relative; z-index: 1;
  border: 2px solid var(--white); transition: all .3s;
}
.step.active .step-num { background: var(--ink); color: white; }
.step.done .step-num { background: var(--success); color: white; }
.step.active::before, .step.done::before { background: var(--success); }
.step-label { margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: center; }
.step.active .step-label { color: var(--ink); font-weight: 600; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: flex-start; }
.form-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px;
}
.form-section h3 { font-family: 'Inter', sans-serif; font-size: 1.15rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: .85rem; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 12px;
  outline: none; background: var(--white); font-size: .92rem;
  transition: all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-50);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .error { border-color: var(--danger); }
.field .error-text { color: var(--danger); font-size: .78rem; margin-top: 4px; }

.shipping-options, .payment-options { display: flex; flex-direction: column; gap: 12px; }
.ship-option, .pay-option {
  padding: 18px; border: 1.5px solid var(--border);
  border-radius: 14px; cursor: pointer; display: flex;
  align-items: center; gap: 14px; transition: all .2s;
}
.ship-option:hover, .pay-option:hover { border-color: var(--border-strong); }
.ship-option.active, .pay-option.active {
  border-color: var(--gold); background: var(--gold-50);
}
.ship-option input, .pay-option input { accent-color: var(--gold); }
.ship-option .price { margin-left: auto; font-weight: 700; }
.ship-option .free { color: var(--success); }
.pay-option .pay-icon {
  width: 48px; height: 32px; border-radius: 6px;
  background: var(--warm); display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: var(--royal);
}
.pay-option .pay-info { flex: 1; }
.pay-option .pay-info h5 { font-family: 'Inter', sans-serif; font-size: .95rem; }
.pay-option .pay-info p { font-size: .8rem; color: var(--muted); }

.card-form {
  margin-top: 16px; padding: 20px;
  background: var(--warm); border-radius: 14px;
  display: none;
}
.pay-option.active[data-method="card"] + .card-form,
.pay-option.active[data-method="card"] ~ .card-form { display: block; }

/* ---------- AUTH ---------- */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 44px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 32px; font-size: .95rem; }
.auth-card .field { margin-bottom: 16px; }
.auth-divider {
  text-align: center; margin: 24px 0; position: relative;
  font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.social-btn {
  width: 100%; padding: 14px; border-radius: 12px;
  border: 1px solid var(--border); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .2s; margin-bottom: 10px;
}
.social-btn:hover { background: var(--warm); border-color: var(--border-strong); }
.auth-footer { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--muted); }
.auth-footer a { color: var(--royal); font-weight: 600; }

/* ---------- ACCOUNT ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: flex-start; }
.account-menu {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px; position: sticky; top: 150px;
}
.account-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 10px;
  font-size: .92rem; color: var(--muted); transition: all .2s;
}
.account-menu a:hover { background: var(--warm); color: var(--ink); }
.account-menu a.active { background: var(--ink); color: white; }
.account-menu a svg { width: 18px; height: 18px; }
.account-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.account-card h3 { font-family: 'Inter', sans-serif; font-size: 1.25rem; margin-bottom: 24px; }
.account-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.account-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: var(--ink);
}

/* Orders */
.order-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px; overflow: hidden;
}
.order-head {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; padding: 18px 24px; background: var(--warm);
  font-size: .85rem;
}
.order-head strong { display: block; color: var(--ink); font-size: .95rem; margin-top: 2px; }
.order-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .8rem;
}
.status-pending { background: rgba(245,158,11,.12); color: var(--warning); }
.status-processing { background: rgba(59,130,246,.12); color: var(--info); }
.status-shipped { background: rgba(16,185,129,.12); color: var(--success); }
.status-delivered { background: rgba(23,78,166,.12); color: var(--royal); }
.status-cancelled { background: rgba(239,68,68,.12); color: var(--danger); }
.order-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.order-product {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px;
  align-items: center; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.order-product:last-child { border-bottom: none; padding-bottom: 0; }
.order-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--warm); }

/* ---------- SELLER DASHBOARD ---------- */
.seller-app {
  min-height: 100vh; display: grid;
  grid-template-columns: 260px 1fr; background: var(--warm);
}
.seller-sidebar {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 28px 20px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.seller-sidebar .logo { color: white; margin-bottom: 32px; padding: 0 8px; }
.seller-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .9rem; margin-bottom: 4px;
  transition: all .2s;
}
.seller-nav a:hover { background: rgba(255,255,255,.06); color: white; }
.seller-nav a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--ink); font-weight: 600;
}
.seller-nav-section {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.35); padding: 20px 14px 10px; font-weight: 600;
}
.seller-main { padding: 32px 40px; min-width: 0; }
.seller-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.seller-topbar h1 { font-size: 1.75rem; }
.seller-store {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--white);
  border-radius: 12px; border: 1px solid var(--border);
}
.seller-store-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--sky));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.kpi-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border);
  transition: all .2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.kpi-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon.gold { background: var(--gold-50); color: var(--gold); }
.kpi-icon.blue { background: rgba(76,169,255,.12); color: var(--sky); }
.kpi-icon.green { background: rgba(16,185,129,.1); color: var(--success); }
.kpi-icon.purple { background: rgba(139,92,246,.1); color: #8b5cf6; }
.kpi-value {
  font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800;
  color: var(--ink); line-height: 1;
}
.kpi-label { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.kpi-delta {
  font-size: .8rem; font-weight: 600; padding: 3px 8px;
  border-radius: 6px;
}
.kpi-delta.up { background: rgba(16,185,129,.1); color: var(--success); }
.kpi-delta.down { background: rgba(239,68,68,.1); color: var(--danger); }

.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 28px; }
.chart-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border);
}
.chart-card h4 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 20px; }
.chart-box { width: 100%; height: 320px; }
.chart-box.sm { height: 260px; }

.data-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th, .data-table td {
  padding: 14px 18px; text-align: left; font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--warm); font-family: 'Inter', sans-serif;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--warm); }
.customer-cell {
  display: flex; align-items: center; gap: 10px;
}
.customer-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--sky));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.table-actions { display: flex; gap: 6px; }
.table-actions button {
  padding: 6px 12px; border-radius: 8px; font-size: .8rem;
  border: 1px solid var(--border); transition: all .2s;
}
.table-actions button:hover { background: var(--ink); color: white; border-color: var(--ink); }

.inventory-alert {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: rgba(245,158,11,.06);
  border-left: 3px solid var(--warning); border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}
.inventory-alert.danger {
  background: rgba(239,68,68,.06); border-left-color: var(--danger);
}
.inventory-alert img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--warm); }
.inventory-alert strong { display: block; font-size: .9rem; }
.inventory-alert span { font-size: .8rem; color: var(--muted); }
.low-stock { margin-left: auto; font-weight: 700; color: var(--warning); font-size: .85rem; }
.low-stock.critical { color: var(--danger); }

/* ---------- MODAL & TOAST ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16,17,20,.6);
  backdrop-filter: blur(4px); z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .25s;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  max-width: 520px; width: 100%; max-height: 90vh; overflow: auto;
  animation: modalIn .3s var(--ease);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-family: 'Inter', sans-serif; font-size: 1.2rem; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--warm); }
.modal-body { padding: 28px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

.toast-container {
  position: fixed; bottom: 28px; right: 28px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--ink); color: white;
  padding: 16px 22px; border-radius: 14px;
  box-shadow: var(--shadow-xl); min-width: 280px;
  display: flex; align-items: center; gap: 12px;
  animation: toastIn .35s var(--ease);
  font-size: .92rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
.toast .toast-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast.success .toast-icon { background: rgba(16,185,129,.2); color: var(--success); }
.toast.error .toast-icon { background: rgba(239,68,68,.2); color: var(--danger); }
.toast.info .toast-icon { background: rgba(59,130,246,.2); color: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.toast.removing { animation: toastOut .3s forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px 4px 12px; z-index: 90;
  grid-template-columns: repeat(5, 1fr);
}
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: .68rem; color: var(--muted);
  padding: 6px 4px; position: relative;
}
.mobile-bottom-nav a.active { color: var(--ink); }
.mobile-bottom-nav .count {
  position: absolute; top: 0; right: 20%;
  min-width: 16px; height: 16px; background: var(--gold);
  color: var(--ink); border-radius: 999px; font-size: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid var(--white);
}

/* Mobile menu */
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 85%; max-width: 340px;
  background: var(--white); z-index: 1100;
  transform: translateX(-100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(16,17,20,.5);
  z-index: 1099; display: none;
}
.drawer-backdrop.show { display: block; }
.drawer-head {
  padding: 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.drawer-cats { padding: 12px 20px; }
.drawer-cats a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; font-size: .92rem; color: var(--muted);
}
.drawer-cats a:hover { color: var(--ink); }

.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.hamburger:hover { background: var(--warm); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1440px) {
  :root { --container: 1280px; }
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1366px) {
  :root { --container: 1200px; }
  .hero { min-height: 460px; }
  .hero-slide { padding: 48px 56px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
  .header-main { grid-template-columns: 160px 1fr auto; gap: 20px; }
  .search-cat { display: none; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 48px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 220px 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .section { padding: 56px 0; }
  .location-btn { display: none; }
  .action-btn span:not(.count) { display: none; }
  .action-btn { min-width: 44px; padding: 10px; }
  .hero { min-height: 400px; border-radius: 20px; }
  .hero-slide { grid-template-columns: 1fr; padding: 40px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-product { max-width: 300px; margin-top: 20px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .review-summary { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .seller-app { grid-template-columns: 72px 1fr; }
  .seller-sidebar .logo span, .seller-nav a span:not(:first-child), .seller-nav-section { display: none; }
  .seller-nav a { justify-content: center; padding: 14px; }
  .seller-nav a svg { width: 22px; height: 22px; }
  .seller-main { padding: 24px; }
  .checkout-steps .step-label { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 0; }
  .hamburger { display: inline-flex; }
  .topbar-links .hide-m { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 0; }
  .logo { font-size: 1.25rem; }
  .logo-mark { width: 32px; height: 32px; font-size: .85rem; }
  .search-bar { display: none; }
  .header-actions .action-btn:nth-child(1),
  .header-actions .action-btn:nth-child(2) { display: none; }
  .nav-cats { display: none; }
  .hero { margin-top: 20px; min-height: 340px; }
  .hero-slide { padding: 32px 24px; }
  .hero-title { font-size: 1.8rem; }
  .hero-nav { display: none; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter { padding: 36px 24px; }
  .newsletter h2 { font-size: 1.5rem; }
  .newsletter-form { flex-direction: column; background: transparent; padding: 0; gap: 10px; }
  .newsletter-form input { background: var(--white); border-radius: 12px; }
  .gallery { grid-template-columns: 64px 1fr; gap: 10px; }
  .pd-ctas { grid-template-columns: 1fr; }
  .pd-qty-row { flex-wrap: wrap; }
  .tabs-nav { gap: 20px; }
  .order-head { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .account-menu { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .mobile-bottom-nav { display: grid; }
  body { padding-bottom: 70px; }
  .seller-app { grid-template-columns: 1fr; }
  .seller-sidebar { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi-value { font-size: 1.4rem; }
  .auth-card { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-section { padding: 20px; }
  .data-table { display: block; overflow-x: auto; }
  .product-list .product-card { flex-direction: column; }
  .product-list .product-media { width: 100%; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .section-title h2 { font-size: 1.4rem; }
  .btn-lg { padding: 14px 24px; font-size: .95rem; }
  .carousel { grid-auto-columns: 220px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery-thumb { width: 60px; flex-shrink: 0; }
  .pd-price { font-size: 1.8rem; }
  .seller-main { padding: 16px; }
  .seller-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chart-box { height: 240px; }
}
@media (max-width: 380px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- UTILITIES ---------- */
.text-gold { color: var(--gold); }
.text-royal { color: var(--royal); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-100 { width: 100%; }
.hide { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.empty-state {
  text-align: center; padding: 80px 20px;
}
.empty-state svg { width: 80px; height: 80px; color: var(--muted-2); margin-bottom: 20px; opacity: .5; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* Selection */
::selection { background: var(--gold-100); color: var(--ink); }
