/* =========================================================
   Cafe Canna — shared stylesheet
   Light, botanical-pastel theme designed to sit alongside
   sketchy/watercolor illustration assets. Mobile-first.
   ========================================================= */

:root {
  --bg: #faf6ee;
  --bg-alt: #f2ead9;
  --surface: #fffdf9;
  --surface-alt: #f6efe2;
  --border: #e6dcc7;
  --border-strong: #d9cbaa;

  --text: #3a3226;
  --text-muted: #6d6250;
  --text-faint: #726650;
  --ink: #2a2318;

  --sage-900: #38492f;
  --sage-700: #56704c;
  --sage-600: #6a8a5c;
  --sage-500: #82a072;
  --sage-400: #a3bd95;
  --sage-300: #c7dab9;
  --sage-200: #e1ecd8;

  --lavender-700: #7c6d92;
  --lavender-500: #a494bd;
  --lavender-400: #bcaed0;
  --lavender-300: #d3c7e0;
  --lavender-200: #ece3f2;

  --terracotta-700: #ad5f37;
  --terracotta-600: #c07347;
  --terracotta-500: #cd8a5f;
  --terracotta-400: #dba57e;
  --terracotta-300: #e8c2a3;
  --terracotta-200: #f4ddc7;

  --danger: #b6534a;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-blob: 255px 15px 225px 15px / 15px 225px 15px 255px;

  --container: 1140px;
  --header-height: 72px;

  --shadow-1: 0 6px 18px rgba(88, 70, 42, 0.10);
  --shadow-2: 0 18px 44px rgba(88, 70, 42, 0.18);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(130, 160, 114, 0.12), transparent 42%),
    radial-gradient(circle at 88% 26%, rgba(164, 148, 189, 0.12), transparent 40%),
    radial-gradient(circle at 35% 92%, rgba(205, 138, 95, 0.10), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow: hidden; /* locked until age gate resolves; unlocked by JS/CSS below */
}

html.age-verified body { overflow: auto; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 0.9em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3.5rem 0; }
@media (min-width: 760px) { section { padding: 5.5rem 0; } }

.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { margin: 0 auto; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--sage-400), var(--sage-600));
  color: var(--ink);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--sage-500), var(--sage-700)); color: var(--surface); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--sage-600); color: var(--sage-700); }

.btn-gold {
  background: linear-gradient(135deg, var(--terracotta-300), var(--terracotta-500));
  color: var(--ink);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-block { width: 100%; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter lives on this pseudo-element rather than .site-header
   itself: backdrop-filter (like transform/filter/perspective) on an
   ancestor becomes the containing block for any position:fixed
   descendant, which was trapping the fixed full-screen mobile nav
   inside the header's own small box instead of the viewport. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 238, 0.86);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage-300), var(--sage-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1.5px solid var(--sage-500);
  border-radius: inherit;
  filter: url(#sketchy-edge);
  opacity: 0.8;
  pointer-events: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 1.5rem 1.25rem 2.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  overflow-y: auto;
}

.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.main-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }

.main-nav ul a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.main-nav ul a[aria-current="page"] { color: var(--sage-700); }

.main-nav .btn { width: 100%; margin-top: 1.25rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    background: transparent;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.8rem;
  }

  .main-nav ul a {
    padding: 0.4rem 0;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .main-nav ul a[aria-current="page"] { position: relative; }
  .main-nav ul a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--sage-500);
  }

  .main-nav .nav-list-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .main-nav .btn { width: auto; margin-top: 0; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(ellipse at top right, rgba(130, 160, 114, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(164, 148, 189, 0.16), transparent 50%),
    var(--bg);
  overflow: hidden;
}

.hero-inner { max-width: 720px; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4em 0.9em;
  background: var(--surface);
}

/* -------------------- Cards -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 1.75rem;
  height: 100%;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Placeholder illustration block — styled to read as a hand-drawn/
   watercolor frame until real illustration assets are dropped in. */
.placeholder-img {
  position: relative;
  border-radius: var(--radius-blob);
  background:
    radial-gradient(circle at 25% 20%, rgba(130, 160, 114, 0.35), transparent 55%),
    radial-gradient(circle at 78% 65%, rgba(164, 148, 189, 0.30), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(205, 138, 95, 0.22), transparent 50%),
    var(--surface-alt);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transform: rotate(-0.6deg);
}
.placeholder-img span {
  position: relative;
  z-index: 1;
  padding: 0.35em 0.9em;
  margin: 0 1rem;
  background: rgba(255, 253, 249, 0.6);
  border-radius: 999px;
}
.placeholder-img.square { aspect-ratio: 1 / 1; }
.placeholder-img.wide { aspect-ratio: 16 / 9; }
.placeholder-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--sage-500);
  border-radius: inherit;
  filter: url(#sketchy-edge);
  pointer-events: none;
  opacity: 0.85;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 16px;
  width: 52px;
  height: 18px;
  background: var(--terracotta-300);
  opacity: 0.8;
  transform: rotate(-6deg);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(88, 70, 42, 0.12);
  z-index: 2;
}

.grid > *:nth-child(even) .placeholder-img { transform: rotate(0.8deg); }
.grid > *:nth-child(3n) .placeholder-img { transform: rotate(-0.3deg); }

/* -------------------- Gallery carousel -------------------- */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 78%;
  scroll-snap-align: center;
}
.carousel-slide .placeholder-img { margin: 0; }

@media (min-width: 640px) { .carousel-slide { flex: 0 0 46%; } }
@media (min-width: 1000px) { .carousel-slide { flex: 0 0 30%; } }

.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover { border-color: var(--sage-600); color: var(--sage-700); }
.carousel-arrow-prev { left: -14px; }
.carousel-arrow-next { right: -14px; }
@media (max-width: 639px) { .carousel-arrow { display: none; } }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (min-width: 640px) { .carousel-dots { display: none; } }
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--border-strong);
  border: none;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dot.is-active { width: 22px; background: var(--sage-600); }

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.gallery-trigger .placeholder-img { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gallery-trigger:hover .placeholder-img,
.gallery-trigger:focus-visible .placeholder-img { transform: scale(1.03); }
.gallery-trigger:focus-visible { outline: 2px solid var(--sage-500); outline-offset: 3px; border-radius: var(--radius-blob); }

/* Expanded gallery photo modal — reuses the .legal-modal chrome */
.gallery-modal-panel { max-width: 760px; }
.gallery-modal-image {
  width: 100%;
  margin-bottom: 1.25rem;
  transform: none;
}
.legal-modal-body h2 { margin-bottom: 0.4em; }

/* -------------------- Strain / Product cards -------------------- */
.strain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.strain-card:hover,
.strain-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.strain-card:focus-visible { outline: 2px solid var(--sage-500); outline-offset: 3px; }
.grid > .strain-card .placeholder-img { border-radius: 0; border: none; border-bottom: 1px solid var(--border); transform: none; }
.strain-card .placeholder-img::after { border-color: var(--terracotta-400); }
.strain-card .placeholder-img::before { background: var(--sage-300); transform: rotate(-4deg); }
.strain-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.strain-type {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  color: var(--ink);
}
.strain-type.indica { background: var(--lavender-300); }
.strain-type.sativa { background: var(--terracotta-300); }
.strain-type.hybrid { background: linear-gradient(90deg, var(--sage-300), var(--lavender-300)); }
.strain-card h3 { margin-bottom: 0; }
.strain-card p { font-size: 0.92rem; margin-bottom: 0; }
.strain-card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.coming-soon-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-700);
}
.strain-card-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-700);
  white-space: nowrap;
}
.strain-card:hover .strain-card-cta,
.strain-card:focus-visible .strain-card-cta { color: var(--sage-900); text-decoration: underline; }

/* -------------------- Article cards -------------------- */
.article-card { display: flex; flex-direction: column; }
.article-card .placeholder-img { margin-bottom: 1.1rem; }
.article-card .placeholder-img::after { border-color: var(--lavender-500); }
.article-card .placeholder-img::before { background: var(--lavender-300); left: auto; right: 16px; transform: rotate(5deg); }
.article-meta { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 0.4rem; }
.article-card h3 { margin-bottom: 0.5rem; }
.article-card .coming-soon-tag { margin-top: auto; padding-top: 0.8rem; }

/* -------------------- Team -------------------- */
.team-card { text-align: center; padding-bottom: 1.25rem; }
.team-card .placeholder-img { border-radius: 50%; margin: 0 auto 1rem; width: 200px; height: 200px; aspect-ratio: 1/1; transform: none; }
.team-card .placeholder-img img { object-position: center 15%; }
.team-card .placeholder-img::before { display: none; }
.team-card .placeholder-img::after { border-color: var(--sage-400); }
.team-card h3 { margin-bottom: 0.1rem; }
.team-role { color: var(--sage-700); font-size: 0.85rem; font-weight: 600; margin-bottom: 0; }

/* -------------------- Forms -------------------- */
.form-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8em 1em;
  color: var(--text);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sage-500);
}
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0;
  max-height: 0;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid transparent;
  color: var(--sage-700);
  font-size: 0.9rem;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
}
.form-status.is-visible {
  margin-top: 1rem;
  max-height: 220px;
  padding: 0.9rem 1.1rem;
  opacity: 1;
}
.form-status.is-success { border-color: var(--sage-600); color: var(--sage-700); }
.form-status.is-error { border-color: var(--terracotta-600); color: var(--terracotta-700); }
.form-status-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.1em; }

.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* -------------------- Info blocks (hours, contact) -------------------- */
.info-list { display: flex; flex-direction: column; gap: 0.7rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.info-row dt { color: var(--text-muted); }
.info-row dd { margin: 0; font-weight: 600; color: var(--text); }

/* -------------------- Countdown -------------------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 460px;
  margin: 2.2rem auto 0;
}
.countdown-unit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 1rem 0.4rem;
  text-align: center;
}
.countdown-num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--terracotta-600);
  line-height: 1;
}
.countdown-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* -------------------- Callout / compliance notes -------------------- */
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage-500);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.callout strong { color: var(--text); }
.callout.warning { border-left-color: var(--terracotta-500); }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--sage-200), var(--lavender-200));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand .brand { margin-bottom: 0.8rem; }
.footer-brand p { max-width: 360px; font-size: 0.9rem; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--sage-700); }

.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.footer-disclaimer p { color: inherit; font-size: inherit; margin-bottom: 0.7rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--sage-700); }

/* -------------------- Age gate overlay -------------------- */
#age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 12%, rgba(130, 160, 114, 0.22), transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(205, 138, 95, 0.16), transparent 50%),
    var(--bg-alt);
}
html.age-verified #age-gate-overlay { display: none; }

.age-gate-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-2);
}
.age-gate-card::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--sage-500);
  border-radius: inherit;
  filter: url(#sketchy-edge);
  opacity: 0.7;
  pointer-events: none;
}

.age-gate-card .brand-mark {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
  margin: 0 auto 1.2rem;
}

.age-gate-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.age-gate-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.age-gate-card .age-gate-question {
  color: var(--text);
  font-weight: 600;
  margin: 1.4rem 0 1.5rem;
  font-size: 1.05rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
@media (min-width: 420px) {
  .age-gate-actions { flex-direction: row; }
  .age-gate-actions .btn { flex: 1; }
}

.age-gate-fine {
  margin-top: 1.6rem;
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.age-gate-fine a { color: var(--text-faint); text-decoration: underline; }

/* -------------------- Legal quick-view modal --------------------
   Lets a visitor read Privacy/Terms from the age gate without
   navigating away (which would just hit another age gate). Content
   is fetched live from /privacy/ and /terms/ at click time, so there
   is only one copy of the legal text to maintain. */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.legal-modal.is-open { display: flex; }
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 24, 0.45);
  backdrop-filter: blur(2px);
}
.legal-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  overflow: hidden;
}
.legal-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.75rem 0;
  flex-shrink: 0;
}
.legal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-modal-close:hover { border-color: var(--sage-600); color: var(--sage-700); }
.legal-modal-body {
  overflow-y: auto;
  padding: 0.5rem 1.75rem 2rem;
}
.legal-modal-body .hero { background: none; padding: 0.5rem 0 1.25rem; overflow: visible; }
.legal-modal-body section { padding: 0 0 1.25rem; }
.legal-modal-body section .container { padding: 0; max-width: none; margin: 0; }
.legal-modal-body h1 { font-size: 1.5rem; }
.legal-modal-body h2 { font-size: 1.4rem; }
.legal-modal-body h4 { font-size: 0.95rem; margin: 1.3rem 0 0.2rem; }

/* Product detail modal content (populated from strain card data-* attrs) */
.product-modal-stats {
  display: flex;
  gap: 1.75rem;
  margin: 1.1rem 0 0.5rem;
}
.product-modal-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.product-modal-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta-600);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.1rem;
}

/* -------------------- Restricted page -------------------- */
.restricted-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(164, 148, 189, 0.20), transparent 55%), var(--bg);
}
.restricted-card { max-width: 480px; }
.restricted-card .brand-mark { width: 56px; height: 56px; font-size: 1.4rem; margin: 0 auto 1.4rem; }

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
