/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* === HEADER === */
.header {
  position: relative;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
  will-change: transform;
}
.header--hidden {
  transform: translateY(-100%);
}
.header__accent {
  height: 3px;
  background: var(--color-primary);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo-img {
  height: 48px;
  width: auto;
}
.header__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.header__delivery-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.header__delivery-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.3;
  white-space: nowrap;
}
.header__hours {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}
.header__icon {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}
.header__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header__phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.header__phone-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
.header__phone-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}
.header__phone-number {
  font-weight: 600;
}
.header__phone-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

/* === STORIES CAROUSEL === */
.stories-section {
  position: relative;
  padding: 20px 0 8px;
}
.stories-section__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.stories-section__scroll::-webkit-scrollbar { display: none; }
.story-card {
  flex: 0 0 auto;
  width: 160px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0;
}
@media (hover: hover) and (pointer: fine) {
  .story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
}
.story-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stories-section__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--color-text);
  transition: background 0.2s, opacity 0.2s;
}
.stories-section__arrow:hover { background: #f0f0f0; }
.stories-section__arrow--right { right: -4px; }
.stories-section__arrow--left { left: -4px; }

/* === STORY MODAL === */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.story-modal__container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 740px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.story-modal__progress {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.story-modal__progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.story-modal__progress-fill {
  width: 0%;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.1s linear;
}
.story-modal__progress-bar.viewed .story-modal__progress-fill { width: 100%; }
.story-modal__progress-bar.active .story-modal__progress-fill {
  animation: story-progress 5s linear forwards;
}
@keyframes story-progress {
  from { width: 0%; }
  to { width: 100%; }
}
.story-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.story-modal__close:hover { background: rgba(0,0,0,0.6); }
.story-modal__content {
  width: 100%;
  height: 100%;
  position: relative;
}
.story-modal__slide {
  position: absolute;
  inset: 0;
}
.story-modal__slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.story-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.story-modal__nav:hover { background: rgba(255,255,255,0.3); }
.story-modal__nav--prev { left: 8px; }
.story-modal__nav--next { right: 8px; }

@media (max-width: 480px) {
  .story-card { width: 130px; height: 170px; }
  .story-modal__container { max-width: 100%; height: 100vh; max-height: none; border-radius: 0; }
}

/* === CATEGORY NAV === */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
/* `.stuck` shadow removed — `transition: opacity` on a pseudo-element fires
   on every scroll-direction state change and added paint cost without
   meaningful UX value. Kept the .stuck class hook for future use. */
.category-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.category-nav__links {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-nav__links::-webkit-scrollbar { display: none; }
.category-nav__link {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.category-nav__link:hover { color: var(--color-text); }
.category-nav__link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.category-nav__cart {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 0 20px;
  height: 36px;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.category-nav__cart:hover {
  background: var(--color-primary-hover);
}
.category-nav__cart-icon {
  flex-shrink: 0;
}
.category-nav__cart-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.35);
  display: none;
}
.category-nav__cart-count {
  font-weight: 700;
  display: none;
}
.category-nav__cart.has-items .category-nav__cart-divider,
.category-nav__cart.has-items .category-nav__cart-count {
  display: block;
}

/* === MAIN CONTENT === */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* === POPULAR SECTION === */
.popular-section {
  padding: 24px 0 8px;
}
.popular-section__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.popular-section__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.popular-section__scroll::-webkit-scrollbar { display: none; }
.popular-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .popular-item:hover { background: #f5f5f5; }
}
.popular-item__img-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
}
.popular-item__img-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
.popular-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.popular-item__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
}
.popular-item__price {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* === MENU SECTIONS === */
.menu-section {
  padding-top: 32px;
}
.menu-section__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === PRODUCT CARD === */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  /* Confine paint/layout to each card. When the compositor evicts a tile
     during fast bidirectional scroll and asks for a repaint, the browser
     only re-paints the affected card, not the entire layout tree. Reduces
     "white tile" flicker on scroll-back-up. */
  contain: layout paint;
}
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
}
/* picture is inline by default; block prevents trailing whitespace gap */
.product-card__image-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .product-card__image-wrap:hover .product-card__image {
    transform: translateY(4px) scale(1.01);
  }
}
.product-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-success);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}
.product-card__info {
  padding: 10px 4px 0;
  flex: 1;
}
.product-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-card__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.product-card__footer {
  padding: 10px 4px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.product-card__price-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: #fff3e6;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.product-card--promo .product-card__price-btn {
  background: var(--color-primary);
  color: #fff;
}
.product-card__price-old {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  padding: 0 4px;
  text-decoration: none;
}
.product-card__price-old::after,
.product-card__price-old::before {
  content: '';
  position: absolute;
  top: 50%;
  background: var(--color-primary);
  pointer-events: none;
}
.product-card__price-old::after {
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 50% / 100%;
  transform: rotate(-5deg) translateY(-2px);
  opacity: 0.6;
}
.product-card__price-old::before {
  left: -3px;
  right: -3px;
  height: 1.5px;
  border-radius: 1px;
  transform: rotate(-5deg) translateY(-1px);
  opacity: 0.25;
}
@media (hover: hover) and (pointer: fine) {
  .product-card__price-btn:hover {
    background: var(--color-primary);
    color: #fff;
  }
}

.popular-item__price-old {
  margin-left: 6px;
  color: var(--color-text-secondary);
  font-weight: 400;
  font-size: 12px;
  position: relative;
  display: inline-block;
  padding: 0 3px;
  text-decoration: none;
}
.popular-item__price-old::after,
.popular-item__price-old::before {
  content: '';
  position: absolute;
  top: 50%;
  background: var(--color-primary);
  pointer-events: none;
}
.popular-item__price-old::after {
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 50% / 100%;
  transform: rotate(-5deg) translateY(-1.5px);
  opacity: 0.6;
}
.popular-item__price-old::before {
  left: -2px;
  right: -2px;
  height: 1.25px;
  border-radius: 1px;
  transform: rotate(-5deg) translateY(-0.5px);
  opacity: 0.25;
}
.popular-item--promo .popular-item__price {
  color: var(--color-primary);
  font-weight: 600;
}

/* === CART SIDEBAR === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.3s;
}
.cart-sidebar.open { transform: translateX(0); pointer-events: auto; }
.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}
.cart-sidebar__title { font-size: 20px; font-weight: 700; }
.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
}
.cart-sidebar__empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-secondary);
}
.cart-sidebar__footer {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
}
.cart-sidebar__total {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cart-sidebar__order-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.cart-sidebar__order-btn:hover { background: var(--color-primary-hover); }

/* Cart item */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item__img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item__info { flex: 1; }
.cart-item__name { font-size: 14px; font-weight: 500; }
.cart-item__price { font-size: 13px; color: var(--color-text-secondary); margin-top: 2px; }
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-item__qty-btn:hover { background: #e0e0e0; }
.cart-item__qty { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; }

/* === ORDER MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal__footer {
  flex-shrink: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.modal__footer .modal__submit-btn {
  margin: 0;
}
.modal__footer .form-disclaimer {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text-secondary);
}
/* Invisible Turnstile shouldn't occupy layout space */
#order-turnstile[data-size="invisible"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}
.modal__title { font-size: 20px; font-weight: 700; }
.modal__close,
.cart-sidebar__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  cursor: pointer;
  font-size: 22px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}
.modal__close:hover,
.cart-sidebar__close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.modal__form { padding: 24px; }
.modal__summary {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
}
.modal__summary-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.modal__summary-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
}
.modal__submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.modal__submit-btn:hover { background: var(--color-primary-hover); }
.modal__submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.modal__error {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff0f0;
  color: var(--color-error);
  font-size: 14px;
}

/* Delivery type toggle */
.delivery-type-toggle {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.delivery-type-option {
  flex: 1;
  cursor: pointer;
}
.delivery-type-option input[type="radio"] {
  display: none;
}
.delivery-type-label {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.delivery-type-option input[type="radio"]:checked + .delivery-type-label {
  border-color: var(--color-primary);
  background: #fff3e8;
  color: var(--color-primary);
}
#location-group .delivery-type-toggle {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.3fr;
  gap: 6px;
}
#location-group .delivery-type-option {
  min-width: 0;
}
#location-group .delivery-type-label {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-align: center;
}
@media (max-width: 360px) {
  #location-group .delivery-type-label {
    font-size: 11px;
    padding: 10px 2px;
    overflow-wrap: anywhere;
  }
}

/* === FORM ELEMENTS === */
.form-group {
  margin-bottom: 16px;
}
.form-group--turnstile {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
  min-height: 65px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error {
  border-color: var(--color-error);
  background: rgba(232, 93, 20, 0.04);
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group { flex: 1; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--small { padding: 6px 12px; font-size: 13px; }
.btn--danger { background: var(--color-error); color: #fff; }
.btn--danger:hover { opacity: 0.9; }

/* === FOOTER === */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 48px 20px 0;
  margin-top: 60px;
}
.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 32px;
}
.footer__col {
  min-width: 0;
}
.footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer__logo-img {
  height: 72px;
  width: auto;
}
.footer__tagline {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 0;
  max-width: 240px;
}
.footer__title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #bbb;
}
.footer__list li {
  margin-bottom: 6px;
}
.footer__list a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.15s;
}
.footer__list a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__list--muted {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}
.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid #2a2a2a;
  padding: 20px 0;
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__bottom-sep {
  color: #444;
}
/* === LEGAL PAGES === */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  color: #222;
  font-size: 15px;
  line-height: 1.7;
}
.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.legal-page .legal-meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.legal-page p { margin: 0 0 12px; }
.legal-page ul, .legal-page ol { margin: 0 0 12px 24px; padding: 0; }
.legal-page li { margin-bottom: 6px; }
.legal-page .legal-requisites {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0;
}
.legal-page .legal-requisites dt {
  display: inline;
  color: #888;
  font-weight: 400;
}
.legal-page .legal-requisites dd {
  display: inline;
  margin: 0;
  font-weight: 500;
}
.legal-page .legal-requisites br { display: block; content: ""; }

/* === CONSENT CHECKBOX === */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 12px 0;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.form-consent a { color: var(--color-primary, #FF6900); text-decoration: underline; }

.form-disclaimer {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  text-align: center;
  margin: 10px 0 0;
}
.form-disclaimer a { color: var(--color-primary, #FF6900); text-decoration: underline; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9998;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner__text { flex: 1; }
.cookie-banner__text a { color: #FFB366; text-decoration: underline; }
.cookie-banner__btn {
  background: #FF6900;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.cookie-banner__btn:hover { background: #e55f00; }
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .header__info { display: none; }
  .header__phone-number { display: none; }
  .header__phone-label { display: none; }
  .header__phone-btn { padding: 8px; border-radius: 50%; border: none; background: #f5f5f5; }
  .header__phone-icon { color: var(--color-text); }
  .menu-section__title { font-size: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__col--brand { grid-column: 1 / -1; align-items: flex-start; }
  .footer__tagline { max-width: none; }
  .category-nav__cart { padding: 0 14px; height: 34px; font-size: 13px; }
}
@media (max-width: 480px) {
  /* Dodo-style list layout on phones: small image on the left, name +
     description + price on the right. Keeps text density high — several
     items visible in viewport at once, no long gaps while scrolling. */
  .product-grid { grid-template-columns: 1fr; gap: 0; }
  .menu-section__title { font-size: 22px; margin-bottom: 8px; }

  .product-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    grid-template-areas:
      "img  info"
      "img  footer";
    column-gap: 14px;
    row-gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: start;
  }
  .product-card__image-wrap {
    grid-area: img;
    width: 132px;
    height: 132px;
    aspect-ratio: auto;
    align-self: center;
  }
  .product-card__info {
    grid-area: info;
    min-width: 0;
    padding: 0;
  }
  .product-card__name {
    font-size: 15px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
  }
  .product-card__desc {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card__footer {
    grid-area: footer;
    padding: 0;
    text-align: left;
    align-self: end;
  }
  .product-card__price-btn { padding: 7px 14px; font-size: 14px; }

  .cart-sidebar { width: 100vw; }
  .popular-item { width: 120px; }
  .popular-item__img-wrap { width: 80px; height: 80px; }
  .category-nav__cart-text { display: none; }
  .category-nav__cart { padding: 0 12px; height: 32px; font-size: 12px; border-radius: 16px; }
  .footer { padding-top: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
  .footer__col--brand { grid-column: 1; }
  .footer__logo-img { height: 64px; }
  .footer__title { margin-bottom: 10px; }
}

/* === PRODUCT MODAL === */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.product-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.product-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.product-modal-overlay.active .product-modal {
  transform: translateY(0);
  opacity: 1;
}
.product-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  font-size: 22px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #333;
  transition: background 0.2s;
}
.product-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.product-modal__body {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.product-modal__image-section {
  flex: 0 0 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-modal__image-section img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}
.product-modal__config-section {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.product-modal__name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-modal__ingredients-wrap {
  margin-bottom: 16px;
}
.product-modal__ingredients-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-modal__ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-modal__ingredient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #f0f0f0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.product-modal__ingredient:hover {
  background: #e5e5e5;
}
.product-modal__ingredient .ingredient-icon {
  font-size: 14px;
  color: #999;
  line-height: 1;
}
.product-modal__ingredient.removed {
  opacity: 0.45;
  background: #fafafa;
  border-color: #e0e0e0;
}
.product-modal__ingredient.removed .ingredient-name {
  text-decoration: line-through;
}
.product-modal__ingredient .ingredient-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.product-modal__ingredient.removed .ingredient-icon {
  color: var(--color-primary);
  font-weight: 600;
}
.product-modal__ingredients-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}
/* Extra ingredients section */
.product-modal__extras-wrap {
  margin-bottom: 16px;
}
.product-modal__extras-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-modal__extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-modal__extra-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.product-modal__extra-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.product-modal__extra-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.product-modal__extra-card--selected {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255, 105, 0, 0.18);
}
.product-modal__extra-card--selected:hover {
  box-shadow: 0 6px 20px rgba(255, 105, 0, 0.22);
}
.product-modal__extra-card-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 10px;
}
.product-modal__extra-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #1a1a1a;
}
.product-modal__extra-card-price {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}
.product-modal__extra-card--selected .product-modal__extra-card-price {
  color: var(--color-primary);
  font-weight: 600;
}

.product-modal__spacer {
  flex: 1;
  min-height: 16px;
}
.product-modal__add-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
  margin-top: 8px;
}
.product-modal__add-btn:hover {
  background: var(--color-primary-hover);
}

/* Cart removed ingredients */
.cart-item__removed {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: 1px;
  line-height: 1.3;
}

/* Cart extras */
.cart-item__extras {
  font-size: 11px;
  color: var(--color-primary);
  margin-top: 1px;
  line-height: 1.3;
}

/* Order summary removed */
.modal__summary-removed {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: 2px;
}
.modal__summary-extras {
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Delivery info in cart sidebar */
.cart-sidebar__delivery-info {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-sidebar__delivery-hint {
  font-size: 12px;
  color: var(--color-primary);
}

/* Delivery info in order summary */
.modal__summary-delivery {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
  margin-top: 8px;
}
.modal__summary-hint {
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Mobile fix: prevent blue tap highlight on buttons and interactive elements */
.cart-item__qty-btn,
.product-modal__ingredient,
.product-modal__ingredient .ingredient-name,
.product-modal__extra-card {
  -webkit-tap-highlight-color: transparent;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}

/* Product modal responsive */
@media (max-width: 640px) {
  .product-modal-overlay {
    padding: 20px;
    align-items: center;
  }
  .product-modal {
    max-width: none;
    width: 100%;
    max-height: 90vh;
    height: auto;
    border-radius: 20px;
  }
  .product-modal__body {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .product-modal__image-section {
    flex: 0 0 auto;
    max-height: 35vh;
    min-height: 180px;
  }
  .product-modal__image-section img {
    max-height: 30vh;
  }
  .product-modal__config-section {
    flex: none;
    padding: 20px 16px;
    overflow-y: visible;
  }
  .product-modal__name {
    font-size: 20px;
  }
  .product-modal__extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Cart promo block — minimal receipt-style summary
   ============================================================ */
.cart-promo-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

/* Subtle hint — one soft orange line, no heavy container */
.cart-promo-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FFF8F1;
  border: 1px solid #FFE3CE;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #9E3A0B;
}
.cart-promo-hint::before {
  content: "✨";
  flex: 0 0 auto;
  font-size: 14px;
}

/* Receipt-style rows — no background, tight spacing, uniform muted labels */
.cart-sum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.cart-sum__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  line-height: 1.4;
  color: #1a1a1a;
}
.cart-sum__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-sum__value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
  color: #1a1a1a;
}
.cart-sum__row--muted { color: #8a8a8a; }
.cart-sum__row--muted .cart-sum__value { font-weight: 400; color: #8a8a8a; }
.cart-sum__row--promo .cart-sum__value { color: #E85D14; }
.cart-sum__row--gift  .cart-sum__value { color: #8a8a8a; font-weight: 400; }

/* Small check bullet in brand orange */
.cart-sum__check {
  width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: #E85D14;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  flex: 0 0 auto;
}
.cart-sum__gift-icon { font-size: 13px; flex: 0 0 auto; }

/* Homepage promo banners */
.home-promos {
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.home-promo-card {
  background: #fff;
  border: 1px solid #E6E8EC;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 18, 32, 0.04);
}
.home-promo-card__badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #E85D14; color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.home-promo-card__icon { font-size: 26px; line-height: 1; }
.home-promo-card__title { font-size: 15px; font-weight: 600; color: #0B1220; }
.home-promo-card__desc { font-size: 13px; color: #5C6475; line-height: 1.4; }

.home-promos-section {
  padding: 16px 0 8px;
}
.home-promos-section__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
}

/* ===================================================================
   Image wrappers — show #f2f2f2 placeholder while lazy images load.
   Without this, wrappers are transparent (white) during the download
   window of lazy-loaded AVIF images, which looks like a blank/white card
   during fast scroll. background: #f2f2f2 acts as the skeleton.
   Images render naturally at full opacity as soon as they decode.
   =================================================================== */
.product-card__image-wrap,
.popular-item__img-wrap {
  position: relative;
  background: #fff;
}
.story-card {
  position: relative;
}

/* NOTE: content-visibility: auto was removed.
   It reserves contain-intrinsic-size placeholder space for off-screen
   sections and defers their actual rendering until they enter viewport.
   On fast flick scroll, this manifests as fully BLANK regions at the
   bottom of the list — section reservations are visible but content
   (text + images) hasn't painted yet. Without cv:auto, all sections
   render upfront with text immediately visible. Paint cost at this DOM
   size (~48 cards) with AVIF payloads is negligible. */

/* iOS Safari zooms the viewport on focus when input font-size < 16px.
   Bump to 16px on touch-width viewports — no design impact on desktop.
   Placed at the end of the file so cascade wins over any earlier
   `.form-group input { font-size: 14px }` rule with equal specificity. */
@media (max-width: 768px) {
  input, select, textarea,
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* === SITE ALERT (orders paused banner) ===================================
   Modern compact warning bar: amber palette, soft border, icon-led layout.
   Single-line on desktop, stacked on mobile. */
.site-alert {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: #fffbeb;
  color: #78350f;
  border-bottom: 1px solid #fde68a;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(120, 53, 15, 0.04);
}
.site-alert__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  flex: 0 0 auto;
}
.site-alert__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.site-alert__title {
  font-weight: 600;
  color: #78350f;
  letter-spacing: -0.005em;
}
.site-alert__msg {
  color: #92400e;
  opacity: 0.85;
}
.site-alert__msg::before {
  content: "·";
  margin-right: 6px;
  opacity: 0.5;
  font-weight: 700;
}
/* Mobile: keep icon left, stack title + msg into a column */
@media (max-width: 640px) {
  .site-alert__inner {
    padding: 10px 14px;
    gap: 10px;
  }
  .site-alert__body {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .site-alert__msg { font-size: 13px; }
  .site-alert__msg::before { display: none; }
}

/* Move sticky category-nav down so it doesn't overlap the alert.
   --alert-height is set by JS (cart.js) on load/resize. */
.category-nav { top: var(--alert-height, 0px); }

/* === Orders-paused: disable cart and add-to-cart interactions === */
/* Submit buttons go grey */
body[data-orders-accepting="0"] .cart-sidebar__order-btn,
body[data-orders-accepting="0"] #order-submit {
  background: #c8c8c8 !important;
  color: #6b6b6b !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}
body[data-orders-accepting="0"] .cart-sidebar__order-btn:hover,
body[data-orders-accepting="0"] #order-submit:hover {
  background: #c8c8c8 !important;
}

/* Price pill on product cards goes grey, can't be tapped */
body[data-orders-accepting="0"] .product-card__price-btn {
  background: #e6e6e6 !important;
  color: #8a8a8a !important;
  cursor: not-allowed !important;
  pointer-events: none;
}
body[data-orders-accepting="0"] .product-card__price-current {
  color: #8a8a8a !important;
}

/* Whole product card is no longer interactive (greyed image, no hover) */
body[data-orders-accepting="0"] .product-card {
  cursor: not-allowed;
  opacity: 0.85;
}
body[data-orders-accepting="0"] .product-card:hover {
  transform: none;
  box-shadow: none;
}
body[data-orders-accepting="0"] .product-card__image {
  filter: grayscale(0.35);
}

/* "Popular" items (top of menu) — same treatment */
body[data-orders-accepting="0"] .popular-item {
  cursor: not-allowed;
  opacity: 0.85;
  filter: grayscale(0.2);
  pointer-events: none;
}

/* Cart-open button in category nav — greyed out, not interactive */
body[data-orders-accepting="0"] .category-nav__cart,
body[data-orders-accepting="0"] #cart-toggle {
  background: #c8c8c8 !important;
  color: #6b6b6b !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}
body[data-orders-accepting="0"] .category-nav__cart:hover,
body[data-orders-accepting="0"] #cart-toggle:hover {
  background: #c8c8c8 !important;
}
body[data-orders-accepting="0"] .category-nav__cart-divider {
  background: #a0a0a0 !important;
}

