:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #68736f;
  --soft: #f6f8f2;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --line: #dde4dc;
  --forest: #25483c;
  --leaf: #6da77a;
  --sun: #e6bd58;
  --sky: #6da8c7;
  --coral: #df6b58;
  --shadow: 0 18px 44px rgba(27, 43, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(109, 167, 122, 0.1), transparent 24rem),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(221, 228, 220, 0.9);
  background: rgba(251, 251, 247, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--forest);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0 2.5rem;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  min-height: 22rem;
  padding: clamp(1rem, 3vw, 2rem) 0 1rem;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
span,
strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 39rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.primary-action,
.status-pill {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  padding: 0 1.1rem;
  color: white;
  background: var(--forest);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #173229;
}

.status-pill {
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  color: var(--forest);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 19rem;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  min-width: 10rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: white;
  background: rgba(21, 32, 29, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card span,
.hero-card strong {
  display: block;
}

.hero-card span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card strong {
  margin-top: 0.1rem;
  font-size: 1.8rem;
  line-height: 1;
}

.compliance-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ead9a8;
  border-radius: 8px;
  background: #fff9e9;
  scroll-margin-top: 6rem;
}

.compliance-strip strong {
  color: var(--forest);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.compliance-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.shop-shell,
.guide-section,
.policy-section {
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(27, 43, 38, 0.07);
  scroll-margin-top: 6rem;
}

.shop-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

#resultCount {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.category-tabs {
  position: sticky;
  top: 4.8rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  margin: 0 -0.2rem 1rem;
  padding: 0.2rem;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(246, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  min-width: max-content;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.tab strong {
  display: grid;
  min-width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 999px;
  color: var(--forest);
  background: white;
  font-size: 0.78rem;
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  border-color: var(--forest);
  color: var(--forest);
  background: white;
  box-shadow: 0 8px 20px rgba(27, 43, 38, 0.08);
}

.tab.is-active strong {
  color: white;
  background: var(--forest);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(27, 43, 38, 0.08);
}

.product-art {
  display: grid;
  min-height: 8.6rem;
  place-items: center;
  padding: 0.9rem;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent));
  overflow: hidden;
}

.product-art span {
  display: grid;
  width: 4.3rem;
  height: 4.3rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(21, 32, 29, 0.14);
  font-size: 1.15rem;
  font-weight: 950;
}

.product-art small {
  align-self: end;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-art img {
  display: none;
}

.product-art.has-image {
  min-height: 13.75rem;
  padding: 1.1rem;
  background: #ffffff;
}

.product-art.has-image img {
  display: block;
  width: 100%;
  height: 11.9rem;
  object-fit: contain;
}

.product-art.has-image span,
.product-art.has-image small {
  display: none;
}

.product-content {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.product-category {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-category {
  color: var(--accent);
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.best-for {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.best-for span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.best-for strong {
  font-size: 0.92rem;
}

.product-actions {
  display: grid;
  padding: 0 0.95rem 0.95rem;
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 8px;
  color: white;
  background: var(--forest);
  font-weight: 950;
  text-align: center;
}

.product-link:hover,
.product-link:focus-visible {
  background: #173229;
}

.guide-section {
  margin-top: 1rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.guide-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.guide-grid h3,
.policy-section h2 {
  margin: 0 0 0.65rem;
}

.guide-grid p,
.policy-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.policy-section p + p {
  margin-top: 0.75rem;
}

.content-page {
  max-width: 850px;
}

.page-intro {
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.page-intro > p {
  max-width: 39rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.65;
}

.content-page h1 {
  max-width: 16ch;
}

.policy-section + .policy-section {
  margin-top: 1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3.5rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer a {
  color: var(--forest);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 1080px) {
  .product-grid,
  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .catalog-hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 18rem;
  }

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

}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.5rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .primary-action,
  .status-pill {
    width: 100%;
  }

  .compliance-strip {
    grid-template-columns: 1fr;
  }

  .shop-heading,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-tabs {
    top: 7.25rem;
  }

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

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

  .product-card {
    min-height: 0;
  }
}
