/* ============================================================
   VINORA AI — DESIGN SYSTEM
   Brand source: vinoraai.wine
   Background: #121212  |  Text: #F7F4EF
   Gold accent: #f7bf46 / #C9A24D
   Heading font: Cormorant Garamond  |  Body: DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand Colours */
  --c-black:        #0a0a0a;
  --c-dark:         #121212;
  --c-dark-2:       #1a1a1a;
  --c-dark-3:       #222222;
  --c-card:         #1e1e1e;
  --c-wine:         #4A0E1A;
  --c-wine-mid:     #2a0a10;
  --c-gold:         #f7bf46;
  --c-gold-2:       #C9A24D;
  --c-gold-3:       #B8923D;
  --c-ivory:        #F7F4EF;
  --c-ivory-70:     rgba(247,244,239,0.7);
  --c-ivory-40:     rgba(247,244,239,0.4);
  --c-ivory-20:     rgba(247,244,239,0.2);
  --c-border:       rgba(201,162,77,0.15);
  --c-border-2:     rgba(201,162,77,0.3);
  --c-border-3:     rgba(201,162,77,0.5);

  /* Typography */
  --f-heading: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 96px;
  --s-5xl: 128px;

  /* Layout */
  --w-max:    1200px;
  --w-narrow: 760px;
  --nav-h:    72px;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 999px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Shadows */
  --sh-card: 0 4px 32px rgba(0,0,0,0.5);
  --sh-gold: 0 0 24px rgba(247,191,70,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--c-dark);
  color: var(--c-ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--f-body); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--f-body); }

/* ── Typography ── */
.display-xl {
  font-family: var(--f-heading);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--f-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
}
.display-md {
  font-family: var(--f-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
}
.section-title {
  font-family: var(--f-heading);
  font-size: clamp(1.625rem, 3.5vw, 2.625rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-ivory);
}
.heading-sm {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}
.eyebrow {
  display: block;
  font-family: var(--f-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-md);
}
.body-lg { font-size: 1.0625rem; line-height: 1.72; }
.body-md { font-size: 0.9375rem; line-height: 1.7; }
.body-sm { font-size: 0.8125rem; line-height: 1.65; }
em { font-style: italic; color: var(--c-gold); }

/* ── Layout ── */
.container {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--s-xl);
}
.container--narrow {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 0 var(--s-xl);
}
.section { padding: var(--s-4xl) var(--s-xl); }
.section--sm { padding: var(--s-3xl) var(--s-xl); }
.section-header { margin-bottom: var(--s-3xl); }
.section-header--center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-xl); }
.flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }
.gap-lg { gap: var(--s-lg); }
.gap-xl { gap: var(--s-xl); }
.text-center { text-align: center; }
.mt-xl { margin-top: var(--s-xl); }
.mt-2xl { margin-top: var(--s-2xl); }
.divider { width: 48px; height: 1px; background: var(--c-gold-2); margin: var(--s-lg) 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,162,77,0.1);
  display: flex;
  align-items: center;
  padding: 0 var(--s-xl);
  transition: background var(--t-base), border-color var(--t-base);
}
.nav.scrolled {
  background: rgba(10,10,10,0.99);
  border-bottom-color: rgba(201,162,77,0.2);
}
.nav__inner {
  max-width: var(--w-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
}
.nav__link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ivory-70);
  transition: color var(--t-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: left;
}
.nav__link:hover,
.nav__link.active { color: var(--c-ivory); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--s-md); }
.nav__ai-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(247,191,70,0.35);
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(247,191,70,0.06);
  transition: all var(--t-base);
}
.nav__ai-btn:hover {
  background: rgba(247,191,70,0.12);
  border-color: rgba(247,191,70,0.6);
}
.nav__ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.45; transform:scale(0.75); }
}
.nav__cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ivory-70);
  background: transparent;
  transition: all var(--t-base);
  position: relative;
}
.nav__cart-btn:hover { border-color: var(--c-border-3); color: var(--c-ivory); }
.nav__cart-count {
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  background: var(--c-gold);
  color: var(--c-dark);
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--c-ivory);
  transition: all var(--t-base);
}
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  padding: var(--s-xl);
  flex-direction: column;
  gap: var(--s-lg);
  z-index: 999;
  border-bottom: 1px solid var(--c-border);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-family: var(--f-heading);
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--c-ivory);
  padding-bottom: var(--s-sm);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--t-fast);
}
.nav__mobile-link:hover { color: var(--c-gold); }

/* ── Nav: Auth state ── */
.nav__signin-link {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ivory-70);
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.nav__signin-link:hover { color: var(--c-gold); border-color: var(--c-border-2); }

.nav__user-menu { position: relative; }
.nav__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  color: var(--c-ivory);
  transition: border-color var(--t-fast);
}
.nav__user-btn:hover { border-color: var(--c-border-2); }
.nav__user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-wine), #2a0a10);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-heading);
  font-size: 0.75rem;
  color: var(--c-gold);
  border: 1px solid rgba(201,162,77,0.3);
  flex-shrink: 0;
}
.nav__user-name {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-ivory);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__user-caret {
  font-size: 0.6rem;
  color: var(--c-ivory-40);
  transition: transform var(--t-fast);
}
.nav__user-btn[aria-expanded="true"] .nav__user-caret { transform: rotate(180deg); }
.nav__user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 6px;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: none;
}
.nav__user-dropdown.open { display: block; }
.nav__dropdown-link {
  display: block;
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: var(--c-ivory-70);
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.nav__dropdown-link:hover { background: rgba(201,162,77,0.08); color: var(--c-gold); }
.nav__dropdown-divider { height: 1px; background: var(--c-border); margin: 4px 0; }
.nav__dropdown-signout {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: rgba(247,244,239,0.4);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__dropdown-signout:hover { background: rgba(224,82,82,0.08); color: #e05252; }

/* Mobile signout */
.nav__mobile-signout {
  font-family: var(--f-heading);
  font-size: 1.375rem;
  font-weight: 300;
  color: rgba(247,244,239,0.4);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: var(--s-sm);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: color var(--t-fast);
}
.nav__mobile-signout:hover { color: #e05252; }

/* Save-to-wishlist button */
.btn-save-wine {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  color: rgba(247,244,239,0.5);
  font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
  position: absolute;
  top: 12px;
  right: 12px;
}
.btn-save-wine:hover { background: rgba(201,162,77,0.15); color: var(--c-gold); border-color: rgba(201,162,77,0.4); }
.btn-save-wine.saved { background: rgba(201,162,77,0.15); color: var(--c-gold); border-color: rgba(201,162,77,0.5); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 0.675rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn--gold {
  background: var(--c-gold);
  color: var(--c-dark);
  border-color: var(--c-gold);
}
.btn--gold:hover {
  background: var(--c-gold-2);
  border-color: var(--c-gold-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247,191,70,0.22);
}
.btn--outline {
  background: transparent;
  color: var(--c-ivory);
  border-color: rgba(247,244,239,0.25);
}
.btn--outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.btn--outline-gold {
  background: transparent;
  color: var(--c-gold);
  border-color: rgba(201,162,77,0.4);
}
.btn--outline-gold:hover {
  background: rgba(201,162,77,0.08);
  border-color: var(--c-gold);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ivory-70);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn--ghost:hover { color: var(--c-ivory); }
.btn--sm { padding: 9px 20px; font-size: 0.625rem; }
.btn--lg { padding: 15px 36px; font-size: 0.725rem; }
.btn--full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  position: relative;
}
.card:hover {
  border-color: var(--c-border-2);
  transform: translateY(-3px);
  box-shadow: var(--sh-card);
}
.card__image {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--c-wine) 0%, var(--c-dark-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.card__image img { width:100%; height:100%; object-fit:cover; }
.card__wine-icon {
  opacity: 0.18;
  width: 48px;
}
.card__body { padding: var(--s-lg); }
.card__badge {
  display: inline-block;
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(247,191,70,0.1);
  border: 1px solid rgba(247,191,70,0.2);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: var(--s-sm);
}
.card__region {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-3);
  margin-bottom: var(--s-xs);
}
.card__name {
  font-family: var(--f-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-ivory);
  margin-bottom: var(--s-xs);
  line-height: 1.3;
}
.card__note {
  font-size: 0.8125rem;
  color: var(--c-ivory-40);
  line-height: 1.65;
  margin-bottom: var(--s-md);
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-md) var(--s-lg);
  border-top: 1px solid var(--c-border);
}
.card__price {
  font-family: var(--f-heading);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--c-gold);
}

/* ── Page Hero ── */
.page-hero {
  min-height: 52vh;
  background: linear-gradient(160deg, var(--c-wine) 0%, var(--c-dark) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--s-4xl)) var(--s-xl) var(--s-4xl);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(247,191,70,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; max-width: 680px; }

/* ── Forms ── */
.form-group { margin-bottom: var(--s-md); }
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ivory-70);
  margin-bottom: var(--s-sm);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,77,0.2);
  border-radius: var(--r-sm);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-ivory-40); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(247,191,70,0.5);
  background: rgba(255,255,255,0.06);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A24D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
  padding: var(--s-lg) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-2xl);
}
.filter-chip {
  padding: 7px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(201,162,77,0.2);
  background: transparent;
  color: var(--c-ivory-70);
  font-family: var(--f-body);
  font-size: 0.725rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
}
.filter-chip:hover { border-color: rgba(247,191,70,0.4); color: var(--c-ivory); }
.filter-chip.active {
  background: rgba(247,191,70,0.1);
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* ── Stat Block ── */
.stat-block { text-align: center; }
.stat-block__number {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: var(--s-xs);
}
.stat-block__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ivory-40);
}

/* ── Testimonial ── */
.testimonial {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
}
.testimonial__quote {
  font-family: var(--f-heading);
  font-size: 1.0625rem;
  font-weight: 300;
  font-style: italic;
  color: var(--c-ivory);
  line-height: 1.65;
  margin-bottom: var(--s-lg);
}
.testimonial__quote::before { content: '\201C'; color: var(--c-gold); font-size: 1.5em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.testimonial__author { font-size: 0.8125rem; font-weight: 600; color: var(--c-ivory-70); }
.testimonial__role { font-size: 0.75rem; color: var(--c-ivory-40); margin-top: 2px; }

/* ── Pricing Card ── */
.pricing-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-2xl);
  position: relative;
  transition: all var(--t-base);
}
.pricing-card--featured {
  border-color: var(--c-gold-2);
  background: linear-gradient(160deg, rgba(74,14,26,0.35), var(--c-card));
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-gold);
  color: var(--c-dark);
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pricing-card__tier {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-md);
}
.pricing-card__price {
  font-family: var(--f-heading);
  font-size: 3rem;
  font-weight: 300;
  color: var(--c-ivory);
  line-height: 1;
  margin-bottom: var(--s-xs);
}
.pricing-card__price sup { font-size: 1.25rem; vertical-align: super; }
.pricing-card__period { font-size: 0.8125rem; color: var(--c-ivory-40); margin-bottom: var(--s-xl); }
.pricing-card__features { list-style: none; margin-bottom: var(--s-xl); }
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  padding: var(--s-sm) 0;
  font-size: 0.875rem;
  color: var(--c-ivory-70);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-card__feature:last-child { border-bottom: none; }
.pricing-card__feature--yes { color: var(--c-ivory); }
.pricing-card__feature--no  { color: var(--c-ivory-40); }
.check-yes { color: var(--c-gold); font-weight: 700; }
.check-no  { color: var(--c-ivory-20); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: var(--s-xl); right: var(--s-xl);
  background: var(--c-dark-2);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  font-size: 0.875rem;
  color: var(--c-ivory);
  box-shadow: var(--sh-card);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--t-base);
  max-width: 320px;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast__title { font-weight: 600; color: var(--c-gold); margin-bottom: 2px; }

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 90vw;
  background: var(--c-dark-2);
  border-left: 1px solid var(--c-border);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-lg) var(--s-xl);
  border-bottom: 1px solid var(--c-border);
}
.cart-drawer__title {
  font-family: var(--f-heading);
  font-size: 1.25rem; font-weight: 500;
  color: var(--c-ivory);
}
.cart-drawer__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--c-ivory-70);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--t-fast);
  line-height: 1;
}
.cart-drawer__close:hover { background: rgba(255,255,255,0.06); color: var(--c-ivory); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--s-lg) var(--s-xl); }
.cart-drawer__empty { text-align: center; padding: var(--s-3xl) 0; color: var(--c-ivory-40); }
.cart-drawer__empty-title {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  margin-bottom: var(--s-sm);
  color: var(--c-ivory-70);
}
.cart-item {
  display: flex; gap: var(--s-md);
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--c-border);
}
.cart-item__thumb {
  width: 56px; height: 72px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--c-wine), var(--c-dark-3));
  flex-shrink: 0;
}
.cart-item__name {
  font-family: var(--f-heading);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--c-ivory); margin-bottom: 4px;
}
.cart-item__price { font-size: 0.875rem; color: var(--c-gold); }
.cart-item__remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--c-ivory-40);
  cursor: pointer;
  transition: color var(--t-fast);
  align-self: flex-start;
}
.cart-item__remove:hover { color: var(--c-ivory); }
.cart-drawer__footer {
  padding: var(--s-lg) var(--s-xl);
  border-top: 1px solid var(--c-border);
}
.cart-drawer__total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-lg);
}
.cart-drawer__total-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-ivory-70);
}
.cart-drawer__total-amount {
  font-family: var(--f-heading);
  font-size: 1.5rem; color: var(--c-gold);
}

/* ── Footer ── */
.footer {
  background: var(--c-black);
  border-top: 1px solid rgba(201,162,77,0.1);
  padding: var(--s-4xl) var(--s-xl) var(--s-xl);
}
.footer__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-3xl);
  padding-bottom: var(--s-3xl);
  border-bottom: 1px solid rgba(201,162,77,0.07);
}
.footer__logo { height: 30px; width: auto; margin-bottom: var(--s-lg); }
.footer__desc { font-size: 0.875rem; color: var(--c-ivory-40); line-height: 1.72; max-width: 280px; }
.footer__col-title {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: var(--s-lg);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s-sm); }
.footer__link { font-size: 0.875rem; color: var(--c-ivory-40); transition: color var(--t-fast); }
.footer__link:hover { color: var(--c-ivory); }
.footer__newsletter { display: flex; gap: var(--s-sm); margin-top: var(--s-sm); }
.footer__newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,77,0.2);
  border-radius: var(--r-sm);
  color: var(--c-ivory);
  font-family: var(--f-body);
  font-size: 0.875rem;
  outline: none;
}
.footer__newsletter-input:focus { border-color: rgba(247,191,70,0.4); }
.footer__newsletter-input::placeholder { color: var(--c-ivory-40); }
.footer__bottom {
  max-width: var(--w-max);
  margin: var(--s-xl) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-md);
}
.footer__copy { font-size: 0.75rem; color: var(--c-ivory-40); }
.footer__legal { display: flex; gap: var(--s-lg); }
.footer__legal-link { font-size: 0.75rem; color: var(--c-ivory-40); transition: color var(--t-fast); }
.footer__legal-link:hover { color: var(--c-gold); }
.footer__social { display: flex; gap: var(--s-md); }
.footer__social-link {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,77,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ivory-40);
  font-size: 0.7rem; font-weight: 700;
  transition: all var(--t-fast);
  text-transform: uppercase;
}
.footer__social-link:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(247,191,70,0.06);
}

/* ── Reveal Animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: revealFallback 0s 1.5s forwards;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); animation: none; }

/* Fallback: ensure elements are always visible after 1.5s even if JS fails */
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--s-2xl); }
  .nav__ai-btn { display: none; }
}

@media (max-width: 768px) {
  /* Global overflow fix */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }

  /* Nav */
  .nav { padding: 0 var(--s-md); }
  .nav__links { display: none; }
  .nav__ai-btn { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cart-btn span:first-child { display: none; }

  /* Typography */
  .display-xl { font-size: clamp(2rem, 9vw, 3rem); }
  .display-lg { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .display-md { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-title { font-size: clamp(1.375rem, 6vw, 2rem); }

  /* Layout */
  .section { padding: var(--s-2xl) var(--s-md); }
  .section--sm { padding: var(--s-xl) var(--s-md); }
  .container { padding: 0 var(--s-md); }
  .container--narrow { padding: 0 var(--s-md); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { padding: calc(var(--nav-h) + var(--s-2xl)) var(--s-md) var(--s-2xl); min-height: 40vh; }
  .page-hero__content { padding: 0; }

  /* Cards */
  .card__footer { flex-direction: column; align-items: flex-start; gap: var(--s-sm); }

  /* Pricing cards */
  .pricing-card { padding: var(--s-xl) var(--s-lg); }

  /* Buttons */
  .btn--lg { padding: 13px 24px; font-size: 0.65rem; }

  /* Forms */
  .form-input, .form-select, .form-textarea { font-size: 1rem; } /* prevent iOS zoom */
  .footer__newsletter { flex-direction: column; }
  .footer__newsletter .btn { width: 100%; }

  /* Footer */
  .footer { padding: var(--s-2xl) var(--s-md) var(--s-lg); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-xl); }
  .footer__bottom { flex-direction: column; text-align: center; gap: var(--s-md); }
  .footer__legal { flex-wrap: wrap; justify-content: center; gap: var(--s-md); }
  .footer__social { justify-content: center; }
  .footer__desc { max-width: 100%; }

  /* Toast */
  .toast { left: var(--s-md); right: var(--s-md); bottom: var(--s-md); max-width: 100%; }

  /* Cart drawer */
  .cart-drawer { width: 100%; max-width: 100%; }

  /* Legal page */
  .legal-layout { grid-template-columns: 1fr !important; }
  .legal-nav { display: none !important; }
  .legal-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal-table thead, .legal-table tbody, .legal-table tr { display: block; }
  .legal-table th, .legal-table td { display: block; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .legal-table th { background: rgba(247,191,70,0.06); }

  /* Stat blocks */
  .stat-block__number { font-size: 2rem; }

  /* Section header */
  .section-header { margin-bottom: var(--s-2xl); }

  /* Inline grid overrides — force single column */
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: 2fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline flex row overrides — stack vertically */
  [style*="display:flex"][style*="gap"],
  [style*="display: flex"][style*="gap"] {
    flex-wrap: wrap;
  }

  /* How it works steps */
  .steps-grid { grid-template-columns: 1fr !important; }

  /* About page split layout */
  .about-split { grid-template-columns: 1fr !important; }

  /* Contact page two-col */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Divider in footer */
  .divider { margin: var(--s-md) 0; }
}

@media (max-width: 480px) {
  .nav { padding: 0 var(--s-sm); }
  .container { padding: 0 var(--s-sm); }
  .container--narrow { padding: 0 var(--s-sm); }
  .section { padding: var(--s-xl) var(--s-sm); }
  .footer { padding: var(--s-xl) var(--s-sm) var(--s-md); }
  .pricing-card { padding: var(--s-lg) var(--s-md); }
  .card__body { padding: var(--s-md); }
  .card__footer { padding: var(--s-md); }
  .btn { white-space: normal; text-align: center; }
}
