:root {
  --color-forest: #1a4d3a;
  --color-forest-deep: #0f2e24;
  --color-moss: #2d6a4f;
  --color-earth: #d4a574;
  --color-earth-bright: #e8c9a0;
  --color-earth-muted: #9a7b52;
  --color-sand: #f0e8db;
  --color-cream: #fbf8f3;
  --color-paper: #fffefb;
  --color-text: #1f1d1a;
  --color-text-muted: #5e5952;
  --shadow-soft: 0 4px 24px rgba(15, 46, 36, 0.08);
  --shadow-lift: 0 16px 40px rgba(15, 46, 36, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 68px;
  --font-sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 165, 116, 0.1), transparent 50%);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-forest);
}

:focus-visible {
  outline: 2px solid var(--color-earth);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 77, 58, 0.08);
}

.nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.35rem;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--color-forest-deep);
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--color-moss);
}

.nav__logo {
  color: var(--color-moss);
}

.nav__brand-ai {
  color: var(--color-earth-muted);
  font-weight: 600;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--color-moss);
  text-decoration: underline;
}

.nav__links a[aria-current="page"] {
  color: var(--color-moss);
  font-weight: 700;
}

.nav__links--categories {
  gap: 0.35rem 0.65rem;
}

.nav__links--categories a {
  font-size: 0.84rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(340px, 52vh, 600px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 46, 36, 0.52) 0%,
      rgba(15, 46, 36, 0.18) 50%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 46, 36, 0.08) 0%,
      rgba(15, 46, 36, 0.32) 50%,
      rgba(15, 46, 36, 0.68) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2.25rem, 11vh, 4.25rem) 1.35rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.hero__content {
  max-width: min(38rem, 58vw);
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-earth-bright);
}

.hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.875rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  margin: 0;
  max-width: 36em;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.hero__cta--primary {
  color: var(--color-forest-deep);
  background: linear-gradient(145deg, var(--color-earth-bright), var(--color-earth));
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.hero__cta--primary:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  filter: brightness(1.04);
}

.hero__cta--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-earth-bright);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-earth-bright);
  outline-offset: 3px;
}

.page__lead--compact {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  max-width: none;
}

/* Page */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 3.5rem;
}

.page--home {
  padding-top: 1.25rem;
}

.page--sub .page__head {
  margin-bottom: 1.25rem;
}

.page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-forest-deep);
  line-height: 1.3;
}

.page--sub .filter-toolbar {
  margin-top: 1rem;
}

.intro-root:empty {
  display: none;
}

/* Home hub */
.home-hub {
  margin-top: 0;
}

.home-hub__title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

.home-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-hub__grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

.page__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.page__anchors a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.page__anchors a:hover {
  text-decoration: underline;
}

.category-section {
  margin-bottom: 2.5rem;
}

.category-brands {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.category-brands--page {
  margin-top: -0.25rem;
  margin-bottom: 1.25rem;
}

.category-section .category-brands {
  margin-top: 0;
}

.category-brands[hidden] {
  display: none;
}

.category-section__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-forest-deep);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(45, 106, 79, 0.15);
}

.category-icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--color-moss);
  flex-shrink: 0;
}

.home-hub__card--muted .category-icon {
  color: var(--color-earth-muted);
}

.home-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--color-paper);
  border: 1px solid rgba(26, 77, 58, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.home-hub__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212, 165, 116, 0.45);
}

.home-hub__card-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest-deep);
}

.home-hub__card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.home-hub__card--muted .home-hub__card-label {
  color: var(--color-earth-muted);
}

/* Placeholder subpage */
.placeholder-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-paper);
  border-radius: var(--radius);
  border: 1px dashed rgba(26, 77, 58, 0.2);
  box-shadow: var(--shadow-soft);
}

.placeholder-card__text {
  margin: 0 0 1rem;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
}

.placeholder-card__links {
  margin: 0;
  font-weight: 600;
}

.placeholder-card__links a {
  text-decoration: none;
}

.placeholder-card__links a:hover {
  text-decoration: underline;
}

.page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-moss);
}

.page__lead {
  margin: 0 0 1.5rem;
  max-width: 42em;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.catalog-status {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: rgba(37, 107, 82, 0.06);
  border-radius: var(--radius-sm);
}

.catalog-status--error {
  color: #8b2e2e;
  background: rgba(180, 60, 60, 0.08);
  border-left: 3px solid #c44;
}

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

.compare-root:empty {
  display: none;
}

.page__note code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  background: rgba(26, 77, 58, 0.08);
  border-radius: 4px;
}

.page__note {
  margin: 2rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  background: rgba(37, 107, 82, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-moss);
}

/* Filter */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
  background: var(--color-paper);
  border: 1px solid rgba(26, 77, 58, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chip:hover {
  border-color: rgba(212, 165, 116, 0.5);
}

.filter-chip.is-active {
  color: var(--color-paper);
  background: linear-gradient(145deg, var(--color-moss), var(--color-forest-deep));
  border-color: transparent;
}

.filter-chip--hero {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.filter-chip--hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-earth-bright);
}

.filter-chip--hero.is-active {
  color: var(--color-forest-deep);
  background: linear-gradient(145deg, var(--color-earth-bright), var(--color-earth));
  border-color: transparent;
}

/* Compare blocks */
.compare-block {
  margin-bottom: 2.5rem;
}

.compare-block.is-hidden {
  display: none;
}

.compare-block__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest);
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-earth-bright);
}

.table-scroll__hint {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 77, 58, 0.08);
  box-shadow: var(--shadow-soft);
  background: var(--color-paper);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 77, 58, 0.06);
  vertical-align: top;
}

.compare-table thead th {
  background: linear-gradient(180deg, var(--color-forest) 0%, var(--color-forest-deep) 100%);
  color: var(--color-sand);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.7rem 0.75rem;
}

.compare-table thead th:nth-child(1) {
  padding-left: 1rem;
}

.compare-table thead th:last-child {
  padding-right: 1rem;
}

/* Weight, capacity, size, price — center table headers and cells */
.compare-table thead th:nth-child(n + 5):nth-child(-n + 8),
.compare-table tbody td:nth-child(n + 5):nth-child(-n + 8) {
  text-align: center;
}

.compare-table__sortable {
  padding: 0.7rem 0.75rem;
  cursor: pointer;
}

.compare-table__sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  transition: color 0.2s var(--ease-out);
}

.compare-table__sort-btn:focus-visible {
  outline: 2px solid var(--color-earth-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.compare-table thead th.compare-table__sortable {
  text-align: center;
}

.compare-table__sort-btn:hover {
  color: var(--color-earth-bright);
}

.compare-table__sortable.is-sorted .compare-table__sort-btn {
  color: var(--color-earth-bright);
}

.compare-table__sort-icon {
  display: inline-block;
  width: 0.75rem;
  font-size: 0.7rem;
  line-height: 1;
  text-align: center;
  opacity: 0.9;
  flex-shrink: 0;
}

.compare-table tbody tr {
  transition: background-color 0.2s var(--ease-out);
}

.compare-table tbody tr:nth-child(odd) {
  background: var(--color-paper);
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(240, 232, 219, 0.4);
}

.compare-table tbody tr:hover {
  background: rgba(212, 165, 116, 0.14);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table__thumb-col {
  width: 7.5rem;
  min-width: 7.5rem;
  text-align: center;
}

.compare-table thead th.compare-table__thumb-col {
  text-align: center;
}

.compare-table__thumb {
  width: 8.5rem;
  padding: 0.5rem 0.65rem;
  vertical-align: middle;
  text-align: center;
}

.compare-table__thumb-link,
.compare-table__thumb-btn {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.compare-table__thumb-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
}

.compare-table__thumb-link:hover,
.compare-table__thumb-btn:hover {
  box-shadow: 0 0 0 2px var(--color-moss);
}

.compare-table__thumb-link:focus-visible,
.compare-table__thumb-btn:focus-visible {
  outline: 2px solid var(--color-earth-bright);
  outline-offset: 3px;
}

.compare-table__thumb img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  background: var(--color-sand);
  border: 1px solid rgba(26, 77, 58, 0.08);
  transition: opacity 0.2s var(--ease-out);
}

.compare-table__thumb-link:hover img,
.compare-table__thumb-btn:hover img {
  opacity: 0.88;
}

.compare-table__thumb--empty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.compare-table__thumb-credit {
  margin: 0.35rem 0 0;
  max-width: 7.5rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--color-text-muted);
  text-align: center;
}

.compare-table__thumb-credit a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 1px;
}

.sponsor-badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a4e12;
  background: rgba(180, 120, 40, 0.16);
  border: 1px solid rgba(180, 120, 40, 0.28);
}

.compare-table__row--sponsored {
  background: rgba(180, 120, 40, 0.07);
}

.compare-table__row--sponsored:hover {
  background: rgba(180, 120, 40, 0.11);
}

.product-modal__sponsor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.35rem 0 0.15rem;
}

.product-modal__sponsor[hidden] {
  display: none;
}

.product-modal__sponsor-note {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.compare-table--pros td:nth-child(3),
.compare-table--pros td:nth-child(4) {
  line-height: 1.55;
  max-width: 16rem;
}

/* Detail sections */
.detail-section {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.detail-section.is-hidden {
  display: none;
}

.detail-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-forest-deep);
}

.detail-section__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 77, 58, 0.1);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 12px);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.25s;
}

.product-card--highlight {
  border-color: var(--color-moss);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.22), var(--shadow-lift);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.product-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-sand);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1rem 1.15rem 1.2rem;
}

.product-card__brand {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-moss);
}

.product-card__model {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-forest-deep);
}

.product-card__desc {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.product-card__source {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
}

.product-card__source a {
  font-weight: 600;
  text-decoration: none;
}

.product-card__source a:hover {
  text-decoration: underline;
}

.product-spec {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-spec > div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.product-spec dt {
  margin: 0;
  font-weight: 700;
  color: var(--color-earth-muted);
}

.product-spec dd {
  margin: 0;
  color: var(--color-text);
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.35rem 2rem;
  background: var(--color-forest-deep);
  color: rgba(240, 232, 219, 0.85);
  text-align: center;
}

.site-footer__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.site-footer__disclaimer {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.72;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
}

.site-footer__legal a {
  color: rgba(240, 232, 219, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal a:hover {
  color: #fff;
}

.site-footer__legal a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

.page--legal .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.page--legal .legal-nav a {
  color: var(--color-forest);
  font-weight: 500;
}

.legal-section {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--color-forest-deep);
}

.legal-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  line-height: 1.65;
  color: var(--color-text);
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-section code {
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .table-scroll__hint {
    display: block;
  }

  .table-wrap {
    position: relative;
  }

  .table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 254, 251, 0.95));
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .hero__inner {
    padding-top: clamp(1.75rem, 8vh, 2.75rem);
    padding-bottom: 1.75rem;
  }

  .hero__content {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta,
  .compare-table tbody tr,
  .compare-table__sort-btn,
  .compare-table__thumb-link,
  .compare-table__thumb-btn,
  .compare-table__thumb img {
    transition: none;
  }
}

@media (max-width: 700px) {
  .home-hub__grid,
  .home-hub__grid--6 {
    grid-template-columns: 1fr;
  }

  .nav__links--categories {
    justify-content: flex-end;
  }

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

  .nav {
    flex-wrap: wrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .nav__links {
    width: 100%;
  }

  .product-spec > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* —— Furniture matrix —— */
.furniture-stats {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.product-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-matrix__empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.matrix-card {
  margin: 0;
}

.matrix-card__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(26, 77, 58, 0.12);
  border-radius: var(--radius);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.2s;
}

.matrix-card__btn:hover,
.matrix-card__btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-moss);
  box-shadow: var(--shadow-lift);
  outline: none;
}

.matrix-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-sand);
  overflow: hidden;
}

.matrix-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.matrix-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.matrix-card__brand,
.matrix-card__model,
.matrix-card__price {
  display: block;
  padding: 0 0.65rem;
}

.matrix-card__brand {
  margin-top: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-moss);
}

.matrix-card__model {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-forest-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.matrix-card__price {
  padding-bottom: 0.55rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.matrix-card__credit {
  margin: 0;
  padding: 0 0.65rem 0.5rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--color-text-muted);
  text-align: center;
}

.matrix-card__credit a {
  color: var(--color-forest);
}

/* —— Product detail modal —— */
body.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-modal[hidden] {
  display: none;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.product-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 920px;
  width: 100%;
  max-height: min(90vh, 720px);
  overflow: hidden;
  background: var(--color-paper);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(26, 77, 58, 0.12);
  box-shadow: var(--shadow-lift);
}

.product-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.product-modal__close:hover {
  background: #fff;
}

.product-modal__media {
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  padding: 1.25rem;
  overflow: hidden;
}

.product-modal__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.product-modal__image-credit {
  margin: 0;
  padding: 0.5rem 1rem 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
}

.product-modal__image-credit a {
  color: var(--color-forest);
}

.product-modal__no-img {
  margin: 0;
  padding: 2rem;
  color: var(--color-text-muted);
}

.product-modal__body {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 1.35rem 1.5rem 1.25rem;
  min-height: 0;
  max-height: min(90vh, 720px);
  overflow: hidden;
}

.product-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.product-modal__brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-moss);
}

.product-modal__title {
  margin: 0.25rem 2rem 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest-deep);
  line-height: 1.35;
}

.product-modal__specs {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-modal__specs > div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.product-modal__specs dt {
  margin: 0;
  font-weight: 700;
  color: var(--color-forest-deep);
}

.product-modal__specs dd {
  margin: 0;
  color: var(--color-text-muted);
}

.product-modal__desc {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.product-modal__highlights {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.product-modal__highlights[hidden] {
  display: none;
}

.product-modal__source {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 77, 58, 0.12);
  font-size: 0.88rem;
}

.product-modal__source[hidden] {
  display: none;
}

.product-modal__source a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-moss);
}

.product-modal__source a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .product-modal__panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .product-modal__media {
    max-height: 40vh;
  }

  .product-modal__media img {
    max-height: 40vh;
  }
}
