@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("./assets/fonts/manrope-latin.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: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("./assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("./assets/fonts/unbounded-latin.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 {
  color-scheme: light;
  --bg: #f4f4f5; --panel: #fff; --panel-2: #eeeeef;
  --text: #17181a; --muted: #6b6c6c; --accent: #ff1e00;
  --accent-readable: #df1900; --accent-hover: #c51600; --line: #e1e1e3;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg);
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
body.dialog-open { overflow: hidden; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.storefront-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 14px; padding: 14px 14px 0; user-select: none; }
.storefront-main, .preview-cart { min-width: 0; border: 1px solid var(--line); border-bottom: none; border-radius: 24px 24px 0 0; background: var(--panel); overflow: hidden; }
.storefront-main { min-height: calc(100dvh - 14px); }
.storefront-header { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px; }
.chrome-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); }
.chrome-icon img { opacity: .75; }
.brand-logo { display: block; width: 108px; height: 35px; }
.preview-login { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 12px 14px; border-radius: 999px; background: var(--panel-2); font-size: 14px; }
.receiving-row { display: flex; gap: 12px; padding: 0 18px 26px; }
.receiving-toggle { flex: 0 0 256px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--panel-2); font-size: 14px; text-align: center; }
.receiving-toggle span { padding: 12px 10px; color: var(--muted); }
.receiving-toggle .receiving-active { color: var(--text); border-radius: 10px; font-weight: 600; background: var(--bg); box-shadow: 0 1px 4px #0002; }
.delivery-address { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border-radius: 14px; padding: 12px 14px; background: var(--panel-2); color: var(--muted); font-size: 14px; white-space: nowrap; }
.delivery-address img { opacity: .65; }
.menu-categories { display: flex; gap: 8px; padding: 0 18px 22px; white-space: nowrap; overflow: hidden; }
.menu-categories span { flex: none; padding: 14px 16px; border-radius: 14px; background: var(--panel-2); font-size: 14px; }
.menu-categories .category-selected { background: var(--text); color: white; }
.catalog-preview { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.catalog-preview h2, .cart-heading h2 { font-family: Unbounded, Manrope, sans-serif; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
.products-preview { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,280px)); gap: 28px 16px; margin-top: 20px; }
.product-preview { min-width: 0; }
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 20px; }
.product-name { font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.5; }
.product-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.catalog-section + .catalog-section { margin-top: 40px; }
.product-price { display: inline-flex; align-items: center; gap: 16px; min-height: 40px; margin-top: 14px; padding: 9px 12px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; }
.product-price > span { font-size: 20px; font-weight: 500; line-height: 1; }
.preview-cart { display: flex; flex-direction: column; align-self: start; height: calc(100dvh - 14px); }
.cart-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px; gap: 14px; }
.cart-heading .chrome-icon { border-radius: 14px; }
.cart-empty { margin: auto; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 300px; }
.cart-bag { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: var(--panel-2); margin-bottom: 22px; }
.cart-bag img { opacity: .55; }
.cart-empty strong { font-size: 18px; }
.cart-empty p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.city-dialog { width: min(760px, calc(100vw - 48px)); max-width: none; height: min(820px, calc(100dvh - 72px)); max-height: calc(100dvh - 72px); margin: auto; padding: 0; border: none; border-radius: 22px; color: var(--text); background: var(--panel); box-shadow: 0 18px 70px #17181a26; overflow: hidden; }
.city-dialog:not([open]) { display: none; }
.city-dialog[open] { display: flex; flex-direction: column; }
.city-dialog::backdrop { background: rgb(23 24 26 / 35%); }
.dialog-header { flex: none; padding: 24px 26px 0; }
.dialog-heading:focus { outline: none; }
.dialog-mobile-brand { display: none; }
h1 { font-family: Unbounded, Manrope, sans-serif; font-size: 23px; line-height: 1.4; font-weight: 700; letter-spacing: -.035em; }
.search { display: flex; align-items: center; position: relative; width: 100%; min-height: 54px; margin-top: 18px; border: 1px solid transparent; border-radius: 14px; background: var(--panel-2); transition: border-color .15s,box-shadow .15s; }
.search:focus-within { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.search-icon { position: absolute; left: 16px; opacity: .55; pointer-events: none; }
.search input { min-width: 0; width: 100%; min-height: 54px; padding: 14px 48px; background: transparent; border: none; border-radius: 14px; color: var(--text); font-size: 16px; outline: none; appearance: none; -webkit-appearance: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-search { position: absolute; right: 6px; display: grid; place-items: center; width: 42px; height: 42px; border: none; border-radius: 10px; background: transparent; }
.clear-search:hover { background: #e2e2e4; }
.clear-search img { opacity: .65; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 21px 0 12px; }
.list-heading h2 { font-size: 13px; font-weight: 600; color: var(--muted); }
.city-count { color: var(--muted); font-size: 12px; }
.cities-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 16px 12px 20px; }
.city-groups { column-count: 3; column-gap: 24px; padding: 0; }
.city-group { break-inside: avoid; margin: 0 0 24px; }
.city-group-title { margin: 0 0 6px; padding: 0 10px; font-family: Unbounded, Manrope, sans-serif; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--accent-readable); }
.city-group-list { list-style: none; margin: 0; padding: 0; }
.city-group-list li { min-width: 0; }
.city-link { display: block; min-height: 40px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; transition: background .15s; }
@media (hover: hover) { .city-link:hover { background: var(--panel-2); } }
.city-link:active { background: #e4e4e6; }
.city-link:focus-visible { outline-offset: -2px; background: var(--panel-2); }
.empty-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 25px 12px; text-align: center; }
.empty-state > img { opacity: .45; margin-bottom: 18px; }
.empty-state h2 { font-family: Unbounded, Manrope, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.035em; }
.empty-state p { margin-top: 10px; max-width: 340px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.primary-button { margin-top: 22px; padding: 14px 22px; min-height: 48px; border: none; border-radius: 12px; background: var(--accent-readable); color: white; font-weight: 700; font-size: 14px; }
.primary-button:hover { background: var(--accent-hover); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-script { position: fixed; inset: 20px; padding: 28px; background: white; border-radius: 20px; }
.no-script h1 { margin: 24px 0 12px; }
@media (max-width: 1100px) {
  .storefront-shell { grid-template-columns: minmax(0,1fr); }
  .preview-cart { display: none; }
}
@media (max-width: 760px) {
  .city-dialog { width: min(620px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); }
  .city-groups { column-count: 2; }
  .dialog-header { padding: 24px 22px 0; }
  .cities-body { padding-left: 16px; padding-right: 12px; }
  .receiving-toggle { flex-basis: 220px; }
  .products-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .storefront-shell { padding: 8px 8px 0; }
  .storefront-main { min-height: calc(100dvh - 8px); border-radius: 22px 22px 0 0; }
  .storefront-header { display: grid; grid-template-columns: 44px 1fr 44px; min-height: 76px; padding: 12px; }
  .brand-logo { justify-self: center; }
  .preview-login { margin: 0; padding: 0; width: 44px; height: 44px; justify-content: center; }
  .preview-login > span { display: none; }
  .receiving-row { flex-direction: column; padding: 0 12px 20px; }
  .receiving-toggle { flex-basis: auto; width: 100%; }
  .delivery-address { min-height: 48px; }
  .menu-categories { padding-left: 12px; }
  .city-dialog { width: calc(100vw - 24px); height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); border-radius: 20px; }
  .dialog-header { padding: 22px 20px 0; }
  .dialog-mobile-brand { display: block; width: 108px; height: 35px; margin-bottom: 16px; }
  h1 { font-size: 21px; line-height: 1.5; }
  .search { margin-top: 16px; }
  .list-heading { margin-top: 20px; margin-bottom: 10px; }
  .cities-body { padding: 0 10px 8px 12px; }
  .city-groups { column-count: 1; }
  .city-group { margin-bottom: 22px; }
  .city-link { min-height: 46px; padding: 12px 10px; font-size: 15px; }
  .catalog-preview { padding-left: 16px; padding-right: 16px; }
  .empty-state { min-height: 230px; }
}
@media (max-width: 360px) {
  h1 { font-size: 19px; }
  .dialog-header { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; } }
