:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f4eae1;
  --primary: #2c2825;
  --primary-hover: #1a1816;
  --secondary: #8c7a6b;
  --accent: #e8dfd8;
  --muted: #5e564f;
  --success: #6b7a65;
  --border: #e8dfd8;
  --soft-green: #eef5eb;
  --shared-bg: #eef5eb;
  --shared-border: #d5e3ce;
  --shared-text: #40523c;
  --original-bg: #f5eee9;
  --original-border: #e8d9ce;
  --original-text: #765d4b;
  --dupe-bg: #fbf8f4;
  --dupe-border: #eaded4;
  --dupe-text: #5f564f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--primary);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.serif {
  font-family: "Cormorant Garamond", serif;
}

.page {
  min-height: 100vh;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 260;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(232, 223, 216, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  box-shadow: 0 14px 34px rgba(44, 40, 37, 0.14);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(44, 40, 37, 0.18);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 36px, 1340px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(232, 223, 216, 0.8);
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-main {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.links {
  display: flex;
  gap: 42px;
  font-size: 15px;
  color: var(--primary);
}

.links a:hover,
.back:hover {
  color: var(--secondary);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  min-height: 40px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  padding: 9px 16px;
  font-weight: 600;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px -22px rgba(44, 40, 37, 0.25);
}

.mobile-menu nav a {
  padding: 14px 18px;
  color: var(--primary);
}

.mobile-menu nav a:hover {
  background: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 86px;
  align-items: center;
  padding: 112px 0 142px;
}

.eyebrow {
  margin-bottom: 34px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1,
.search-heading,
.compare-title,
.dupe-title,
.section-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 730px;
  font-size: clamp(62px, 6vw, 86px);
  line-height: 0.96;
}

.hero h1 em,
.section-title em,
.compare-title em {
  color: var(--secondary);
  font-style: italic;
}

.hero-copy {
  max-width: 640px;
  margin: 34px 0 48px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.searchbar {
  position: relative;
  z-index: 40;
  display: flex;
  width: min(100%, 720px);
  min-height: 70px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 8px 8px 30px;
  box-shadow: 0 18px 44px -24px rgba(44, 40, 37, 0.24);
}

.searchbar svg {
  flex: 0 0 auto;
  color: var(--secondary);
}

.searchbar input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--primary);
  font-size: 17px;
}

.searchbar input::placeholder {
  color: rgba(140, 122, 107, 0.7);
}

.primary-btn {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0 34px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.secondary-btn,
.shop-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  padding: 0 22px;
  font-weight: 600;
}

.shop-btn {
  background: var(--bg);
  padding: 0 16px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.disclaimer-inline,
.score-note,
.affiliate-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.disclaimer-inline {
  max-width: 720px;
  margin: 18px 0 0;
}

.info-tip {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.info-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: none;
  width: min(320px, 78vw);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px -24px rgba(44, 40, 37, 0.24);
  color: var(--muted);
  padding: 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.info-tip:hover .info-bubble,
.info-tip:focus .info-bubble {
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 52px;
}

.step-num {
  color: rgba(140, 122, 107, 0.45);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
}

.step h3 {
  margin: 10px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 400;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 54px -36px rgba(44, 40, 37, 0.28);
}

.hero-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0.9;
}

.hero-spotlight {
  display: grid;
  width: 100%;
  gap: 28px;
  border-color: rgba(216, 205, 196, 0.92);
  color: var(--primary);
  cursor: pointer;
  padding: 34px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hero-spotlight:hover {
  border-color: rgba(140, 122, 107, 0.5);
  box-shadow: 0 28px 60px -34px rgba(44, 40, 37, 0.34);
  transform: translateY(-2px);
}

.hero-spotlight:focus-visible {
  outline: 2px solid rgba(107, 122, 101, 0.42);
  outline-offset: 4px;
}

.hero-spotlight-head {
  display: grid;
  gap: 18px;
}

.spotlight-label,
.spotlight-product .meta {
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.spotlight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-metrics span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(183, 204, 177, 0.9);
  border-radius: 999px;
  background: rgba(232, 241, 226, 0.72);
  color: #456047;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.spotlight-products {
  display: grid;
  gap: 18px;
}

.spotlight-product {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.spotlight-image {
  display: flex;
  width: 104px;
  height: 124px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 223, 216, 0.86);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spotlight-product h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px -4px 10px 0;
  padding-right: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spotlight-product .price {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  line-height: 1;
}

.spotlight-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.spotlight-vs::before,
.spotlight-vs::after {
  content: "";
  height: 1px;
  background: rgba(140, 122, 107, 0.24);
}

.spotlight-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.spotlight-action {
  min-height: 52px;
  padding: 0 24px;
}

.week-note {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px 28px;
  backdrop-filter: blur(14px);
}

.week-note p {
  margin: 0;
}

.week-note .label {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.week-note .text {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--primary);
}

.section {
  padding: 0 0 112px;
  scroll-margin-top: 100px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 48px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.section-note {
  max-width: 720px;
  margin: -32px 0 48px;
  color: var(--muted);
  line-height: 1.55;
}

.sponsored-label {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--secondary);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-grid,
.dupe-grid,
.compare-grid {
  display: grid;
  gap: 32px;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-grid,
.empty-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.topic-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 116px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  padding: 18px;
  text-align: left;
  box-shadow: 0 18px 40px -30px rgba(44, 40, 37, 0.22);
}

.topic-card:hover {
  border-color: var(--secondary);
}

.similar-product-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  padding: 14px;
  text-align: left;
  box-shadow: 0 18px 40px -30px rgba(44, 40, 37, 0.22);
}

.similar-product-card:hover {
  border-color: var(--secondary);
}

.similar-product-card img {
  grid-row: span 3;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  object-fit: contain;
  padding: 10px;
}

.similar-product-name {
  color: var(--primary);
  font-weight: 600;
  line-height: 1.35;
}

.similar-product-meta {
  color: var(--muted);
  font-size: 13px;
}

.popular-products-block {
  display: grid;
  gap: 24px;
  margin-top: 46px;
}

.popular-products-block h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.popular-product-card {
  display: grid;
  grid-template-rows: auto auto minmax(42px, auto) 18px 1fr auto;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  padding: 16px;
  text-align: left;
  box-shadow: 0 18px 40px -30px rgba(44, 40, 37, 0.22);
}

.popular-product-card:hover {
  border-color: var(--secondary);
}

.popular-product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  object-fit: contain;
  padding: 12px;
}

.popular-product-name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popular-product-meta,
.popular-product-action {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.popular-product-action {
  align-self: end;
  margin-top: 0;
  color: var(--secondary);
  font-weight: 600;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.empty-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pair-card,
.product-card,
.dupe-card,
.compare-card,
.verdict,
.ingredients-panel,
.filters {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(44, 40, 37, 0.22);
}

.pair-card,
.product-card,
.dupe-card {
  padding: 28px;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pair-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto 56px;
  gap: 28px;
  min-height: 620px;
  padding: 32px;
}

.pair-card:hover,
.product-card:hover,
.dupe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(44, 40, 37, 0.16);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.pair-card .card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.pair-card .card-top .pill:first-child {
  border-color: rgba(64, 82, 60, 0.28);
  color: var(--primary);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d9e3d3;
  border-radius: 999px;
  background: var(--soft-green);
  color: #40523c;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.pill.savings {
  border-color: rgba(64, 82, 60, 0.28);
  background: var(--soft-green);
  color: var(--primary);
  font-weight: 700;
}

.pair-products {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(124px, auto) auto minmax(124px, auto);
  gap: 18px;
  align-items: stretch;
}

.mini-product {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.mini-product-image {
  display: flex;
  width: 104px;
  height: 124px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 223, 216, 0.75);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.mini-product img,
.product-card img,
.dupe-card img,
.catalog-card img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(232, 223, 216, 0.75);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  object-fit: contain;
  padding: 24px;
}

.mini-product img {
  width: 100%;
  max-height: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
}

.mini-product-copy {
  min-width: 0;
}

.mini-product .meta {
  margin: 0 0 9px;
}

.mini-product .product-name {
  display: -webkit-box;
  overflow: hidden;
  margin-right: -4px;
  padding-right: 4px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.08;
}

.mini-product .price {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.pair-cue {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.pair-cue::before,
.pair-cue::after {
  content: "";
  height: 1px;
  background: rgba(140, 122, 107, 0.24);
}

.pair-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pair-action {
  align-self: end;
  min-height: 56px;
}

.comparison-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.meta {
  margin: 18px 0 7px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
}

.price {
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.results-page,
.detail-page,
.compare-page {
  padding: 72px 0 112px;
}

.results-page .searchbar {
  position: sticky;
  top: 98px;
  z-index: 120;
  margin-top: 0;
}

.back {
  display: inline-flex;
  margin-bottom: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.results-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.results-layout.no-sidebar {
  display: block;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  margin: 40px 0 32px;
}

.results-header > div {
  max-width: 720px;
}

.search-heading {
  margin: 10px 0 0;
  font-size: clamp(40px, 5vw, 60px);
}

.results-header .section-kicker {
  margin: 0;
}

.results-header p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.sort-control {
  display: inline-grid;
  position: relative;
  min-width: 236px;
  flex: 0 0 auto;
  gap: 10px;
  align-self: flex-start;
  color: var(--secondary);
  padding-top: 4px;
}

.sort-control::after {
  content: "⌄";
  position: absolute;
  right: 2px;
  bottom: 12px;
  color: var(--primary);
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}

.sort-control span {
  display: block;
  padding-left: 1px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.select {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid rgba(140, 122, 107, 0.34);
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  padding: 0 28px 7px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  text-indent: -1px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
}

.select:focus {
  outline: 0;
  border-bottom-color: var(--secondary);
}

.filters {
  position: sticky;
  top: 112px;
  padding: 34px;
}

.filter-drawer {
  margin: 0 0 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -30px rgba(44, 40, 37, 0.18);
}

.filter-drawer summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  outline: 0;
  padding: 0 22px;
  font-weight: 600;
  list-style: none;
}

.filter-drawer summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(107, 122, 101, 0.36);
}

.filter-drawer summary::-webkit-details-marker {
  display: none;
}

.filter-drawer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 20px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding: 24px;
}

.filter-drawer-panel .filter-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-drawer-panel .reset {
  width: auto;
  min-height: 28px;
  align-self: end;
  justify-self: end;
  margin: 0 0 23px;
  padding: 0;
  text-align: center;
}

.filters h2 {
  margin: 0 0 30px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 400;
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.filter-label {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.filter-group select,
.filter-group input[type="range"] {
  width: 100%;
}

.filter-group input[type="range"] {
  height: 28px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.filter-group input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(140, 122, 107, 0.28);
}

.filter-group input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px rgba(140, 122, 107, 0.28), 0 4px 10px rgba(44, 40, 37, 0.16);
  -webkit-appearance: none;
}

.filter-group input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(140, 122, 107, 0.28);
}

.filter-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px rgba(140, 122, 107, 0.28), 0 4px 10px rgba(44, 40, 37, 0.16);
}

.filter-group select {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  padding: 0 14px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1;
}

.reset {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.comparison-results {
  display: grid;
  gap: 32px;
}

.comparison-result-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(44, 40, 37, 0.22);
  padding: 32px;
}

.comparison-result-card.pasted {
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
}

.comparison-result-card.product-result-card {
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  align-items: center;
}

.product-result-card .result-product img {
  aspect-ratio: 1 / 1;
}

.result-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-product img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border: 1px solid rgba(232, 223, 216, 0.75);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  object-fit: contain;
  padding: 18px;
}

img.image-fallback {
  object-fit: contain;
  opacity: 0.72;
}

.result-product .product-name {
  font-size: 25px;
}

.result-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.result-score {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.result-score .score-note {
  margin: 0;
  padding-top: 1px;
}

.score-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.result-score strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 0.95;
}

.result-score span {
  color: var(--success);
  font-weight: 600;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-stats span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  padding: 7px 11px;
  font-size: 13px;
}

.why-match {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.dupe-card .why-match {
  margin: 18px 0 20px;
}

.dupe-card .why-match + .card-action {
  margin-top: 10px;
}

.why-match summary,
.product-ingredients summary {
  cursor: pointer;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.why-match p,
.product-ingredients p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.result-actions .shop-btn {
  min-height: 46px;
}

.product-card img {
  aspect-ratio: 1 / 1.22;
}

.product-card,
.dupe-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(68px, auto) auto auto minmax(44px, auto) auto;
  align-content: start;
}

.product-card > .source-link,
.dupe-card > .source-link {
  margin-top: 28px;
}

.product-card > .meta,
.dupe-card > .meta,
.result-product > .meta {
  margin-top: 36px;
}

.product-card > .source-link + .meta,
.dupe-card > .source-link + .meta {
  margin-top: 26px;
}

.product-card .product-name,
.dupe-card .product-name,
.catalog-card .product-name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 65px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .summary {
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  font-weight: 600;
}

.card-action.compact {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  font-size: 14px;
}

.catalog-page {
  padding: 80px 0 112px;
}

.catalog-head {
  max-width: 840px;
  margin-bottom: 64px;
}

.catalog-head p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.catalog-section {
  margin-top: 64px;
}

.catalog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.catalog-section-head .section-title {
  margin-bottom: 32px;
}

.catalog-search {
  display: flex;
  width: min(100%, 620px);
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  padding: 8px 20px;
  box-shadow: 0 16px 36px -30px rgba(44, 40, 37, 0.24);
  margin: 0 0 24px;
}

.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
}

.catalog-search input::placeholder {
  color: rgba(140, 122, 107, 0.72);
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.catalog-chip {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  padding: 0 16px;
  font-weight: 600;
}

.catalog-chip.active,
.catalog-chip:hover {
  border-color: var(--secondary);
  background: var(--soft-green);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.catalog-empty {
  margin-top: 24px;
}

.catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(44, 40, 37, 0.22);
  overflow: hidden;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card img {
  aspect-ratio: 1 / 0.82;
  border: 0;
  border-radius: 0;
  padding: 24px;
}

.catalog-card-body {
  display: flex;
  flex-direction: column;
  padding: 36px 24px 24px;
}

.catalog-card .meta {
  margin-top: 24px;
}

.catalog-card .source-link {
  margin-top: auto;
}

.paste-page,
.scoring-page {
  padding: 80px 0 112px;
}

.paste-panel,
.scoring-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.paste-panel p,
.scoring-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.paste-example {
  margin-top: 14px;
}

.paste-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(44, 40, 37, 0.22);
  padding: 28px;
}

.paste-form textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--primary);
  padding: 18px;
  line-height: 1.55;
}

.scoring-panel {
  display: block;
  max-width: 1020px;
}

.scoring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.scoring-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
}

.scoring-grid h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 400;
}

.label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ingredients-page {
  padding: 80px 0 112px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.education-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(44, 40, 37, 0.22);
  padding: 28px;
}

.education-card h2 {
  margin: 18px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 400;
}

.education-card p {
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.detail-hero img {
  width: 100%;
  border-radius: 34px;
  aspect-ratio: 1 / 1.26;
  border: 1px solid rgba(232, 223, 216, 0.75);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  object-fit: contain;
  padding: 34px;
}

.dupe-title {
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
}

.dupe-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.product-detail-ingredients {
  margin-bottom: 44px;
}

.product-detail-ingredients .ingredient-box p:last-child {
  color: var(--text);
  line-height: 1.75;
}

.dupe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dupe-card img {
  aspect-ratio: 1 / 0.9;
}

.compare-page .compare-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.compare-title {
  font-size: clamp(50px, 5.6vw, 78px);
  line-height: 1;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.compare-card {
  display: grid;
  grid-template-rows: auto auto minmax(76px, auto) auto auto minmax(40px, auto) minmax(56px, auto) auto;
  row-gap: 10px;
  padding: 32px;
}

.compare-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1.25 / 1;
  border: 0;
  background: transparent;
  object-fit: contain;
  padding: 0;
}

.compare-card > .meta {
  margin-top: 42px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  min-height: 40px;
  margin-top: 18px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--secondary);
  padding: 6px 11px;
  font-size: 12px;
}

.source-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.source-link:hover {
  color: var(--primary);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 18px;
  margin-bottom: 16px;
}

.product-links .source-link {
  margin-top: 0;
}

.product-links .shop-btn {
  min-height: 38px;
  padding: 0 18px;
}

.product-ingredients {
  position: relative;
  margin-top: 0;
  border-top: 0;
  padding-top: 28px;
}

.product-ingredients::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--border);
}

.verdict {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 64px;
  border: 0;
  background: var(--surface-2);
  padding: 48px;
}

.verdict h2,
.ingredients-panel h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 400;
}

.verdict p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.verdict-score {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  min-width: 0;
}

.verdict-score .section-kicker {
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(140, 122, 107, 0.36);
  padding-bottom: 24px;
}

.verdict-score h2 {
  margin-bottom: 24px;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: max-content;
  min-width: 260px;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 32px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-badge.strong-match {
  border-color: rgba(68, 115, 89, 0.38);
  background: rgba(68, 115, 89, 0.1);
  color: #315c45;
}

.match-badge.similar-formula {
  border-color: rgba(163, 116, 52, 0.34);
  background: rgba(163, 116, 52, 0.1);
  color: #765220;
}

.match-badge.not-comparable {
  border-color: rgba(105, 87, 73, 0.46);
  background: rgba(105, 87, 73, 0.12);
  color: #4f453d;
}

.compare-extra {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.stat {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.trust-footnote {
  margin-top: 24px !important;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.stat span {
  display: block;
  color: var(--secondary);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 400;
}

.ingredients-panel {
  margin-top: 64px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.ingredient-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ingredient-box {
  min-height: 310px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 34px 32px;
}

.ingredient-box.shared {
  background: var(--surface);
}

.ingredient-box.original {
  background: var(--surface);
}

.ingredient-box.dupe {
  background: var(--surface);
}

.ingredient-title,
.ingredient-subtitle {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ingredient-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-weight: 600;
}

.ingredient-title span {
  color: var(--success);
  font-size: 14px;
  letter-spacing: 0;
}

.ingredient-subtitle {
  margin-bottom: 20px;
}

.ingredient-box.original .ingredient-title span,
.ingredient-box.dupe .ingredient-title span {
  color: var(--secondary);
}

.ingredient-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-box li {
  border-radius: 999px;
  background: var(--bg);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
}

.ingredient-box.shared li {
  border: 1px solid var(--shared-border);
  background: var(--shared-bg);
  color: var(--shared-text);
}

.ingredient-box.original li {
  border: 1px solid var(--original-border);
  background: var(--original-bg);
  color: var(--original-text);
}

.ingredient-box.dupe li {
  border: 1px solid var(--dupe-border);
  background: var(--dupe-bg);
  color: var(--dupe-text);
}

.more-dupes {
  margin-top: 88px;
}

.ranked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 32px;
}

.ranked-card {
  display: grid;
  grid-template-rows: 248px minmax(250px, auto);
  min-height: 528px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  padding: 24px;
  text-align: left;
  -webkit-tap-highlight-color: rgba(44, 40, 37, 0.08);
}

.ranked-card.active {
  border-color: var(--primary);
  box-shadow: 0 12px 26px -20px rgba(44, 40, 37, 0.45);
}

.ranked-image {
  display: flex;
  width: 100%;
  height: 248px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  padding: 18px;
}

.ranked-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.ranked-card .pill {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.ranked-meta {
  display: grid;
  grid-template-rows: 62px 24px minmax(92px, auto) 28px;
  align-content: start;
  gap: 8px;
  margin-top: 24px;
}

.ranked-top {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ranked-top .meta,
.ranked-meta > .meta {
  margin: 0;
}

.ranked-card .product-name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 86px;
  color: var(--primary);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 28px;
}

.ranked-card:active,
.ranked-card:focus,
.ranked-card:focus-visible,
.ranked-card.active,
.ranked-card:active .product-name,
.ranked-card:focus .product-name,
.ranked-card:focus-visible .product-name,
.ranked-card.active .product-name {
  color: var(--primary);
}

.ranked-card .summary {
  margin: 0;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.4;
}

.suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px -22px rgba(44, 40, 37, 0.25);
}

.suggestions button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 13px 22px;
  text-align: left;
}

.suggestions button:hover {
  background: var(--bg);
}

.suggestions img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 223, 216, 0.75);
  background: #fff;
  object-fit: contain;
  padding: 5px;
}

.empty {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 44px;
  color: var(--muted);
}

.comparison-help h4 {
  margin: 28px 0 0;
  color: var(--primary);
  font-size: 16px;
}

@media (max-width: 980px) {
  .hero,
  .results-layout,
  .detail-hero,
  .compare-grid,
  .comparison-result-card,
  .paste-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 48px;
    padding-top: 64px;
  }

  .filters {
    position: static;
  }

  .filter-drawer-panel {
    grid-template-columns: 1fr;
  }

  .filter-drawer-panel .reset {
    width: 100%;
    min-height: 40px;
    margin: 4px 0 0;
    justify-self: start;
    text-align: left;
  }

  .compare-page .compare-head,
  .results-header {
    display: block;
  }

  .sort-control {
    width: min(100%, 260px);
    margin-top: 24px;
    padding-top: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid,
  .popular-products-grid,
  .empty-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .verdict,
  .ingredient-columns {
    grid-template-columns: 1fr;
  }

  .ranked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .match-badge {
    width: 100%;
    min-width: 0;
    padding: 10px 22px;
    text-align: center;
    white-space: normal;
  }

  .shell {
    width: min(100% - 28px, 1400px);
  }

  .nav {
    min-height: 72px;
  }

  .links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero {
    padding: 56px 0 88px;
  }

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

  .catalog-grid,
  .catalog-section-head {
    grid-template-columns: 1fr;
  }

  .similar-product-card img {
    grid-row: auto;
  }

  .catalog-section-head {
    display: block;
  }

  .hero-copy {
    margin: 28px 0 40px;
    font-size: 18px;
  }

  .searchbar {
    min-height: 64px;
    gap: 10px;
    padding-left: 18px;
  }

  .primary-btn {
    padding: 0 20px;
  }

  .steps,
  .featured-grid,
    .topic-grid,
    .popular-products-grid,
    .similar-product-card,
    .products-grid,
  .dupe-grid,
  .stats,
  .ingredient-columns,
  .pair-products,
  .result-products,
  .empty-products,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .compare-card,
  .verdict,
  .ingredients-panel,
  .filters,
  .pair-card,
  .product-card,
  .dupe-card {
    padding: 22px;
  }

  .pair-card {
    grid-template-rows: auto auto auto auto;
    gap: 24px;
    height: auto;
    min-height: 0;
  }

  .pair-products {
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-top: 0;
  }

  .mini-product {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .mini-product-image {
    width: 104px;
    height: 124px;
  }

  .pair-cue {
    grid-template-columns: minmax(26px, 1fr) auto minmax(26px, 1fr);
    gap: 12px;
    font-size: 11px;
  }

  .section {
    padding-bottom: 88px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-note {
    margin: -16px 0 32px;
  }

  .results-page,
  .detail-page,
  .compare-page,
  .catalog-page,
  .paste-page,
  .scoring-page,
  .ingredients-page {
    padding: 56px 0 88px;
  }

  .results-header {
    margin: 28px 0 32px;
  }

  .comparison-result-card {
    gap: 24px;
    padding: 22px;
  }

  .catalog-head {
    margin-bottom: 48px;
  }

  .catalog-section {
    margin-top: 48px;
  }

  .catalog-chips {
    margin-bottom: 32px;
  }

  .catalog-search {
    min-height: 52px;
    margin-bottom: 24px;
    padding: 8px 16px;
  }

  .catalog-grid,
  .products-grid,
  .comparison-results {
    gap: 24px;
  }

  .detail-hero {
    gap: 32px;
    margin-bottom: 48px;
  }

  .compare-page .compare-head {
    margin-bottom: 32px;
  }

  .compare-page .stat-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 10px;
    margin-top: 24px;
    align-items: stretch;
  }

  .compare-page .stat-pills .pill {
    min-height: 42px;
    padding: 0 18px;
  }

  .compare-page .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .compare-page .compare-card {
    min-width: 0;
    padding: 12px;
    grid-template-rows: 168px 30px minmax(132px, auto) 32px 34px minmax(118px, auto) minmax(76px, auto) auto;
    align-content: start;
    row-gap: 12px;
  }

  .compare-page .compare-card img {
    aspect-ratio: 1 / 1.06;
    padding: 6px;
  }

  .compare-page .compare-card > .meta {
    align-self: end;
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: 0.24em;
    line-height: 1.35;
  }

  .compare-page .compare-card .product-name {
    font-size: 22px;
    line-height: 1.08;
  }

  .compare-page .compare-card .price {
    font-size: 22px;
  }

  .compare-page .compare-card .summary,
  .compare-page .product-ingredients summary,
  .compare-page .product-ingredients p {
    color: var(--muted);
    font-size: 12px;
  }

  .compare-page .tag-list,
  .compare-page .product-links {
    gap: 6px;
  }

  .compare-page .tag,
  .compare-page .source-link,
  .compare-page .shop-btn {
    font-size: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .verdict {
    gap: 28px;
    margin-top: 48px;
  }

  .verdict-score {
    min-height: 0;
  }

  .compare-extra,
  .stats {
    gap: 24px;
    margin-top: 24px;
  }

  .ingredients-panel {
    margin-top: 48px;
  }

  .ingredient-columns {
    gap: 24px;
  }

  .product-card,
  .dupe-card,
  .compare-card {
    grid-template-rows: auto;
  }

  .compare-page .compare-card {
    grid-template-rows: 168px 30px minmax(132px, auto) 32px 34px minmax(118px, auto) minmax(76px, auto) auto;
    align-content: start;
  }

  .product-card .product-name,
  .dupe-card .product-name,
  .catalog-card .product-name,
  .ranked-card .product-name {
    min-height: 0;
  }

  .ranked-card {
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 22px;
  }

  .ranked-card img {
    height: 100%;
  }

  .ranked-image {
    height: 220px;
  }

  .ranked-meta {
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    margin-top: 22px;
  }

  .topbar {
    background: rgba(250, 249, 246, 0.94);
  }

  .brand-main {
    font-size: 28px;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .mobile-menu summary {
    min-height: 38px;
    padding: 8px 14px;
  }

  .hero {
    gap: 34px;
    padding: 42px 0 62px;
  }

  .eyebrow,
  .section-kicker,
  .results-header .section-kicker {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.3em;
    line-height: 1.7;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 44px;
    line-height: 1.02;
  }

  .hero-copy {
    margin: 22px 0 28px;
    font-size: 16px;
    line-height: 1.58;
  }

  .searchbar,
  .results-page .searchbar {
    position: static;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    gap: 10px;
    border-radius: 24px;
    padding: 14px;
  }

  .searchbar input {
    font-size: 16px;
  }

  .searchbar .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
  }

  .disclaimer-inline {
    margin-top: 16px;
    font-size: 12px;
  }

  .steps {
    gap: 18px;
    margin-top: 34px;
  }

  .step {
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  .step-num {
    font-size: 20px;
  }

  .step h3 {
    margin-top: 6px;
    font-size: 22px;
  }

  .section {
    padding-bottom: 64px;
  }

  .section-title,
  .search-heading,
  .dupe-title,
  .compare-title {
    font-size: 38px;
    line-height: 1.04;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-note {
    margin: -8px 0 24px;
    font-size: 15px;
  }

  .hero-spotlight,
  .pair-card,
  .product-card,
  .dupe-card,
  .comparison-result-card,
  .popular-product-card,
  .catalog-card,
  .compare-card,
  .verdict,
  .ingredients-panel,
  .filters {
    padding: 18px;
  }

  .hero-spotlight {
    gap: 20px;
  }

  .spotlight-product,
  .mini-product {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .spotlight-image,
  .mini-product-image {
    width: 82px;
    height: 98px;
    padding: 8px;
  }

  .spotlight-product h3,
  .mini-product .product-name {
    font-size: 26px;
  }

  .spotlight-product .price,
  .mini-product .price,
  .price {
    font-size: 24px;
  }

  .featured-grid,
  .comparison-results,
  .popular-products-grid,
  .products-grid,
  .dupe-grid {
    gap: 18px;
  }

  .results-page,
  .detail-page,
  .compare-page,
  .catalog-page,
  .paste-page,
  .scoring-page,
  .ingredients-page {
    padding: 38px 0 70px;
  }

  .back {
    margin-bottom: 22px;
  }

  .results-header {
    margin: 28px 0 24px;
  }

  .results-header p {
    margin-top: 14px;
    font-size: 16px;
  }

  .comparison-result-card,
  .comparison-result-card.product-result-card,
  .comparison-result-card.pasted {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result-product img,
  .product-result-card .result-product img,
  .popular-product-card img,
  .product-card img,
  .dupe-card img {
    aspect-ratio: 1 / 0.78;
    border-radius: 8px;
    padding: 14px;
  }

  .result-product .meta,
  .product-card > .meta,
  .dupe-card > .meta {
    margin-top: 18px;
  }

  .result-product .product-name,
  .product-card .product-name,
  .dupe-card .product-name,
  .catalog-card .product-name {
    font-size: 28px;
    line-height: 1.05;
    -webkit-line-clamp: 3;
  }

  .result-score {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-score strong {
    font-size: 42px;
  }

  .result-actions,
  .card-action {
    gap: 10px;
  }

  .card-action,
  .card-action.compact {
    min-height: 48px;
    padding: 0 18px;
  }

  .detail-hero {
    gap: 24px;
    margin-bottom: 34px;
  }

  .detail-hero img {
    aspect-ratio: 1 / 0.92;
    border-radius: 18px;
    padding: 22px;
  }

  .dupe-intro {
    font-size: 16px;
  }

  .product-detail-ingredients {
    margin-bottom: 30px;
  }

  .product-detail-ingredients .ingredient-box p:last-child {
    max-height: 220px;
    overflow: auto;
  }

  .compare-page .stat-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .compare-page .stat-pills .pill {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .compare-page .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .compare-page .compare-card {
    padding: 10px;
    grid-template-rows: 154px 30px minmax(136px, auto) 28px 34px minmax(124px, auto) minmax(74px, auto) auto;
    align-content: start;
    row-gap: 14px;
  }

  .compare-page .compare-card img {
    aspect-ratio: 1 / 1.08;
    padding: 4px;
  }

  .compare-page .compare-card > .meta {
    align-self: end;
    margin: 0 0 8px;
    font-size: 8px;
    letter-spacing: 0.2em;
    line-height: 1.35;
  }

  .compare-page .compare-card .product-name {
    font-size: 20px;
    line-height: 1.08;
  }

  .compare-page .compare-card .price {
    font-size: 20px;
  }

  .compare-page .compare-card .summary,
  .compare-page .compare-card .price,
  .compare-page .product-ingredients,
  .compare-page .product-ingredients summary,
  .compare-page .product-ingredients p {
    color: var(--muted);
  }

  .compare-page .compare-card .price {
    color: var(--primary);
  }

  .compare-page .tag-list {
    min-height: 124px;
    align-content: start;
  }

  .verdict {
    gap: 22px;
  }

  .verdict-score {
    min-height: 0;
  }

  .verdict-score .section-kicker {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .verdict-score h2 {
    margin-bottom: 18px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}
