
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/6b45c42465ccac4c.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/6c73b639fbea04e6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/6b45c42465ccac4c.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/6c73b639fbea04e6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/3b314725914bace6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/adf37c4857005a83.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/7321d8f650d678c6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/664a9860123017ea.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {--maslenka-art: url("images/d3bfe5a26da36f77.webp");}
:root {
  --display-font: "Comfortaa", sans-serif;
  --body-font: "M PLUS 1p", sans-serif;
  --surface: #fbfaf6;
  --white: #fff;
  --ink: #222c22;
  --muted: #5d685b;
  --green: #365139;
  --green-hover: #29432d;
  --sage: #eaf0e6;
  --line: #dfe5da;
  --radius: 18px;
  --ease: cubic-bezier(.25, .72, .32, 1);
  --gutter: clamp(20px, 4vw, 60px);
  --header-height: 82px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.58 var(--body-font); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button[disabled], button[aria-disabled="true"] { cursor: default; }
button, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #587a55; outline-offset: 3px; }
/* Scroll destinations receive focus to announce the new location. */
:is(section, h2)[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display-font); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
h2 { font-size: clamp(27px, 3.3vw, 44px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--gutter); }

header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: #fbfaf6f5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
header nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); height: var(--header-height); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font: 400 24px/1 var(--display-font); letter-spacing: -.055em; text-decoration: none; }
header .logo { gap: 14px; }
.logo img { width: 44px; height: 48px; object-fit: contain; }
/* The original logo is drawn in three registered layers: body, tail and heart. */
.brand-mascot {
  display: inline-block; position: relative; flex: none;
  width: 56px; aspect-ratio: 320 / 347; vertical-align: middle;
}
.mascot-cow, .mascot-cow::before, .mascot-cow::after, .brand-mascot::after {
  position: absolute; inset: 0; pointer-events: none;
}
.mascot-cow::before, .mascot-cow::after, .brand-mascot::after {
  content: ""; background: var(--maslenka-art) center / 100% 100% no-repeat;
}
.mascot-cow { transform-origin: 55% 97%; }
/* These contours meet where the tail touches the flank in the 320 × 347 artwork. */
.mascot-cow::before {
  clip-path: polygon(0 17%, 89.5% 17%, 89.5% 55%, 90.3% 56.5%, 100% 56.5%, 100% 100%, 0 100%);
}
.mascot-cow::after {
  clip-path: polygon(89.5% 36%, 100% 36%, 100% 56.5%, 90.3% 56.5%, 89.5% 55%);
  transform-origin: 90.3% 56%;
}
.brand-mascot::after { clip-path: inset(0 0 83%); transform-origin: 50% 8%; }
@media (prefers-reduced-motion: no-preference) {
  header .brand-mascot { --mascot-cycle: 5.6s; }
  header .mascot-cow { animation: mascot-sway var(--mascot-cycle) ease-in-out infinite; }
  header .mascot-cow::after { animation: mascot-tail var(--mascot-cycle) ease-in-out infinite; }
  header .brand-mascot::after { animation: mascot-heart var(--mascot-cycle) ease-in-out infinite; }
  .checkout-success:not([hidden]) .mascot-cow { animation: mascot-hop 1.35s ease-in-out both; }
  .checkout-success:not([hidden]) .mascot-greeting::before { animation: mascot-shadow 1.35s ease-in-out; }
  .checkout-success:not([hidden]) .mascot-cow::after { animation: mascot-tail 2.2s .12s ease-in-out 2; }
  .checkout-success:not([hidden]) .brand-mascot::after { animation: mascot-thanks 1.65s .1s ease-in-out 2; }
}
@keyframes mascot-sway {
  0%, 8%, 40%, 65%, 90%, 100% { transform: none; }
  15% { transform: scale(1.015, .98) rotate(-2deg); }
  23% { transform: translate(-1%, -3%) rotate(-5deg); }
  32% { transform: rotate(2.5deg); }
  77% { transform: translateY(-1%) rotate(1.8deg); }
}
@keyframes mascot-tail {
  0%, 13%, 41%, 68%, 88%, 100% { transform: none; }
  20%, 74% { transform: rotate(23deg); }
  26%, 80% { transform: rotate(-13deg); }
  33% { transform: rotate(10deg); }
}
@keyframes mascot-heart {
  0%, 19%, 55%, 100% { transform: none; }
  28% { transform: translate(1%, -6%) rotate(5deg) scale(1.2); }
  35% { transform: translateY(-2%) scale(1.03); }
  43% { transform: translateY(-4%) rotate(-3deg) scale(1.13); }
}
@keyframes mascot-hop {
  0%, 100% { transform: none; }
  15% { transform: scale(1.04, .95); }
  38% { transform: translate(-1%, -10%) rotate(-6deg); }
  60% { transform: scale(1.04, .96) rotate(2deg); }
  78% { transform: translateY(-3%) rotate(-2.5deg); }
}
@keyframes mascot-shadow {
  0%, 15%, 60%, 100% { transform: scaleX(1); opacity: 1; }
  38% { transform: scaleX(.75); opacity: .65; }
  78% { transform: scaleX(.91); opacity: .86; }
}
@keyframes mascot-thanks {
  0%, 100% { transform: none; }
  35% { transform: translateY(-8%) rotate(-8deg) scale(1.22); }
  58% { transform: translateY(-4%) scale(1.04); }
  74% { transform: translateY(-5%) rotate(4deg) scale(1.12); }
}
.catalog-button, .cartbtn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.catalog-button {
  gap: 9px; min-height: 46px; padding-inline: 15px;
  border-color: #dbe4d4; border-radius: 999px;
  background: #f0f4ea; color: #304a32; font-size: 14px; font-weight: 500;
}
.catalog-button:hover, .catalog-button[aria-expanded="true"] {
  background: #e2ecd9; border-color: #c5d3bb;
}
.catalog-button:focus-visible { outline: 2px solid #39583e; outline-offset: 3px; }
.catalog-button svg, .headersearch svg, .cartbtn svg { width: 19px; height: 19px; flex: none; }
.catalog-chevron { font-size: 12px; transition: transform .22s var(--ease); }
.catalog-button[aria-expanded="true"] .catalog-chevron { transform: rotate(180deg); }
.headersearch {
  position: relative; margin: 0;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 12px;
  min-height: 43px;
  background: #f4f3ed;
  border: 1px solid #e1e2d8;
  border-radius: 999px;
  color: var(--muted);
}
.headersearch:focus-within { border-color: #94a990; background: var(--white); }
.headersearch input { min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; }
.search-submit {
  display: grid; place-items: center; flex: none; align-self: stretch; width: 42px; margin-right: -11px;
  border: 0; border-radius: 999px; background: transparent; color: var(--green);
}
.search-panel {
  position: absolute; z-index: 3; inset: calc(100% + 6px) auto auto -1px;
  width: calc(100% + 2px); min-width: 330px; display: flex; flex-direction: column;
  max-height: min(440px, 60dvh, var(--search-room, 60dvh)); overflow: hidden;
  border: 1px solid #d5dfcf; border-radius: 19px; background: #fffdf8;
  box-shadow: 0 8px 15px -8px #263c2824, 0 18px 42px -12px #263c2836;
}
@media (prefers-reduced-motion: no-preference) {
  .search-panel:not([hidden]) { animation: search-appear .18s var(--ease); }
  @keyframes search-appear { from { opacity: 0; transform: translateY(-5px); } }
}
#search-options { padding: 5px; overflow-y: auto; overscroll-behavior: contain; }
#search-options:empty { display: none; }
.search-row {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 7px 10px; min-height: 62px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left;
}
.search-row + .search-row { position: relative; }
.search-row + .search-row::before { content: ""; position: absolute; inset: 0 10px auto 70px; height: 1px; background: #e8ebdf; }
.search-thumb {
  width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden;
  border-radius: 11px; background: #f2f1e8; color: var(--muted);
}
.search-thumb img { width: 100%; height: 100%; object-fit: contain; }
.search-name { font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.search-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-price { display: grid; justify-items: end; gap: 2px; max-width: 105px; text-align: right; }
.search-price strong { color: #304b34; font-size: 15px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search-price small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.search-row[aria-selected="true"] { background: var(--sage); }
@media (hover: hover) { .search-row:hover, .search-all:hover { background: #edf2e6; } }
.search-empty { padding: 18px 16px; color: var(--muted); font-size: 14px; }
.search-all {
  display: flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 6px 16px;
  border: 0; border-top: 1px solid var(--line); background: #f4f6ed; color: var(--green);
  text-align: left; font-size: 13px; font-weight: 500;
}
.search-count { background: #e1ead8; padding: 1px 7px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.search-all > :last-child { margin-left: auto; font-size: 17px; }
@media (max-width: 700px) {
  .search-panel { min-width: 0; }
  .search-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding-inline: 6px; }
  .search-thumb { width: 40px; height: 42px; }
  .search-name, .search-price strong { font-size: 13px; }
  .search-price { max-width: 77px; }
  .search-row + .search-row::before { left: 54px; }
}
.phone { flex-shrink: 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.45; text-decoration: none; }
.phone small { display: block; color: var(--muted); font-size: 11px; }
.button { background: var(--green); color: var(--white); }
.button:hover { background: var(--green-hover); }
.cartbtn, #toast .toast-action {
  border: 1px solid #cfdac7;
  border-radius: 999px;
  background: #e9efdf;
  color: #304a32;
  font: 600 13px/1.25 var(--display-font);
  letter-spacing: -.025em;
  min-height: 44px;
}
.cartbtn { padding: 6px 7px 6px 14px; }
.cartbtn svg, #toast .toast-action svg { width: 21px; height: 21px; flex: none; }
.cartbtn:hover, #toast .toast-action:hover { background: #dce7cf; border-color: #b9c9ac; }
.cartbtn:focus-visible, #toast .toast-action:focus-visible { outline: 2px solid #39583e; outline-offset: 3px; }
.cartbtn #count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 6px;
  border-radius: 999px; background: #fffdf5; color: #304a32;
  font: 500 12px/1 var(--body-font); font-variant-numeric: tabular-nums;
}
.cartbtn.bump #count { animation: cart-count .34s var(--ease); }
@keyframes cart-count { 50% { transform: scale(1.19); } }
.catalog-drop {
  position: absolute;
  top: 100%;
  left: var(--catalog-left, 12px);
  z-index: 2;
  display: grid;
  width: min(696px, calc(100% - 24px));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-in, visibility 0s linear .24s;
}
.catalog-drop.expanded { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .18s ease-out; }
.catalog-drop .catalog-panel { transform: translateY(-100%); transition: transform .24s cubic-bezier(.4,0,.7,1); }
.catalog-drop.expanded .catalog-panel { transform: translateY(0); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .catalog-drop, .catalog-drop.expanded, .catalog-drop .catalog-panel, .catalog-drop.expanded .catalog-panel { transition: none; }
}
.catalog-fold { overflow: hidden; min-height: 0; border-radius: 22px; }
.catalog-panel {
  overflow: auto; overscroll-behavior: contain;
  max-height: calc(100dvh - var(--header-height) - 12px - env(safe-area-inset-bottom));
  padding: 12px; border: 1px solid #d9dfcd; border-radius: inherit; background: #fffdf7;
}
.catalog-drop.expanded .catalog-fold { box-shadow: 0 6px 16px #283b2910, 0 22px 44px -12px #283b293d; }
.drawer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.drawer-row {
  --tile: #eaf0e2; --light: #f5f7ef;
  display: grid; align-content: start; justify-items: start; gap: 6px;
  position: relative; min-width: 0; padding: 9px 13px 12px;
  border: 1px solid transparent; border-radius: 15px;
  background: linear-gradient(130deg, var(--light), var(--tile));
  color: #2d4331; text-align: left;
  font: 500 14px/1.23 var(--body-font);
  transition: box-shadow .18s, border-color .18s;
}
.drawer-row:is([data-menu-category="0"], [data-menu-category="1"], [data-menu-category="6"]) { --light: #fbf5e7; --tile: #f2e5c9; }
.drawer-row:is([data-menu-category="3"], [data-menu-category="7"]) { --light: #faf2ec; --tile: #f0e2d9; }
.drawer-photo { display: grid; align-items: end; position: relative; }
.drawer-photo img {
  width: 76px; height: 54px; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 3px 2px #50402016); transition: transform .2s var(--ease);
}
.drawer-row[data-menu-category="8"] .drawer-photo img { mix-blend-mode: multiply; }
.drawer-name { align-self: center; }
.drawer-row[aria-current="true"] { border-color: #738a67; box-shadow: inset 0 0 0 1px #738a67; }
.drawer-row[aria-current="true"] .drawer-photo::after {
  content: "✓"; position: absolute; right: 0; bottom: 0; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%; background: #365139; color: white;
  font: 600 12px/1 var(--body-font);
}
.drawer-row:focus-visible, .drawer-links a:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
@media (hover: hover) {
  .drawer-row:hover { border-color: #a4b49b; box-shadow: 0 3px 10px #3e492912; }
  .drawer-row:hover img { transform: translateY(-2px) rotate(-3deg); }
  .drawer-links a:hover { background: #e8eddf; }
}
.drawer-links {
  display: flex; align-items: center; gap: 4px; margin-top: 11px; padding-top: 7px;
  border-top: 1px solid #e4e6d9;
}
.drawer-links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px;
  padding: 5px 10px; border-radius: 999px; color: #3e573e; text-decoration: none; font-size: 13px;
}
.drawer-links a:last-child { margin-left: auto; background: #f0f3e8; }
.drawer-links svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 650px) {
  .catalog-panel {
    max-height: min(50dvh, calc(100dvh - var(--header-height) - 12px - env(safe-area-inset-bottom)));
    padding: 9px;
  }
  .drawer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .drawer-row { grid-template-columns: 34px minmax(0, 1fr); align-items: center; align-content: center; gap: 7px; min-height: 55px; padding: 6px 7px; font-size: 13px; }
  .drawer-photo img { width: 34px; height: 36px; object-position: center; }
  .drawer-row[aria-current="true"] .drawer-photo::after { right: -3px; bottom: -2px; width: 14px; height: 14px; font-size: 10px; }
  .drawer-links { margin-top: 7px; padding-top: 4px; }
  .drawer-links a { min-height: 44px; padding-inline: 8px; }
  .drawer-links a:last-child { width: 44px; }
  .drawer-links a:last-child span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) {
  .drawer-row { grid-template-columns: 27px minmax(0, 1fr); gap: 5px; padding-inline: 5px; }
  .drawer-photo img { width: 27px; }
}

.showcase { position: relative; isolation: isolate; margin-top: clamp(16px, 2.5vw, 35px); border-radius: 20px; overflow: hidden; background: #edf0e7; }
.slides { display: grid; }
.showcase .slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: clamp(365px, 35vw, 478px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #e9efe4;
  transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.showcase .slide:nth-child(2) { background: #f1ebdf; --hero-focus: 50% 61%; }
.showcase .slide:nth-child(3) { background: #eaf0e7; --hero-focus: 56% 44%; }
.showcase .slide:nth-child(4) { background: #f1ebe1; --hero-focus: 50% 64%; }
.showcase .slide.is-active { z-index: 1; visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.slidecopy { align-self: center; padding: 34px clamp(23px, 4.8vw, 72px) 67px; }
.showcase h1, .showcase h2 { max-width: 12ch; font-size: clamp(34px, 4.6vw, 67px); text-wrap: balance; }
.slidecopy p { margin: 13px 0 24px; color: #4e5b4c; font-size: 14px; }
.slidecopy .button { padding-inline: 16px; }
.slidecopy .button span { transition: transform .22s var(--ease); }
.slidecopy .button:hover span { transform: translateX(3px); }
.slidevisual { position: relative; min-width: 0; }
.slidevisual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, center); }
.hero-controls {
  position: absolute;
  z-index: 2;
  left: clamp(23px, 4.8vw, 72px);
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--green);
}
.hero-control, #slide-pause, .slidedots button, .round-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  min-width: 34px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: transparent;
}
.hero-control { font-size: 24px; line-height: 1; }
#slide-pause { font-size: 12px; }
.hero-control:hover, #slide-pause:hover, .round-arrow:hover { background: #36513914; }
.slidedots { display: flex; align-items: center; }
.slidedots button { min-width: 19px; }
.slidedots button::after { content: ""; width: 5px; height: 5px; background: #829580; border-radius: 6px; transition: width .24s, background-color .24s; }
.slidedots button.active::after { width: 14px; background: var(--green); }

.category-section, #catalog, #delivery { padding-top: clamp(41px, 6vw, 81px); }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 19px; }
.category-section .heading h2 { font-size: clamp(25px, 3vw, 38px); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 14px);
}
.categorytile {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: clamp(126px, 12vw, 165px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  background: var(--tile-surface, #edf1e8);
  transition: border-color .24s;
}
.categorytile:nth-child(4n + 2), .categorytile:nth-child(5) { --tile-surface: #f2ebdd; }
.categorytile:nth-child(4n + 3), .categorytile:nth-child(8) { --tile-surface: #ecefeb; }
.categorytile:hover { border-color: #c3cdbb; }
.categorytile > span {
  position: absolute;
  inset: 18px 36px auto 14px;
  z-index: 1;
  font-size: clamp(15px, 1.38vw, 17px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.categorytile > img { mix-blend-mode: multiply; position: absolute; right: 6px; bottom: 6px; width: 63%; height: 46%; object-fit: contain; object-position: right bottom; transform-origin: right bottom; transition: transform .35s var(--ease); }
.categorytile:hover > img { transform: scale(1.04); }
.categorytile > b { position: absolute; bottom: 12px; left: 14px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #344e3426; border-radius: 50%; color: var(--green); font-weight: 400; font-size: 14px; transition: transform .24s var(--ease); }
.categorytile:hover > b { transform: translateX(3px); }
.categorytile::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  width: 39px;
  height: 33px;
  background: var(--maslenka-art) no-repeat left 0 top -15px / 56px auto;
  clip-path: polygon(0 0, 100% 0, 100% 67%, 88% 88%, 64% 100%, 0 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateX(44px) rotate(-102deg);
  transition: transform .62s var(--ease), opacity .42s ease;
}
.categorytile:focus-visible { outline-offset: -3px; }
.categorytile:focus-visible::after { opacity: 1; transform: translateX(0) rotate(-72deg); }
@media (hover: hover) { .categorytile:hover::after { opacity: 1; transform: translateX(0) rotate(-72deg); } }

#catalog .heading { margin-bottom: 9px; }
.search, .catalog-tools select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}
.search { width: min(268px, 50%); font-size: 13px; }
.catalog-note { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.catalog-note summary { width: fit-content; padding: 4px 0; }
.catalog-note p { max-width: 72ch; margin: 6px 0; }
.exportbtn { padding: 0; border: 0; background: none; color: var(--green); text-decoration: underline; }
.catalog-layout { display: grid; grid-template-columns: clamp(165px, 17vw, 215px) minmax(0, 1fr); gap: clamp(15px, 2.55vw, 34px); align-items: start; }
.catalog-sidebar { position: sticky; top: calc(var(--header-height) + 13px); max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; scrollbar-width: thin; }
.catalog-groups > summary { display: none; }
.catalog-group-heading { padding: 0 9px 5px; color: var(--muted); font-size: 12px; }
.filters { display: grid; gap: 2px; }
.filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 9px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  transition: background-color .18s, color .18s;
}
.filter:hover { background: #edf1e8; }
.filter.active { background: #e4ede1; color: #263f2b; font-weight: 500; }
.catalog-filter-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.catalog-tools select { max-width: 100%; padding: 6px 8px; }
.catalog-stock { display: inline-flex; align-items: center; gap: 5px; margin-inline: 4px; cursor: pointer; }
.catalog-stock input { margin: 0; accent-color: var(--green); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.25vw, 18px); }
.card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #e5e5da; border-radius: var(--radius); background: #fffefa;
  transition: border-color .2s, box-shadow .2s;
}
@media (hover: hover) {
  .card:hover { border-color: #c7d1be; box-shadow: 0 4px 20px #2839230d; }
}
.productpic { position: relative; width: 100%; aspect-ratio: 1.35; padding: 0; border: 0; background: #f6f6ef; overflow: hidden; }
.productpic img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.productpic:hover img { transform: scale(1.035); }
.photo-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.cardbody { display: flex; flex: 1; flex-direction: column; padding: 13px clamp(11px, 1.05vw, 16px) 14px; }
.producttitle { display: block; overflow-wrap: anywhere; hyphens: auto; border: 0; background: none; padding: 0; text-align: left; font: 500 15px/1.4 var(--body-font); letter-spacing: -.015em; }
.producttitle:focus-visible, .productpic:focus-visible { outline-offset: -2px; }
.producttitle:hover { text-decoration: underline; text-underline-offset: 3px; }
.cardbody .price { margin-top: auto; padding-top: 12px; }
.price { line-height: 1.25; color: #293d2b; font-size: clamp(19px, 1.65vw, 23px); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.stockhint { color: var(--muted); font-size: 11px; line-height: 1.35; }
.stockhint { margin-top: 3px; }
.stockhint:empty { display: none; }
.cardbody > [data-quantity] { margin-top: 9px; }
.add, .catalog-more button, .basket-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  transition: background-color .18s, border-color .18s;
}
/* Purchase controls shared by the product grid and detail sheet. */
[data-quantity] {
  --purchase-ink: #2c4c37;
  --purchase-line: #cedcc4;
  --purchase-paper: #f0f4eb;
  container-type: inline-size;
}
.add {
  width: 100%; min-height: 44px; padding: 5px 12px; gap: 8px;
  border: 1px solid var(--purchase-line); border-radius: 999px;
  background: #e3ecd9; color: var(--purchase-ink);
  font-size: 14px; font-weight: 500; line-height: 1.25;
  transition: background .18s, border-color .18s, transform .18s;
}
.add svg {
  box-sizing: content-box; width: 17px; height: 17px; padding: 5px;
  flex: none; border-radius: 50%; background: #f9fbf4;
}
a.add { text-align: center; text-decoration: none; }
.add-minimum { font-size: 12px; color: #4d664d; white-space: nowrap; }
.add:disabled { border-color: var(--line); background: #f3f3ec; color: var(--muted); }
.basket-copy:disabled { opacity: .6; }
.catalog-more button:hover, .basket-copy:hover { border-color: #c4d2be; background: #e2ecdf; }
.quantity-stepper {
  padding: 4px 5px 0; border: 1px solid var(--purchase-line); border-radius: 17px;
  background: var(--purchase-paper); color: var(--purchase-ink);
}
.weight-picker {
  padding: 1px 7px 11px; border: 1px solid #e2dfcc; border-radius: 17px;
  background: linear-gradient(145deg, #fcfaf1, #f4f2e7); color: var(--purchase-ink);
}
.wheel-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 4px;
  padding-left: 3px; color: #565b48; font-size: 12px; font-weight: 500;
}
.weight-remove {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  padding: 0; border: 1px solid #dcdccd; border-radius: 50%; color: #505b4b; background: #faf9f2;
}
.weight-remove svg { width: 20px; height: 20px; }
.cheese-wheel {
  position: relative; width: min(85%, 138px); margin: 0 auto;
  padding-bottom: 8.5px; isolation: isolate;
}
.cheese-wheel::before {
  content: ""; position: absolute; inset: 6px 0 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(#c88b35 0deg var(--filled-angle), #957d5530 var(--filled-angle) 360deg);
  box-shadow: inset 0 -2px 2px #846f4422, 0 3px 4px -3px #7e542a55;
}
.wheel-face {
  display: grid; grid-template: repeat(2, minmax(0,1fr)) / repeat(2, minmax(0,1fr));
  width: 100%; aspect-ratio: 1.48; min-height: 75px; border-radius: 50%; overflow: hidden;
  border: 1px solid #9f875061; background: transparent;
}
.cheese-sector {
  position: relative; isolation: isolate; display: grid; place-items: center;
  padding: 0; min-width: 0; min-height: 0; border: 0; border-radius: 0;
  background: #fffefa8c; color: #504b40;
  font: 500 12px/1.1 var(--body-font); font-variant-numeric: tabular-nums; touch-action: manipulation;
}
.cheese-sector::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 4px 2.6px at 73% 78%, #cb8f30 48%, #ffe397 86%, transparent 100%),
    radial-gradient(ellipse 2.8px 1.9px at 26% 15%, #e5a547 52%, #ffeab3 86%, transparent 100%),
    linear-gradient(145deg, #ffe99d, #f3bc4a);
  opacity: .12; filter: saturate(.15);
  transition: opacity .15s ease-out;
}
.cheese-sector[data-filled="true"] { color: #493712; }
.cheese-sector[data-filled="true"]::before { opacity: 1; filter: none; }
.cheese-sector:nth-child(1) { grid-area: 1 / 2; padding: 10% 15% 0 0; border-left: 1px solid #ab945461; border-bottom: 1px solid #ab945461; }
.cheese-sector:nth-child(2) { grid-area: 2 / 2; padding: 0 15% 10% 0; border-left: 1px solid #ab945461; }
.cheese-sector:nth-child(3) { grid-area: 2 / 1; padding: 0 0 10% 15%; }
.cheese-sector:nth-child(4) { grid-area: 1 / 1; padding: 10% 0 0 15%; border-bottom: 1px solid #ab945461; }
.cheese-sector span { padding: 2px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.cheese-sector[aria-pressed="true"] span { font-weight: 700; }
.cheese-sector:focus-visible { outline: none; }
.cheese-sector:focus-visible span { outline: 2px solid #28452e; outline-offset: 2px; }
@media (hover: hover) {
  .weight-picker:has(.cheese-sector[aria-pressed="true"]) .weight-remove:hover,
  .quantity-row button[data-adjust="-1"]:hover { background: #f5d9d5; }
}
.quantity-row {
  display: grid; grid-template-columns: minmax(32px, 44px) minmax(max-content, 1fr) minmax(32px, 44px);
  gap: 3px; align-items: center; text-align: center;
}
.quantity-row button {
  position: relative; width: 100%; height: 42px; padding: 0;
  border: 1px solid #d3ddcb; border-radius: 50%;
  background: #fffef9; color: var(--purchase-ink); font-size: 0;
  transition: background .18s, transform .18s; touch-action: manipulation;
}
.weight-picker:has(.cheese-sector[aria-pressed="true"]) .weight-remove,
.quantity-row button[data-adjust="-1"] {
  border: 1px solid #ecc8c3;
  background: #fae6e3;
  color: #86483f;
}
.quantity-row button::before, .quantity-row button[data-adjust="1"]::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px;
  border-radius: 2px; background: currentColor; transform: translate(-50%, -50%);
}
.quantity-row button[data-adjust="1"]::after { transform: translate(-50%, -50%) rotate(90deg); }
.quantity-row button[data-adjust="1"] { border-color: transparent; background: var(--purchase-ink); color: #fffefa; }
.quantity-row button[aria-disabled="true"] { opacity: .42; }
.quantity-value { color: var(--purchase-ink); font-size: 15px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quantity-range {
  display: block; width: calc(100% - 12px); height: 32px; margin: 0 auto;
  padding: 0; appearance: none; -webkit-appearance: none; background: transparent;
  accent-color: var(--purchase-ink); border-radius: 12px; cursor: pointer; touch-action: pan-y;
}
.quantity-range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 8px;
  background: linear-gradient(to right, #648360 var(--range-fill), #cbd7c2 var(--range-fill));
}
.quantity-range::-moz-range-track { height: 5px; border-radius: 8px; background: #cbd7c2; }
.quantity-range::-moz-range-progress { height: 5px; border-radius: 8px; background: #648360; }
.quantity-range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; box-sizing: border-box;
  width: 17px; height: 17px; margin-top: -6px;
  border: 2px solid #49674b; border-radius: 50%; background: #fffef9; box-shadow: 0 1px 3px #25432a25;
}
.quantity-range::-moz-range-thumb {
  box-sizing: border-box; width: 17px; height: 17px; border: 2px solid #49674b;
  border-radius: 50%; background: #fffef9; box-shadow: 0 1px 3px #25432a25;
}
.add:focus-visible, .weight-picker .weight-remove:focus-visible, .quantity-range:focus-visible,
.quantity-row button:focus-visible { outline: 2px solid var(--purchase-ink); outline-offset: 1px; }
@media (hover: hover) {
  .add:hover:not(:disabled) { border-color: #a8bda0; background: #d5e4c9; }
  .quantity-row button[data-adjust="1"]:hover:not([aria-disabled="true"]) { background: #203f2c; }
}
.add:active:not(:disabled), .weight-picker button:active, .quantity-row button:active:not([aria-disabled="true"]) {
  transform: scale(.98);
}
@container (max-width: 185px) {
  .add { gap: 5px; padding-inline: 6px; font-size: 13px; }
  .add svg { padding: 3px; }
  .add-minimum { font-size: 11px; }
}
@container (max-width: 155px) {
  .add:has(.add-minimum) { flex-wrap: wrap; row-gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .add, .quantity-row button, .weight-picker button, .cheese-sector::before { transition: none; }
  .add:active:not(:disabled), .quantity-row button:active:not([aria-disabled="true"]), .weight-picker button:active { transform: none; }
}
.catalog-more { display: flex; align-items: center; flex-direction: column; gap: 7px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.catalog-more button { min-height: 44px; padding-inline: 24px; border-radius: 999px; color: var(--green); }
.catalog-empty { grid-column: 1 / -1; padding: 30px 12px; text-align: center; }
.catalog-empty .filter { display: inline-grid; margin-top: 8px; background: var(--sage); }

#delivery { margin-top: clamp(36px, 6vw, 72px); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.step { padding: clamp(14px, 1.8vw, 26px); background: #f4f5ed; }
.step svg { display: block; width: 28px; height: 28px; color: #536f50; margin-bottom: 12px; }
.step h3 { font-weight: 500; font-size: 14px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 12px; }
#questions { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: clamp(15px, 3vw, 45px); margin: clamp(36px, 6vw, 74px) 0; }
#questions h2 { font-size: clamp(25px, 3vw, 39px); }
#questions details { border-top: 1px solid var(--line); font-size: 13px; }
#questions details:last-child { border-bottom: 1px solid var(--line); }
#questions summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 2px; font-size: 14px; font-weight: 500; list-style: none; }
#questions summary::-webkit-details-marker { display: none; }
#questions summary::after { content: ""; width: 6px; height: 6px; flex: none; margin-inline-end: 4px; border: solid #60735c; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
#questions details[open] summary::after { transform: rotate(225deg); }
#questions details p { padding: 0 0 12px; color: var(--muted); }
footer { border-top: 1px solid var(--line); background: #f1f3ea; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 105px; padding-block: 14px; }
.foot .logo { font-size: 21px; }
.foot .logo img { width: 33px; height: 38px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot small { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: 12px; }

dialog { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
dialog::backdrop { background: #192d1f5c; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(100%, 456px); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border-radius: 14px 0 0 14px; }
.drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; animation: drawer-in .28s var(--ease) both; }
.drawer.closing { animation: drawer-out .24s var(--ease) both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: #edf1e8; font-size: 22px; }
.detail-dialog .close { border-radius: 50%; }
.close:hover { background: #e1e9dc; }
.drawer-close { float: right; }
.basket-head { padding: 20px 19px 14px; border-bottom: 1px solid var(--line); }
.basket-head h2 { font-size: 32px; }
.sub { color: var(--muted); font-size: 12px; margin-top: 8px; }
.basket-scroll { overflow: auto; padding: 0 19px; overscroll-behavior: contain; }
.selection { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.basket-thumb { width: 56px; height: 59px; border-radius: 8px; padding: 4px; background: #fff; object-fit: contain; }
.basket-line b { font-size: 13px; font-weight: 500; }
.basket-line small { display: block; color: var(--muted); font-size: 11px; }
.basket-line-bottom, .quantity, .carttotal, .dialogactions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.basket-line-bottom, .carttotal { justify-content: space-between; }
.basket-line-bottom { margin-top: 7px; font-size: 13px; }
.quantity button { min-width: 31px; min-height: 31px; padding: 0; border: 0; border-radius: 6px; background: var(--sage); }
.quantity .weight-disclosure { display: inline-flex; align-items: center; gap: 5px; padding: 0 4px; background: transparent; }
.weight-disclosure::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.weight-disclosure[aria-expanded="true"]::after { transform: rotate(225deg); }
.basket-weight-panel { margin-top: 8px; }
.quantity button[aria-disabled="true"] { opacity: .45; }
.basket-remove { padding: 3px 0; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; }
.basket-undo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 5px 16px; border-top: 1px solid var(--line); background: #edf2e7;
}
.basket-undo-message { font-size: 13px; line-height: 1.4; color: #344b36; overflow-wrap: anywhere; }
.basket-undo button {
  flex: none; min-height: 44px; padding: 4px 12px; border: 0;
  background: transparent; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.basket-footer { padding: 13px 19px max(13px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.carttotal b { font-size: 23px; font-weight: 500; }
.dialogactions { margin-top: 9px; }
#status { margin-top: 6px; font-size: 12px; }
#status:empty { margin: 0; }
#copytext { width: 100%; min-height: 76px; }
.basket-empty { padding: 28px 0; text-align: center; }
.basket-empty .button { margin-top: 8px; }
.detail-dialog {
  width: min(700px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; overflow: hidden; border-radius: 23px; background: #fffdf8;
}
.detail-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
#detail-body { display: contents; }
.detail-dialog .close {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: #fffefa;
}
.detail-scroll {
  grid-row: 1; min-width: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start;
  gap: 20px; padding: 18px;
}
.detail-photo { position: relative; display: grid; place-items: center; min-width: 0; border-radius: 15px; background: #f4f3eb; }
.detailimage { width: 100%; height: clamp(165px, 27dvh, 222px); padding: 14px; object-fit: contain; mix-blend-mode: multiply; }
.detail-photo:has(img[hidden]) { min-height: 110px; }
.detail-copy { min-width: 0; }
.detail-dialog h2 { font-size: clamp(21px, 2.2vw, 29px); margin: 8px 0; overflow-wrap: anywhere; }
.detail-copy > p { font-size: 14px; line-height: 1.5; margin: 7px 0; }
.detail-copy .sub { font-size: 13px; }
.detail-purchase {
  grid-row: 3; display: grid; grid-template-columns: minmax(0,1fr) minmax(185px, .85fr);
  align-items: center; gap: 8px 20px; padding: 14px 18px;
  background: #f8f8f0; border-top: 1px solid var(--line);
}
.product-group { min-height: 28px; padding-right: 38px; color: var(--muted); font-size: 12px; }
.detail-dialog > #toast {
  position: static; grid-row: 2; grid-column: 1; width: auto; max-width: none;
  margin: 0 12px 5px; gap: 8px; box-shadow: none;
}


@media (max-width: 1190px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 950px) { .phone { display: none; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  :root { --gutter: 15px; --header-height: 105px; }
  header nav { display: grid; grid-template-columns: 1fr auto auto; gap: 5px 6px; height: auto; min-height: var(--header-height); padding-block: 6px; }
  .logo { font-size: 21px; gap: 6px; }
  header .logo { gap: 9px; }
  header .brand-mascot { width: 43px; }
  .logo img { width: 34px; height: 38px; }
  .headersearch { grid-column: 1 / -1; grid-row: 2; min-height: 40px; }
  .headersearch input, .search { font-size: 16px; }
  .catalog-button { min-height: 44px; padding-inline: 11px; gap: 6px; font-size: 13px; }
  .cartbtn { min-height: 38px; padding: 5px 8px; gap: 5px; font-size: 12px; }
  .cartbtn { min-height: 44px; padding-inline: 11px 6px; }
  .catalog-button svg { width: 16px; height: 16px; }
  .catalog-chevron, .cart-label { display: none; }
  .showcase { border-radius: 15px; }
  .showcase .slide { grid-template-columns: 1fr; grid-template-rows: minmax(164px, auto) 186px; min-height: 350px; }
  .slidecopy { padding: 19px 18px 16px; }
  .showcase h1, .showcase h2 { font-size: clamp(28px, 8.5vw, 43px); max-width: 15ch; }
  .slidecopy p { font-size: 13px; margin: 6px 0 10px; }
  .slidecopy .button { min-height: 38px; }
  .hero-controls { left: auto; right: 8px; bottom: 8px; padding: 0 3px; background: #fffefadc; border-radius: 7px; }
  .hero-control, #slide-pause { min-width: 30px; }
  .category-section, #catalog, #delivery { padding-top: 34px; }
  .categorytile { height: auto; min-height: 112px; display: grid; grid-template-rows: 1fr auto; padding: 9px 4px 5px; border-radius: 13px; }
  .categorytile > span { position: static; align-self: start; text-align: center; font-size: clamp(11px, 3vw, 15px); line-height: 1.18; }
  .categorytile > img { position: static; justify-self: center; width: 100%; height: clamp(43px, 12vw, 68px); object-position: center; }
  .categorytile > b { display: none; }
  .categorytile::after { width: 36px; height: 30px; top: auto; bottom: 1px; background-position: left 0 top -14px; background-size: 52px auto; }
  #catalog .heading { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .catalog-layout { grid-template-columns: 1fr; gap: 9px; }
  .catalog-sidebar { position: static; max-height: none; overflow: visible; }
  .catalog-groups { border-block: 1px solid var(--line); padding: 5px 0; }
  .catalog-groups > summary { display: list-item; padding: 5px 2px; font-size: 13px; }
  .catalog-group-heading { display: none; }
  .catalog-tools { gap: 5px; }
  .catalog-tools select { font-size: 11px; }
  .catalog-stock { font-size: 11px; }
  .grid { align-items: start; gap: 10px 7px; }
  .card { border-radius: 14px; }
  .cardbody { padding: 9px clamp(7px, 2.15vw, 13px) 10px; }
  .producttitle { font-size: 14px; line-height: 1.35; }
  .price small { font-size: 10px; }
  .steps { grid-template-columns: 1fr; margin-top: 13px; }
  .step { display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 12px; }
  .step svg { width: 24px; height: 24px; margin: 0; }
  #questions { grid-template-columns: 1fr; gap: 11px; }
  .foot { align-items: start; flex-wrap: wrap; justify-content: start; }
  .drawer { border-radius: 0; }
}
@media (max-width: 340px) {
  header nav { column-gap: 4px; }
  header .catalog-button { padding-inline: 7px; }
  header .cartbtn { padding-inline: 5px; }
}
@media (max-width: 355px) {
  .catalog-button svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.productdesc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.stockhint:empty { display: none; }
@media (max-width: 700px) { .productdesc { display: none; } }

.product-facts { margin-top: 12px; border-top: 1px solid var(--line); }
.product-facts summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-block: 10px; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--green); list-style: none;
}
.product-facts summary::-webkit-details-marker { display: none; }
.product-facts summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.product-facts[open] summary::after { transform: rotate(225deg); }
.product-maker {
  display: grid;
  grid-template-columns: minmax(98px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 12px;
  line-height: 1.4;
  font-size: 13px;
}
.product-maker dt { color: var(--muted); }
.product-maker dd { margin: 0; }
.product-facts h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 7px;
}
.product-nutrition {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
  gap: 5px;
  margin: 0;
}
.product-nutrition > div { min-width: 0; padding: 6px 6px 7px; background: var(--sage); border-radius: 7px; }
.product-nutrition dt { font-size: 10px; color: var(--muted); }
.product-nutrition dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.product-facts .nutrition-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
@media (min-width: 701px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* Product details and compact homepage banner */
.showcase .slide { min-height: clamp(299px, 28.7vw, 392px); }
.category-section { padding-top: clamp(23px, 3.2vw, 43px); }
@media (max-width: 700px) {
  .showcase .slide { grid-template-rows: minmax(145px, auto) 142px; min-height: 287px; }
  .category-section { padding-top: 22px; }
}
.detail-dialog .product-nutrition > div {
  background: #f5efe3;
  box-shadow: inset 0 0 0 1px #eae1cf;
}
.detail-dialog .product-nutrition dt { color: #615b4e; }
.detail-dialog .product-nutrition dd { color: #302f25; }
.detail-dialog .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
}
.detail-dialog .price [data-cents] {
  font-size: 1.12em;
  font-weight: 600;
  line-height: 1.08;
  color: #233a26;
}
.detail-dialog .price small {
  padding: 3px 8px;
  border-radius: 99px;
  background: #e8efe3;
  color: #3d573a;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .detail-dialog { width: min(100%, 480px); max-width: 100%; margin: auto auto 0; border-radius: 22px 22px 0 0; }
  .detail-scroll { display: block; padding: 14px 16px 8px; }
  .detailimage { height: min(24dvh, 165px); }
  .detail-copy { padding-top: 9px; }
  .detail-copy .product-group { min-height: 0; }
  .detail-dialog h2 { font-size: 22px; line-height: 1.16; }
  .detail-purchase { grid-template-columns: minmax(0, 1fr); padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  .detail-purchase .weight-remove { min-height: 38px; }
}
@media (prefers-reduced-motion: no-preference) {
  .detail-dialog[open] { animation: detail-in .19s ease-out; }
  @keyframes detail-in { from { opacity: 0; transform: translateY(7px); } }
}

#toast {
  position: fixed; inset: auto 12px calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box; width: max-content; max-width: min(480px, calc(100% - 24px)); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px;
  background: #fffdf7; color: #283b2b; border: 1px solid #d8dfcf; border-radius: 18px;
  box-shadow: 0 6px 30px #22352026; z-index: 1000; animation: cart-toast-in .2s ease-out; transition: opacity .32s ease-out;
}
#toast.is-fading { opacity: 0; }
#toast[hidden], #toast .toast-action[hidden] { display: none; }
#toast .toast-copy { display: grid; gap: 4px; min-width: 0; text-align: left; }
#toast-product { font: 500 15px/1.4 var(--body-font); letter-spacing: -.015em; overflow-wrap: anywhere; }
#toast-message { color: #50624e; font-size: 12px; line-height: 1.4; }
#toast .toast-action {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 15px; cursor: pointer; white-space: nowrap;
}
@keyframes cart-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  #toast, .cardbody .add, .detail-purchase .add, .weight-picker button { transition: none; animation: none; }
}

/* Compact checkout from the basket. */
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-actions button { min-height: 42px; width: 100%; font-size: 12px; line-height: 1.3; }
@media (max-width: 450px) { .order-actions { grid-template-columns: 1fr; } }

.drawer { background: #fbfaf5; color: #29382a; }
.basket-head { padding: 24px 22px 16px; background: #f0f3e8; }
.basket-head h2 { font-family: var(--display-font); letter-spacing: -.045em; }
.basket-scroll { padding: 6px 16px; }
.selection { margin: 10px 0; padding: 14px; border: 1px solid #e3e5d9; border-radius: 18px; background: #fffefa; }
.basket-thumb { background: #f6f5ee; border-radius: 12px; }
.basket-line b { font-size: 14px; line-height: 1.35; }
.basket-line-bottom strong, .carttotal b { color: #2b422e; font-variant-numeric: tabular-nums; }
.quantity { border-radius: 999px; background: #eff3e8; }
.quantity button { min-height: 36px; min-width: 36px; border-radius: 50%; }
.basket-footer { padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
.basket-footer .button, .order-actions .basket-copy { border-radius: 999px; min-height: 44px; }
.order-actions .basket-copy { border: 1px solid #cfdac7; background: #edf2e5; color: #304a32; }
.contact-icon { width: 24px; height: 24px; flex: none; }
.contact-icon.call { color: #52664b; }
.contact-icon.telegram { color: #1981aa; }
.contact-icon.whatsapp { color: #25804b; }
.contact-icon.max { color: #6155c6; }
.checkout-close, .drawer-close { border-radius: 50%; background: #fffefa; }

/* Order details and the accompanying receipt share one reading order on mobile. */
.checkout-dialog {
  width: min(800px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #e7e7db;
  border-radius: 28px;
  box-shadow: 0 24px 80px #20342438;
  overflow: auto;
  overscroll-behavior: contain;
}
.checkout-dialog::backdrop { background: #1b2a20a3; backdrop-filter: blur(4px); }
.checkout-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border: 1px solid var(--line); }
#checkout-form {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  grid-template-areas: "receipt heading" "receipt fields";
  gap: 16px 30px;
  padding: 18px 30px 18px 18px;
}
.checkout-heading { grid-area: heading; padding: 15px 22px 0 0; }
.checkout-dialog h2 { margin: 0; color: var(--green); font: 500 clamp(24px, 3vw, 32px)/1.15 var(--display-font); letter-spacing: -.05em; }
.checkout-heading h2:focus, .checkout-success h2:focus { outline: none; }
.checkout-heading p, .checkout-success p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.checkout-receipt { grid-area: receipt; display: flex; flex-direction: column; justify-content: space-between; background: #edf1e5; border-radius: 18px; overflow: hidden; }
.receipt-body { padding: 25px 18px 18px; }
.receipt-label { color: #4c614a; font-size: 13px; }
#checkout-total { display: block; margin: 2px 0 14px; color: #29452d; font-size: clamp(22px, 3vw, 31px); line-height: 1.28; font-variant-numeric: tabular-nums; letter-spacing: -.055em; overflow-wrap: anywhere; }
.receipt-details { border-top: 1px dashed #bac7b2; }
.receipt-details summary { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #345035; font-size: 13px; font-weight: 500; list-style: none; }
.receipt-details summary::-webkit-details-marker { display: none; }
.checkout-edit, .checkout-call {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: var(--green);
  font: 500 13px/1.35 var(--body-font); text-decoration: underline; text-underline-offset: 3px;
}
.receipt-details summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.receipt-details[open] summary::after { transform: rotate(225deg); }
#checkout-items { padding: 1px 7px; border-radius: 20px; background: #dce6d3; font-size: 12px; }
#checkout-lines { list-style: none; padding: 0; margin: 0; max-height: 230px; overflow: auto; font-size: 13px; }
#checkout-lines li { padding: 8px 0; border-top: 1px solid #d6dfce; }
#checkout-lines small { display: block; color: var(--muted); }
.receipt-photo { display: block; width: 100%; height: clamp(185px, 34vh, 290px); object-fit: cover; object-position: 60% center; }
.checkout-fields { grid-area: fields; display: grid; gap: 13px; margin-bottom: 8px; }
.checkout-inputs { display: grid; gap: inherit; min-width: 0; padding: 0; margin: 0; border: 0; }
.checkout-field { display: grid; gap: 5px; }
.checkout-field, .checkout-methods legend { color: #354b37; font-weight: 500; font-size: 13px; }
.checkout-field small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.checkout-field input, .checkout-field textarea, .checkout-phone-box {
  width: 100%; min-width: 0; border: 1px solid #d9dfd2; border-radius: 13px;
  background: #fffefa; color: var(--ink);
}
.checkout-field input, .checkout-field textarea { padding: 10px 13px; min-height: 44px; font: 400 16px/1.4 var(--body-font); }
.checkout-field textarea { resize: vertical; }
.checkout-field input:focus, .checkout-field textarea:focus, .checkout-phone-box:focus-within { outline: 2px solid #688465; outline-offset: 1px; }
.checkout-phone-box { display: flex; align-items: center; }
.checkout-prefix { flex: none; padding: 0 12px; border-right: 1px solid var(--line); color: var(--green); font-size: 16px; }
.checkout-phone-box input { border: 0; background: transparent; }
.checkout-phone-box input:focus { outline: none; }
.checkout-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; padding: 0; margin: 0; border: 0; }
.checkout-methods legend { margin-bottom: 6px; padding: 0; }
.checkout-methods label { position: relative; cursor: pointer; }
.checkout-methods input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkout-methods span { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 57px; background: #fffefa; border: 1px solid #dce2d7; border-radius: 13px; font-size: 12px; }
.checkout-methods input:checked + span { background: #e9f0e3; border-color: #688365; color: var(--green); font-weight: 600; }
.checkout-methods input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.checkout-bottom { border-top: 1px solid var(--line); padding-top: 14px; }
.checkout-submit { width: 100%; min-height: 46px; border-radius: 999px; }
.checkout-submit:disabled { opacity: .65; cursor: wait; }
#checkout-status:empty { display: none; }
#checkout-status { color: #85442d; margin: 0 0 10px; font-size: 14px; }
.checkout-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.checkout-success { padding: 50px 24px 36px; text-align: center; background: linear-gradient(#edf2e6, #fffdf8); }
.mascot-greeting {
  display: grid; place-items: center; position: relative;
  width: 115px; height: 105px; margin: 0 auto 20px; border-radius: 50%;
  background: radial-gradient(ellipse, #fff4cf 0%, #fff7dcaa 48%, transparent 72%);
}
.mascot-greeting::before {
  content: ""; position: absolute; bottom: 7px; width: 65px; height: 6px;
  border-radius: 50%; background: #61704a26; filter: blur(2px);
}
.mascot-greeting .brand-mascot { width: 86px; }
.checkout-success .button { margin-top: 20px; border-radius: 999px; }
.checkout-dialog:has(.checkout-success:not([hidden])) { max-width: 440px; }
@media (max-width: 650px) {
  .checkout-dialog { width: min(100%, 480px); max-width: 100%; max-height: calc(100dvh - 12px); margin: auto auto 0; border-radius: 23px 23px 0 0; }
  #checkout-form { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "receipt" "fields"; gap: 14px; padding: 22px 18px max(18px, env(safe-area-inset-bottom)); }
  .checkout-heading { padding: 0 36px 0 0; }
  .checkout-heading p { font-size: 13px; }
  .receipt-body { padding: 10px 14px 0; }
  .receipt-label { font-size: 12px; }
  #checkout-total { display: inline; margin: 0 0 0 6px; font-size: 18px; white-space: nowrap; }
  .receipt-details { margin-top: 6px; }
  .receipt-photo { display: none; }
  .checkout-fields { margin: 0; }
}
@media (max-width: 349px) {
  .checkout-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.store-intro {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: clamp(18px, 3vw, 38px);
}
.store-intro h1 {
  max-width: 33ch; font-size: clamp(23px, 2.8vw, 38px); line-height: 1.18;
  letter-spacing: -.05em; text-wrap: balance; color: #304a32;
}
.store-intro + .showcase { margin-top: clamp(14px, 2vw, 24px); }
@media (max-width: 620px) {
  .store-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
}

#catalog.category-selected { padding-top: 12px; }
.category-selected .heading h2 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; }

#catalog > .heading[hidden] { display: none; }
@media (max-width: 700px) {
  #catalog .catalog-sidebar { display: none; }
}

#street-suggestions {
  max-height: 176px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
}
#street-suggestions li {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
#street-suggestions li:hover, #street-suggestions li[aria-selected="true"] { background: #e9f0e3; }
#street-suggestions small { margin: 0; font-size: 12px; }

.selection.no-image, .detail-scroll.no-image { grid-template-columns: minmax(0, 1fr); }
.search-row.no-image { grid-template-columns: minmax(0, 1fr) auto; }
.search-row.no-image::before { left: 10px; }
