:root {
  --pico-font-family: Inter, Arial, sans-serif;
  --pico-color: #2d3137;
  --pico-primary: #18342f;
  --pico-primary-background: #18342f;
  --pico-primary-border: #18342f;
  --pico-primary-hover: #22b8ad;
  --brand-primary: #18342f;
  --brand-accent: #22b8ad;
  --brand-price: #f05a7e;
  --brand-text: #2d3137;
  --brand-subtle: #eef2f4;
  --brand-muted: #657071;
  --brand-paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafb;
  color: var(--brand-text);
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: #168e85;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-primary);
  font-family: Fraunces, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 750;
  line-height: 1.18;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: .6rem .8rem;
  background: var(--brand-primary);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dbe7e9;
  box-shadow: 0 8px 26px rgba(24, 52, 47, .05);
  backdrop-filter: blur(12px);
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .48rem 0 .34rem;
}

.brand {
  color: var(--brand-text);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
}

.payment-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .38rem .7rem;
  border: 1px solid var(--brand-subtle);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(24, 52, 47, .06);
}

.site-header .payment-badges,
.site-header .announce,
.primary-nav .nav-actions {
  display: none;
}

.payment-badges .hot {
  border-color: rgba(240, 90, 126, .28);
  color: var(--brand-price);
}

.primary-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  overflow-x: auto;
  padding: .1rem 0 .45rem;
}

.primary-nav ul,
.site-footer ul,
.breadcrumbs ul,
.filter-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  align-items: center;
}

.primary-nav li {
  flex: 0 0 auto;
}

.primary-nav a,
.primary-nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .38rem .62rem;
  border: 1px solid #d7e0e2;
  border-radius: 5px;
  color: var(--brand-text);
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
}

.primary-nav a.active,
.primary-nav a:hover,
.primary-nav summary:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: #fff;
}

.primary-nav .cart-link {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.primary-nav .design-token-button {
  border-color: var(--brand-price);
  background: var(--brand-accent);
  color: #fff;
}

.announce {
  background: linear-gradient(90deg, rgba(34, 184, 173, .15), rgba(238, 242, 244, .75));
  border-top: 1px solid #e3ecee;
  border-bottom: 1px solid #dbe7e9;
}

.announce-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: .85rem 0;
}

.announce p {
  margin: 0;
}

.announce strong {
  color: var(--brand-price);
}

.announce b {
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.hero-section {
  padding: 2.8rem 0 1.75rem;
}

.hero-section h1 {
  max-width: 780px;
  margin-bottom: .7rem;
}

.hero-section p,
.lead {
  max-width: 700px;
  color: var(--brand-muted);
  font-size: 1.08rem;
}

.shop-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding: 1.2rem 0 4rem;
}

.filter-panel {
  padding: 1.45rem 1.2rem;
  border: 1px solid #d9e0e2;
  border-radius: 8px;
  background: #e8ecee;
}

.filter-panel h2 {
  margin: 0 0 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid #cbd8da;
  color: #1d746f;
  font-size: 1.72rem;
}

.filter-panel h3 {
  margin: 1rem 0 .45rem;
  font-family: Inter, Arial, sans-serif;
  font-size: .92rem;
}

.filter-panel a {
  display: block;
  padding: .22rem 0;
  color: #287f78;
  font-weight: 700;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: .85rem 1rem;
  border: 1px solid var(--brand-subtle);
  border-radius: 8px;
  background: #fff;
}

.toolbar h2 {
  margin: 0;
  font-size: 1.62rem;
}

.toolbar span {
  padding: .45rem 1rem;
  border: 1px solid #66aaa3;
  border-radius: 5px;
  color: #276d67;
  font-weight: 800;
}

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

.category-intro {
  margin: 1rem 0 1.35rem;
}

.product-card,
.content-card,
.trust-grid article,
.contact-card,
.prose-panel,
.product-summary {
  border: 1px solid var(--brand-subtle);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 52, 47, .07);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(24, 52, 47, .12);
}

.ribbon {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
  padding: .35rem .6rem;
  border-radius: 4px;
  background: var(--brand-accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.image-box {
  display: grid;
  place-items: center;
  min-height: 230px;
  background: #f6f8f8;
}

.image-box img {
  width: 86%;
  max-height: 210px;
  object-fit: contain;
}

.card-body {
  display: grid;
  gap: .75rem;
  padding: 1rem;
}

.product-card h3 {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.product-card h3 a {
  color: #168e85;
}

.quick {
  margin-top: auto;
  padding: .62rem .75rem;
  border-radius: 5px;
  background: var(--brand-primary);
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.quick:hover,
.quick:focus {
  background: var(--brand-accent);
  color: #fff;
}

.trust-strip {
  padding: 1.7rem 0;
  border-top: 1px solid var(--brand-subtle);
  border-bottom: 1px solid var(--brand-subtle);
  background: #fff;
}

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

.trust-grid article {
  padding: 1.1rem;
  border-left: 4px solid var(--brand-accent);
  background: #f7fbfb;
  box-shadow: none;
}

.product-detail,
.static-layout,
.contact-layout,
.content-article,
.category-page {
  padding: 2rem 0 4rem;
}

.breadcrumbs {
  padding-top: 1.2rem;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--brand-muted);
  font-size: .88rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: .45rem;
  color: #9aa6a8;
}

.product-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
  padding: 1.35rem;
}

.product-summary aside,
.contact-card {
  display: grid;
  gap: .8rem;
  align-content: start;
  padding: 1rem;
  border-left: 4px solid var(--brand-accent);
  background: #f7fbfb;
}

.product-summary.compact {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.eyebrow {
  margin-bottom: .35rem;
  color: #168e85;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.prose-panel {
  padding: clamp(1rem, 4vw, 1.8rem);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.prose-panel > *:first-child {
  margin-top: 0;
}

.prose-panel > *:last-child {
  margin-bottom: 0;
}

.long-copy {
  padding: 1rem;
  border-left: 4px solid var(--brand-accent);
  background: #f7fbfb;
  white-space: normal;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.media-gallery figure,
.media-figure {
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--brand-subtle);
  border-radius: 8px;
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
}

.prose-panel table,
.content-article table,
.category-page table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}

.content-card {
  padding: 1rem;
}

.content-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
}

.minimal-card {
  box-shadow: none;
}

.toc {
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--brand-subtle);
  border-radius: 8px;
  background: #fff;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-image {
  float: right;
  width: min(32%, 320px);
  margin: 0 0 1rem 1.2rem;
}

.site-footer {
  margin-top: 0;
  padding: 1.8rem 0;
  background: var(--brand-primary);
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
}

.site-footer a {
  color: #9ee7df;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

@media (max-width: 900px) {
  .brand-row,
  .announce-grid,
  .shop-shell,
  .product-summary,
  .product-summary.compact,
  .contact-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .payment-badges {
    justify-content: flex-start;
  }

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

  .primary-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .main-image {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .horizontal-card {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .filter-panel,
  .quick {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
