:root {
  color-scheme: light;
  --ink: #14251e;
  --muted: #53645b;
  --forest: #112b22;
  --lime: #c6f475;
  --line: #dce5dc;
  --paper: #f7f9f5;
  font: 16px/1.55 "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .53; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #477649; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 20; padding: 12px; background: white; }
.shell { width: min(1280px, calc(100% - 88px)); margin-inline: auto; }
h1, h2, h3, .brand { font-family: Manrope, sans-serif; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.055em; font-weight: 800; }
p { margin: 0; }
svg { width: 22px; height: 22px; display: block; flex: none; }
[data-icon] { display: inline-flex; }
.topline { color: #e7f2e7; background: var(--forest); font-size: .85rem; }
.topline .shell { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 12px; }
.topline a { text-underline-offset: 4px; }
.masthead { background: var(--paper); position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); }
.head { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.55rem; font-weight: 800; letter-spacing: -.07em; }
.brand span span { display: block; font-size: .6rem; letter-spacing: .24em; margin-top: 3px; }
.head nav { display: flex; gap: clamp(18px, 3vw, 40px); font-weight: 700; font-size: .94rem; }
.head nav a, .footer a { text-decoration: none; }
.head a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .basket-button, .button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; border: 1px solid transparent; text-decoration: none; font-weight: 800; border-radius: 12px; min-height: 45px; }
.icon-button { width: 45px; padding: 0; background: transparent; color: var(--ink); }
.icon-button:hover { background: #eaf0e8; }
.basket-button { padding: 0 12px; background: var(--forest); color: white; font-size: .9rem; }
.basket-button:hover, .button.dark:hover { background: #244939; }
.count { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 5px; border-radius: 99px; background: var(--lime); color: var(--ink); }
.hero-wrap { margin-top: 24px; }
.hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr 1.12fr; align-items: stretch; min-height: 440px; border-radius: 26px; background: #102a21; color: white; }
.hero-content { padding: clamp(36px, 5vw, 72px); position: relative; z-index: 1; align-self: center; }
.kicker { display: flex; gap: 9px; align-items: center; font-weight: 800; font-size: .77rem; letter-spacing: .15em; color: #d4efbc; }
.kicker span { background: var(--lime); width: 7px; height: 7px; border-radius: 50%; }
h1 { font-size: clamp(3rem, 5.3vw, 5.1rem); line-height: .99; letter-spacing: -.078em; font-weight: 800; margin: 22px 0; }
h1 em { color: var(--lime); font-style: normal; }
.hero p { color: #deebe2; max-width: 36ch; font-size: 1.05rem; }
.hero .button { margin-top: 26px; }
.hero-image { position: relative; min-width: 0; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 57% 51%; }
.hero-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #102a21 0%, #102a2140 22%, transparent 47%); }
.button { min-height: 48px; padding: 10px 18px; font-size: .94rem; }
.lime { color: var(--ink); background: var(--lime); }
.lime:hover { background: #d8fa9a; }
.dark { color: white; background: var(--forest); }
.outline { border-color: #b6c8b7; background: transparent; color: var(--forest); }
.outline:hover { background: #e9f1e7; }
section[id] { scroll-margin-top: 103px; }
.category-section { padding-top: 40px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.category { min-height: 96px; display: flex; align-items: center; gap: 15px; padding: 15px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: white; }
.category:hover, .category[aria-pressed=true] { border-color: #779573; background: #f1f8eb; }
.category strong { display: block; font-weight: 800; }
.category small { color: var(--muted); font-size: .83rem; }
.category-symbol { padding: 12px; border-radius: 12px; color: #214238; background: #e6f1e1; }
.category:nth-child(2) .category-symbol { background: #ecebfb; color: #493972; }
.category:nth-child(3) .category-symbol { background: #f7eedc; color: #6b501e; }
.category:nth-child(4) .category-symbol { background: #e4eef7; color: #284968; }
.assortment { padding-top: 56px; padding-bottom: 45px; }
.section-head, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-head p { margin-top: 7px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 11px; background: white; border: 1px solid var(--line); border-radius: 12px; padding-inline: 13px; width: min(100%, 340px); }
.search:focus-within { outline: 2px solid #477649; }
.search input { min-width: 0; width: 100%; height: 48px; border: none; outline: none; background: transparent; }
.toolbar { align-items: start; margin: 20px 0 18px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter { border-radius: 100px; border: 1px solid var(--line); background: white; color: var(--forest); padding: 7px 13px; font-size: .9rem; font-weight: 700; }
.filter[aria-pressed=true] { background: var(--forest); color: white; border-color: var(--forest); }
.sort select { min-height: 39px; appearance: none; padding: 5px 32px 5px 11px; background: white linear-gradient(45deg, transparent 47%, #346044 48% 58%, transparent 60%) no-repeat right 16px center / 6px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .9rem; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: white; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.product:hover { box-shadow: 0 10px 26px #17382c12; border-color: #a0b6a0; }
.product-image { display: grid; place-items: center; width: 100%; border: 0; background: #f0f3ef; aspect-ratio: 1.21; padding: 20px; color: var(--muted); }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-image svg { width: 48px; height: 48px; }
.product-content { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 9px; }
.product-category { color: #396046; font-weight: 750; font-size: .82rem; }
.product h3 { font-size: 1.06rem; line-height: 1.34; }
.product h3 button { color: inherit; padding: 0; text-align: left; background: none; border: none; font: inherit; }
.product h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.stock { font-size: .85rem; color: var(--muted); }
.stock.in { color: #245c39; }
.purchase { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; }
.price { font: 800 1.4rem Manrope, sans-serif; letter-spacing: -.04em; }
.purchase .icon-button { border-radius: 12px; color: var(--ink); background: var(--lime); }
.purchase .icon-button:hover { background: #d8fa9a; }
.notice, .empty { color: var(--muted); padding: 16px; border-radius: 12px; background: #eef3eb; margin-bottom: 14px; }
.empty { grid-column: 1/-1; }
.load-more { display: flex; margin: 22px auto 0; }
.support { display: flex; align-items: center; gap: 16px; margin-bottom: 42px; padding: 22px; background: #e8f2e4; border-radius: 18px; }
.support h2 { font-size: 1.55rem; }
.support p { margin-top: 5px; }
.support .button { margin-left: auto; }
.footer { padding: 30px 0; background: var(--forest); color: white; }
.footer .shell, .footer nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: #d3e2d9; margin-top: 4px; font-size: .9rem; }
dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #0c211ab0; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
.dialog-heading h2 { font-size: 1.6rem; }
.detail { width: min(760px, calc(100% - 24px)); border-radius: 18px; max-height: 90dvh; }
.detail-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px; }
.detail-media img { aspect-ratio: 1; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.detail-info > * + * { margin-top: 11px; }
.detail-info h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.detail-info .button { width: 100%; }
.detail-info a { display: inline-block; font-size: .9rem; }
.gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gallery button { border: 1px solid var(--line); background: white; border-radius: 7px; width: 44px; height: 44px; padding: 3px; }
.gallery button[aria-pressed=true] { border-color: #477649; }
.cart { inset: 0 0 0 auto; margin: 0; width: min(480px, 100%); height: 100dvh; max-height: none; max-width: none; }
.cart[open] { display: flex; flex-direction: column; }
.cart-lines { padding: 18px; overflow: auto; }
.cart-summary { margin-top: auto; border-top: 1px solid var(--line); padding: 18px; }
.cart-summary:empty { display: none; }
.cart-summary p { color: var(--muted); margin: 9px 0; font-size: .9rem; }
.cart-summary .button { width: 100%; }
.subtotal { display: flex; justify-content: space-between; gap: 8px; }
.cart-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 58px; height: 58px; border-radius: 7px; object-fit: contain; }
.cart-row h3 { font-size: .98rem; line-height: 1.35; }
.cart-row .stock { margin-top: 6px; }
.quantity { display: flex; align-items: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.quantity button { border: 1px solid var(--line); border-radius: 7px; background: white; min-width: 32px; min-height: 32px; color: var(--forest); }
.quantity .remove { border: none; text-decoration: underline; background: transparent; font-size: .83rem; }
.toast { opacity: 0; pointer-events: none; position: fixed; z-index: 5; right: 20px; bottom: 20px; background: var(--forest); color: white; border-radius: 12px; padding: 12px 16px; transition: opacity .16s; max-width: calc(100% - 40px); }
.toast.visible { opacity: 1; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .category-grid, .products { gap: 10px; }
  .category { padding: 10px; gap: 8px; }
  .category-symbol { padding: 9px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .head { min-height: 63px; }
  .head nav { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-content { align-self: start; padding: 29px; }
  .hero-image { min-height: 215px; }
  .hero-image::after { background: linear-gradient(#102a21, transparent 37%); }
  .category-grid, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar, .section-head { flex-wrap: wrap; }
  .assortment { padding-top: 36px; }
  .product-content { padding: 11px; }
  .product-image { padding: 12px; }
}
@media (max-width: 420px) {
  .basket-label { display: none; }
  .head-actions { gap: 2px; }
  .category small { display: none; }
  .category { min-height: 65px; }
  .detail-main { grid-template-columns: 1fr; gap: 12px; }
  .detail-media img { max-height: 230px; }
  .support { flex-wrap: wrap; }
  .support .button { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
