:root {
  color-scheme: light;
  --forest: #103a27;
  --forest-ink: #09291b;
  --ink: #171f19;
  --secondary: #526158;
  --paper: #f5f7f4;
  --surface: #fff;
  --line: #dce4dc;
  --ease: cubic-bezier(.23, 1, .32, 1);
  font: 100% / 1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.09; letter-spacing: -.032em; font-weight: 650; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid #168053; outline-offset: 3px; }
:where(a, button, input, select) { scroll-margin-top: 5rem; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.symbols, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shell { width: min(100% - 2rem, 71rem); margin-inline: auto; }
.community { background: var(--forest-ink); color: #fff; text-align: center; font-size: .875rem; }
.community a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: 3px; }
.toolbar { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4rem; }
.controls > button { justify-self: start; }
.actions { display: flex; justify-self: end; }
.brand { display: flex; align-items: center; gap: .4rem; font-size: 1.08rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; object-fit: contain; }
.icon { min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; border: 0; border-radius: .65rem; background: transparent; position: relative; }
.icon:active, .primary:active { transform: scale(.97); }
#cart-count { position: absolute; top: 2px; right: 0; border-radius: 1rem; min-width: 1.1rem; padding: 0 3px; background: var(--forest); color: #fff; font-size: .7rem; }
main { min-height: 52vh; padding-block: 1.25rem 3rem; }
.hero { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(6.25rem, 35%); gap: .75rem; padding: clamp(1rem, 4vw, 3rem); border-radius: 1.25rem; background: var(--forest); color: #fff; }
.hero .kicker { color: #d1e6d7; font-size: .875rem; }
.hero h1 { margin-block: .375rem .5rem; }
.hero .claim { max-width: 42ch; color: #eef6ef; font-size: .875rem; }
.hero .place { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .375rem; color: #eef6ef; font-size: .875rem; text-underline-offset: 3px; }
.hero > img { display: block; width: 100%; border-radius: .75rem; object-fit: cover; aspect-ratio: 1; background: #eef2f0; }
section + section { margin-top: 2rem; }
.section-title { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: .85rem; }
.section-title a, .text-link { color: var(--forest); font-size: .875rem; font-weight: 600; text-underline-offset: 3px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .625rem; }
.tile { display: grid; align-content: start; gap: .4rem; line-height: 1.25; font-size: .78rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tile img, .tile .placeholder { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: .65rem; }
.placeholder { display: block; background: #e7eee7; }
.banners, .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .5rem; border-radius: 1rem; }
.banners img, .gallery :is(img, video, .placeholder) { flex: 0 0 100%; min-width: 0; width: 100%; scroll-snap-align: start; object-fit: contain; background: #e8eee8; }
.banners img { aspect-ratio: 3; object-fit: cover; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
.card { display: grid; align-content: start; text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: .9rem; overflow: hidden; }
.card :is(img, .placeholder) { width: 100%; aspect-ratio: 1; object-fit: contain; background: white; }
.card-copy { display: grid; gap: .375rem; padding: .75rem; border-top: 1px solid var(--line); }
.card-name { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
.price { color: var(--forest); font-size: .875rem; font-weight: 650; }
.price del { color: var(--secondary); font-weight: 400; margin-inline-start: .35rem; white-space: nowrap; }
.muted { color: var(--secondary); font-size: .875rem; }
.back { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; margin-bottom: .75rem; text-underline-offset: 3px; }
.back svg { rotate: 180deg; }
.intro { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.product-detail { display: grid; gap: 1.25rem; }
.gallery :is(img, video, .placeholder) { aspect-ratio: 1; background: #fff; }
.detail-copy { display: grid; align-content: start; gap: 1rem; }
.detail-copy h1 { font-size: clamp(1.8rem, 5vw, 3rem); overflow-wrap: anywhere; }
.description { white-space: pre-line; overflow-wrap: anywhere; margin-top: .5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; padding: 0; }
.variant { display: flex; min-height: 2.75rem; align-items: center; gap: .625rem; padding-block: .4rem; border-bottom: 1px solid var(--line); }
.variant img { width: 2rem; height: 2rem; object-fit: contain; }
.variant .price { margin-inline-start: auto; }
.form-stack { display: grid; gap: .85rem; }
input, select { border: 1px solid var(--line); border-radius: .5rem; min-height: 2.75rem; background: #fff; color: var(--ink); padding: .4rem .6rem; }
input[type="radio"] { accent-color: var(--forest); }
input[type="number"] { max-width: 5rem; text-align: center; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--forest); border-radius: .65rem; background: var(--forest); color: #fff; text-align: center; font-weight: 600; text-decoration: none; }
.footer { border-top: 1px solid var(--line); color: var(--secondary); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding-block: 1rem max(1rem, env(safe-area-inset-bottom)); font-size: .875rem; }

body:has(dialog[open]) { overflow: hidden; }
dialog { border: 1px solid var(--line); border-radius: 1.1rem 1.1rem 0 0; max-height: min(85dvh, 48rem); margin: auto auto 0; width: min(100%, 36rem); max-width: 100%; padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #0b2018a0; }
dialog > header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
dialog nav a { display: flex; gap: .5rem; align-items: center; justify-content: space-between; min-height: 2.75rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.search-field { width: 100%; margin-bottom: 1rem; }
.result { display: grid; gap: .75rem; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding-block: .75rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cart-line a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-block: 1rem; }
.cart-notice { border-top: 1px solid var(--line); padding-top: .75rem; }

@media (min-width: 44rem) {
  .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem; }
  .tile { font-size: .875rem; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .product-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  dialog { margin: auto; border-radius: 1.1rem; }
}

@media (hover: hover) and (pointer: fine) {
  .icon:hover { background: #e7eee7; }
  .card:hover { border-color: #9fb4a3; }
}
@media (prefers-reduced-motion: no-preference) {
  .icon, .primary { transition: transform 120ms var(--ease), background-color 120ms ease; }
}

