/* ==========================================================================
   Ganja Candy Factory — storefront stylesheet ("Premium Factory", spec §10)

   Phase 8 rewrite. Mobile-first: every base rule targets a ~375px phone and
   `@media (min-width: …)` widens it (CLAUDE.md "Mobile-first rules").

   The system in one paragraph: a deep ink base under lit plum surfaces, a
   1px top highlight on cards, film grain for warmth, and PRINT shadows —
   hard offset, zero blur — like screen-printed sticker art. Gold is precious:
   one gold CTA per view, otherwise only prices and thin foil lines. The
   rainbow candy stripe marks house (GCF-made) products and nothing else.
   Banned on purpose: glows, glass blur, gradient pills, hover-lift, radial
   glow blobs behind the page, staggered entrance fades,
   background-attachment: fixed. Everything respects prefers-reduced-motion.

   Type roles: Henny Penny = wordmark / hero only. Londrina Solid = section
   headings, prices, badges, CTAs. Montserrat = body and UI text only.

   The CMS stylesheet (editor.css) reads the legacy `--color-*` / `--font-*`
   tokens, which are kept below as aliases of the new palette.
   ========================================================================== */

/* --- Self-hosted fonts (spec §8.1: no Google Fonts in production) -------- */

@font-face {
  font-family: 'Henny Penny';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/henny-penny-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Londrina Solid';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/londrina-solid-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Londrina Solid';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/londrina-solid-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Londrina Solid';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/londrina-solid-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/montserrat-var.woff2') format('woff2');
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Palette (spec §10) */
  --ink: #16101E;        /* deep base, the lit room */
  --plum: #2A1F33;       /* elevated surface */
  --plum-3: #341F4A;     /* deepest wells */
  --card: #211A2B;       /* card face */
  --card-2: #1B1526;     /* card face, shaded end */
  --card-hi: rgba(255, 255, 255, 0.06); /* 1px top highlight on cards */
  --purple: #9966CC;
  --lilac: #BB99FF;
  --gold: #FFCC33;
  --gold-deep: #E0A93B;
  --orange: #FF6633;
  --text: #F0EDF5;
  --muted: #B4A9C6;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --field: #140F1C;

  /* Print shadows: hard offset, zero blur */
  --shadow-ink: rgba(0, 0, 0, 0.45);
  --shadow-btn: 3px 3px 0 var(--shadow-ink);
  --shadow-card: 6px 6px 0 rgba(0, 0, 0, 0.3);
  --shadow-panel: 8px 8px 0 rgba(0, 0, 0, 0.35);
  --shadow-modal: 12px 12px 0 rgba(0, 0, 0, 0.5);

  /* Surfaces */
  --surface-card: linear-gradient(180deg, var(--card-hi), transparent 42%),
                  linear-gradient(160deg, var(--card), var(--card-2));
  --surface-thumb: linear-gradient(160deg, var(--plum-3), #191320);
  --stripe: linear-gradient(90deg, var(--purple), var(--gold), var(--orange));

  /* Type */
  --font-display: 'Henny Penny', system-ui, cursive;
  --font-accent: 'Londrina Solid', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --maxw: 1120px;
  --radius-card: 16px;
  --radius-panel: 20px;
  --header-h: 60px;

  /* Legacy aliases read by editor.css and older rules */
  --color-bg-primary: var(--plum);
  --color-bg-secondary: var(--card);
  --color-purple: var(--purple);
  --color-gold: var(--gold);
  --color-orange: var(--orange);
  --color-light-purple: var(--lilac);
  --color-text: var(--text);
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --font-size-large-heading: clamp(2.5rem, 5vw, 3.5rem);
  --font-size-heading: clamp(1.8rem, 4vw, 2.5rem);
  --font-size-subheading: clamp(1.4rem, 3vw, 1.8rem);
  --font-size-title: 1.4rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;
}

/* --- Reset and base ------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100dvh;
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint film grain so the dark never goes flat. Fixed and inert. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.site,
main,
footer {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.is-hidden { display: none; }

/* --- Shared type pieces --------------------------------------------------- */

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Section head: Londrina heading, muted lede. `.section-title` is the name
   the older templates use; both get the same treatment. */
.section-title,
.sec-head {
  text-align: center;
  margin-bottom: 26px;
}

.section-title h2,
.sec-head h2,
.section-title h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.9rem, 6.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: balance;
  margin-top: 6px;
}

.section-title p,
.sec-head p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* --- Buttons -------------------------------------------------------------- */

/* Gold = precious. One per view. Print shadow, no gradient. */
.btn-gold,
.cta-button,
.qv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #2A1206;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-gold:active,
.cta-button:active,
.qv-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow-ink);
}

@media (hover: hover) {
  .btn-gold:hover,
  .cta-button:hover,
  .qv-cta:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow-ink);
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.1;
  transition: border-color 0.25s, color 0.25s;
}

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
}

/* The Weedmaps text link: gold sign-painter caps with the arrow. */
.weedmaps-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (hover: hover) {
  .weedmaps-link:hover { color: var(--orange); }
}

/* --- Chips (category browse) ---------------------------------------------- */

.cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

@media (hover: hover) {
  .chip:hover {
    color: var(--text);
    border-color: var(--purple);
  }
}

.chip.active {
  color: var(--ink);
  background: var(--lilac);
  border-color: transparent;
  font-weight: 700;
}

/* The GCF Products chip wears the candy stripe: the house line stands out. */
.house-chip {
  color: var(--gold);
  border-color: rgba(255, 204, 51, 0.45);
}

.house-chip.active {
  color: var(--ink);
  border-color: transparent;
  background: var(--stripe);
}

/* --- Card surface (shared by product, category and carousel cards) -------- */

.card-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s;
}

@media (min-width: 720px) {
  .card-surface { box-shadow: var(--shadow-card); }
}

/* --- The pour: one glossy poured-candy edge per section transition -------- */

.pour {
  display: block;
  position: relative;
  width: 100%;
  height: 44px;
  margin-top: 40px;
  overflow: hidden;
  line-height: 0;
}

.pour svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pour .pour-fill { fill: var(--plum); }
.pour .pour-gloss {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.4;
}

.pour--ink .pour-fill { fill: var(--ink); }
.pour--card .pour-fill { fill: var(--card); }

/* The page's ONLY load animation: the hero pours into the shop, once. */
@media (prefers-reduced-motion: no-preference) {
  .hero .pour svg {
    transform: translateY(-101%);
    animation: pour 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s forwards;
  }
}

@keyframes pour {
  to { transform: none; }
}

@media (min-width: 720px) {
  .pour {
    height: 62px;
    margin-top: 64px;
  }
}

/* ==========================================================================
   Header — one solid ink bar (no glass blur), sticky, under 64px on phones.
   `nav-header` id/class is the marker verification scripts look for.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100; /* under the gate overlay (300) and the preview banner (200) */
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: var(--header-h);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
}

.site-brand .logo {
  width: 38px;
  height: auto;
  flex: none;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--lilac);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.brand-word b {
  color: var(--gold);
  font-weight: 400;
}

.store-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lilac);
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.site-nav {
  flex-basis: 100%;
  /* The header is sticky, so an open menu taller than the screen must
     scroll inside itself or its last links are unreachable. */
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-nav[hidden] { display: none; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.site-nav-primary { padding-top: 4px; }
.site-nav-utility { padding-bottom: 14px; }

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav-utility a { color: var(--muted); font-weight: 400; }
.site-nav .highlight a { color: var(--gold); }
.site-nav .switch-store a { color: var(--lilac); }

/* Tablet and up: brand + utility links on the first row, categories on a
   row of their own beneath (nine CMS categories would wrap a single bar). */
@media (min-width: 720px) {
  :root { --header-h: 58px; }

  .nav-toggle { display: none; }

  /* The header may run a touch wider than the page so nine categories fit
     on one line at common desktop widths. */
  .site-header > .container { max-width: calc(var(--maxw) + 80px); }

  .site-header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 24px;
    min-height: 0;
  }

  .site-brand { grid-column: 1; grid-row: 1; min-height: var(--header-h); }
  .site-brand .logo { width: 42px; }

  .site-brand-text {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .brand-word { font-size: 1.3rem; }

  /* Always open on wide screens, whatever the toggle left behind. The nav
     element dissolves so its two lists become grid children. */
  .site-nav,
  .site-nav[hidden] {
    display: contents;
    max-height: none;
    overflow: visible;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
  }

  .site-nav-utility {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 2px 22px;
  }

  .site-nav-utility .nav-home { display: none; }

  .site-nav-primary {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0 16px;
    padding: 1px 0 6px;
    border-top: 1px solid var(--hairline);
  }

  .site-nav a {
    position: relative;
    min-height: 36px;
    padding: 4px 0;
    border-bottom: 0;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    transition: color 0.25s;
  }

  .site-nav-primary a {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text);
  }

  .site-nav-utility a { font-size: 0.72rem; }

  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 2px;
    width: 0;
    background: var(--gold);
    transition: width 0.25s;
  }

  @media (hover: hover) {
    .site-nav a:hover { color: var(--text); }
    .site-nav .switch-store a:hover { color: var(--lilac); }
    .site-nav a:hover::after { width: 100%; }
  }
}

@media (min-width: 1024px) {
  .site-nav-primary { gap: 0 20px; }
  .site-nav-utility { gap: 2px 26px; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  padding: 40px 0 0;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 9.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--lilac);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  text-wrap: balance;
  margin: 12px 0 18px;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 54ch;
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@media (min-width: 720px) {
  .hero { padding: clamp(56px, 10vh, 120px) 0 0; }
  .hero p { font-size: 1.12rem; margin-bottom: 32px; }
  .cta-row { gap: 16px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.features,
.category-showcase,
.about-teaser,
.latest-products,
.products-section,
.related-products,
.section-alt,
.about-section,
.contact-section {
  padding: 40px 0;
}

/* The shop well the hero pours into. */
.features {
  padding-top: 8px;
  background: linear-gradient(180deg, var(--plum), var(--ink));
}

.related-products,
.section-alt {
  background: linear-gradient(180deg, var(--plum), var(--ink));
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.no-products,
.no-categories {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-card);
}

.no-products h3 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 6px;
}

@media (min-width: 720px) {
  .features,
  .category-showcase,
  .about-teaser,
  .latest-products,
  .products-section,
  .related-products,
  .section-alt,
  .about-section,
  .contact-section {
    padding: 64px 0;
  }

  .features { padding-top: 8px; }
  .section-title,
  .sec-head { margin-bottom: 40px; }
  .section-cta { margin-top: 40px; }
}

/* --- About teaser (home) -------------------------------------------------- */

.about-teaser-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-teaser h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.9rem, 6.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-wrap: balance;
  margin: 6px 0 14px;
}

.about-teaser p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   Category cards (home showcase, subcategories on a category page)
   ========================================================================== */

.category-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s;
}

@media (hover: hover) {
  .category-card:hover { border-color: rgba(187, 153, 255, 0.4); }
}

.category-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-thumb);
}

.category-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-content {
  padding: 12px 12px 14px;
}

.category-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 4px;
}

.category-description {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 720px) {
  .category-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
  }

  .category-card { box-shadow: var(--shadow-card); }
  .category-content { padding: 18px 18px 20px; }
  .category-title { font-size: 1.45rem; }
  .category-description { font-size: 0.86rem; }
}

/* ==========================================================================
   Product cards (partials/product-card.ejs — the Phase 4 contract)
   Stretched link: the title holds the only anchor; its ::after covers the
   card. `.card-weedmaps` sits above it. Never nest anchors.
   ========================================================================== */

.products-grid,
.related-products-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-products-carousel { margin-bottom: 32px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s;
}

/* House marker: the candy stripe means "made here" — structure = information.
   Vendor cards do not get it. */
.product-card--house::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: var(--stripe);
}

/* Cards stay put: hover = border tint + the quick-view veil, no lift. */
@media (hover: hover) {
  .product-card:hover { border-color: rgba(187, 153, 255, 0.4); }
}

/* Fixed ratio box so the grid never reflows while images load. */
.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-thumb);
}

.product-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quick-view veil: desktop + pointer only, where the dialog exists. It is
   inert so the stretched link underneath still takes the click. */
@media (hover: hover) and (min-width: 720px) {
  .product-image::after {
    content: 'Quick view';
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-family: var(--font-accent);
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: linear-gradient(0deg, rgba(22, 16, 30, 0.74), rgba(22, 16, 30, 0.4));
    opacity: 0;
    transition: opacity 0.25s;
  }

  .product-card:hover .product-image::after,
  .product-card:focus-within .product-image::after { opacity: 1; }
}

/* Category tag, top right. */
.product-category {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 3px 9px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(22, 16, 30, 0.78);
  color: var(--lilac);
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
  padding: 11px 12px 13px;
}

.product-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--text);
}

.product-card-link {
  color: inherit;
}

.product-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.product-detail,
.product-strains {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.product-detail span { color: var(--text); }

.product-detail--flag {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-description {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The price row reads like the mockup's spec strip: foil line above, gold. */
.product-price {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Adult-use compliance marker: every card on that store carries it. */
.badge-21 {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

/* Vendor corner mark. Scoped past the `.product-image > img` cover rule. */
.product-image > img.vendor-logo,
.qv-media > img.vendor-logo {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(22, 16, 30, 0.85);
  object-fit: contain;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

/* Featured moves out of the badge's corner. */
.product-featured {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 8px;
  border: 1px solid rgba(255, 204, 51, 0.5);
  border-radius: 999px;
  background: rgba(22, 16, 30, 0.85);
  color: var(--gold);
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Vendor cards: the Weedmaps text link (the gold button belongs to the
   detail page and the quick-view). Above the stretched link on purpose. */
.card-weedmaps {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 2px;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (hover: hover) {
  .card-weedmaps:hover { color: var(--orange); }
}

@media (min-width: 720px) {
  .products-grid,
  .related-products-carousel {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
  }

  .product-card { box-shadow: var(--shadow-card); }
  .product-content { gap: 6px; padding: 16px 18px 18px; }
  .product-title { font-size: 1.1rem; }
  .product-category { top: 12px; right: 12px; font-size: 0.68rem; padding: 4px 11px; }
  .product-detail,
  .product-strains,
  .product-description { font-size: 0.84rem; }
  .product-price { font-size: 1.5rem; padding-top: 12px; }
  .badge-21 { top: 12px; left: 12px; }
  .product-image > img.vendor-logo,
  .qv-media > img.vendor-logo { left: 12px; bottom: 12px; width: 44px; height: 44px; }
  .product-featured { right: 12px; bottom: 12px; font-size: 0.64rem; }
  .card-weedmaps { font-size: 0.9rem; }
}

/* ==========================================================================
   Page headers (products, category, about, contact)
   ========================================================================== */

.products-header {
  position: relative;
  padding: 36px 0 22px;
  text-align: center;
}

.products-header h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: balance;
  margin-top: 6px;
}

.products-header p {
  max-width: 56ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Category header with an editor-supplied image behind the ink wash. */
.products-header--custom {
  overflow: hidden;
  padding: 56px 0 36px;
}

.products-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 16, 30, 0.82), rgba(22, 16, 30, 0.96));
}

.products-header--custom > .container {
  position: relative;
  z-index: 2;
}

@media (min-width: 720px) {
  .products-header { padding: 56px 0 30px; }
  .products-header--custom { padding: 88px 0 56px; }
}

/* ==========================================================================
   Products page: filters
   ========================================================================== */

.filters-section {
  padding: 8px 0 0;
}

.filters-form {
  position: relative;
  padding: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.filters-header h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.toggle-filters-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toggle-icon {
  font-family: var(--font-accent);
  font-size: 1rem;
  line-height: 1;
}

.filters-body { padding-top: 4px; }
.filters-body[hidden] { display: none; }

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
  margin: 12px 0 4px;
}

.filter-column-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
  margin: 10px 0 8px;
}

.filter-group { margin-bottom: 14px; }

.filter-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-group select,
.filter-group input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  background: var(--field);
  color: var(--text);
  font-size: 0.92rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-inputs input { flex: 1; }
.range-separator { color: var(--muted); font-size: 0.85rem; }

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--gold);
}

.checkbox-wrapper .checkbox-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

/* The GCF Products checkbox wears a hint of the stripe. */
.gcf-chip {
  padding: 4px 12px;
  border: 1px solid rgba(255, 204, 51, 0.35);
  border-radius: 999px;
}

.gcf-chip .checkbox-label { color: var(--gold); }

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.filter-button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.92rem;
}

/* Apply is this page's one gold CTA. */
.apply-filters {
  border: 0;
  background: var(--gold);
  color: #2A1206;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
}

.reset-filters {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.active-filters-label {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 3px 6px 3px 12px;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.remove-filter {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(22, 16, 30, 0.18);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 720px) {
  .filters-form { padding: 22px 24px; box-shadow: var(--shadow-card); }
  .toggle-filters-button { display: none; }
  /* Always open once there is room, whatever the phone toggle left behind. */
  .filters-body,
  .filters-body[hidden] { display: block; }
  .filters-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-buttons { flex-direction: row; justify-content: center; }
  .filter-button { min-width: 180px; }
  .apply-filters { padding: 0 30px; }
  .reset-filters { padding: 0 24px; }
}

/* ==========================================================================
   Category page extras: hierarchical browse + tag row
   ========================================================================== */

.category-navigation-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  transition: color 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .category-tag:hover { color: var(--text); border-color: var(--purple); }
}

.category-tag.active {
  color: var(--ink);
  background: var(--lilac);
  border-color: transparent;
  font-weight: 700;
}

.category-navigation {
  padding: 18px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.category-nav-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  margin-bottom: 12px;
}

.category-nav-container {
  max-width: 800px;
  margin: 0 auto;
}

.category-nav-list {
  list-style: none;
}

.category-nav-list.level-0 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.category-nav-list:not(.level-0) {
  margin: 4px 0 6px;
  padding-left: 12px;
  border-left: 1px solid var(--hairline-strong);
}

.category-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
}

.category-nav-list:not(.level-0) .category-nav-link {
  min-height: 34px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

@media (hover: hover) {
  .category-nav-link:hover { color: var(--gold); }
}

@media (min-width: 720px) {
  .category-navigation { padding: 24px 28px; box-shadow: var(--shadow-card); }
  .category-nav-list.level-0 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  padding: 14px 0 0;
}

.product-detail-section .breadcrumbs { padding: 0 0 14px; }
.product-detail-section .breadcrumbs .container { padding: 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.78rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.breadcrumb-link {
  color: var(--muted);
  transition: color 0.2s;
}

@media (hover: hover) {
  .breadcrumb-link:hover { color: var(--gold); }
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--purple);
}

.breadcrumb-current {
  color: var(--gold);
  font-weight: 500;
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.product-detail-section {
  padding: 18px 0 40px;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.product-detail-image-container {
  position: relative;
}

.product-detail-image {
  position: relative;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-thumb);
  box-shadow: var(--shadow-card);
}

.product-detail-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* No photo yet: a plum box with the mark, same footprint as a 4:3 photo. */
.product-detail-image--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.product-detail-image--empty .product-detail-placeholder {
  width: 38%;
  height: auto;
  opacity: 0.35;
}

.product-detail-image .badge-21 {
  top: 12px;
  left: 12px;
}

.featured-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 10px;
  border: 1px solid rgba(255, 204, 51, 0.5);
  border-radius: 999px;
  background: rgba(22, 16, 30, 0.85);
  color: var(--gold);
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.product-categories-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-categories-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .product-category-link:hover { color: var(--text); border-color: var(--gold); }
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-header { margin-bottom: 16px; }

.product-detail-category {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-header h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: balance;
  margin: 6px 0 10px;
}

.product-detail-price {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

img.vendor-logo--detail {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 72px;
  margin: 0 0 10px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(22, 16, 30, 0.85);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.product-detail-description {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-line;
}

.product-strains-note {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tabs: a segmented pill, then a panel. */
.product-tabs { margin: 8px 0 24px; }

.tab-buttons {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--field);
}

.tab-button {
  min-height: 38px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.tab-button.active {
  background: var(--lilac);
  color: var(--ink);
}

.tab-content {
  padding: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.spec-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.effects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.effect-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(187, 153, 255, 0.4);
  border-radius: 999px;
  color: var(--lilac);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Phones: the buy CTA is pinned so it is always one thumb away. The editor
   preview banner (z-index 200) deliberately stays above it. */
.weedmaps-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--gold);
  color: #2A1206;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 -3px 0 var(--shadow-ink);
}

.weedmaps-cta:focus-visible { outline-offset: -4px; }

/* Reserves the pinned bar's room so it never covers the last line. */
.weedmaps-cta-spacer { height: 88px; }

.browse-more {
  display: flex;
  justify-content: center;
}

.browse-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: border-color 0.25s, color 0.25s;
}

@media (hover: hover) {
  .browse-more-link:hover { border-color: var(--gold); color: var(--gold); }
}

@media (min-width: 720px) {
  .product-detail-section { padding: 24px 0 64px; }

  .product-detail-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 44px;
    align-items: start;
  }

  .product-detail-image { box-shadow: var(--shadow-panel); }
  .product-detail-price { font-size: 2.4rem; }
  .product-detail-description { font-size: 1.02rem; }
  img.vendor-logo--detail { max-width: 96px; max-height: 96px; }
  .tab-content { padding: 22px 24px; box-shadow: var(--shadow-card); }
  .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
  .spec-item { font-size: 1.2rem; }

  /* Inline again: nothing is pinned once there is room for it. */
  .weedmaps-cta {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    min-height: 48px;
    margin: 4px 0 20px;
    padding: 10px 30px;
    border-radius: 999px;
    font-size: 1.02rem;
    box-shadow: var(--shadow-btn);
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .weedmaps-cta:focus-visible { outline-offset: 2px; }

  .weedmaps-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--shadow-ink);
  }

  @media (hover: hover) {
    .weedmaps-cta:hover {
      transform: translate(-1px, -1px);
      box-shadow: 4px 4px 0 var(--shadow-ink);
    }
  }

  .weedmaps-cta-spacer { display: none; }
}

/* ==========================================================================
   Quick view (desktop only; public/js/quick-view.js, native <dialog>)
   ========================================================================== */

.qv {
  /* The `* { margin: 0 }` reset kills the UA's centering, so restore it. */
  margin: auto;
  width: min(560px, calc(100% - 40px));
  max-height: 88dvh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 18px;
  background: var(--surface-card);
  color: var(--text);
  box-shadow: var(--shadow-modal);
}

.qv::backdrop {
  background: rgba(10, 6, 16, 0.82);
}

@media (prefers-reduced-motion: no-preference) {
  .qv[open] { animation: qv-pop 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
}

@keyframes qv-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

body.qv-open { overflow: hidden; }

.qv-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: rgba(22, 16, 30, 0.78);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .qv-close:hover { border-color: var(--gold); color: var(--gold); }
}

/* Clear of the close button in the same corner. */
.qv-media > .product-category { right: 64px; }

.qv-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-thumb);
}

.qv-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-thumb);
}

.qv-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 24px;
}

.qv-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.qv-price {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold);
}

.qv-specs {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.qv-spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--hairline-strong);
  font-size: 0.88rem;
}

.qv-spec-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.qv-spec-value {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--text);
  text-align: right;
}

.qv-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qv-note,
.qv-strains {
  font-size: 0.9rem;
}

.qv-note {
  font-family: var(--font-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.qv-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
}

.qv-status {
  padding: 24px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.qv-cta {
  width: 100%;
  margin-top: 6px;
}

.qv-page-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (hover: hover) {
  .qv-page-link:hover { color: var(--gold); }
}

/* ==========================================================================
   GCF Products carousel (partials/gcf-carousel.ejs, public/js/carousel.js)
   Native scroll-snap; JS only adds auto-advance, pause and keyboard. Keep
   every class and data-carousel-* attribute: verify-phase5.sh reads them.
   ========================================================================== */

.gcf-carousel {
  padding: 8px 0 12px;
}

.gcf-carousel-head {
  padding: 0 2px;
  margin-bottom: 16px;
}

.gcf-carousel-head h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.9rem, 6.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-top: 4px;
}

.gcf-carousel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.gcf-carousel-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (hover: hover) {
  .gcf-carousel-all:hover { color: var(--orange); }
}

/* Belt and braces: the horizontal overflow lives on .gcf-track alone, so the
   page body can never be pushed sideways. */
.gcf-carousel-body { overflow: hidden; }

.gcf-track {
  display: flex;
  gap: 12px;
  padding: 4px 20px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  scrollbar-width: none;
}

.gcf-track::-webkit-scrollbar { display: none; }

.gcf-track:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -2px;
}

/* 76% so the next slide peeks in — that is the swipe affordance on a phone. */
.gcf-slide {
  flex: 0 0 76%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gcf-slide-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s;
}

/* The same stripe the house product cards wear: these are the GCF-made lines. */
.gcf-slide-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: var(--stripe);
}

@media (hover: hover) {
  .gcf-slide-link:hover { border-color: rgba(187, 153, 255, 0.4); }
}

.gcf-slide-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-thumb);
}

.gcf-slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcf-slide-title {
  padding: 12px 14px 0;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.gcf-slide-count {
  padding: 2px 14px 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.gcf-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

/* carousel.js drops `hidden` when it takes over; without JS the buttons must
   stay gone, so this rule has to beat the display above. */
.gcf-carousel-controls[hidden] { display: none; }

.gcf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-accent);
  font-size: 1.2rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.gcf-btn--pause {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gcf-btn:focus-visible { outline-color: var(--gold); }

.gcf-btn[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

@media (hover: hover) {
  .gcf-btn:hover { border-color: var(--gold); color: var(--gold); }
}

.gcf-carousel-pos {
  min-width: 56px;
  font-family: var(--font-accent);
  font-size: 1rem;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* The only motion in this block, and only when it is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .gcf-track { scroll-behavior: smooth; }
}

@media (min-width: 720px) {
  .gcf-carousel { padding: 16px 0 24px; }

  .gcf-carousel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    padding: 0;
    margin-bottom: 22px;
  }

  .gcf-carousel-head .eyebrow { flex-basis: 100%; }

  .gcf-carousel-head p {
    flex: 1 1 auto;
    margin-top: 0;
    font-size: 1rem;
  }

  .gcf-track {
    gap: 26px;
    padding: 6px 20px 16px;
    scroll-padding-inline: 20px;
  }

  .gcf-slide { flex: 0 0 calc((100% - 52px) / 3); }
  .gcf-slide-link { box-shadow: var(--shadow-card); }
  .gcf-slide-title { padding: 16px 18px 0; font-size: 1.5rem; }
  .gcf-slide-count { padding: 2px 18px 16px; font-size: 0.86rem; }
}

@media (min-width: 1024px) {
  .gcf-slide { flex: 0 0 calc((100% - 78px) / 4); }
}

/* ==========================================================================
   About and contact pages
   ========================================================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.about-image {
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-panel);
  background: radial-gradient(420px 220px at 50% 0%, rgba(153, 102, 204, 0.28), transparent 70%),
              var(--surface-card);
  box-shadow: var(--shadow-card);
}

.about-image img {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.about-text h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.about-text h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 26px 0 8px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.about-text ul {
  margin: 0 0 14px 20px;
  color: var(--muted);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-info h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.contact-detail { margin-bottom: 18px; }

.contact-detail h3 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.contact-detail p { color: var(--muted); }
.contact-detail a { color: var(--text); }

@media (hover: hover) {
  .contact-detail a:hover { color: var(--gold); }
}

.contact-map {
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--card);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
  filter: grayscale(0.2) contrast(0.95);
}

.visit-section {
  margin-top: 44px;
  text-align: center;
}

.visit-section > p {
  max-width: 62ch;
  margin: 0 auto 24px;
  color: var(--muted);
}

.requirements-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 18px;
  border: 1px solid rgba(255, 204, 51, 0.35);
  border-radius: var(--radius-card);
  background: rgba(255, 204, 51, 0.06);
}

.requirements-box h3 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

@media (min-width: 720px) {
  .about-content { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 44px; }
  .contact-container { grid-template-columns: 1fr 1fr; gap: 44px; }
  .contact-map iframe { min-height: 100%; height: 100%; }
  .visit-section { margin-top: 64px; }
  .requirements-box { padding: 26px 28px; }
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-section {
  padding: 56px 0 72px;
  text-align: center;
}

.error-logo {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
}

.error-section h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.error-section p {
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 44px 0 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  background: var(--ink);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer-column h3 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-column p,
.footer-column li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column p + p { margin-top: 8px; }

.footer-column ul { list-style: none; }

.footer-column li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  transition: color 0.2s;
}

@media (hover: hover) {
  .footer-column a:hover { color: var(--gold); }
}

.copyright {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: rgba(180, 169, 198, 0.6);
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 720px) {
  footer { padding-top: 56px; }
  .footer-content { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .footer-column:first-child { max-width: 320px; }
}

/* ==========================================================================
   Store chrome: preview banner, coming-soon teaser
   ========================================================================== */

/* Editor-only banner while previewing a hidden / coming_soon store. Pinned to
   the bottom so it never fights the sticky header. */
.preview-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 8px 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gold);
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.coming-soon-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--text);
}

.coming-soon {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
}

.coming-soon-image {
  max-width: min(90vw, 900px);
  height: auto;
}

.coming-soon-logo {
  width: 160px;
  height: auto;
  margin-bottom: 18px;
}

.coming-soon-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.1;
  color: var(--lilac);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.coming-soon-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   Entry gate, blocking overlay, under-21 popup, /need-card (spec §5)
   Same markup standalone and as an overlay. Fits one phone screen without
   scrolling; every tap target is >= 48px.
   ========================================================================== */

.gate-body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
}

.gate {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Overlay mode: covers the whole viewport above the sticky header (100) and
   the editor preview banner (200). Scrollable on very short screens, but the
   scroll never chains to the locked page underneath. */
.gate--overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
}

/* iOS-safe scroll lock for the page under the overlay. */
body.gate-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.gate-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: radial-gradient(700px 360px at 50% -12%, rgba(153, 102, 204, 0.3), transparent 60%),
              linear-gradient(160deg, var(--card), #17111F);
  box-shadow: var(--shadow-panel);
  text-align: center;
}

.gate-logo {
  display: block;
  width: 68px;
  height: auto;
  margin: 0 auto 8px;
}

.gate-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 6.4vw, 2.4rem);
  line-height: 1.1;
  color: var(--lilac);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.gate-sub {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.gate-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.gate-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-col + .gate-col {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.gate-col-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

/* One button shape, three weights. Full width, stacked, 48px tall. */
.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.25s, color 0.25s;
}

/* The one gold CTA per view. */
.gate-btn--gold {
  background: var(--gold);
  color: #2A1206;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
}

/* Strong secondary: lilac fill, same print shadow. */
.gate-btn--strong {
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
}

.gate-btn--gold:active,
.gate-btn--strong:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow-ink);
}

/* Filled + high-contrast so it reads clearly next to the gold one. */
.gate-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
}

@media (hover: hover) {
  .gate-btn--gold:hover,
  .gate-btn--strong:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow-ink);
  }

  .gate-btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.11);
  }
}

/* Shown in place of a door when that store's status is hidden. */
.gate-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.gate-fine {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* Under-21 popup: a bottom sheet on phones, one thumb away. */
.gate-pop {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: rgba(10, 6, 16, 0.82);
}

.gate-pop[hidden] { display: none; }

.gate-pop-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
  text-align: center;
}

.gate-pop-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 8px;
}

.gate-pop-text {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* /need-card — Relief Clinic referral. */
.needcard {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.needcard-inner {
  width: 100%;
  max-width: 520px;
  padding: 26px 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: radial-gradient(600px 300px at 50% -12%, rgba(153, 102, 204, 0.3), transparent 60%),
              linear-gradient(160deg, var(--card), #17111F);
  box-shadow: var(--shadow-panel);
  text-align: center;
}

.needcard-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.needcard-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.6rem, 6.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.needcard-text {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.needcard-keyword {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.needcard-phone {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.needcard-cta { margin-bottom: 12px; }
.needcard-form { margin-bottom: 14px; }

.needcard-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--font-accent);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (hover: hover) {
  .needcard-back:hover { color: var(--gold); }
}

/* Tablet and up: two columns with a hairline divider, centred popup. */
@media (min-width: 720px) {
  .gate-inner { padding: 44px 32px 36px; }
  .gate-logo { width: 88px; margin-bottom: 10px; }
  .gate-sub { margin: 10px 0 30px; font-size: 1rem; }

  .gate-columns {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .gate-col {
    flex: 1 1 0;
    padding: 0 22px;
  }

  .gate-col + .gate-col {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }

  .gate-fine { margin-top: 26px; font-size: 0.8rem; }
  .gate-pop { place-items: center; }
  .gate-pop-card { padding: 30px 32px; }

  .needcard-inner { max-width: 600px; padding: 40px 40px 32px; }
  .needcard-logo { width: 200px; }
}

/* Very short phones (SE-class): tighten the gate so it still fits. */
@media (max-height: 640px) and (max-width: 719px) {
  .gate-logo { display: none; }
  .gate-inner { padding: 18px 16px 16px; }
  .gate-sub { margin-bottom: 12px; }
  .gate-columns { gap: 10px; }
  .gate-col + .gate-col { padding-top: 10px; }
  .gate-fine { margin-top: 12px; }
}

/* ==========================================================================
   Reduced motion: nothing moves that does not have to.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero .pour svg { transform: none; }
}
