:root {
  color-scheme: light;
  --ink: #18211d;
  --muted: #6c756f;
  --line: #e3e7e3;
  --surface: #ffffff;
  --canvas: #f4f5f1;
  --soft: #eef2ec;
  --green: #173f35;
  --green-2: #236a50;
  --yellow: #f4cf3b;
  --yellow-soft: #fff6c7;
  --red: #df4c45;
  --shadow: 0 18px 55px rgba(22, 55, 42, 0.11);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: 1320px;
  font-family: Inter, Manrope, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(227, 231, 227, 0.85);
  backdrop-filter: blur(18px);
}

.header-row { height: 82px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font-size: 21px; font-weight: 900; letter-spacing: -0.04em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--yellow); transform: rotate(-3deg); }
.brand-mark svg { width: 25px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.location-pill { display: flex; align-items: center; gap: 9px; min-width: 174px; padding: 9px 12px; border: 0; border-radius: 15px; background: var(--soft); cursor: pointer; text-align: left; }
.location-pill > svg { width: 20px; fill: none; stroke: var(--green-2); stroke-width: 1.8; }
.location-pill span { display: flex; flex-direction: column; font-size: 13px; font-weight: 750; line-height: 1.15; }
.location-pill small { color: var(--muted); font-size: 10px; font-weight: 600; }
.location-pill .chevron { width: 15px; margin-left: auto; stroke: var(--muted); }

.search-box { position: relative; z-index: 5; flex: 1; min-width: 220px; }
.search-box > svg { position: absolute; top: 50%; left: 17px; width: 21px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.9; pointer-events: none; }
.search-box input { width: 100%; height: 52px; padding: 0 50px; border: 2px solid transparent; border-radius: 17px; outline: 0; background: #f1f3f0; transition: .2s ease; }
.search-box input:focus { border-color: var(--yellow); background: white; box-shadow: 0 0 0 4px rgba(244, 207, 59, .17); }
.search-box input::placeholder { color: #8e9690; }
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.search-clear { position: absolute; z-index: 2; top: 50%; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0 0 2px; transform: translateY(-50%); border: 0; border-radius: 50%; background: #dfe4df; color: #455049; cursor: pointer; font-size: 22px; line-height: 1; transition: background .16s ease, transform .16s ease; }
.search-clear[hidden] { display: none; }
.search-clear:hover { background: #d3dad4; transform: translateY(-50%) scale(1.05); }
.search-panel { position: absolute; z-index: 90; top: calc(100% + 10px); right: 0; left: 0; max-height: min(570px, calc(100dvh - 110px)); overflow: hidden; border: 1px solid rgba(215, 222, 216, .92); border-radius: 21px; background: rgba(255, 255, 255, .985); box-shadow: 0 24px 70px rgba(18, 46, 35, .2); backdrop-filter: blur(22px); }
.search-panel[hidden] { display: none; }
.search-feedback { padding: 12px 16px 9px; border-bottom: 1px solid #edf0ed; color: #778078; font-size: 11px; line-height: 1.35; }
.search-feedback b { color: var(--green); font-weight: 850; }
.search-results { max-height: min(510px, calc(100dvh - 165px)); overflow-y: auto; padding: 7px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7ddd8 transparent; }
.search-result { width: 100%; min-height: 88px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 22px; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 15px; background: transparent; cursor: pointer; text-align: left; transition: background .15s ease, transform .15s ease; }
.search-result:hover, .search-result.is-active { background: #f1f5f1; }
.search-result:active { transform: scale(.995); }
.search-result:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.search-result > svg { width: 18px; fill: none; stroke: #9aa39c; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.search-result-media { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid #edf0ed; border-radius: 13px; background: linear-gradient(145deg, #fafbf9, #f1f4f0); }
.search-result-media .image-shell { width: 100%; height: 100%; }
.search-result-media img { padding: 7px; }
.search-result.is-unavailable .search-result-media .image-shell.is-loaded img { filter: grayscale(1); opacity: .45; }
.search-result-copy { min-width: 0; display: flex; flex-direction: column; }
.search-result-meta { margin-bottom: 3px; overflow: hidden; color: #8b948d; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.search-result-copy > strong { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 720; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-result-bottom { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.search-result-bottom b { color: var(--green); font-size: 13px; font-weight: 900; }
.search-result-bottom small { color: #9a625d; font-size: 9px; font-weight: 750; }
.search-result-bottom small.is-available { color: #43805f; }
.search-message { min-height: 116px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 22px; color: var(--muted); }
.search-message-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--soft); font-size: 20px; }
.search-message > span:last-child { display: flex; flex-direction: column; }
.search-message b { color: var(--ink); font-size: 13px; }
.search-message small { max-width: 310px; margin-top: 3px; font-size: 10px; line-height: 1.4; }
.search-result-skeleton { height: 88px; display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 8px 12px; margin: 1px 0; padding: 8px; border-radius: 15px; }
.search-result-skeleton span { grid-row: 1 / 3; border-radius: 13px; }
.search-result-skeleton i, .search-result-skeleton b, .search-result-skeleton span { display: block; background: linear-gradient(100deg, #edf0ed 25%, #fafbfa 42%, #edf0ed 58%); background-size: 300% 100%; animation: shimmer 1.35s infinite; }
.search-result-skeleton i { align-self: end; width: 68%; height: 12px; border-radius: 6px; }
.search-result-skeleton b { align-self: start; width: 90%; height: 20px; border-radius: 7px; }

.header-actions { display: flex; gap: 10px; }
.icon-button { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 17px; background: var(--soft); cursor: pointer; transition: .2s ease; }
.icon-button.active, .icon-button:hover { background: var(--yellow-soft); }
.icon-button svg { width: 22px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.active svg { fill: #e65c55; stroke: #e65c55; }
.action-badge { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border: 3px solid white; border-radius: 999px; background: var(--red); color: white; font-size: 10px; font-weight: 800; }

.cart-button { height: 52px; min-width: 142px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 0; border-radius: 17px; background: var(--green); color: white; cursor: pointer; text-align: left; transition: .2s ease; }
.cart-button:hover { background: #215545; transform: translateY(-1px); }
.cart-button svg { width: 22px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-button span { display: flex; flex-direction: column; line-height: 1.15; }
.cart-button small { color: #cde0d7; font-size: 10px; }
.cart-button strong { font-size: 13px; }

.category-strip { position: sticky; z-index: 35; top: 82px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.category-list { display: flex; gap: 9px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { flex: none; height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; transition: .2s ease; }
.category-chip span { font-size: 17px; }
.category-chip:hover { border-color: #bdc8c0; background: var(--soft); }
.category-chip.active { border-color: var(--green); background: var(--green); color: white; }

.hero { min-height: 390px; margin-top: 28px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 34px; background: var(--green); color: white; box-shadow: 0 22px 70px rgba(21, 63, 52, .18); }
.hero-copy { position: relative; z-index: 2; padding: 54px 30px 52px 58px; }
.eyebrow, .section-kicker { display: block; color: #8ec8ae; font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: 13px 0 16px; font-size: clamp(38px, 4.8vw, 68px); line-height: .98; letter-spacing: -.06em; }
.hero p { max-width: 520px; margin: 0; color: #d0e0d9; font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.primary-button, .secondary-button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; cursor: pointer; font-weight: 800; transition: .2s ease; }
.primary-button { background: var(--yellow); color: var(--green); box-shadow: 0 10px 30px rgba(244, 207, 59, .18); }
.primary-button:hover { transform: translateY(-2px); background: #ffdc4f; }
.secondary-button { background: var(--soft); color: var(--green); }
.delivery-promise { display: flex; flex-direction: column; }
.delivery-promise b { color: white; font-size: 14px; }
.delivery-promise small { color: #a9c7ba; font-size: 11px; }

.hero-art { position: relative; min-height: 390px; }
.hero-art::before { content: ""; position: absolute; inset: 24px 24px 24px 0; border-radius: 28px; background: linear-gradient(135deg, #ffe064, #eeb937); transform: rotate(1deg); }
.orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(.3px); }
.orb-one { width: 120px; height: 120px; top: -25px; right: 35px; background: rgba(255, 255, 255, .25); }
.orb-two { width: 80px; height: 80px; left: 5px; bottom: 8px; background: rgba(255, 255, 255, .2); }
.paper-bag { position: absolute; z-index: 3; top: 93px; left: 50%; width: 205px; height: 228px; transform: translateX(-48%) rotate(-2deg); border-radius: 12px 12px 28px 28px; background: #fff4d4; box-shadow: 0 24px 40px rgba(92, 64, 7, .2); }
.paper-bag::after { content: "РЯДОМ"; position: absolute; top: 100px; left: 50%; transform: translateX(-50%); color: var(--green); font-size: 21px; font-weight: 950; letter-spacing: -.04em; }
.bag-handle { position: absolute; top: -40px; left: 50%; width: 93px; height: 74px; transform: translateX(-50%); border: 12px solid #f5e4b8; border-bottom: 0; border-radius: 40px 40px 0 0; }
.bag-leaf { position: absolute; top: 69px; left: 50%; transform: translateX(-50%) rotate(45deg); color: var(--yellow); }
.grocery { position: absolute; z-index: -1; font-size: 67px; filter: drop-shadow(0 9px 8px rgba(65, 50, 16, .17)); }
.grocery-one { top: -66px; left: -35px; transform: rotate(-18deg); }
.grocery-two { top: -67px; right: -27px; transform: rotate(15deg); }
.grocery-three { top: -42px; left: 75px; font-size: 54px; }
.grocery-four { top: 18px; right: -50px; font-size: 61px; transform: rotate(9deg); }
.hero-card { position: absolute; z-index: 5; right: 40px; bottom: 35px; display: flex; flex-direction: column; padding: 14px 17px; border: 1px solid rgba(255,255,255,.6); border-radius: 17px; background: rgba(255, 255, 255, .88); color: var(--green); box-shadow: 0 12px 30px rgba(89, 65, 10, .13); backdrop-filter: blur(12px); }
.hero-card b { font-size: 13px; }
.hero-card span { margin-top: 2px; color: var(--muted); font-size: 10px; }

.catalog-section { padding-block: 54px 80px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catalog-heading .section-kicker { color: var(--green-2); }
.catalog-heading h2 { margin: 5px 0 0; font-size: clamp(29px, 3vw, 42px); letter-spacing: -.045em; }
.catalog-tools { display: flex; align-items: center; gap: 14px; }
.freshness { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.freshness i { width: 8px; height: 8px; border-radius: 50%; background: #38a271; box-shadow: 0 0 0 4px rgba(56, 162, 113, .13); }
.sort-select select { height: 44px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: white; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 650; }

.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(225, 230, 225, .8); border-radius: 22px; background: var(--surface); box-shadow: 0 6px 22px rgba(22, 55, 42, .045); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(22, 55, 42, .11); }
.product-card.is-unavailable:hover { transform: none; box-shadow: 0 6px 22px rgba(22, 55, 42, .045); }
.product-media { position: relative; aspect-ratio: 1 / .9; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 22px; background: linear-gradient(145deg, #fafbf9, #f2f4f0); cursor: pointer; isolation: isolate; }
.image-shell { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.product-media > .image-shell { position: absolute; z-index: 0; inset: 22px; width: auto; height: auto; pointer-events: none; }
.image-shell > * { grid-area: 1 / 1; }
.image-shell img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: 50% 50%; opacity: 0; }
.image-shell.is-loaded img { opacity: 1; }
.image-skeleton { position: absolute; z-index: 1; inset: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(105deg, rgba(233, 237, 233, .72) 24%, rgba(249, 250, 248, .95) 42%, rgba(233, 237, 233, .72) 60%); background-size: 280% 100%; animation: shimmer 1.35s infinite; transition: opacity .2s ease; }
.image-skeleton::after { content: ""; position: absolute; top: 19%; right: 31%; bottom: 16%; left: 31%; border-radius: 16px 16px 22px 22px; background: rgba(210, 216, 211, .42); box-shadow: 0 10px 28px rgba(39, 54, 45, .035); }
.image-shell.is-loaded .image-skeleton, .image-shell.is-error .image-skeleton { opacity: 0; visibility: hidden; }
.image-error { z-index: 3; width: 70px; height: 70px; display: none; place-items: center; border-radius: 21px; background: rgba(255, 255, 255, .88); color: #a2aaa4; box-shadow: 0 8px 30px rgba(24, 33, 29, .07); font-size: 29px; }
.image-shell.is-error .image-error { display: grid; }
.product-media img { mix-blend-mode: multiply; transition: opacity .2s ease, transform .25s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-card.is-unavailable .product-media .image-shell.is-loaded img { filter: grayscale(1); opacity: .38; }
.product-card.is-unavailable:hover .product-media img { transform: none; }
.product-card.is-unavailable .product-meta,
.product-card.is-unavailable .product-title,
.product-card.is-unavailable .price-row { opacity: .48; }
.favorite-toggle { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); cursor: pointer; box-shadow: 0 5px 16px rgba(32, 46, 38, .08); }
.favorite-toggle svg { width: 19px; fill: none; stroke: #778179; stroke-width: 1.8; }
.favorite-toggle.active svg { fill: #e65c55; stroke: #e65c55; }
.discount-badge, .age-badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 7px 9px; border-radius: 9px; background: var(--red); color: white; font-size: 11px; font-weight: 850; }
.age-badge { top: auto; bottom: 12px; background: var(--green); }
.sold-out-badge { position: absolute; z-index: 3; left: 50%; top: 50%; width: max-content; max-width: calc(100% - 24px); padding: 8px 11px; transform: translate(-50%, -50%); border: 1px solid rgba(126, 134, 128, .22); border-radius: 10px; background: rgba(255, 255, 255, .94); color: #59615c; box-shadow: 0 6px 20px rgba(30, 38, 33, .08); font-size: 11px; font-weight: 850; text-align: center; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 15px; }
.product-meta { min-height: 17px; color: #89918b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-title { display: -webkit-box; min-height: 42px; margin: 5px 0 14px; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 660; line-height: 1.45; text-align: left; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; }
.product-title:hover { color: var(--green-2); }
.product-buy-row { margin-top: auto; }
.price-row { min-height: 45px; display: flex; align-items: baseline; gap: 8px; }
.price-row strong { font-size: 21px; letter-spacing: -.035em; }
.old-price { color: #9aa19c; font-size: 12px; text-decoration: line-through; }
.price-unit { color: #8b938d; font-size: 10px; }
.add-button, .quantity-control { width: 100%; height: 43px; border: 0; border-radius: 13px; font-weight: 800; }
.product-control-slot { width: 100%; }
.add-button { background: var(--yellow); color: var(--green); cursor: pointer; transition: .18s ease; }
.add-button:hover { background: #ffdc52; transform: translateY(-1px); }
.add-button.is-disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .55; }
.add-button.is-disabled:hover { background: var(--yellow); transform: none; }
.quantity-control { display: grid; grid-template-columns: 43px 1fr 43px; align-items: center; overflow: hidden; background: var(--green); color: white; }
.quantity-control button { height: 100%; border: 0; background: transparent; color: white; cursor: pointer; font-size: 22px; }
.quantity-control button:hover { background: rgba(255, 255, 255, .1); }
.quantity-control button.is-disabled { cursor: not-allowed; opacity: .42; }
.quantity-control button.is-disabled:hover { background: transparent; }
.quantity-control span { text-align: center; font-size: 12px; font-weight: 800; }
.unavailable-control { width: 100%; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #e7eae7; color: #6e7771; font-size: 12px; font-weight: 800; }

.skeleton-card { height: 386px; overflow: hidden; border-radius: 22px; background: white; }
.skeleton-card::before { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(100deg, #f0f2ef 25%, #fafbfa 42%, #f0f2ef 58%); background-size: 300% 100%; animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-icon { font-size: 54px; }
.empty-state h3 { margin: 12px 0 5px; font-size: 24px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.load-more { display: block; min-width: 220px; height: 52px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; font-weight: 800; }
.load-more:hover { background: var(--soft); }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: #e9ede7; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row div { display: flex; flex-direction: column; }
.footer-row b { font-size: 13px; }
.footer-row span { color: var(--muted); font-size: 11px; }
.footer-row a { color: var(--green); font-size: 12px; font-weight: 800; }

.overlay { position: fixed; z-index: 70; inset: 0; background: rgba(9, 22, 16, .45); opacity: 0; backdrop-filter: blur(3px); transition: opacity .25s ease; }
.overlay.visible { opacity: 1; }
.cart-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(440px, 100vw); height: 100dvh; display: flex; flex-direction: column; transform: translateX(105%); border: 0; background: #f7f8f5; box-shadow: -25px 0 65px rgba(14, 40, 29, .18); transition: transform .28s cubic-bezier(.22,.8,.28,1); }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 26px 24px 18px; background: white; }
.drawer-header .section-kicker { color: var(--green-2); }
.drawer-header h2 { margin: 4px 0 0; font-size: 31px; letter-spacing: -.04em; }
.close-button, .dialog-close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 25px; line-height: 1; }
.cart-content { flex: 1; overflow-y: auto; padding: 14px 18px; }
.cart-empty { height: 100%; display: grid; place-content: center; justify-items: center; padding: 35px; text-align: center; }
.cart-empty-illustration { width: 105px; height: 105px; display: grid; place-items: center; border-radius: 36px; background: var(--yellow-soft); font-size: 47px; transform: rotate(-4deg); }
.cart-empty h3 { margin: 20px 0 6px; font-size: 24px; }
.cart-empty p { max-width: 270px; margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 13px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; transition: opacity .2s ease, background .2s ease, border-color .2s ease; }
.cart-item.is-pending-removal { border-color: #dfe3df; background: #f0f2ef; }
.cart-item.is-unavailable { background: #f5f6f4; }
.cart-item.is-pending-removal .cart-item-image,
.cart-item.is-pending-removal .cart-item-title,
.cart-item.is-unavailable .cart-item-image,
.cart-item.is-unavailable .cart-item-title { filter: grayscale(1); opacity: .38; }
.cart-item-image { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #f4f6f2; }
.cart-item-image img { width: 100%; height: 100%; padding: 8px; object-fit: contain; mix-blend-mode: multiply; }
.cart-item-main { min-width: 0; }
.cart-item-title { display: block; overflow: hidden; font-size: 12px; font-weight: 650; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.cart-item-price { margin-top: 4px; font-size: 14px; font-weight: 850; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.cart-stepper { height: 32px; display: grid; grid-template-columns: 32px 48px 32px; align-items: center; border-radius: 10px; background: var(--soft); }
.cart-stepper button { height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.cart-stepper button.is-disabled { cursor: not-allowed; opacity: .35; }
.cart-stepper span { text-align: center; font-size: 11px; font-weight: 800; }
.remove-item { border: 0; background: transparent; color: #9a5c58; cursor: pointer; font-size: 11px; }
.undo-item { min-height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--green); color: white; cursor: pointer; font-size: 11px; font-weight: 800; }
.cart-item-status { min-width: 0; color: #7c605d; font-size: 10px; font-weight: 750; line-height: 1.25; }
.cart-warning { margin-bottom: 12px; padding: 10px 12px; border-radius: 11px; background: #fff0ee; color: #8b4d48; font-size: 11px; font-weight: 700; line-height: 1.35; }
.cart-summary { padding: 18px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; box-shadow: 0 -12px 36px rgba(19, 47, 34, .07); }
.delivery-progress { margin-bottom: 14px; }
.delivery-progress p { display: flex; justify-content: space-between; margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e8ece8; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); transition: width .3s ease; }
.summary-line { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); font-size: 13px; }
.summary-line.total { margin-top: 13px; color: var(--ink); font-size: 18px; font-weight: 850; }
.checkout-button { width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--green); color: white; cursor: pointer; font-weight: 800; }
.checkout-button:disabled { cursor: not-allowed; background: #aeb8b1; }
.minimum-hint { margin: 9px 0 0; color: #9b625d; text-align: center; font-size: 11px; }

dialog { max-height: calc(100dvh - 30px); padding: 0; border: 0; outline: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(9, 22, 16, .52); backdrop-filter: blur(4px); }
.checkout-dialog { width: min(680px, calc(100% - 24px)); border-radius: 28px; background: white; }
.dialog-close { position: absolute; z-index: 2; top: 17px; right: 17px; }
#checkout-content { padding: 38px 42px 42px; }
.dialog-heading .section-kicker { color: var(--green-2); }
.dialog-heading h2 { margin: 5px 0 6px; font-size: 38px; letter-spacing: -.045em; }
.dialog-heading p { margin: 0 0 25px; color: var(--muted); }
.checkout-form { display: grid; gap: 16px; }
.checkout-form label:not(.radio-card):not(.agreement) { display: grid; gap: 7px; }
.checkout-form label > span:first-child, fieldset legend { color: #4f5a53; font-size: 12px; font-weight: 750; }
.checkout-form input, .checkout-form select, .checkout-form textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #dbe1dc; border-radius: 13px; outline: 0; background: #fafbfa; transition: .18s ease; }
.checkout-form textarea { padding-block: 12px; resize: vertical; }
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus { border-color: var(--green-2); background: white; box-shadow: 0 0 0 3px rgba(35, 106, 80, .1); }
.form-grid { display: grid; gap: 12px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.three-columns { grid-template-columns: repeat(3, 1fr); }
.checkout-form fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.checkout-form fieldset legend { grid-column: 1 / -1; margin-bottom: 7px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { height: 100%; min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfa; }
.radio-card b { font-size: 12px; }
.radio-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.radio-card input:checked + span { border-color: var(--green-2); background: #eff8f3; box-shadow: inset 0 0 0 1px var(--green-2); }
.payment-card { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 15px; background: var(--yellow-soft); }
.payment-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.payment-card b { font-size: 13px; }
.payment-card small { color: #766a3e; font-size: 10px; }
.payment-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--yellow); color: var(--green); font-weight: 900; }
.check-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 12px; }
.agreement { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; }
.agreement input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--green); }
.form-error { padding: 11px 13px; border-radius: 11px; background: #fff0ee; color: #9a403b; font-size: 12px; }
.submit-order { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border: 0; border-radius: 17px; background: var(--green); color: white; cursor: pointer; font-weight: 850; }
.submit-order:disabled { opacity: .65; cursor: wait; }

.order-success { min-height: 490px; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.success-mark { width: 100px; height: 100px; display: grid; place-items: center; border-radius: 34px; background: var(--yellow); color: var(--green); font-size: 52px; transform: rotate(-4deg); }
.order-success h2 { margin: 24px 0 7px; font-size: 35px; letter-spacing: -.045em; }
.order-success p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.5; }
.order-number { margin: 22px 0; padding: 13px 18px; border-radius: 13px; background: var(--soft); font-size: 15px; font-weight: 900; letter-spacing: .04em; }

.product-dialog { width: min(760px, calc(100% - 24px)); border-radius: 28px; background: white; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; }
.product-detail-media { min-height: 420px; display: grid; place-items: center; padding: 55px; background: #f4f6f2; }
.product-detail-media .image-shell { min-height: 310px; }
.product-detail-media img { width: 100%; height: 100%; max-height: 330px; object-fit: contain; mix-blend-mode: multiply; }
.product-detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 50px 38px; }
.product-detail-copy .section-kicker { color: var(--green-2); }
.product-detail-copy h2 { margin: 8px 0 10px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
.product-detail-copy p { margin: 0 0 24px; color: var(--muted); }
.product-detail-price { margin-bottom: 20px; font-size: 29px; font-weight: 900; }
.product-detail-availability { width: fit-content; margin: -10px 0 16px; padding: 8px 11px; border-radius: 10px; background: #eceeec; color: #646c67; font-size: 12px; font-weight: 850; }
.product-detail.is-unavailable .product-detail-media .image-shell.is-loaded img { filter: grayscale(1); opacity: .4; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; max-width: min(420px, calc(100% - 30px)); padding: 13px 18px; transform: translate(-50%, 30px); border-radius: 13px; background: #17211d; color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; font-size: 12px; font-weight: 700; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.mobile-cart-button { display: none; }

@media (max-width: 1150px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .location-pill { min-width: 52px; width: 52px; justify-content: center; }
  .location-pill span, .location-pill .chevron { display: none; }
  .hero-copy { padding-left: 42px; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .header-row { height: auto; min-height: 72px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .brand { order: 1; }
  .location-pill { order: 2; }
  .header-actions { order: 3; margin-left: auto; }
  .search-box { order: 4; flex-basis: 100%; }
  .search-panel { max-height: min(560px, calc(100dvh - 145px)); }
  .search-results { max-height: min(505px, calc(100dvh - 200px)); }
  .category-strip { top: 124px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 42px; }
  .hero-art { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-row { flex-wrap: wrap; }
}

@media (max-width: 650px) {
  body { padding-bottom: 78px; }
  .shell { width: calc(100% - 24px); }
  .site-header { position: relative; }
  .header-row { gap: 8px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .location-pill { width: 42px; min-width: 42px; height: 42px; padding: 0; }
  .header-actions .icon-button { width: 42px; height: 42px; border-radius: 13px; }
  .cart-button { width: 42px; min-width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 13px; }
  .cart-button span { display: none; }
  .search-box input { height: 48px; }
  .search-panel { top: calc(100% + 8px); border-radius: 18px; }
  .search-result { min-height: 80px; grid-template-columns: 64px minmax(0, 1fr) 18px; gap: 10px; padding: 7px; }
  .search-result-media { width: 64px; height: 64px; }
  .search-result-copy > strong { font-size: 12px; }
  .search-result-bottom { margin-top: 5px; }
  .search-result-skeleton { height: 80px; grid-template-columns: 64px minmax(0, 1fr); }
  .category-strip { position: sticky; top: 0; }
  .category-list { width: 100%; padding-inline: 12px; }
  .hero { min-height: 0; margin-top: 14px; border-radius: 24px; }
  .hero-copy { padding: 30px 24px 32px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 24px; }
  .primary-button { width: 100%; }
  .delivery-promise { flex-direction: row; gap: 5px; }
  .catalog-section { padding-block: 36px 40px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .catalog-heading h2 { font-size: 31px; }
  .catalog-tools { width: 100%; justify-content: space-between; }
  .freshness { max-width: 48%; }
  .sort-select select { max-width: 165px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 17px; }
  .product-media { padding: 15px; }
  .product-media > .image-shell { inset: 15px; }
  .product-body { padding: 12px; }
  .product-title { min-height: 40px; margin-bottom: 10px; font-size: 12px; }
  .product-meta { font-size: 9px; }
  .price-row strong { font-size: 18px; }
  .sold-out-badge { padding: 7px 8px; font-size: 9px; }
  .favorite-toggle { top: 8px; right: 8px; width: 32px; height: 32px; }
  .discount-badge { top: 8px; left: 8px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .mobile-cart-button { position: fixed; z-index: 60; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 12px; height: 58px; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 18px; background: var(--green); color: white; box-shadow: 0 13px 35px rgba(17, 57, 43, .28); }
  .mobile-cart-button.visible { display: flex; }
  .mobile-cart-button span { display: flex; flex-direction: column; text-align: left; }
  .mobile-cart-button b { font-size: 13px; }
  .mobile-cart-button small { color: #bcd2c8; font-size: 10px; }
  .mobile-cart-button strong { font-size: 17px; }
  .cart-drawer { width: 100%; border-radius: 24px 24px 0 0; top: 5dvh; height: 95dvh; transform: translateY(105%); }
  .cart-drawer.open { transform: translateY(0); }
  #checkout-content { padding: 35px 20px 24px; }
  .dialog-heading h2 { font-size: 31px; }
  .two-columns, .three-columns { grid-template-columns: 1fr; }
  .three-columns { grid-template-columns: repeat(3, 1fr); }
  .checkout-form fieldset { grid-template-columns: 1fr; }
  .radio-card span { min-height: 64px; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-media { min-height: 260px; padding: 45px; }
  .product-detail-media .image-shell { min-height: 190px; }
  .product-detail-copy { padding: 28px 22px; }
}

@media (max-width: 390px) {
  .brand span:last-child { display: none; }
  .product-grid { gap: 8px; }
  .product-body { padding: 10px; }
  .add-button, .quantity-control, .unavailable-control { height: 40px; }
  .cart-item-status { max-width: 116px; }
  .three-columns { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
