:root {
  --brand: #FF5500;
  --brand-hover: #E84D00;
  --brand-soft: #FFF5EE;
  --brand-glow: rgba(255, 85, 0, 0.22);
  --bg: #FFFFFF;
  --bg-subtle: #F6F6F6;
  --text: #191919;
  --text-2: #545454;
  --text-3: #A6A6A6;
  --border: #E8E8E8;
  --border-light: #F0F0F0;
  --success: #05944F;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
  --shadow-bar: 0 -2px 20px rgba(0, 0, 0, 0.1);
  --topbar-h: 58px;
  --delivery-strip-h: 44px;
  --cart-bar-h: 96px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}
html.in-telegram, html.in-telegram body {
  height: 100%;
}
body.in-telegram .shop-app {
  min-height: 100%;
  padding-top: var(--tg-content-safe-area-inset-top, 0px);
}
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font); }

.shop-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 100;
  box-shadow: 0 1px 0 var(--border-light);
}
.topbar__inner {
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 20px;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.topbar__cafe {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  position: relative;
  margin: 0 -8px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
}
.topbar__cafe:active { background: var(--bg-subtle); }
.topbar__logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border-light);
}
.topbar__logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar__cafe-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.topbar__cafe-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.topbar__cafe-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.topbar__chevron { flex-shrink: 0; color: var(--text-3); margin-top: 1px; }
.topbar__cafe-meta {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.cafe-select-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  appearance: none;
}
.topbar__cart {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.topbar__cart:active { background: var(--bg-subtle); }
.topbar__cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.delivery-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: var(--delivery-strip-h);
  padding: 0 20px;
  border: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  cursor: pointer;
}
.delivery-strip:active { background: var(--bg-subtle); }
.delivery-strip__icon { flex-shrink: 0; color: var(--brand); }
.delivery-strip__text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delivery-strip__arrow { flex-shrink: 0; color: var(--text-3); }
.delivery-strip.is-pickup .delivery-strip__icon { color: var(--text-2); }

.menu {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-scroll {
  padding-bottom: calc(var(--cart-bar-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

.cats {
  position: sticky;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
}
.cats button.on {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 2px 10px rgba(25, 25, 25, 0.18);
}

.menu-section, #dishes section { scroll-margin-top: 64px; }
#dishes section h2,
.menu-section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 20px 16px 8px;
  margin: 0;
}
.menu-section__title--featured { color: var(--brand); }
.menu-section__items { display: flex; flex-direction: column; }
.menu-section--featured .menu-section__items { padding: 0 8px 8px; }

.dish {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  background: var(--bg);
}
.dish-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding-right: 2px;
  padding-top: 2px;
}
.dish-info b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.dish-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-price {
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  margin-top: 6px;
  color: var(--text);
}

.dish-visual {
  position: relative;
  width: clamp(128px, 38vw, 156px);
  height: clamp(128px, 38vw, 156px);
  flex-shrink: 0;
}
.dish-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  cursor: pointer;
  background: var(--bg-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.dish-photo--placeholder { object-fit: contain; padding: 16px; }
.dish-control {
  position: absolute;
  bottom: -4px;
  right: -4px;
  z-index: 2;
}

.item-add {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
}
.item-add:active { transform: scale(0.92); }
.item-qty {
  display: flex;
  align-items: center;
  background: var(--brand);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px var(--brand-glow);
  overflow: hidden;
  height: 40px;
}
.item-qty__btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.item-qty__btn:active { background: rgba(0, 0, 0, 0.1); }
.item-qty__count {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 0 2px;
}

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  pointer-events: none;
}
.cart-bar__btn {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-bar);
}
.cart-bar__btn:active { transform: scale(0.98); }
.cart-bar__label { font-size: 16px; font-weight: 600; }
.cart-bar__right { display: flex; align-items: center; gap: 8px; }
.cart-bar__count {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.cart-bar__total { font-size: 16px; font-weight: 700; }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--cart-bar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 260;
  background: rgba(25, 25, 25, 0.94);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.sheet-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
}
.sheet-wrap--center {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
}
.sheet-wrap[hidden], .cart-bar[hidden], .topbar__cart[hidden], .toast[hidden], .hits[hidden],
#hits[hidden] { display: none !important; }

.sheet-handle {
  position: relative;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 12px auto 16px;
}
.sheet-x {
  border: 0;
  background: var(--bg-subtle);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  color: var(--text-3);
  padding: 0;
}

.dish-modal {
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: min(92vh, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.sheet-x--dish {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}
.dish-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.dish-modal__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-subtle);
  display: block;
  flex-shrink: 0;
}
.dish-hero--placeholder { object-fit: contain; padding: 28px; }
.dish-modal__info { padding: 20px 20px 8px; }
.dish-modal__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.dish-modal__description {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}
.dish-modal__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.dish-modal__price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.dish-modal__add-btn {
  flex: 1;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.dish-modal__add-btn:active { opacity: 0.85; }
#dishNote {
  width: 100%;
  margin: 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg);
  resize: vertical;
}

.addon-group { margin: 0 0 18px; }
.addon-group h3 { margin: 0 0 8px; font-size: 15px; }
.addon-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  text-align: left;
}
.addon-row.on { border-color: var(--brand); background: var(--brand-soft); }
.addon-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #ddd;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: none;
  color: #fff;
}
.addon-row.on .addon-check { background: var(--brand); border-color: var(--brand); }
.addon-name { flex: 1; }
.addon-price { color: var(--text-2); font-weight: 600; font-size: 13px; }

.address-modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.address-modal .sheet-x {
  position: absolute;
  top: 16px;
  right: 16px;
}
.address-modal__content { padding: 32px 24px 24px; text-align: center; }
.address-modal__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.address-modal__subtitle {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0 0 24px;
}
.address-modal__btn {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.address-modal__btn--primary { background: var(--brand); color: #fff; }
.address-modal__btn--secondary { background: var(--bg-subtle); color: var(--text); }

.cart-sheet {
  position: relative;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.cart-sheet__header {
  flex-shrink: 0;
  padding: 0 20px 16px;
  position: relative;
}
.cart-sheet__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.cart-sheet__close {
  position: absolute;
  top: 18px;
  right: 16px;
}
.sheet-mode {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}
.sheet-mode button {
  flex: 1;
  padding: 10px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 10px;
}
.sheet-mode button.on {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.cart-sheet__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.cart-sheet__items-block {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 4px 16px;
}
.cart-sheet__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-sheet__item:last-child { border-bottom: none; }
.cart-sheet__item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border-light);
}
.cart-sheet__item-info { flex: 1; min-width: 0; }
.cart-sheet__item-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.cart-sheet__item-price { font-size: 14px; color: var(--text-2); }
.cart-sheet__item-price small { display: block; font-size: 12px; font-weight: 500; }
.cart-sheet__quantity-block {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
}
.cart-sheet__quantity-block button {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cart-sheet__quantity-block span {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.cart-sheet__summary {
  padding: 16px 0 4px;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}
.cart-sheet__summary-row,
.cart-sheet__summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-2);
  margin: 6px 0;
}
.cart-sheet__summary-total {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cart-sheet__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-3);
  font-size: 15px;
}
.cart-sheet__form {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 4px 16px;
}
.cart-sheet__form-label {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.cart-sheet__form-label:last-of-type { border-bottom: none; }
.cart-sheet__form-label--collapsible {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.cart-sheet__required { color: #E11900; font-weight: 700; }
.cart-sheet__form-label input {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  outline: none;
}
.cart-sheet__chevron { opacity: 0.4; font-size: 18px; color: #3C3C43; }
.cart-sheet__comment {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
  margin: 0 0 12px;
  background: var(--bg);
}
.sheet-note { color: var(--text-2); font-size: 13px; line-height: 1.45; margin: 0; }
.cart-sheet__footer {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.cart-sheet__submit-btn {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-sheet__submit-btn:active { opacity: 0.85; }

.success-content {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}
.success-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.order-number {
  font-size: 15px;
  color: var(--brand);
  font-weight: 600;
  margin: 8px 0;
}
.success-message {
  font-size: 15px;
  color: var(--text-2);
  margin: 12px 0 24px;
  line-height: 1.5;
}
.dish-modal {
  transition: transform 0.25s var(--ease);
}
.dish-modal.is-dragging,
.cart-sheet.is-dragging { transition: none; }
.dish-modal.is-dragging .dish-modal__scroll,
.cart-sheet.is-dragging .cart-sheet__content { overflow: hidden; }
.cart-sheet { transition: transform 0.25s var(--ease); }

.cart-sheet__form-label--clickable {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.cart-sheet__address-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  max-width: 60%;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-sheet__address-value.is-empty { color: var(--text-3); }

.checkout-modal__label {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 16px;
}
.checkout-modal__label span {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.checkout-modal__label input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  background: var(--bg);
}
.checkout-modal__label input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.address-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-subtle);
  z-index: 4000;
  display: flex;
  flex-direction: column;
}
.address-screen[hidden] { display: none !important; }
.address-screen__header {
  background: var(--bg);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}
.address-screen__back {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.address-screen__toggle {
  flex: 1;
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}
.address-screen__toggle-btn {
  flex: 1;
  padding: 9px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
}
.address-screen__toggle-btn.on {
  background: var(--bg);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.address-screen__content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.address-screen__search {
  margin: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.address-screen__input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 16px;
  background: transparent;
}
.address-screen__done {
  width: calc(100% - 32px);
  margin: 0 16px;
}
.address-screen__pickup-card {
  margin: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  width: calc(100% - 32px);
  text-align: left;
}
.address-screen__pickup-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
  flex-shrink: 0;
}
.address-screen__pickup-icon img { width: 100%; height: 100%; object-fit: cover; }
.address-screen__pickup-name { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.address-screen__pickup-address { font-size: 14px; color: var(--text-2); margin: 0; }
  border: 0;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
}
.btn {
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
}
.btn-primary { background: var(--brand); color: #fff; }

@media (min-width: 768px) {
  .menu-section__items,
  #dishes section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 16px 20px;
  }
  #dishes section h2,
  .menu-section__title {
    grid-column: 1 / -1;
  }
  .dish {
    flex-direction: column;
    padding: 0;
    border-bottom: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .dish-visual {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .dish-photo { border-radius: 0; box-shadow: none; }
  .dish-info { padding: 12px 14px 14px; }
  .dish-info b { font-size: 17px; }
  .dish-control { bottom: 10px; right: 10px; }
}

@media (min-width: 1024px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #EDEDED;
  }
  .shop-app {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    height: auto;
  }
  .topbar { position: sticky; top: 0; }
  .menu-scroll { overflow: visible; padding-bottom: 100px; }
  .cats { position: sticky; top: var(--topbar-h); }
  #dishes section,
  .menu-section__items {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px 24px;
  }
  .cart-bar {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
  }
}
