/* ===================================
   OAKYWINE.CLUB - Wine Purple + Champagne Gold
   Purple: #3B0A2A  Gold: #E0C068
   =================================== */

:root {
  --navy: #3B0A2A;
  --navy-dark: #240618;
  --accent: #E0C068;
  --accent-light: #E8CD80;
  --accent-dark: #C4A44E;
  --accent-muted: rgba(224, 192, 104, 0.1);
  --bg-body: #FFFFFF;
  --bg-alt: #F5F5F5;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --border-hover: #D1D5DB;
  --text-primary: #121212;
  --text-secondary: #6B6B6B;
  --text-muted: #9CA3AF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --font-heading: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.text-gold { color: var(--accent) !important; }
.text-muted-light { color: var(--text-secondary) !important; }
.bg-section-alt { background: var(--bg-alt); }
.border-gold-subtle { border-color: rgba(224, 192, 104, 0.2) !important; }

/* Top Bar */
.top-bar {
  background: var(--navy-dark);
  padding: 6px 0;
  border-bottom: none;
  font-size: 0.82rem;
}
.top-bar .text-gold { color: rgba(255,255,255,0.7) !important; }
.social-link {
  color: rgba(255,255,255,0.5);
  margin-left: 12px;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.social-link:hover { color: #fff; }

/* Navbar */
.bg-dark-custom {
  background: var(--navy) !important;
  border-bottom: none;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
  padding: 12px 0;
}
.navbar-brand .site-logo {
  filter: invert(1);
}
.navbar .dropdown-toggle::after {
  display: none;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  padding: 18px 14px !important;
  position: relative;
  transition: color 0.2s;
  text-transform: uppercase;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after {
  width: 70%;
}
.dropdown-menu-dark {
  background: var(--navy) !important;
  border: 1px solid rgba(255,255,255,0.1);
}
.dropdown-item {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.9rem;
}
.dropdown-item:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* Search Modal */
.border-gold { border-color: var(--accent) !important; }
.search-input {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}
.search-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(224, 192, 104, 0.2) !important;
}
.search-input::placeholder { color: var(--text-muted); }

/* Search modal close button — round, half outside top-right */
.search-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.search-modal-close:hover {
  background: var(--accent);
}
/* Dark search input inside navy areas */
.bg-dark-custom .search-input {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

/* Buttons */
.btn-gold {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-gold:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-gold {
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  background: transparent;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Sort Select */
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  min-width: 160px;
}
.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(224, 192, 104, 0.2);
}

/* Hero Section */
.hero-section {
  background: var(--navy);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-video-top { z-index: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 31, 0.65);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  color: #fff;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.hero-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.hero-search .search-input {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
.hero-search .search-input::placeholder { color: rgba(255,255,255,0.5); }

/* Popular Bottles */
.popular-bottles {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0F3D2A 100%);
  padding: 50px 0 40px;
  border-bottom: none;
}
.page-header .page-title { color: #fff; }
.page-header .page-subtitle { color: rgba(255,255,255,0.7); }
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-bar .btn-outline-gold {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}
.filter-bar .btn-outline-gold:hover,
.filter-bar .btn-outline-gold.active,
.filter-bar .btn-gold {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Section Headers */
.section-header { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* Article Cards */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  max-height: 280px;
  background: var(--bg-alt);
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  max-height: 280px;
}
/* Bottle images: contain on dark bg instead of stretching */
.card-img-wrapper--bottle {
  background: linear-gradient(135deg, var(--navy) 0%, #0F3D2A 100%);
}
.card-img-wrapper--bottle img {
  object-fit: contain;
  padding: 16px;
}
.card-readmore {
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-top: 0.25rem;
}
.card-readmore:hover { color: var(--accent-dark); text-decoration: underline; }
.card-readmore i { font-size: 0.7rem; margin-left: 2px; }

.article-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* ===================================
   Horizontal Review Cards
   =================================== */
.article-card--horizontal {
  flex-direction: row;
  min-height: 240px;
}
.article-card--horizontal.h-100 { height: auto !important; }
.article-card--horizontal > a {
  flex: 0 0 160px;
  display: block;
}
.article-card--horizontal .card-img-wrapper {
  aspect-ratio: auto;
  min-height: 240px;
  height: 100%;
  border-radius: 8px 0 0 8px;
  background: #f5f3f0;
}
.article-card--horizontal .card-img-wrapper img {
  max-height: 320px;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  border-radius: 0;
}
.article-card--horizontal .card-body {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.article-card--horizontal .card-body .card-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 0.88rem; flex-grow: 0;
}
.article-card--horizontal:hover {
  transform: translateY(-2px);
}
@media (max-width: 767.98px) {
  .article-card--horizontal { flex-direction: row; height: auto; }
  .article-card--horizontal.h-100 { height: auto !important; }
  .article-card--horizontal > a { flex: 0 0 110px; }
  .article-card--horizontal .card-img-wrapper {
    aspect-ratio: auto; max-height: none; min-height: auto;
    height: 100%;
    border-radius: 8px 0 0 8px;
    background: #f5f3f0;
  }
  .article-card--horizontal .card-img-wrapper img {
    object-fit: contain; padding: 8px;
  }
  .article-card--horizontal .card-body {
    padding: 10px 12px; justify-content: flex-start;
  }
  .article-card--horizontal .card-body .card-text {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 0.82rem; flex-grow: 0;
  }
  .article-card--horizontal .type-badge { display: none; }
  .article-card--horizontal .rating-badge {
    width: 28px; height: 28px; font-size: 0.75rem;
    top: 6px; right: 6px;
  }
}

.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.rating-lg {
  width: 56px; height: 56px; font-size: 1.4rem;
}
.rating-sm {
  width: 32px; height: 32px; font-size: 0.85rem;
}
.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-news { background: #c0392b; color: #fff; }
.badge-review { background: var(--accent); color: #fff; }
.badge-article { background: var(--navy); color: #fff; }
.badge-guide { background: #27ae60; color: #fff; }
.badge-cocktail { background: #8e44ad; color: #fff; }

.card-body {
  padding: 16px 20px;
}
.card-category {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-dark);
  margin-bottom: 6px;
  display: inline-block;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-title a {
  color: var(--text-primary);
}
.card-title a:hover {
  color: var(--accent-dark);
}
.card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 2px;
}

.card-meta .author a {
  color: inherit;
  text-decoration: none;
}

.card-meta .author a:hover {
  color: var(--gold);
}

/* Featured Panels (dark navy, image left + info right) */
/* Featured Panels — 2-col layout */
.featured-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #0F3D2A 100%);
  border-radius: 10px;
  padding: 24px 28px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}
.featured-panel:hover {
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.featured-panel-image {
  flex: 0 0 150px;
  position: relative;
  text-align: center;
}
.featured-panel-image img {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  display: block;
  margin: 0 auto;
}
.featured-panel-image .rating-badge {
  position: absolute;
  top: -6px;
  right: -6px;
}
.featured-panel-info {
  flex: 1;
  min-width: 0;
}
.featured-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 8px 0 10px;
}
.featured-panel-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.featured-panel-meta {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

/* Single Article — Contained Header */
.article-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0F3D2A 100%);
  padding: 48px 0;
}
.article-header-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.article-header-image {
  flex: 0 0 280px;
}
.article-header-image img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: block;
  margin: 0 auto;
}
.article-header-info {
  flex: 1;
  min-width: 0;
}
.article-header-rating {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.article-header-rating .score-circle {
  margin-right: 0;
  flex-shrink: 0;
}
.article-header-rating .review-details span {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.article-header-rating .review-details strong {
  color: rgba(255,255,255,0.9);
}
/* Editorial variant — wider image column, object-fit: cover */
.article-header--editorial .article-header-image {
  flex: 0 0 360px;
}
.article-header--editorial .article-header-image img {
  object-fit: cover;
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
}
.article-category-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.article-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 10px;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-content p { margin-bottom: 1.5em; }
.article-content h2, .article-content h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: var(--text-primary);
}
.article-content img {
  border-radius: 8px;
  margin: 1.5em 0;
}
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
}

/* Review Score Card */
.review-score-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-right: 16px;
}
.score-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.score-max {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
}
.review-details span { font-size: 0.9rem; color: var(--text-secondary); }
.review-details strong { color: var(--text-primary); }

/* Tasting Notes */
.tasting-notes {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.tasting-note {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.tasting-note:last-child { border-bottom: none; }
.tasting-note h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tasting-note p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* Buy Section */
.buy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  transition: all 0.2s;
  color: var(--text-primary);
}
.buy-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.buy-price { color: var(--accent-dark); font-weight: 700; font-size: 1.1rem; }

/* Wine links in editorial content */
.wine-link {
  color: var(--accent);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.wine-link:hover {
  color: var(--accent-dark);
  text-decoration: underline solid;
}

/* Share */
.share-buttons { display: flex; gap: 8px; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-categories li {
  border-bottom: 1px solid var(--border);
}
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.sidebar-categories a:hover {
  color: var(--accent-dark);
  padding-left: 8px;
}
.newsletter-widget {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.newsletter-widget .widget-title {
  color: var(--accent);
  border-bottom-color: rgba(255,255,255,0.15);
}
.newsletter-widget .text-muted-light { color: rgba(255,255,255,0.7) !important; }
.newsletter-widget .form-control {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
.newsletter-widget .form-control::placeholder { color: rgba(255,255,255,0.5); }

/* Award Cards */
.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
}
.award-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Value Cards (About page) */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
}

/* Contact Cards */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(224, 192, 104, 0.2);
}
.contact-form .form-label { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; }

/* Pagination */
.pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
  padding: 10px 16px;
  transition: all 0.2s;
}
.pagination .page-link:hover {
  background: var(--accent-muted);
  color: var(--accent-dark);
  border-color: var(--accent);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background: var(--bg-alt);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Empty State */
.empty-state {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 60px 20px;
}

/* Error Page */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--navy);
  border-top: none;
  padding: 60px 0 30px;
  margin-top: 0;
  color: rgba(255,255,255,0.7);
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  margin-right: 16px;
  transition: color 0.2s;
}
.footer-social a:hover { color: #fff; }
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0 20px;
}
.footer-legal-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: #fff; }
.site-footer .text-muted-light { color: rgba(255,255,255,0.5) !important; }

/* Form Overrides */
.form-control, .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(224, 192, 104, 0.2);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-title { font-size: 2.2rem; }
  .hero-section { padding: 50px 0 40px; }
  .page-title { font-size: 2rem; }
  .featured-panel-title { font-size: 1.4rem; }
  .article-title { font-size: 1.8rem; }
  .article-header-inner { gap: 32px; }
  .article-header-image { flex: 0 0 220px; }
  .article-header--editorial .article-header-image { flex: 0 0 280px; }
  .sidebar { position: static; margin-top: 40px; }
  .navbar-nav .nav-link { padding: 10px 14px !important; }
  .navbar-collapse { background: var(--navy); padding: 10px 0; }
}
@media (max-width: 767.98px) {
  .hero-title { font-size: 1.8rem; }
  .hero-section { padding: 40px 0 30px; }
  .page-header { padding: 30px 0; }
  .page-title { font-size: 1.6rem; }
  .article-title { font-size: 1.5rem; }
  .article-header { padding: 32px 0; }
  .article-header-inner { flex-direction: column; text-align: center; gap: 24px; }
  .article-header-image { flex: none; max-width: 200px; margin: 0 auto; }
  .article-header--editorial .article-header-image { flex: none; max-width: 100%; }
  .article-header-rating { flex-direction: column; text-align: center; gap: 12px; }
  .article-header-rating .score-circle { margin: 0 auto; }
  .featured-panel { flex-direction: row; text-align: left; padding: 14px 16px; gap: 14px; height: auto; }
  .featured-panel-image { flex: 0 0 90px; margin: 0; }
  .featured-panel-image img { max-height: 140px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
  .featured-panel-image .rating-badge { width: 28px; height: 28px; font-size: 0.75rem; top: -4px; right: -4px; }
  .featured-panel-title { font-size: 1rem; margin: 4px 0 6px; }
  .featured-panel-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8rem; margin-bottom: 6px; }
  .featured-panel-meta { font-size: 0.75rem; }
  .section-content { padding: 30px 0 !important; }
  .site-footer { padding: 40px 0 20px; margin-top: 0; }
  .filter-bar { gap: 4px; }
  .filter-bar .btn { font-size: 0.75rem; padding: 4px 10px; }
  .navbar-brand .site-logo { height: 26px; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .page-title { font-size: 1.3rem; }
  .article-title { font-size: 1.3rem; }
  .score-circle { width: 60px; height: 60px; }
  .score-number { font-size: 1.5rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Placeholder / Broken Image Fallback */
.card-img-top[src="/images/placeholder.svg"],
.card-img-top[src="/images/placeholder.jpg"],
img[src="/images/placeholder.svg"],
img[src="/images/placeholder.jpg"] {
  background: var(--bg-alt);
  min-height: 180px;
}
/* Graceful broken-image fallback on any card image */
.card-img-wrapper img {
  background: var(--bg-alt);
  min-height: 160px;
  max-height: 280px;
}
.card-img-wrapper img[src=""],
.card-img-wrapper img:not([src]) {
  visibility: hidden;
}

/* About hero banner */
.about-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0F3D2A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
}
.about-hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Sidebar popular review items */
.sidebar-review-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-review-item:last-child { border-bottom: none; }
.sidebar-review-thumb {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.sidebar-review-info h6 {
  font-size: 0.8rem;
  margin: 0 0 2px;
  line-height: 1.3;
}
.sidebar-review-info h6 a { color: var(--text-primary); }
.sidebar-review-info h6 a:hover { color: var(--accent-dark); }
.sidebar-review-info .badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: var(--accent);
}

/* Card image error state (JS adds this) */
.card-img-wrapper .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  gap: 6px;
}
.card-img-wrapper .img-placeholder i {
  font-size: 2rem;
  opacity: 0.4;
}

/* Footer mobile stacking fix */
@media (max-width: 767.98px) {
  .footer-social { margin-bottom: 20px; }
  .footer-social a { margin-right: 20px; font-size: 1.3rem; }
  .site-footer .col-lg-4 { margin-bottom: 24px; }
  .footer-divider { margin: 24px 0 16px; }
  .site-footer .row.g-4 > [class*="col-"] { text-align: center; }
  .site-footer .footer-links { padding-left: 0; list-style: none; }
  .site-footer .btn-outline-gold { display: inline-block; }
  .site-footer .row.align-items-center .col-md-6 { text-align: center !important; margin-bottom: 8px; }
}

/* Hamburger nav centered */
@media (max-width: 991.98px) {
  .navbar-collapse .navbar-nav { text-align: center; }
  .navbar-collapse .navbar-nav .nav-link { justify-content: center; }
  .navbar-collapse .navbar-nav .dropdown-menu { text-align: center; }
}

/* Featured section empty state */
.featured-empty {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 60px 30px;
  text-align: center;
}
.featured-empty i { font-size: 3rem; color: var(--accent); opacity: 0.3; margin-bottom: 16px; }
.featured-empty h4 { color: var(--text-primary); margin-bottom: 8px; }
.featured-empty p { color: var(--text-secondary); }

/* Ensure consistent card heights in grid */
.row-cols-md-2 .col,
.row-cols-lg-3 .col {
  display: flex;
}

/* Fix filter bar wrapping on small screens */
@media (max-width: 575.98px) {
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filter-bar .btn { white-space: nowrap; flex-shrink: 0; }
  .filter-bar .ms-auto { margin-left: 0 !important; margin-top: 8px; width: 100%; }
  .sort-select { width: 100%; }
  .contact-card { margin-bottom: 12px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-card {
  animation: fadeInUp 0.4s ease forwards;
}

/* Auth Pages */
.auth-section { min-height: 60vh; display: flex; align-items: center; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 35px;
  box-shadow: var(--shadow-md);
}
.auth-title { color: var(--navy); font-family: var(--font-heading); }
.auth-card .form-control {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}
.auth-card .form-control:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(224, 192, 104, 0.2);
  color: var(--text-primary);
}
.auth-card .form-label { color: var(--text-secondary); font-size: 0.9rem; }

/* Auth Marketing Column */
.auth-marketing-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.auth-marketing-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.auth-benefit {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.auth-benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}
.auth-benefit strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.auth-benefit p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}
.auth-social-proof {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.auth-stat { text-align: center; }
.auth-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
}
.auth-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   Stats Bar
   =================================== */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
a.stat-item:hover {
  transform: translateY(-2px);
  color: inherit;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===================================
   Top Rated Horizontal Scroll
   =================================== */
.top-rated-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.top-rated-scroll::-webkit-scrollbar { height: 6px; }
.top-rated-scroll::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 3px; }
.top-rated-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.top-rated-card {
  flex: 0 0 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  color: var(--text-primary);
  text-decoration: none;
}
.top-rated-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  color: var(--text-primary);
}
.top-rated-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f3f0;
}
.top-rated-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.top-rated-card:hover .top-rated-img img {
  transform: scale(1.05);
}
.top-rated-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.top-rated-info {
  padding: 12px 14px;
}
.top-rated-info h6 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.top-rated-type {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
}
.top-rated-price {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===================================
   Comparison / VS Cards
   =================================== */
.comparison-card .card-img-wrapper {
  position: relative;
}
.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.4);
  z-index: 2;
}

/* ===================================
   Explore by Type Tiles
   =================================== */
.type-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.type-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}
.type-tile:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.type-tile:hover::before {
  background: rgba(0, 0, 0, 0);
}
.type-tile i {
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.type-tile span {
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

/* ===================================
   Guide Cards (wider editorial style)
   =================================== */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.guide-card-img {
  flex: 0 0 240px;
  overflow: hidden;
  max-height: 260px;
  background: var(--bg-alt);
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  max-height: 260px;
  transition: transform 0.4s ease;
  display: block;
}
.guide-card:hover .guide-card-img img {
  transform: scale(1.05);
}
.guide-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-card-body .card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.guide-card-body .card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.guide-card-body .card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* ===================================
   Newsletter CTA
   =================================== */
.newsletter-cta {
  background: var(--navy);
  border-top: none;
  border-bottom: none;
  position: relative;
}
.newsletter-cta-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}
.newsletter-benefits li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.newsletter-benefits li i {
  margin-right: 6px;
  color: var(--accent);
}
.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form .search-input {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
.newsletter-form .search-input::placeholder { color: rgba(255,255,255,0.5); }

/* Brand / Winemaker CTA */
.brand-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-top: 3px solid var(--accent);
  position: relative;
}
.brand-cta-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
  opacity: 0.85;
}
.brand-cta-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.brand-cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.brand-cta-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===================================
   New Section Responsive
   =================================== */
@media (max-width: 767.98px) {
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; letter-spacing: 1px; }
  .top-rated-card { flex: 0 0 160px; }
  .top-rated-rating { width: 36px; height: 36px; font-size: 0.95rem; }
  .type-tile { padding: 20px 12px; min-height: 100px; }
  .type-tile i { font-size: 1.4rem; }
  .guide-card { flex-direction: column; }
  .guide-card-img { flex: none; height: 180px; }
  .guide-card-img img { min-height: 180px; }
  .newsletter-cta-title { font-size: 1.5rem; }
  .brand-cta-title { font-size: 1.5rem; }
  .newsletter-benefits { flex-direction: column; align-items: center; gap: 6px; }
}
@media (max-width: 575.98px) {
  .top-rated-card { flex: 0 0 140px; }
  .type-tile { min-height: 90px; padding: 16px 10px; }
  .type-tile i { font-size: 1.2rem; margin-bottom: 6px; }
  .type-tile span { font-size: 0.7rem; }
}

/* ===== Flavor Tag Toggles ===== */
.flavor-tag-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.flavor-tag-toggle { cursor: pointer; }
.flavor-tag-toggle input { display: none; }
.flavor-tag-label {
  display: inline-block; padding: 0.3rem 0.75rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text-secondary); transition: all 0.2s;
}
.flavor-tag-toggle input:checked + .flavor-tag-label {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.flavor-tag-label:hover {
  border-color: var(--accent); color: var(--accent);
}

/* ===== Badge Cards ===== */
.badge-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; text-align: center; height: 100%; transition: transform 0.2s, box-shadow 0.2s;
}
.badge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.badge-name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.badge-desc { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.badge-tier { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-date { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; }

.badge-bronze .badge-icon { color: #CD7F32; }
.badge-bronze .badge-tier { background: #fdf2e5; color: #CD7F32; }
.badge-silver .badge-icon { color: #A0A0A0; }
.badge-silver .badge-tier { background: #f0f0f0; color: #666; }
.badge-gold .badge-icon { color: var(--accent); }
.badge-gold .badge-tier { background: var(--accent-muted); color: var(--accent-dark); }
.badge-platinum .badge-icon { color: #6C63FF; }
.badge-platinum .badge-tier { background: #eeedff; color: #6C63FF; }

.badge-locked { opacity: 0.45; }
.badge-locked .badge-icon { color: var(--text-muted); }

/* Badge Mini (dashboard) */
.badge-mini {
  display: inline-flex; align-items: center; padding: 0.3rem 0.6rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 500;
}
.badge-mini.badge-bronze { background: #fdf2e5; color: #CD7F32; }
.badge-mini.badge-silver { background: #f0f0f0; color: #666; }
.badge-mini.badge-gold { background: var(--accent-muted); color: var(--accent-dark); }
.badge-mini.badge-platinum { background: #eeedff; color: #6C63FF; }

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy); color: rgba(255,255,255,0.9);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-consent-text { flex: 1; min-width: 280px; font-size: 0.9rem; line-height: 1.5; }
.cookie-consent-text a { color: var(--accent-light); text-decoration: underline; }
.cookie-consent-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-consent-buttons button {
  padding: 0.5rem 1.25rem; border-radius: 6px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap;
}
.btn-cookie-accept {
  background: var(--accent); color: #fff;
}
.btn-cookie-accept:hover { background: var(--accent-light); }
.btn-cookie-necessary {
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3) !important;
}
.btn-cookie-necessary:hover { border-color: #fff !important; color: #fff; }
.btn-cookie-manage {
  background: transparent; color: var(--accent-light);
  text-decoration: underline; padding: 0.5rem 0.5rem;
}
.btn-cookie-manage:hover { color: #fff; }

/* Cookie Preferences Modal */
.cookie-prefs-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6); display: none;
  align-items: center; justify-content: center;
}
.cookie-prefs-overlay.visible { display: flex; }
.cookie-prefs-modal {
  background: #fff; border-radius: 12px; max-width: 520px; width: 90%;
  max-height: 85vh; overflow-y: auto; padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cookie-prefs-modal h3 {
  font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem;
}
.cookie-prefs-modal p { font-size: 0.9rem; color: #555; margin-bottom: 1.5rem; }
.cookie-category {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-top: 1px solid #eee;
}
.cookie-category-info { flex: 1; }
.cookie-category-info h4 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.25rem; }
.cookie-category-info p { font-size: 0.8rem; color: #777; margin: 0; }
.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-left: 1rem; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 24px;
  cursor: pointer; transition: background 0.2s;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.6; cursor: not-allowed; }
.cookie-prefs-actions {
  display: flex; gap: 0.75rem; margin-top: 1.5rem; justify-content: flex-end;
}
.cookie-prefs-actions button {
  padding: 0.5rem 1.25rem; border-radius: 6px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; border: none;
}
.btn-cookie-save { background: var(--accent); color: #fff; }
.btn-cookie-save:hover { background: var(--accent-light); }
.btn-cookie-cancel { background: #eee; color: #333; }
.btn-cookie-cancel:hover { background: #ddd; }

@media (max-width: 768px) {
  .cookie-consent-inner { padding: 1rem 1.25rem; flex-direction: column; align-items: stretch; }
  .cookie-consent-buttons { justify-content: stretch; }
  .cookie-consent-buttons button { flex: 1; }
}

/* Card buy row — affiliate CTA on review cards */
.card-buy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.card-buy-qr {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}
