/* ============================================================
   The Spirit Atlas — Complete Redesign
   assets/css/style.css
   Mobile-first, modern, inspired by livcheers.com
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,500;1,600&display=swap");

/* ── Variables ── */
:root {
  /* Dark theme */
  --bg: #0f0d12;
  --bg2: #15121a;
  --bg3: #1c1823;
  --card: #1e1b26;
  --card2: #252130;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.13);
  --gold: #d4a843;
  --gold2: #f0c060;
  --gold3: #ffe49a;
  --gold-bg: rgba(212, 168, 67, 0.09);
  --gold-border: rgba(212, 168, 67, 0.25);
  --text: #f0ecf8;
  --text2: #9890a8;
  --text3: #5a5268;
  --purple: #7c6fcd;
  --purple-bg: rgba(124, 111, 205, 0.12);
  --red: #e05050;
  --green: #4caf82;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 4px 24px rgba(212, 168, 67, 0.2);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --radius-pill: 100px;
  --trans: 0.2s ease;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
}

/* ── Light Theme ── */
body.light-mode {
  --bg: #f4f1f9;
  --bg2: #ede9f5;
  --bg3: #e5e0f0;
  --card: #ffffff;
  --card2: #f8f6fc;
  --border: rgba(0, 0, 0, 0.07);
  --border2: rgba(0, 0, 0, 0.12);
  --gold: #9a6f1a;
  --gold2: #b8860b;
  --gold3: #7a5510;
  --gold-bg: rgba(154, 111, 26, 0.08);
  --gold-border: rgba(154, 111, 26, 0.22);
  --text: #1a1624;
  --text2: #5a5268;
  --text3: #9890a8;
  --purple: #6355b8;
  --purple-bg: rgba(99, 85, 184, 0.08);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background var(--trans),
    color var(--trans);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--trans);
}
a:hover {
  color: var(--gold2);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--text);
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg2);
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}
::selection {
  background: var(--gold);
  color: #000;
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}
.container-sm {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  padding: 56px 0;
}

/* Spacing utilities */
.pt-0 {
  padding-top: 0;
}
.pt-4 {
  padding-top: 4px;
}
.pt-8 {
  padding-top: 8px;
}
.pt-12 {
  padding-top: 12px;
}
.pt-16 {
  padding-top: 16px;
}
.pt-20 {
  padding-top: 20px;
}
.pt-24 {
  padding-top: 24px;
}
.pt-32 {
  padding-top: 32px;
}
.pt-36 {
  padding-top: 36px;
}
.pt-40 {
  padding-top: 40px;
}
.pt-48 {
  padding-top: 48px;
}
.pt-56 {
  padding-top: 56px;
}
.pt-64 {
  padding-top: 64px;
}
.pb-0 {
  padding-bottom: 0;
}
.pb-4 {
  padding-bottom: 4px;
}
.pb-8 {
  padding-bottom: 8px;
}
.pb-12 {
  padding-bottom: 12px;
}
.pb-16 {
  padding-bottom: 16px;
}
.pb-20 {
  padding-bottom: 20px;
}
.pb-24 {
  padding-bottom: 24px;
}
.pb-32 {
  padding-bottom: 32px;
}
.pb-36 {
  padding-bottom: 36px;
}
.pb-40 {
  padding-bottom: 40px;
}
.pb-48 {
  padding-bottom: 48px;
}
.pb-56 {
  padding-bottom: 56px;
}
.pb-64 {
  padding-bottom: 64px;
}
.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.px-8 {
  padding-left: 8px;
  padding-right: 8px;
}
.px-12 {
  padding-left: 12px;
  padding-right: 12px;
}
.px-16 {
  padding-left: 16px;
  padding-right: 16px;
}
.px-24 {
  padding-left: 24px;
  padding-right: 24px;
}
.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
.py-8 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.py-12 {
  padding-top: 12px;
  padding-bottom: 12px;
}
.py-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py-24 {
  padding-top: 24px;
  padding-bottom: 24px;
}
.py-32 {
  padding-top: 32px;
  padding-bottom: 32px;
}
.py-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}
.py-48 {
  padding-top: 48px;
  padding-bottom: 48px;
}
.py-56 {
  padding-top: 56px;
  padding-bottom: 56px;
}
.mt-0 {
  margin-top: 0;
}
.mt-4 {
  margin-top: 4px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-40 {
  margin-top: 40px;
}
.mt-48 {
  margin-top: 48px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-4 {
  margin-bottom: 4px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
.mb-40 {
  margin-bottom: 40px;
}
.mb-48 {
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border2);
  color: var(--text2);
}
.badge-gold {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn-gold {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold2);
  color: #000;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: var(--border2);
  color: var(--text2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}
.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.btn-xs {
  padding: 5px 12px;
  font-size: 12px;
}

/* Ad slot */
.ad-slot {
  background: var(--bg3);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ad-slot-rect {
  min-height: 250px;
}

/* ══════════════════════════════════════
   HEADER — fixed mobile overflow issue
══════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 13, 18, 0.94);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  height: 62px;
  /* KEY FIX: prevent header from causing horizontal scroll */
  width: 100%;
  overflow: hidden;
}
body.light-mode #site-header {
  background: rgba(244, 241, 249, 0.94);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 0;
  /* Prevent overflow */
  overflow: hidden;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.logo-text .name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.logo-text .tagline {
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Desktop nav — hidden on mobile */
.header-nav {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }
  .header-inner {
    gap: 16px;
  }
}

.nav-link {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: all var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: var(--gold-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Icon buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans);
  color: var(--text2);
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all var(--trans);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: var(--bg2);
  overflow-y: auto;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.mobile-nav.open {
  display: block;
}
.mobile-nav .nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* Fix mobile overflow */
.dsec-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.taste-txt,
.history-body,
.prod-val {
  overflow-wrap: break-word;
  word-break: break-word;
}

.dsec {
  overflow: hidden;
}

@media (max-width: 700px) {
  .dsec-body {
    padding: 14px;
  }
}
/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-box {
  width: 100%;
  max-width: 600px;
  transform: translateY(-16px);
  transition: transform 0.25s ease;
}
.search-overlay.open .search-box {
  transform: translateY(0);
}
.search-input-wrap {
  position: relative;
}
.search-input-wrap input {
  width: 100%;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  background: var(--card);
  border: 1.5px solid var(--border2);
  color: var(--text);
  padding: 16px 52px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--trans);
}
.search-input-wrap input:focus {
  border-color: var(--gold);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
}
.search-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  cursor: pointer;
}
.search-results {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 340px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--trans);
  text-decoration: none;
  color: var(--text);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--gold-bg);
}
.sri-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--bg3);
  flex-shrink: 0;
}
.sri-name {
  font-size: 14px;
  font-weight: 600;
}
.sri-meta {
  font-size: 12px;
  color: var(--text3);
  margin-top: 1px;
}

/* ══════════════════════════════════════
   HERO — Bold, editorial
══════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 52px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 50%,
      rgba(124, 111, 205, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 80% 20%,
      rgba(212, 168, 67, 0.07) 0%,
      transparent 60%
    );
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 800px) {
  .hero {
    padding: 80px 0 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.hero-content {
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-tag svg {
  width: 12px;
  height: 12px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
}
.hero-title span.line2 {
  display: block;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 400;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-search-form {
  display: flex;
  max-width: 440px;
  background: var(--card);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition:
    border-color var(--trans),
    box-shadow var(--trans);
}
.hero-search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.12);
}
.hero-search-form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  padding: 13px 18px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.hero-search-form input::placeholder {
  color: var(--text3);
}
.hero-search-form button {
  background: var(--gold);
  border: none;
  padding: 13px 20px;
  cursor: pointer;
  color: #000;
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--trans);
}
.hero-search-form button:hover {
  background: var(--gold2);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat {
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* Hero visual (right side) */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  transition: all var(--trans);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-cat-card:hover {
  border-color: var(--gold);
  background: var(--card2);
  transform: translateY(-3px);
}
.hero-cat-card:nth-child(1) {
  grid-column: span 2;
}
.hero-cat-card .icon {
  font-size: 26px;
  margin-bottom: 2px;
}
.hero-cat-card .cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.hero-cat-card .cat-count {
  font-size: 11px;
  color: var(--text3);
}
.hero-cat-card.featured {
  background: linear-gradient(
    135deg,
    rgba(212, 168, 67, 0.12),
    rgba(124, 111, 205, 0.08)
  );
}

/* ══════════════════════════════════════
   CATEGORY STRIP
══════════════════════════════════════ */
.cat-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.cat-strip-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.cat-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}
.cat-pill.active {
  border-color: var(--gold);
  color: #000;
  background: var(--gold);
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-top: 4px;
  font-weight: 400;
  font-family: var(--font);
}
.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}
.view-all-link:hover {
  color: var(--gold2);
}
.view-all-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--trans);
}
.view-all-link:hover svg {
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   CATEGORY GRID (livcheers-style)
══════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
@media (min-width: 600px) {
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
@media (min-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.cat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.cat-card:hover {
  border-color: var(--gold);
  background: var(--card2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.cat-card .cat-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.cat-card .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-icon {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.cat-card:hover .cat-icon img {
  transform: scale(1.08);
}
.cat-card:hover .cat-icon {
  background: var(--gold-bg);
}
.cat-card .cat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-card .cat-num {
  font-size: 12px;
  color: var(--text3);
}

/* ══════════════════════════════════════
   SPIRITS GRID
══════════════════════════════════════ */
.spirits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) {
  .spirits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 900px) {
  .spirits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spirit-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.spirit-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.card-img {
  aspect-ratio: 3/4;
  max-height: 200px;
  background: var(--card2);
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.spirit-card:hover .card-img img {
  transform: scale(1.05);
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text3);
}
.card-img-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}
.card-img-placeholder span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.5;
}

.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.card-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.card-origin {
  font-size: 12px;
  color: var(--text3);
}
.card-tagline {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  font-style: italic;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.card-abv {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.card-rating {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
}

/* ══════════════════════════════════════
   FEATURED BAND (homepage highlight)
══════════════════════════════════════ */
.featured-band {
  background: linear-gradient(
    135deg,
    var(--bg2) 0%,
    rgba(124, 111, 205, 0.06) 50%,
    var(--bg2) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .featured-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.featured-main {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}
.featured-main:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.featured-main .fm-img {
  aspect-ratio: 16/9;
  background: var(--card2);
  overflow: hidden;
}
.featured-main .fm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-main:hover .fm-img img {
  transform: scale(1.03);
}
.featured-main .fm-body {
  padding: 20px;
}
.fm-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.fm-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.fm-meta {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  gap: 10px;
  align-items: center;
}

.featured-side {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}
.featured-side:hover {
  border-color: var(--gold);
}
.featured-side .fs-img {
  aspect-ratio: 4/3;
  background: var(--card2);
  overflow: hidden;
}
.featured-side .fs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-side .fs-body {
  padding: 14px;
}
.fs-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.fs-meta {
  font-size: 11px;
  color: var(--text3);
}

/* ══════════════════════════════════════
   SPIRIT DETAIL PAGE
══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-size: 13px;
  color: var(--text2);
  transition: color var(--trans);
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb .sep {
  font-size: 11px;
  color: var(--text3);
}
.breadcrumb .current {
  font-size: 13px;
  color: var(--text3);
}

.detail-hero {
  padding: 40px 0 36px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 700px) {
  .detail-layout {
    grid-template-columns: 280px 1fr;
  }
}
@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 320px 1fr;
  }
}

.detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
  aspect-ratio: 3/4;
  max-height: 420px;
}
@media (min-width: 700px) {
  .detail-image {
    position: sticky;
    top: 78px;
  }
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cat {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.detail-title {
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.detail-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 20px;
  font-weight: 400;
  font-family: var(--font);
}
.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 500px) {
  .detail-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dstat {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  transition: border-color var(--trans);
}
.dstat:hover {
  border-color: var(--gold-border);
}
.dstat .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.dstat .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  font-weight: 600;
}

.detail-body {
  padding: 40px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.detail-grid > * {
  min-width: 0;
}
@media (min-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr 280px;
  }
}

.dsec {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.dsec-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dsec-head svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}
.dsec-head span {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.dsec-body {
  padding: 18px;
}

.taste-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) {
  .taste-trio {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 760px) {
  .taste-trio {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.taste-box {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  min-width: 0; /* ADD THIS — fixes text overflow in grid */
  word-break: break-word; /* ADD THIS — prevents text escaping box */
}

.taste-txt {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  word-break: break-word; /* ADD THIS */
}

.taste-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-bottom: 8px;
  font-weight: 700;
}
.taste-txt {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.history-body {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.85;
}
.history-body p {
  margin-bottom: 16px;
}
.history-body p:last-child {
  margin-bottom: 0;
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 480px) {
  .prod-grid {
    grid-template-columns: 1fr;
  }
}
.prod-item {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}
.prod-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 4px;
  font-weight: 700;
}
.prod-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.price-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.price-tbl th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text3);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-family: var(--font);
}
.price-tbl td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.price-tbl tr:last-child td {
  border-bottom: none;
}
.price-tbl tr:hover td {
  background: var(--gold-bg);
}
.price-val {
  color: var(--gold) !important;
  font-weight: 400;
  font-size: 16px;
}

.cocktail-item {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border);
}
.cocktail-item:last-child {
  margin-bottom: 0;
}
.cocktail-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cocktail-section-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-bottom: 5px;
  font-weight: 700;
}
.cocktail-section-val {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card2);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--trans);
  text-decoration: none;
  color: var(--text);
}
.related-card:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.rc-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--bg3);
  flex-shrink: 0;
}
.rc-name {
  font-size: 13px;
  font-weight: 600;
}
.rc-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 36px 0;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  text-decoration: none;
  font-family: var(--font);
}
.page-btn:hover,
.page-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* ══════════════════════════════════════
   BLOG
══════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.blog-card .bc-img {
  aspect-ratio: 16/9;
  background: var(--card2);
  overflow: hidden;
}
.blog-card .bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .bc-img img {
  transform: scale(1.04);
}
.blog-card .bc-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bc-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.bc-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.bc-excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.bc-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* Blog article content */
.blog-content {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.9;
  font-family: var(--font);
}
.blog-content h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.blog-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text);
  margin: 24px 0 10px;
}
.blog-content p {
  margin-bottom: 18px;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 18px 22px;
}
.blog-content li {
  margin-bottom: 8px;
}
.blog-content strong {
  color: var(--text);
  font-weight: 700;
}
.blog-content a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
}
.blog-content a:hover {
  color: var(--gold2);
}
.blog-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 18px;
  margin: 24px 0;
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.blog-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 20px 0;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.blog-content th {
  background: var(--card);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}
.blog-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo-text .name {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--gold);
}
.footer-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin: 14px 0 20px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 15px;
  transition: all var(--trans);
  text-decoration: none;
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}
.footer-col h4 {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color var(--trans);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px;
  color: var(--text3);
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--text3);
}

/* ══════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-gold);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--gold2);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeup {
  animation: fadeInUp 0.5s ease both;
}
.animate-delay-1 {
  animation-delay: 0.08s;
}
.animate-delay-2 {
  animation-delay: 0.16s;
}
.animate-delay-3 {
  animation-delay: 0.24s;
}
.animate-delay-4 {
  animation-delay: 0.32s;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--card) 25%,
    var(--card2) 50%,
    var(--card) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 4px;
}

/* ══════════════════════════════════════
   RATING STARS
══════════════════════════════════════ */
.rating-stars {
  display: inline-flex;
  gap: 2px;
}
.star {
  font-size: 13px;
}
.star.filled {
  color: var(--gold);
}
.star.empty {
  color: var(--text3);
}

/* ══════════════════════════════════════
   MOBILE DETAIL PAGE FIX
══════════════════════════════════════ */
@media (max-width: 599px) {
  /* Fix container */
  .container {
    
  }

  /* Fix tasting notes — stack vertically on mobile */
  .taste-trio {
    grid-template-columns: 1fr !important;
  }

  /* Fix taste box spanning */
  .taste-box[style*="grid-column"] {
    grid-column: span 1 !important;
  }

  /* Fix history text clipping */
  .history-body {
    font-size: 14px;
    overflow: hidden;
  }

  /* Fix detail grid — no sidebar on mobile */
  .detail-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix dsec cards not exceeding screen */
  .dsec {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Fix dsec-body padding */
  .dsec-body {
    padding: 14px !important;
  }

  /* Price table scrollable */
  .dsec-body [style*="overflow-x:auto"],
  .dsec-body [style*="overflow-x: auto"] {
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Fix prod grid */
  .prod-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix detail stats */
  .detail-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Fix detail layout hero */
  .detail-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Fix price highlight grid */
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Prevent inline grid cells from overflowing */
  div[style*="display:grid"] > div,
  div[style*="display: grid"] > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ============================================================
   The Spirit Atlas — UX Improvements
   Paste this at the bottom of assets/css/style.css
   Covers: 1) Card grid (featured + trending)
           2) Sticky state selector
           3) Taste profile tags on cards
   ============================================================ */


/* ============================================================
   The Spirit Atlas — UX Improvements
   Paste this at the bottom of assets/css/style.css
   Covers: 1) Card grid (featured + trending)
           2) Sticky state selector
           3) Taste profile tags on cards
   ============================================================ */


/* ══════════════════════════════════════
   1. CARD GRID — FEATURED + TRENDING
══════════════════════════════════════ */

/* Section labels above the grid */
.grid-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 20px 0 10px;
}

/* Featured card — spans full row width */
.spirit-card.card-featured {
  flex-direction: row;
  grid-column: 1 / -1;
  max-height: 160px;
}
.spirit-card.card-featured .card-img {
  width: 120px;
  min-width: 120px;
  max-height: 160px;
  aspect-ratio: unset;
  flex-shrink: 0;
}
.spirit-card.card-featured .card-body {
  padding: 14px 16px;
}
.spirit-card.card-featured .card-name {
  font-size: 18px;
}

/* Badge row inside card-body */
.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

/* Staff pick / trending / top rated ribbons */
.card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.6;
  letter-spacing: 0.3px;
}
.card-badge-pick {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(124, 111, 205, 0.25);
}
.card-badge-trending {
  background: rgba(224, 80, 80, 0.1);
  color: var(--red);
  border: 1px solid rgba(224, 80, 80, 0.2);
}
.card-badge-top {
  background: rgba(76, 175, 130, 0.1);
  color: var(--green);
  border: 1px solid rgba(76, 175, 130, 0.2);
}

/* Taste profile tags on cards */
.card-taste-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
  margin-bottom: 4px;
}
.card-taste-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg3);
  color: var(--text3);
  border: 1px solid var(--border);
  line-height: 1.6;
  white-space: nowrap;
}

/* Rating bar on cards */
.card-rating-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-rating-track {
  width: 28px;
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}
.card-rating-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

/* State selector chip row above the grid */
.grid-state-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 12px;
}
.grid-state-bar::-webkit-scrollbar { display: none; }
.grid-state-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font);
  white-space: nowrap;
}
.grid-state-chip:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}
.grid-state-chip.active {
  border-color: var(--gold);
  background: var(--gold-bg);
  color: var(--gold);
}


/* ══════════════════════════════════════
   2. STICKY STATE PRICE SELECTOR
   (spirit detail page)
══════════════════════════════════════ */

.sticky-price-bar {
  position: sticky;
  top: 62px; /* matches #site-header height */
  z-index: 100;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 24px;
}

.sticky-price-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* State pills inside sticky bar */
.sticky-states {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.sticky-states::-webkit-scrollbar { display: none; }

.sticky-state-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font);
  min-width: 72px;
  text-align: center;
}
.sticky-state-btn:hover {
  border-color: var(--gold-border);
  background: var(--gold-bg);
}
.sticky-state-btn.active {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.sticky-state-btn .ssb-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  line-height: 1.3;
}
.sticky-state-btn.active .ssb-name {
  color: var(--gold);
}
.sticky-state-btn .ssb-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  line-height: 1.3;
  margin-top: 2px;
}
.sticky-state-btn.active .ssb-price {
  color: var(--gold);
}

/* Big price display on the right */
.sticky-price-display {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sticky-price-amount {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}
.sticky-price-state {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Bottle size pills */
.sticky-size-pills {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.sticky-size-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text3);
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font);
  white-space: nowrap;
}
.sticky-size-pill:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}
.sticky-size-pill.active {
  border-color: var(--gold);
  background: var(--gold-bg);
  color: var(--gold);
}
.sticky-size-pill:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Save state row */
.sticky-save-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.sticky-save-text {
  font-size: 12px;
  color: var(--text3);
  flex: 1;
}
.sticky-save-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border2);
  background: none;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sticky-save-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}
.sticky-save-btn.saved {
  border-color: rgba(76, 175, 130, 0.3);
  color: var(--green);
  background: rgba(76, 175, 130, 0.08);
}
.sticky-saved-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  display: none;
  align-items: center;
  gap: 4px;
}
.sticky-saved-badge.show {
  display: flex;
}

/* Mobile: stack the sticky bar vertically */
@media (max-width: 599px) {
  .sticky-price-bar {
    top: 62px;
    padding: 10px 0;
  }
  .sticky-price-inner {
    gap: 8px;
  }
  .sticky-price-display {
    width: 100%;
    justify-content: space-between;
  }
  .sticky-size-pills {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ══════════════════════════════════════
   3. TASTE TAGS ON DETAIL PAGE HERO
══════════════════════════════════════ */

.detail-taste-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.detail-taste-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border2);
  background: var(--card);
  color: var(--text2);
  cursor: pointer;
  transition: all var(--trans);
  text-decoration: none;
}
.detail-taste-tag:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-bg);
}
.detail-taste-tag .tag-icon {
  font-size: 13px;
}