/* ============================================================================
   Hartford Liquor Retail Storefront Design System (Total Wine–Inspired)
   Bright, crisp retail aesthetic with distinct per-store brand themes.
   Zero external dependencies — 100% static Cloudflare Pages ready.
   ============================================================================ */

:root {
  --bg-page: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f3f5;
  --bg-card-art: #f6f7f9;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --ink: #111827;
  --ink-secondary: #374151;
  --ink-muted: #6b7280;
  --success: #047857;
  --success-bg: #ecfdf5;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.16);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Default Theme: Yankee Liquor (Deep Heritage Navy + Classic Burgundy + Gold) */
  --brand-primary: #0f2340;
  --brand-primary-hover: #0a182d;
  --brand-cta: #9e1b32;
  --brand-cta-hover: #821528;
  --brand-accent: #c59b27;
  --brand-accent-soft: #fdf8e8;
  --brand-tint: #eef3f8;
  --hero-grad-a: #0f2340;
  --hero-grad-b: #1c3a63;
}

[data-store="nba-discount-liquors"] {
  /* Distinct NBA Theme: Rich Wine Burgundy + Deep Charcoal + Warm Gold */
  --brand-primary: #6d1324;
  --brand-primary-hover: #520d1a;
  --brand-cta: #1c1917;
  --brand-cta-hover: #0c0a09;
  --brand-accent: #d4a017;
  --brand-accent-soft: #fef9e7;
  --brand-tint: #f9eff1;
  --hero-grad-a: #6d1324;
  --hero-grad-b: #3b0d16;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1320px, 100% - 2rem);
  margin: 0 auto;
}

/* --- 1. Top Utility Bar --- */
.utility-bar {
  background: var(--brand-primary);
  color: #f3f4f6;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  padding: 0.42rem 0;
  flex-wrap: wrap;
}

.utility-bar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e5e7eb;
}

.utility-bar__item a {
  color: #ffffff;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot--closed {
  background: #f87171;
}

.utility-bar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  margin-left: auto;
}

.age-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  flex: 0 1 auto;
}

/* Clean Top-Right Language Flag Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e5e7eb;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher__btn:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.lang-switcher__btn--active {
  background: #ffffff;
  color: var(--brand-primary);
}

.lang-switcher__btn--active:hover {
  background: #ffffff;
  color: var(--brand-primary);
}

/* --- 2. Sticky Main Retail Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.45rem;
  border-radius: 10px;
  background: var(--brand-primary);
  color: var(--brand-accent);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--brand-accent);
}

.brand-title {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--brand-primary);
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Instant Search Box + Live Autocomplete */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  justify-self: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.search-form:focus-within {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 35, 64, 0.12);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.48rem 0.5rem 0.48rem 0;
  font-size: 0.94rem;
  color: var(--ink);
  outline: none;
}

.search-clear {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--brand-primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.48rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  gap: 0.35rem;
}

.search-submit:hover {
  background: var(--brand-primary-hover);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-height: 430px;
  overflow-y: auto;
}

.search-dropdown[hidden] {
  display: none;
}

.ac-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.ac-row:hover {
  background: var(--bg-page);
}

.ac-row__thumb {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-card-art);
  border-radius: 6px;
  overflow: hidden;
}

.ac-row__thumb svg,
.ac-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ac-row__title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.25;
}

.ac-row__meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.ac-row__price {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}

.ac-row__add {
  border: 1px solid var(--brand-cta);
  background: var(--brand-cta);
  color: #ffffff;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ac-row__add:hover {
  background: var(--brand-cta-hover);
}

.ac-footer {
  padding: 0.55rem 0.85rem;
  background: var(--bg-subtle);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Actions (Fulfillment Pill + Cart Button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.fulfillment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.fulfillment-pill strong {
  color: var(--success);
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: var(--brand-cta);
  color: #ffffff;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.cart-trigger:hover {
  background: var(--brand-cta-hover);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-cta);
  font-size: 0.75rem;
  font-weight: 800;
}

/* --- 3. Category Navigation Bar --- */
.cat-nav {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cat-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav__list::-webkit-scrollbar {
  display: none;
}

.cat-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.68rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.cat-nav__link:hover {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom-color: var(--border-strong);
}

.cat-nav__link--active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-cta);
}

.cat-nav__link--specialty {
  color: var(--brand-cta);
}

/* --- 4. Breadcrumbs (Category Pages) --- */
.breadcrumbs {
  padding: 0.9rem 0 0.25rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--border-strong);
}

/* --- 5. Hero Merchandising Strip (Total Wine Style) --- */
.hero-section {
  padding: 1.35rem 0 1.25rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 1.1rem;
  align-items: stretch;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(128deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 100%);
  color: #ffffff;
  padding: 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fef3c7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero-banner h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.hero-banner p {
  margin: 0 0 1.25rem;
  color: #e5e7eb;
  font-size: 0.98rem;
  max-width: 56ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--gold {
  background: var(--brand-accent);
  color: #111827;
}

.btn--gold:hover {
  filter: brightness(0.95);
}

.btn--cta {
  background: var(--brand-cta);
  color: #ffffff;
}

.btn--cta:hover {
  background: var(--brand-cta-hover);
}

.btn--primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--brand-primary-hover);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--bg-subtle);
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
}

.fulfill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.fulfill-card--highlight {
  border-left: 4px solid var(--brand-cta);
}

.fulfill-card--secondary {
  border-left: 4px solid var(--brand-accent);
}

.fulfill-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  background: var(--success-bg);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.fulfill-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  color: var(--ink);
}

.fulfill-card p {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.fulfill-card__link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-cta);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Category Header Banner (Subpages) */
.cat-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin: 0.75rem 0 1.25rem;
  box-shadow: var(--shadow-sm);
}

.cat-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  color: var(--brand-primary);
}

.cat-hero p {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 78ch;
  font-size: 0.94rem;
}

/* --- 6. Shop-by-Category Visual Tiles --- */
.section-block {
  padding: 1.25rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-head a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-cta);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
}

.cat-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.cat-tile:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.cat-tile__art {
  width: 66px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  padding: 0.4rem;
}

.cat-tile__art svg {
  width: 100%;
  height: 100%;
}

.cat-tile__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.cat-tile__count {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* --- 7. Curated Popular Horizontal Strip --- */
.popular-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(215px, 230px);
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.75rem;
  scroll-snap-type: x proximity;
}

.popular-strip > .product-card {
  scroll-snap-align: start;
}

/* --- 8. Main Interactive Catalog (Sidebar + Grid) --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 0.75rem 0 2.5rem;
}

.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  position: sticky;
  top: 124px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.filter-sidebar__head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.filter-clear-btn {
  border: 0;
  background: transparent;
  color: var(--brand-cta);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
}

.filter-close-btn {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.filter-group {
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  max-height: 220px;
  overflow-y: auto;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 0.18rem 0.25rem;
  border-radius: 5px;
}

.filter-option:hover {
  background: var(--bg-page);
}

.filter-option label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.filter-option input {
  accent-color: var(--brand-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.filter-option__count {
  font-size: 0.74rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.catalog-count {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

.catalog-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.42rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.sort-select {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.active-chips:empty {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1px solid rgba(15, 35, 64, 0.16);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* --- 9. Product Cards Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.95rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  height: 150px;
  background: var(--bg-card-art);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0.6rem;
  overflow: hidden;
}

.product-card__media svg,
.product-card__media img {
  max-height: 132px;
  max-width: 100%;
  object-fit: contain;
}

.product-card__cat {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.product-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.stock-badge {
  color: var(--success);
  font-weight: 700;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.fee-micro {
  font-size: 0.69rem;
  color: var(--ink-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.product-card__price {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.add-btn {
  border: 0;
  background: var(--brand-cta);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.46rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--brand-cta-hover);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--brand-primary);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.qty-stepper button {
  border: 0;
  background: var(--brand-tint);
  color: var(--brand-primary);
  width: 28px;
  height: 30px;
  font-weight: 800;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.qty-stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-muted);
}

/* --- 10. Store Info & CT Compliance Band --- */
.store-info-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.store-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.info-panel {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.info-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--brand-primary);
}

.info-panel p,
.info-panel li {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.info-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

/* --- 11. Footer --- */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.site-footer a {
  color: #e5e7eb;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-bottom {
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* --- 12. Slide-Over Drawers (Cart + Mobile Filters) & 21+ Modal --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 80;
}

.drawer-backdrop[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #ffffff;
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--brand-primary);
  color: #ffffff;
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.icon-close {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.cart-item__sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.cart-totals {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
}

.cart-totals__row--total {
  border-top: 1px solid var(--border-strong);
  padding-top: 0.45rem;
  margin-top: 0.2rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink);
}

.reserve-form {
  display: grid;
  gap: 0.7rem;
}

.field-group {
  display: grid;
  gap: 0.25rem;
}

.field-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.field-group input,
.field-group select {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  background: #ffffff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  background: var(--brand-accent-soft);
  border: 1px solid #f3d98b;
  padding: 0.65rem;
  border-radius: 8px;
}

.checkbox-row input {
  margin-top: 2px;
  accent-color: var(--brand-primary);
}

.slip-box {
  background: var(--success-bg);
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
}

.slip-code {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin: 0.3rem 0 0.6rem;
}

.slip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* 21+ Modal */
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(17, 24, 39, 0.76);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.age-modal[hidden] {
  display: none;
}

.age-modal__card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 1.85rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--brand-primary);
}

.age-modal__card h2 {
  margin: 0.35rem 0 0.65rem;
  color: var(--brand-primary);
}

.age-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

/* --- Responsive Breakpoints (1440px Desktop -> 390px Mobile Zero Overflow) --- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-side {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .mobile-filter-btn {
    display: inline-flex;
  }
  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-height: 100vh;
    z-index: 95;
    border-radius: 0;
  }
  .filter-sidebar.is-open {
    display: block;
  }
  .filter-close-btn {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 1.25rem);
  }
  .header-main {
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    padding: 0.65rem 0;
  }
  .search-wrap {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  .fulfillment-pill {
    display: none;
  }
  .hero-banner {
    padding: 1.35rem 1.2rem;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .product-card {
    padding: 0.68rem;
  }
  .product-card__media {
    height: 120px;
  }
  .product-card__title {
    font-size: 0.82rem;
  }
  .product-card__price {
    font-size: 0.96rem;
  }
  .add-btn {
    padding: 0.38rem 0.58rem;
    font-size: 0.74rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
