/* ============================================================
   Descanso Inteligente — Design System v2.0
   Professional Amazon Affiliate Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --muted: #718096;
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --primary-bg: #f0fdfa;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --amazon-orange: #ff9900;
  --amazon-orange-dark: #e88b00;
  --amazon-bg: linear-gradient(135deg, #ff9900 0%, #e88b00 100%);
  --danger: #ef4444;
  --success: #10b981;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin-top: 0;
  color: var(--text);
}

/* ---------- Layout ---------- */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header / Navbar ---------- */
/* ---------- Header / Navbar ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  height: 70px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1002;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.2);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Desktop Nav */
.main-nav {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-dark);
  background: var(--primary-bg);
  text-decoration: none;
}

/* Dropdowns (Desktop) */
.nav-item-has-children {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle .arrow {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.nav-item-has-children:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1005;
}

.nav-item-has-children:hover .dropdown-menu,
.nav-item-has-children:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.hamburger-box {
  width: 24px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Hamburger Active State */
.menu-toggle.active .hamburger-inner {
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.menu-toggle.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* Mobile Menu Drawer */
.mobile-menu-header {
  display: none;
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Close Button (Mobile) */
.close-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .main-nav-container.is-open {
    transform: translateX(-100%);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
  }

  .close-menu {
    display: block;
    cursor: pointer;
  }

  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }

  .nav-link:hover {
    background: var(--surface-alt);
    transform: translateX(5px);
  }

  /* Mobile Styles for Dropdowns */
  .nav-item-has-children {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    background: transparent;
  }

  .nav-item-has-children.active .dropdown-menu {
    max-height: 300px;
    /* Approximate max height */
  }

  .nav-item-has-children.active .arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-left: 2px solid var(--border);
  }

  .menu-backdrop {
    display: block;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* ---------- Hero Section (Compact) ---------- */
.hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  /* Reduced padding */
  margin: 1rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Center align for better balance on mobile */
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  /* Slightly smaller max size */
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1rem;
  /* Reduced from 1.1rem */
  line-height: 1.5;
  opacity: 0.95;
  max-width: 620px;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .badge-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(4px);
}

.cta-button {
  padding: 0.8rem 1.5rem;
  /* Slightly more compact button */
}

/* ---------- Content Sections ---------- */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  /* Reduced from 2rem */
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.content-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Trust Bar (Compact Grid) ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-icon {
  width: 32px;
  /* Smaller icons */
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-icon.green {
  background: #ecfdf5;
  color: #059669;
}

.trust-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.trust-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.trust-icon.purple {
  background: #faf5ff;
  color: #7c3aed;
}

/* Mobile specific tweaks for Trust Bar */
@media (max-width: 640px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns on mobile */
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .trust-item {
    justify-content: flex-start;
    font-size: 0.75rem;
  }
}

/* ---------- Card Grid (Homepage) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.2rem;
}

.article-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}

.article-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.article-card .read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Product Ranking Cards ---------- */
.ranking-section {
  margin: 1.2rem 0;
}

.ranking-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.product-rank-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.product-rank-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-rank-card.top-1 {
  border-color: var(--amazon-orange);
  border-width: 2px;
}

.product-rank-card.top-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amazon-bg);
}

.product-rank-image {
  width: 200px;
  aspect-ratio: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-rank-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.product-rank-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.6rem;
}

.top-1 .product-rank-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.top-2 .product-rank-badge {
  background: #f0f4f8;
  color: #475569;
}

.top-3 .product-rank-badge,
.top-4 .product-rank-badge,
.top-5 .product-rank-badge {
  background: #f8fafc;
  color: #64748b;
}

.product-rank-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.product-rank-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.price-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.product-rank-stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--amazon-orange);
}

.product-rank-stars .star-text {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-rank-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.product-rank-features li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.product-rank-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.product-rank-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--amazon-bg);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  min-width: 220px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.3);
  transition: all var(--transition);
  text-decoration: none;
}

.product-rank-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
  text-decoration: none;
  color: #1a1a1a;
}

.product-rank-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Offers Grid (Pillar page) ---------- */
.offers-section {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-color: var(--border);
}

.offers-grid {
  display: grid;
  gap: 1.25rem;
}

.offer-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.3rem;
  background: linear-gradient(135deg, #ff9900 0%, #e88b00 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.offer-card.top-2 .offer-badge {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.offer-card.top-3 .offer-badge,
.offer-card.top-4 .offer-badge,
.offer-card.top-5 .offer-badge {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.offer-media {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fafafa;
  padding: 1rem;
  margin-bottom: 1rem;
}

.offer-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.offer-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.offer-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.5rem 0;
}

.offer-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.3rem 0 0;
  color: var(--amazon-orange);
  font-weight: 600;
  font-size: 0.88rem;
}

.offer-rating .rating-text {
  color: var(--muted);
  font-size: 0.82rem;
}

.offer-points {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.offer-points li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 1.3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.offer-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

.offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  background: var(--amazon-bg);
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.3);
  transition: all var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.offer-cta:hover,
.offer-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
  text-decoration: none;
  color: #1a1a1a;
}

.offer-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* ---------- Comparison Tables ---------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.comparison-table th,
.comparison-table td {
  border: none;
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.comparison-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr {
  transition: background var(--transition);
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--surface-alt);
}

.comparison-table tbody tr:hover {
  background: #eef5ff;
}

.comparison-table img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fafafa;
}

.comparison-table .table-price {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

/* ---------- Table & Product CTA Buttons ---------- */
.table-cta,
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--amazon-bg);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.table-cta:hover,
.table-cta:focus,
.btn-link:hover,
.btn-link:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
  text-decoration: none;
  color: #1a1a1a;
}

/* ---------- Product Cards (Generic) ---------- */
.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.6rem;
}

.product-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.3rem 0 0.6rem;
}

.product-features {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.product-features li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.product-cta {
  margin-top: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--amazon-bg);
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.3);
  transition: all var(--transition);
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
  text-decoration: none;
  color: #1a1a1a;
}

.product-card .cta-button {
  min-width: 220px;
  text-align: center;
}

/* ---------- Jump to Ranking Button ---------- */
.ranking-jump {
  margin-top: 1.2rem;
}

.jump-ranking-btn {
  min-width: 280px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.jump-ranking-btn:hover,
.jump-ranking-btn:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.4);
  color: #fff;
}

/* ---------- Pros & Cons ---------- */
.pros-cons .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pros-cons .columns>div {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.pros-cons .columns>div:first-child {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.pros-cons .columns>div:last-child {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pros-cons .columns h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.pros-cons .columns>div:first-child h3 {
  color: #065f46;
}

.pros-cons .columns>div:last-child h3 {
  color: #991b1b;
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.15rem;
}

.pros-cons li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list li {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.faq-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-list p {
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- Methodology / How We Choose ---------- */
.how-we-choose-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}

.how-we-choose-list li {
  counter-increment: steps;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

.how-we-choose-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ---------- Small Text / Affiliate Disclaimer ---------- */
.small-text {
  background: var(--surface-alt);
  border-color: var(--border-light);
}

.small-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- CTA Box (Bottom of Articles) ---------- */
.cta-box {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  text-align: center;
  padding: 2.5rem 2rem;
}

.cta-box h2 {
  color: var(--text);
  margin-bottom: 0.6rem;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Offers Comparison (Styled table) ---------- */
.offers-comparison .table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--surface);
}

.offers-comparison .comparison-table {
  border-collapse: separate;
  border-spacing: 0;
}

.offers-comparison .comparison-table th {
  background: var(--surface-alt);
  color: var(--text);
}

.offers-comparison .comparison-table tbody tr:nth-child(odd) {
  background: var(--surface-alt);
}

.offers-comparison .comparison-table tbody tr:hover {
  background: #eef5ff;
}

.offers-comparison .table-cta {
  background: var(--amazon-bg);
  color: #1a1a1a;
  border: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #1a202c;
  color: #a0aec0;
}

.site-footer .container {
  padding: 2rem 0 2.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand .logo {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.footer-brand .logo::before {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
}

/* Fallback for pages using legacy footer */
.site-footer>.container>p {
  margin: 0;
  color: #a0aec0;
  font-size: 0.88rem;
}

.site-footer>.container>p a {
  color: #cbd5e0;
}

.site-footer>.container>p a:hover {
  color: #fff;
}

/* ---------- Scroll Reveal ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Amazon Prime Badge ---------- */
.prime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00a8e1;
}

/* ---------- Responsive ---------- */
@media (min-width: 840px) {
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1220px) {
  .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  /* Removed old nav styles handled by .nav-link and .main-nav-container */

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .product-rank-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-rank-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .product-rank-cta {
    width: 100%;
    min-width: 0;
  }

  .product-rank-features {
    text-align: left;
  }

  .product-card .cta-button {
    width: 100%;
    min-width: 0;
  }

  .jump-ranking-btn {
    width: 100%;
    min-width: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-bar {
    gap: 1rem;
    justify-content: flex-start;
  }
}

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

  .hero {
    padding: 1.5rem 1.2rem;
  }

  .content-section {
    padding: 1.2rem;
    margin: 0.8rem 0;
  }
}
/* ---------- Comparison Table ---------- */
.comparison-section {
  padding: 4rem 0;
  background-color: var(--surface);
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--surface);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.comparison-table th {
  background-color: var(--surface-alt);
  font-weight: 700;
  color: var(--text-heading);
  text-align: left;
}

.comparison-table td img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.comparison-table .product-name {
  font-weight: 600;
  color: var(--text-heading);
  text-align: left;
}

.comparison-table .badge-best {
  display: inline-block;
  background: #FFD700;
  color: #000;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.comparison-table .check {
  color: var(--success);
  font-weight: bold;
}

.comparison-table .cta-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.comparison-table .cta-small:hover {
  background-color: var(--primary-dark);
}

@media (max-width: 768px) {
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  }
}
