/* ================================================================
   Gridline — Global Stylesheet
   Dark theme, clean surfaces
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --bg:          #08080f;
  --surface:     #0d0d1a;
  --surface-2:   #131320;
  --surface-3:   #1c1c2e;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.04);

  --violet:      #8b5cf6;
  --violet-light:#a78bfa;
  --violet-dark: #6d28d9;
  --cyan:        #38bdf8;
  --cyan-light:  #7dd3fc;
  --green:       #34d399;
  --amber:       #fbbf24;
  --red:         #f87171;

  --text:        #f0f0f8;
  --text-muted:  #8888a8;
  --text-dim:    #44445a;

  --grad-main:   linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
  --grad-hero:   radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139,92,246,0.12) 0%, transparent 70%);

  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   18px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.6);
  --shadow-lift: 0 12px 32px rgba(0,0,0,0.5);

  --nav-h:       64px;
  --transition:  0.18s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.display-1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
.display-2 { font-size: clamp(1.9rem, 4vw, 2.8rem);   font-weight: 700; letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 700; }
.label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8,8,15,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--grad-main);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.nav-logo-icon svg { width: 100%; height: 100%; }

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition), border-color var(--transition);
}

.cart-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.14); }

.cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--violet);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-badge.visible { display: flex; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg { padding: 13px 26px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.btn-primary {
  background: var(--grad-main);
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); opacity: 1; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-3); border-color: rgba(255,255,255,0.12); }

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,0.14); background: var(--surface-2); }

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

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.22s ease;
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* ── Badge / Pills ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-available   { background: rgba(52,211,153,0.12);  color: var(--green);        border: 1px solid rgba(52,211,153,0.2);  }
.badge-coming-soon { background: rgba(251,191,36,0.1);   color: var(--amber);        border: 1px solid rgba(251,191,36,0.18); }
.badge-new         { background: rgba(139,92,246,0.12);  color: var(--violet-light); border: 1px solid rgba(139,92,246,0.2);  }
.badge-league      { background: rgba(255,255,255,0.05); color: var(--text-muted);   border: 1px solid var(--border);         }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-header-left { display: flex; flex-direction: column; gap: 6px; }

/* ── Hero (index) ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── League Cards (index) ───────────────────────────────────── */
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.league-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  position: relative;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  display: block;
}

.league-card:hover {
  border-color: rgba(255,255,255,0.13);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.league-card-icon {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 20px;
}

.league-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.league-card-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.league-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.league-card-arrow {
  position: absolute;
  top: 28px; right: 28px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.22s ease;
}

.league-card:hover .league-card-arrow {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}

/* ── Features section ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  background: var(--surface);
  padding: 28px 24px;
}

.feature-icon {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.feature-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.feature-desc  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.65; }

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.page-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.page-breadcrumb a:hover { color: var(--text); }
.page-breadcrumb-sep { color: var(--text-dim); }

.page-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.page-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.filter-tab:hover { color: var(--text); background: var(--surface-2); }
.filter-tab.active { background: var(--surface-3); color: var(--text); font-weight: 600; }

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--surface-3);
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
  padding: 0 4px;
}

.filter-tab.active .filter-count {
  background: var(--violet);
  color: white;
}

.sort-select {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 30px 7px 12px;
  font-size: 0.83rem;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ── Product Grid ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}

.product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(255,255,255,0.13);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.product-card.coming-soon { opacity: 0.6; }
.product-card.coming-soon:hover {
  border-color: rgba(251,191,36,0.2);
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}

/* SVG preview area */
.product-preview {
  position: relative;
  background: #080812;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview svg,
.product-preview img,
.product-preview object {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity 0.3s ease;
}

.product-preview .svg-outline { position: absolute; inset: 0; padding: 12px; }
.product-preview .svg-colored  { position: absolute; inset: 0; padding: 12px; opacity: 0; transition: opacity 0.3s ease; }

.product-card:hover .svg-colored { opacity: 1; }
.product-card:hover .svg-outline { opacity: 0; }

/* Coming soon placeholder */
.preview-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
}

.preview-placeholder-icon { font-size: 2rem; opacity: 0.3; }
.preview-placeholder-text { font-size: 0.78rem; font-weight: 500; color: var(--text-dim); }

.product-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(19,19,32,0.7) 100%);
  pointer-events: none;
}

.product-preview-badge {
  position: absolute;
  top: 10px; left: 10px;
}

/* Card body */
.product-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-team {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.product-stadium {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.product-city {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-paths {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}

.add-to-cart-btn.in-cart {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.25);
  color: var(--green);
}

/* ── Cart Sidebar ───────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: -16px 0 40px rgba(0,0,0,0.5);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header-title { font-size: 1rem; font-weight: 700; }

.cart-close-btn {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.cart-close-btn:hover { background: var(--surface-3); color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 14px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.cart-empty-icon { opacity: 0.25; color: var(--text-muted); }
.cart-empty-text { font-size: 0.875rem; color: var(--text-dim); }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.cart-item-thumb {
  width: 56px; height: 46px;
  border-radius: 7px;
  background: #080812;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img, .cart-item-thumb svg { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-team { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-stadium { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cart-item-actions { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.cart-item-remove { font-size: 0.72rem; color: var(--text-dim); transition: color var(--transition); }
.cart-item-remove:hover { color: var(--red); }

.cart-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total-label { font-size: 0.875rem; color: var(--text-muted); }
.cart-total-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; }

/* ── Coming Soon Page ───────────────────────────────────────── */
.coming-soon-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.coming-soon-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  display: block;
}

.coming-soon-title { margin-bottom: 14px; }

.coming-soon-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.notify-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 28px;
}

.notify-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.notify-input::placeholder { color: var(--text-dim); }
.notify-input:focus { border-color: rgba(139,92,246,0.5); }

.coming-soon-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  max-width: 560px;
  margin: 28px auto 0;
}

.team-chip {
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.team-chip:hover {
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Variant Buttons (per-card buy options) ─────────────────── */
.variant-row {
  display: flex;
  gap: 5px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.variant-btn {
  flex: 1 1 calc(50% - 3px);
  min-width: 0;
  padding: 7px 6px;
  border-radius: 7px;
  font-size: 0.71rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bundle-btn {
  flex: 1 1 100%;
  background: rgba(139,92,246,0.07);
  color: var(--violet-light);
  border-color: rgba(139,92,246,0.2);
}

.outline-btn:hover  { background: var(--surface-3); color: var(--text); border-color: rgba(255,255,255,0.14); }
.colored-btn:hover  { background: rgba(139,92,246,0.12); color: var(--violet-light); border-color: rgba(139,92,246,0.3); }
.bundle-btn:hover   { background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.35); }

.variant-btn.in-cart {
  background: rgba(52,211,153,0.08);
  border-color: rgba(52,211,153,0.25);
  color: var(--green);
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  max-width: 300px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-overlay.open { opacity: 1; pointer-events: all; }

.lightbox-inner {
  position: relative;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
}

.lightbox-overlay.open .lightbox-inner { transform: scale(1); }

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lightbox-title { font-size: 0.95rem; font-weight: 700; }
.lightbox-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.lightbox-controls { display: flex; align-items: center; gap: 6px; }

.lightbox-variant-btn {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-variant-btn:hover { color: var(--text); background: var(--surface-3); border-color: rgba(255,255,255,0.12); }
.lightbox-variant-btn.active { background: var(--surface-3); color: var(--text); border-color: rgba(139,92,246,0.4); }

.lightbox-close {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 6px;
}

.lightbox-close:hover { background: var(--surface-3); color: var(--text); }

.lightbox-body {
  flex: 1;
  overflow: hidden;
  background: #080812;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 380px;
}

.lightbox-body img {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  display: block;
}

.lightbox-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.product-preview { cursor: zoom-in; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.4); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .section { padding: 52px 0; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-sidebar { width: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; }
  .notify-form { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
}
