/* ─── DESIGN SYSTEM: mattressmartcolumbus.com ─── */

:root {
  --paper: #FDFAF5;       /* фон страниц */
  --cream: #F4F0E8;       /* карточки */
  --sand:  #D9D2C5;       /* бордеры */
  --sand2: #C8BEAF;       /* темные бордеры */
  --ink:   #1A1814;       /* основной текст */
  --ink2:  #5C5248;       /* вторичный */
  --ink3:  #9C9388;       /* мета */
  --accent: #1B4B8A;      /* синий акцент */
  --accent-light: #E8F0FB;
  --rust:  #B85C2A;       /* CTA кнопки */
  --rust-light: #FAF0E8;
  --gold:  #8B6914;       /* рейтинги */
  --gold-light: #FBF6E8;
  --green: #2A7A4A;       /* победители */
  --green-light: #EAF5EE;
  --serif: 'Lora', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
  --mono:  'DM Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVIGATION ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  box-shadow: 0 2px 8px rgba(26, 24, 20, 0.03);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span {
  color: var(--rust);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--rust);
}

.nav-cta {
  background: var(--rust);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: #9c4c21;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 40px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: saturate(.8);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  opacity: .6;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 850px;
}

.page-hero h1 em {
  font-style: italic;
  color: #D4B896;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  line-height: 1.6;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: 40px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.7);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─── ARTICLE LAYOUT ─── */
.article-layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 64px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ─── ARTICLE PROSE & CONTENT ─── */
.article-content {
  min-width: 0; /* Prevents overflow in grid items */
}

.disclosure {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink3);
  background: var(--cream);
  padding: 12px 18px;
  border-radius: 4px;
  margin-bottom: 28px;
  line-height: 1.6;
  border-left: 2px solid var(--sand2);
}

.prose {
  font-size: 17px;
  line-height: 1.82;
  color: var(--ink2);
}

.prose p {
  margin-bottom: 20px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.prose ul li, .prose ol li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

/* Dropcap on the first paragraph after H1/disclosure */
.prose > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 700;
  float: left;
  line-height: .8;
  margin: 4px 10px -2px 0;
  color: var(--rust);
}

/* ─── COMPARISON TABLES ─── */
.comp-table-wrap {
  margin: 32px 0;
}

.comp-table-wrap h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--sand);
}

.comp-table thead th {
  background: var(--accent);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
}

.comp-table thead th:first-child {
  background: var(--cream);
  color: var(--ink3);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.comp-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand);
  color: var(--ink2);
  vertical-align: middle;
}

.comp-table td:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink3);
  font-weight: 500;
}

.comp-table .winner-mark {
  color: var(--green);
  font-weight: 600;
}

/* ─── WINNER BOX ─── */
.winner-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 24px;
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
}

.winner-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  font-weight: 600;
}

.winner-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.winner-reason {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
}

.winner-box a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 75, 138, 0.3);
  transition: all 0.15s ease;
  font-weight: 500;
}

.winner-box a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ─── VERDICT BUY/SKIP BOX ─── */
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.verdict-col {
  background: var(--cream);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--sand);
}

.verdict-col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.verdict-col.buy .verdict-col-title {
  color: var(--green);
}

.verdict-col.skip .verdict-col-title {
  color: var(--rust);
}

.verdict-item {
  font-size: 14px;
  color: var(--ink2);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.verdict-item::before {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 1px;
  font-weight: bold;
}

.verdict-col.buy .verdict-item::before {
  content: "✓";
  color: var(--green);
}

.verdict-col.skip .verdict-item::before {
  content: "✗";
  color: var(--rust);
}

/* ─── AFFILIATE BOX ─── */
.affiliate-box {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 24px;
  border-radius: 6px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(26, 24, 20, 0.02);
}

.aff-info {
  flex: 1;
}

.aff-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.aff-sub {
  font-size: 12px;
  color: var(--ink3);
}

.aff-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.aff-price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.aff-cta {
  background: var(--rust);
  color: white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.aff-cta:hover {
  background: #9c4c21;
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none !important;
}

/* ─── PRODUCT CARDS & GRID (For Niche pages) ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 24, 20, 0.04);
}

.product-rank {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
  font-weight: 600;
}

.product-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.product-best {
  font-size: 11px;
  background: var(--rust-light);
  color: var(--rust);
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-weight: 500;
}

.product-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.62;
  margin-bottom: 20px;
  flex: 1;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rust);
  color: white;
  padding: 11px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}

.product-cta:hover {
  background: #9c4c21;
}

/* For full-width product review card layout */
.product-card-large {
  background: var(--cream);
  border: 1px solid var(--sand);
  margin: 32px 0;
  padding: 32px;
  border-radius: 6px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ─── SCORE CARD (For Review pages) ─── */
.score-card {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--sand);
  margin: 32px 0;
  border: 1px solid var(--sand);
  border-radius: 8px;
}

.score-cell {
  background: var(--cream);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-cell:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.score-cell:last-child {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.score-cell:hover {
  background: white;
  box-shadow: inset 0 0 0 1px var(--rust), 0 8px 24px rgba(26, 24, 20, 0.08);
  position: relative;
  z-index: 2;
}

.score-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
  font-weight: 600;
}

.score-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.score-bar {
  height: 6px;
  background: var(--sand);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SPECS TABLE ─── */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 24px 0;
  border: 1px solid var(--sand);
}

.specs-table th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: 2px solid var(--sand);
  background: var(--cream);
}

.specs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(224, 216, 204, 0.5);
  color: var(--ink2);
}

.specs-table tr:nth-child(even) td {
  background: rgba(245, 240, 232, 0.4);
}

/* ─── NICHE QUICK PICKS TABLE ─── */
.quick-picks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 32px 0;
  border: 1px solid var(--sand);
}

.quick-picks-table th {
  background: var(--cream);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .08em;
  color: var(--ink3);
  border-bottom: 2px solid var(--sand);
}

.quick-picks-table td {
  padding: 14px 16px;
  color: var(--ink2);
  vertical-align: middle;
  border-bottom: 1px solid var(--sand);
}

.quick-picks-table tr:nth-child(odd) td {
  background: rgba(245, 240, 232, 0.3);
}

.quick-picks-table .pick-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  width: 32px;
  font-weight: bold;
}

.quick-picks-table .pick-name {
  font-weight: 600;
  color: var(--ink);
}

.quick-picks-table .pick-name a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 75, 138, 0.3);
  transition: all 0.15s ease;
}

.quick-picks-table .pick-name a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ─── FAQ SECTION ACCORDION ─── */
.faq-section {
  margin: 48px 0;
}

.faq-section h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.faq-item {
  border-top: 1px solid var(--sand);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--sand);
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "＋";
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink3);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

details[open] .faq-q::after {
  content: "－";
}

.faq-a {
  font-size: 14px;
  color: var(--ink2);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 680px;
}

/* ─── ARTICLE FOOTER NAVIGATION ─── */
.art-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--sand);
  margin-top: 48px;
}

.art-nav-link {
  flex: 1;
  text-decoration: none;
  color: var(--ink2);
  background: var(--cream);
  padding: 16px 20px;
  border-radius: 4px;
  border: 1px solid var(--sand);
  transition: all 0.15s ease;
}

.art-nav-link:hover {
  border-color: var(--ink2);
  color: var(--ink);
}

.art-nav-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}

.art-nav-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ─── SIDEBAR COMPONENTS ─── */
.sidebar {
  min-width: 0; /* Prevents overflow */
  position: sticky;
  top: 84px; /* offset for nav + gap */
}

.sidebar-top-pick {
  background: var(--ink);
  color: white;
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(26, 24, 20, 0.08);
}

.stp-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  font-weight: 600;
}

.stp-name {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.stp-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.stp-rating svg {
  width: 14px;
  height: 14px;
  fill: #D4B896;
}

.stp-rating svg.empty {
  fill: rgba(255, 255, 255, 0.2);
}

.stp-cta {
  display: block;
  background: var(--rust);
  color: white;
  text-align: center;
  padding: 11px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background .15s ease;
}

.stp-cta:hover {
  background: #9c4c21;
}

.sidebar-toc {
  background: var(--cream);
  border-left: 3px solid var(--sand2);
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}

.toc-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  font-weight: 600;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  padding: 6px 0;
}

.toc-list a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.toc-list a:hover {
  text-decoration: underline;
  color: #0f305c;
}

.sidebar-related {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 20px;
  border-radius: 4px;
}

.rel-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  font-weight: 600;
}

.rel-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
  font-size: 13px;
}

.rel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rel-item a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  line-height: 1.4;
  display: block;
}

.rel-item a:hover {
  color: var(--accent);
}

.rel-item .rel-kd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  margin-top: 3px;
}

/* ─── HOMEPAGE SPECIFIC COMPONENTS ─── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 16px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
  font-weight: 600;
}

.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.section-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

/* ─── PICKS GRID (Homepage) ─── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pick-card {
  background: var(--cream);
  padding: 32px;
  border-radius: 6px;
  border: 1px solid var(--sand);
  position: relative;
  transition: background .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.pick-card:first-child {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 24, 20, 0.04);
}

.pick-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.pick-card:first-child .pick-badge {
  color: #D4B896;
}

.pick-card:not(:first-child) .pick-badge {
  color: var(--rust);
}

.pick-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.pick-card:first-child .pick-name {
  color: white;
}

.pick-type {
  font-size: 12px;
  margin-bottom: 20px;
}

.pick-card:first-child .pick-type {
  color: rgba(255, 255, 255, 0.5);
}

.pick-card:not(:first-child) .pick-type {
  color: var(--ink3);
}

.pick-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
}

.pick-stars .star {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.pick-card:first-child .star {
  fill: #D4B896;
}

.pick-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid;
}

.pick-card:first-child .pick-meta {
  border-color: rgba(255, 255, 255, 0.12);
}

.pick-card:not(:first-child) .pick-meta {
  border-color: var(--sand);
}

.pick-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.pick-card:first-child .pick-price {
  color: white;
}

.pick-trial {
  font-size: 11px;
}

.pick-card:first-child .pick-trial {
  color: rgba(255, 255, 255, 0.5);
}

.pick-card:not(:first-child) .pick-trial {
  color: var(--ink3);
}

.pick-cta {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all .15s ease;
}

.pick-card:first-child .pick-cta {
  background: var(--rust);
  color: white;
}

.pick-card:first-child .pick-cta:hover {
  background: #9c4c21;
}

.pick-card:not(:first-child) .pick-cta {
  background: none;
  border: 1px solid var(--sand2);
  color: var(--ink2);
}

.pick-card:not(:first-child) .pick-cta:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(26, 24, 20, 0.02);
}

/* ─── CATEGORY GRID (Homepage) ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 32px 28px 24px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.cat-card:hover {
  background: var(--sand);
  transform: translateY(-1px);
}

.cat-icon {
  width: 40px;
  height: 40px;
  background: rgba(26, 24, 20, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink2);
  fill: none;
  stroke-width: 1.5;
}

.cat-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.cat-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink3);
  text-transform: uppercase;
}

/* ─── HOMEPAGE DIVIDER ─── */
.divider {
  max-width: 1200px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.divider-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  color: white;
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand span {
  color: #D4B896;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  padding: 6px 0;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color .15s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
  .picks-grid, .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pick-card:first-child {
    grid-column: span 2;
  }
}

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--rust); }

@media (max-width: 900px) {
  .nav {
    padding: 0 20px;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar {
    display: none; /* Hide sidebar completely on smaller screens for readability */
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .picks-grid, .cat-grid, .footer-grid, .verdict-grid {
    grid-template-columns: 1fr;
  }
  .score-cell {
    padding: 16px 8px;
  }
  .score-label {
    font-size: 8px;
    letter-spacing: 0.05em;
  }
  .score-val {
    font-size: 20px;
  }
  .pick-card:first-child {
    grid-column: span 1;
  }
  .nav, .section, .article-layout-wrap, .footer, .divider {
    padding-left: 20px;
    padding-right: 20px;
  }
  .product-card-large {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .affiliate-box {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .aff-right {
    justify-content: space-between;
  }
  .page-hero {
    height: 320px;
  }
  .page-hero h1 {
    font-size: 24px;
  }
}

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: rgba(253, 250, 245, 0.95); /* matching --paper with opacity */
  border: 1px solid var(--sand2);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(26, 24, 20, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(10px);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.cookie-text {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--rust);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  flex: 1;
  text-align: center;
}

.cookie-btn-accept:hover {
  background: #9c4c21;
}

.cookie-btn-decline {
  background: none;
  border: 1px solid var(--sand2);
  color: var(--ink2);
  padding: 9px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  text-align: center;
}

.cookie-btn-decline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(26, 24, 20, 0.02);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px;
  }
}
