/* ==========================================
   The Shopper's Verdict — Courtroom Storefront
   Inspired by petrecommend.com layout
   ========================================== */

/* --- Variables --- */
:root {
  --navy: #1B1B2F;
  --gold: #C9A84C;
  --off-white: #F5F3EF;
  --white: #FFFFFF;
  --charcoal: #1A1A2E;
  --muted: #6B6B7A;
  --green: #2D8A4E;
  --red: #C0392B;
  --green-bg: #F0F7F0;
  --red-bg: #FFF5F5;
  --border-light: #E0DDD5;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(27,27,47,0.08);
  --shadow-md: 0 4px 16px rgba(27,27,47,0.15);
  --transition: 0.2s ease;

  --container: 1200px;
  --header-h: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { filter: brightness(1.1); }
.btn-block { width: 100%; justify-content: center; }

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--charcoal);
  margin-bottom: 28px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ==========================================
   HEADER — White bar, logo left, nav right
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 120px;
  padding: 0 32px;
  max-width: 100%;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 138px;
}
.logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

.nav-primary { margin-left: auto; }
.nav-primary ul { display: flex; align-items: center; gap: 24px; }
.nav-primary a {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-primary a:hover,
.nav-primary a.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-icon { color: var(--muted); transition: color var(--transition); display: flex; }
.header-icon:hover { color: var(--gold); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; margin-left: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================
   HERO BANNER
   ========================================== */
.hero-banner {
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-banner-inner { width: 100%; padding: 60px 24px; }
.hero-banner-text { max-width: 550px; }
.hero-banner-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}
.hero-banner h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 450px;
}

/* ==========================================
   CATEGORIES
   ========================================== */
.categories-section { padding: 48px 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-3px); }
.category-card-overlay {
  width: 100%;
  padding: 24px;
  background: linear-gradient(transparent, rgba(27,27,47,0.85));
  color: var(--white);
}
.category-card-overlay h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 4px;
}
.category-cta { font-size: 13px; font-weight: 500; color: var(--gold); }

/* ==========================================
   PRODUCT GRID (Verdicts)
   ========================================== */
.featured-section { padding: 48px 0; background: var(--off-white); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card-badge {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.verdict-badge-mini { width: 100%; }
.verdict-score-mini {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
}

.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
}
.product-card-body h3 a { color: var(--charcoal); }
.product-card-body h3 a:hover { color: var(--gold); }

.product-stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.star { font-size: 14px; }
.star.full { color: var(--gold); }
.star.half { color: var(--gold); opacity: 0.6; }
.star.empty { color: var(--border-light); }
.product-rating-text { font-size: 11px; color: var(--muted); margin-left: 4px; }

.product-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.product-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
}
.verdict-tag { background: var(--gold); color: var(--navy); }

.product-card.placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: var(--off-white);
}
.product-card.placeholder h3 { font-size: 20px; margin-bottom: 8px; }

/* ==========================================
   ABOUT SNIPPET
   ========================================== */
.about-snippet {
  padding: 64px 0;
  background: var(--white);
  text-align: center;
}
.about-snippet h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-snippet p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 24px;
  color: var(--muted);
}

/* ==========================================
   SINGLE REVIEW PAGE
   ========================================== */
.review-single { padding: 32px 0 64px; }
.review-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--charcoal); }
.breadcrumb span { margin: 0 6px; }

.review-header { margin-bottom: 28px; }
.review-header h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.review-meta { font-size: 14px; color: var(--muted); }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.pros-box, .cons-box { padding: 16px; border-radius: var(--radius); border-left: 3px solid; }
.pros-box { background: var(--green-bg); border-color: var(--green); }
.cons-box { background: var(--red-bg); border-color: var(--red); }
.pros-box h4, .cons-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pros-box ul, .cons-box ul { list-style: disc; padding-left: 18px; }
.pros-box li, .cons-box li { font-size: 13px; line-height: 1.6; margin-bottom: 3px; }

.review-body { margin-bottom: 28px; }
.review-body h2 { font-family: var(--font-heading); font-size: 22px; margin-bottom: 14px; }
.review-body p { margin-bottom: 14px; line-height: 1.7; font-size: 15px; }

.review-cta-mobile { display: none; margin-bottom: 28px; }
.alt-pick { font-size: 13px; margin-top: 8px; }
.alt-label { font-weight: 600; }

/* Sidebar */
.review-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card {
  background: var(--off-white);
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sidebar-card .verdict-badge-mini { height: 70px; width: 70px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.sidebar-card .verdict-score-mini { color: var(--navy); font-size: 24px; }
.sidebar-disclosure { font-size: 11px; color: var(--muted); font-style: italic; text-align: center; }
.sidebar-disclosure-gold-badge { /* unused */ }

/* ==========================================
   CATEGORY PAGE
   ========================================== */
.category-hero { padding: 40px 0; background: var(--navy); text-align: center; }
.category-hero h1 { font-family: var(--font-heading); font-size: 32px; color: var(--gold); margin-bottom: 8px; }
.category-desc { font-size: 15px; color: var(--off-white); max-width: 550px; margin: 0 auto; }
.category-content { padding: 40px 0; }
.category-toolbar { display: flex; justify-content: flex-end; padding: 0 0 16px; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.result-count { font-size: 13px; color: var(--muted); }

/* ==========================================
   FOOTER
   ========================================== */

/* Trust Badges */
.trust-badges { background: var(--off-white); border-top: 1px solid var(--border-light); }
.trust-badges-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 24px;
}
.trust-badge-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-badge-item svg { color: var(--gold); }
.trust-badge-item strong { font-size: 13px; color: var(--navy); }
.trust-badge-item span { font-size: 11px; color: var(--muted); }

/* Footer Main */
.footer-main { background: var(--navy); color: var(--off-white); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 32px; }
.footer-tagline { font-family: var(--font-heading); font-size: 16px; color: var(--gold); margin-top: 12px; }
.footer-desc { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: var(--off-white); opacity: 0.8; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-newsletter p { font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  background: rgba(255,255,255,0.05); color: var(--white); font-size: 13px; font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

/* Footer Bottom */
.footer-bottom { background: var(--navy); border-top: 1px solid rgba(201,168,76,0.15); padding: 20px 0; text-align: center; }
.affiliate-disclosure { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.copyright { font-size: 12px; color: var(--muted); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-badges-inner { grid-template-columns: repeat(2, 1fr); }
  .review-layout { grid-template-columns: 1fr; }
  .review-sidebar { display: none; }
  .review-cta-mobile { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .header-inner { padding: 0 16px; height: 72px; }
  .logo img { height: 36px; width: auto; }

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-primary.open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 10px; }
  .hamburger { display: block; }

  .hero-banner { min-height: 280px; }
  .hero-banner h1 { font-size: 26px; }
  .hero-banner p { font-size: 14px; }

  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 180px; }

  .product-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 22px; }
  .trust-badges-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .footer-desc { margin: 8px auto 0; }

  .pros-cons-grid { grid-template-columns: 1fr; }
  .review-header h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero-banner h1 { font-size: 22px; }
  .trust-badges-inner { grid-template-columns: 1fr; }
}
