/* =========================================================
   Tipsy Town — Premium design system
   Tokens first, then components. Warm wine-shop aesthetic.
   ========================================================= */

:root {
  /* Brand */
  --color-wine: #6b1f2a;
  --color-wine-deep: #4a1520;
  --color-wine-soft: #8a3542;
  --color-charcoal: #1f1a17;
  --color-espresso: #2c241f;
  --color-cream: #f7f1e8;
  --color-ivory: #fbf7f1;
  --color-paper: #fffdf9;
  --color-sand: #ebe3d6;
  --color-wood: #8b6b4a;
  --color-brass: #b08948;
  --color-brass-soft: #c9a86c;
  --color-muted: #6e645a;
  --color-line: #ddd2c4;
  --color-ok: #3d6b52;
  --color-low: #9a6420;
  --color-out: #8a3333;

  /* Surfaces */
  --bg: var(--color-cream);
  --bg-alt: var(--color-sand);
  --bg-elevated: var(--color-paper);
  --ink: var(--color-charcoal);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --accent: var(--color-wine);
  --accent-hover: var(--color-wine-deep);
  --gold: var(--color-brass);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Space & shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.05);
  --shadow: 0 12px 32px rgba(31, 26, 23, 0.08);
  --shadow-lg: 0 24px 48px rgba(31, 26, 23, 0.12);
  --container: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --touch: 44px;
}

@media (min-width: 1440px) {
  :root { --container: 1240px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.age-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 2px solid var(--color-wine);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--color-wine);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  top: 0.75rem;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(31, 26, 23, 0.35);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.nav-backdrop[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }

.container {
  width: min(var(--container), calc(100% - 2.75rem));
  margin: 0 auto;
}
.narrow { width: min(720px, 100%); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 36rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-wine);
  color: var(--color-ivory);
}
.btn-primary:hover {
  background: var(--color-wine-deep);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--color-charcoal);
}
.btn-secondary:hover {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-on-dark {
  background: var(--color-ivory);
  color: var(--color-wine-deep);
}
.btn-on-dark:hover { background: #fff; color: var(--color-wine-deep); }
.btn-outline-light {
  background: transparent;
  color: var(--color-ivory);
  border-color: rgba(255, 253, 249, 0.55);
}
.btn-outline-light:hover {
  background: rgba(255, 253, 249, 0.1);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none !important;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-wine);
  color: var(--color-ivory);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--gold);
  background: #1a120c;
  flex-shrink: 0;
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-wine);
  border-bottom-color: var(--gold);
}
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--bg-elevated);
}
.nav-search:hover {
  border-color: var(--gold);
  color: var(--color-wine);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  content: "";
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}
.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
body.nav-open { overflow: hidden; }

/* ---------- Flash ---------- */
.flash {
  width: min(var(--container), calc(100% - 2.75rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}
.flash-success { background: #e8f2ec; color: var(--color-ok); border: 1px solid #cfe0d6; }
.flash-error { background: #f8ecec; color: var(--color-out); border: 1px solid #e5cfcf; }

/* ---------- Hero (full-bleed) ---------- */
.hero-bleed {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--color-ivory);
  background:
    linear-gradient(120deg, rgba(31, 26, 23, 0.72), rgba(74, 21, 32, 0.45)),
    var(--hero-image, linear-gradient(145deg, #3a1a20, #1f1a17 60%));
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
/* Storefront: show the full signboard, scaled — never crop. */
.hero-bleed.hero-signboard {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #1c1714;
  isolation: isolate;
}
.hero-bleed.hero-signboard::before {
  display: none;
}
.hero-signboard-frame {
  position: relative;
  width: 100%;
  display: block;
  background: #6aa8d4;
  overflow: hidden;
  line-height: 0;
}
.hero-signboard-photo {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}
.hero-signboard-copy {
  position: static;
  width: 100%;
  background: #1c1714;
}
.hero-signboard-copy .hero-bleed-inner {
  padding: 1.5rem 0 1.35rem;
}
.hero-bleed.hero-signboard h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  max-width: 16ch;
}
.hero-bleed.hero-signboard .lead {
  max-width: 36rem;
  margin-bottom: 0.25rem;
}
.hero-bleed.hero-signboard .hero-actions {
  margin-top: 1rem;
}
.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 26, 23, 0.25) 0%, rgba(31, 26, 23, 0.72) 100%);
  z-index: 0;
}
.hero-bleed-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
}
.hero-bleed .eyebrow { color: var(--color-brass-soft); }
.hero-bleed h1 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: 0.75rem;
}
.hero-bleed .lead {
  color: rgba(247, 241, 232, 0.88);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 253, 249, 0.18);
  max-width: 40rem;
}
.hero-meta div span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brass-soft);
  margin-bottom: 0.25rem;
}
.hero-meta div strong {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: #fff;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--color-espresso);
  color: var(--color-cream);
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark .lead,
.section-dark p { color: rgba(247, 241, 232, 0.78); }
.section-dark .eyebrow { color: var(--color-brass-soft); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.section-head h2 { margin-bottom: 0.2rem; }
.page-hero {
  padding: 4rem 0 1.25rem;
  background:
    linear-gradient(180deg, #f3ebe0, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.35rem; }

/* ---------- Category tiles ---------- */
.category-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.category-tile {
  position: relative;
  grid-column: span 4;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.35rem;
  color: #fff;
  text-decoration: none !important;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.category-tile:nth-child(1),
.category-tile:nth-child(2) {
  grid-column: span 6;
  min-height: 280px;
}
.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-tile-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 26, 23, 0.12), rgba(31, 26, 23, 0.8)),
    var(--tile-image, linear-gradient(145deg, #5a2430, #2a1814));
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: transform 0.6s var(--ease);
}
.category-tile.tone-1 .category-tile-bg {
  background-image:
    linear-gradient(180deg, rgba(31, 26, 23, 0.12), rgba(31, 26, 23, 0.8)),
    var(--tile-image, linear-gradient(145deg, #6b1f2a, #2c1814));
}
.category-tile.tone-2 .category-tile-bg {
  background-image:
    linear-gradient(180deg, rgba(31, 26, 23, 0.12), rgba(31, 26, 23, 0.8)),
    var(--tile-image, linear-gradient(145deg, #4a3428, #1f1814));
}
.category-tile.tone-3 .category-tile-bg {
  background-image:
    linear-gradient(180deg, rgba(31, 26, 23, 0.12), rgba(31, 26, 23, 0.8)),
    var(--tile-image, linear-gradient(145deg, #3d4a38, #1a1f18));
}
.category-tile.tone-4 .category-tile-bg {
  background-image:
    linear-gradient(180deg, rgba(31, 26, 23, 0.12), rgba(31, 26, 23, 0.8)),
    var(--tile-image, linear-gradient(145deg, #5c4030, #241910));
}
.category-tile:hover .category-tile-bg { transform: scale(1.04); }
.category-tile h3 {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
}
.category-tile p {
  margin: 0.25rem 0 0;
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.9rem;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-width: 0;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-sand);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.045); }
.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(255, 253, 249, 0.85);
  background: linear-gradient(160deg, #5a2430, #241016);
}
.product-placeholder-large {
  min-height: 520px;
  border-radius: var(--radius-lg);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(251, 247, 241, 0.95);
  color: var(--color-wine);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.product-body .eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
}
.product-body h3 {
  margin: 0;
  font-size: 1.28rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body h3 a {
  color: inherit;
  text-decoration: none;
}
.product-body h3 a:hover { color: var(--color-wine); }
.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.price-ask {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.price-lg {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0.35rem 0 0.5rem;
  color: var(--color-wine);
}
.stock {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(61, 107, 82, 0.1);
}
.stock-ok { color: var(--color-ok); background: rgba(61, 107, 82, 0.12); }
.stock-low { color: var(--color-low); background: rgba(154, 100, 32, 0.12); }
.stock-out { color: var(--color-out); background: rgba(138, 51, 51, 0.12); }
.card-cta {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-wine);
}
.card-cta span {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.card-cta:hover { color: var(--accent-hover); }

/* Featured curated layout */
.featured-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}
.featured-main .product-media { aspect-ratio: 16 / 12; min-height: 360px; }
.featured-side {
  display: grid;
  gap: 1.25rem;
}
.featured-side .product-media { aspect-ratio: 16 / 10; }

/* ---------- Story / Visit ---------- */
.split-story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.story-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background:
    var(--story-image, linear-gradient(145deg, #5a2430, #1f1a17));
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hours-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.hours-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(221, 210, 196, 0.6);
  font-size: 0.98rem;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row span { color: var(--muted); }
.hours-row strong { font-weight: 600; }

.visit-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--color-sand);
  aspect-ratio: 21 / 9;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 280px;
  display: block;
}

/* ---------- Shop filters ---------- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s var(--ease);
}
.pill:hover,
.pill.active {
  background: var(--color-wine);
  border-color: var(--color-wine);
  color: #fff;
}
.filters {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1.75rem;
  padding: 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.filters label,
.stack-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 137, 72, 0.15);
}
textarea { resize: vertical; }
.result-count { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }

/* ---------- Product detail ---------- */
.product-detail { padding-top: 3rem; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
}
.product-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--color-sand);
  box-shadow: var(--shadow);
}
.product-detail-media img {
  width: 100%;
  min-height: min(520px, 70vh);
  max-height: 720px;
  object-fit: contain;
  object-position: center;
  background: var(--color-sand);
}
.spec-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
}
.spec-list dt { color: var(--muted); font-size: 0.88rem; }
.spec-list dd { margin: 0; font-weight: 600; }
.notes {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

/* ---------- News / contact / about ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-card, .news-row {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.news-card time, .news-row time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}
.news-list { display: grid; gap: 1rem; }
.news-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
}
.prose p { font-size: 1.05rem; color: var(--ink); }
.contact-grid, .about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.stack-form { display: grid; gap: 1rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(74, 21, 32, 0.94), rgba(31, 26, 23, 0.92)),
    var(--color-wine-deep);
  color: var(--color-cream);
  padding: var(--space-8) 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { color: rgba(247, 241, 232, 0.8); margin: 0; max-width: 34rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-espresso);
  color: rgba(247, 241, 232, 0.82);
  padding: 4rem 0 1.5rem;
}
.site-footer h3, .site-footer h4 {
  color: #fff;
  margin-bottom: 0.85rem;
}
.site-footer a { color: var(--color-brass-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-nav {
  display: grid;
  gap: 0.45rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-links { display: flex; gap: 1rem; margin-top: 0.75rem; }
.empty {
  text-align: center;
  padding: 3.25rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty h2 { margin-bottom: 0.35rem; }
.empty .btn { margin-top: 0.75rem; }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 14, 10, 0.82);
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.age-gate.is-open { display: grid; }
.age-card {
  width: min(440px, 100%);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.age-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Reveal (subtle) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .container { width: min(var(--container), calc(100% - 2rem)); }
  .product-grid,
  .news-grid { grid-template-columns: 1fr 1fr; }
  .featured-layout,
  .split-story,
  .visit-band,
  .product-detail-grid,
  .contact-grid,
  .about-home,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .category-tile,
  .category-tile:nth-child(1),
  .category-tile:nth-child(2) {
    grid-column: span 6;
    min-height: 200px;
  }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; z-index: 50; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 51;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(251, 247, 241, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0.05rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    min-height: var(--touch);
    display: flex;
    align-items: center;
    padding: 0.85rem 0.4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .hero-bleed { min-height: min(78vh, 640px); }
  .hero-bleed-inner { padding: 5rem 0 2.75rem; }
  .hero-signboard-photo {
    width: 100%;
    height: auto;
  }
  .hero-signboard-copy .hero-bleed-inner {
    padding: 1.35rem 0 1.15rem;
  }
  .hero-meta {
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
  }
  .filters { grid-template-columns: 1fr 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .product-detail-media img { min-height: 360px; }
  .footer-legal { gap: 0.75rem 1.1rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(var(--container), calc(100% - 1.25rem)); }
  h1 { font-size: clamp(2rem, 9vw, 2.85rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2.15rem); }
  .product-grid,
  .news-grid,
  .filters,
  .featured-side {
    grid-template-columns: 1fr;
  }
  .product-grid { gap: 1rem; }
  .category-tile,
  .category-tile:nth-child(1),
  .category-tile:nth-child(2) {
    grid-column: span 12;
    min-height: 180px;
  }
  .brand em { display: none; }
  .brand strong { font-size: 1.1rem; }
  .section { padding: 2.75rem 0; }
  .page-hero { padding: 2.75rem 0 1rem; }
  .hero-bleed {
    min-height: auto;
    align-items: center;
  }
  .hero-bleed-inner {
    padding: 4.5rem 0 2.25rem;
  }
  .hero-bleed.hero-signboard {
    min-height: 0;
  }
  .hero-signboard-photo {
    width: 100%;
    height: auto;
  }
  .hero-signboard-copy .hero-bleed-inner {
    padding: 1.15rem 0 1rem;
  }
  .hero-bleed h1 { max-width: none; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 22rem;
  }
  .hero-actions .btn { width: 100%; }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: none;
    padding-top: 1.15rem;
  }
  .btn {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
  }
  .cta-inner .btn,
  .hero-actions .btn,
  .age-actions .btn {
    width: 100%;
  }
  .age-card { padding: 1.5rem 1.25rem; }
  .age-actions { flex-direction: column; }
  .product-body { padding: 1rem 1.05rem 1.15rem; }
  .product-body h3 { font-size: 1.2rem; }
  .product-card:hover { transform: none; }
  .category-tile:hover { transform: none; }
  .footer-grid { gap: 1.5rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.65rem 1rem;
  }
  .stack-form input,
  .stack-form textarea,
  .stack-form select,
  .filters input,
  .filters select {
    font-size: 16px; /* prevent iOS zoom */
    min-height: 48px;
    width: 100%;
  }
  .stack-form textarea { min-height: 140px; }
  .map-frame {
    aspect-ratio: 4 / 3;
  }
  .map-frame iframe {
    min-height: 240px;
  }
  .category-pills {
    gap: 0.45rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.15rem 0 0.5rem;
    margin: 0 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .pill {
    white-space: nowrap;
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
    padding-inline: 0.95rem;
  }
  .hero-meta { display: none; }
  .header-inner { min-height: 64px; gap: 0.65rem; }
  .brand-logo,
  .brand-mark { width: 46px; height: 46px; }
  .empty {
    padding: 2rem 1.15rem;
    text-align: center;
  }
  .empty .btn { width: auto; min-width: 12rem; margin-inline: auto; }
}

@media (max-width: 360px) {
  .container { width: min(var(--container), calc(100% - 1rem)); }
  .brand strong { font-size: 1rem; }
  .nav-search { display: none; }
  .product-body h3 { font-size: 1.12rem; }
  .price { font-size: 1.1rem; }
}

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

/* Performance: defer offscreen paint for long sections */
@media (min-width: 900px) {
  .section.reveal,
  .shop-gallery {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
  }
}

/* ---------- Shop Gallery (editorial mosaic) ---------- */
.shop-gallery {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #f7f1e8 0%, #fbf7f1 55%, #f3ebe0 100%);
}
.shop-gallery-page { padding-top: 1rem; background: transparent; }
.shop-gallery-about { background: #f7f1e8; }

.shop-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.shop-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  background: #2a221c;
  box-shadow: 0 10px 28px rgba(31, 26, 23, 0.08);
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}
.shop-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.shop-gallery-item:hover img,
.shop-gallery-item:focus-visible img {
  transform: scale(1.04);
}
.shop-gallery-item:focus-visible {
  outline: 2px solid var(--accent, #6b1f2a);
  outline-offset: 3px;
}

.shop-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(20, 14, 10, 0.72));
  color: #f7f1e8;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.shop-gallery-item:hover .shop-gallery-caption,
.shop-gallery-item:focus-visible .shop-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Home / page: 2 large + 3 small editorial layout */
.shop-gallery-mosaic-home .shop-gallery-item:nth-child(1),
.shop-gallery-mosaic-home .shop-gallery-item:nth-child(2),
.shop-gallery-mosaic-page .shop-gallery-item:nth-child(1),
.shop-gallery-mosaic-page .shop-gallery-item:nth-child(2) {
  grid-column: span 6;
  aspect-ratio: 16 / 11;
  min-height: 280px;
}
.shop-gallery-mosaic-home .shop-gallery-item:nth-child(n+3),
.shop-gallery-mosaic-page .shop-gallery-item:nth-child(n+3) {
  grid-column: span 4;
  aspect-ratio: 5 / 4;
}
.shop-gallery-mosaic-page .shop-gallery-item:nth-child(7),
.shop-gallery-mosaic-page .shop-gallery-item:nth-child(8) {
  grid-column: span 6;
  aspect-ratio: 16 / 11;
}

.shop-gallery-mosaic-about .shop-gallery-item {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .shop-gallery-mosaic-home .shop-gallery-item:nth-child(1),
  .shop-gallery-mosaic-home .shop-gallery-item:nth-child(2),
  .shop-gallery-mosaic-page .shop-gallery-item:nth-child(1),
  .shop-gallery-mosaic-page .shop-gallery-item:nth-child(2),
  .shop-gallery-mosaic-page .shop-gallery-item:nth-child(7),
  .shop-gallery-mosaic-page .shop-gallery-item:nth-child(8),
  .shop-gallery-mosaic-home .shop-gallery-item:nth-child(n+3),
  .shop-gallery-mosaic-page .shop-gallery-item:nth-child(n+3),
  .shop-gallery-mosaic-about .shop-gallery-item {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .shop-gallery { padding: 3rem 0; }
  .shop-gallery-mosaic { gap: 0.65rem; }
  .shop-gallery-item,
  .shop-gallery-mosaic-home .shop-gallery-item:nth-child(1),
  .shop-gallery-mosaic-home .shop-gallery-item:nth-child(2),
  .shop-gallery-mosaic-page .shop-gallery-item:nth-child(n),
  .shop-gallery-mosaic-about .shop-gallery-item {
    grid-column: span 12;
    aspect-ratio: 5 / 4;
    min-height: 0;
  }
  .shop-gallery-caption { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 12, 8, 0.92);
  padding: 1.25rem;
}
.lightbox.is-open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-caption {
  color: rgba(247, 241, 232, 0.88);
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.25em;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(247, 241, 232, 0.12);
  color: #f7f1e8;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: -0.25rem; right: -0.25rem; }
.lightbox-nav.prev { left: -0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: -0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(247, 241, 232, 0.22); }
@media (max-width: 700px) {
  .lightbox-nav.prev { left: 0.25rem; }
  .lightbox-nav.next { right: 0.25rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}
body.lightbox-open { overflow: hidden; }
