/* Megaburger — Burger King RU layout */

:root {
  --mb-brown: #3d2318;
  --mb-brown-mid: #5c3424;
  --mb-brown-dark: #1a0f0a;
  --mb-red: #c41e0f;
  --mb-red-dark: #9a1709;
  --mb-orange: #e85d04;
  --mb-orange-light: #ff7b2e;
  --mb-gold: #f4a261;
  --mb-cream: #faf3e8;
  --mb-cream-2: #efe4d4;
  --mb-card: #fffcf7;
  --mb-green: #2d6a4f;
  --mb-ink: #1a0f0a;
  --mb-muted: #7a5c48;
  --mb-white: #ffffff;

  /* legacy aliases */
  --bk-brown: var(--mb-brown);
  --bk-brown-dark: var(--mb-brown-dark);
  --bk-red: var(--mb-red);
  --bk-red-dark: var(--mb-red-dark);
  --bk-orange: var(--mb-orange);
  --bk-yellow: var(--mb-gold);
  --bk-cream: var(--mb-cream);
  --bk-cream-2: var(--mb-cream-2);
  --bk-card: var(--mb-card);
  --bk-green: var(--mb-green);
  --bk-ink: var(--mb-ink);
  --bk-muted: var(--mb-muted);
  --bk-white: var(--mb-white);

  --header-utility-h: 18px;
  --header-main-h: 52px;
  --header-h: calc(var(--header-utility-h) + var(--header-main-h));
  --active-order-h: 0px;
  --sticky-stack: var(--header-h);
  --mobile-cats-h: 54px;
  --promo-h: 380px;
  --sidebar-w: 260px;
  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --radius: 18px;
  --shadow: 0 2px 14px rgba(26, 15, 10, 0.07);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-stack) + var(--mobile-cats-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--mb-cream);
  color: var(--mb-ink);
  line-height: 1.45;
  overflow-x: hidden;
  padding-top: var(--sticky-stack);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(232, 93, 4, 0.04) 0%, transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(244, 162, 97, 0.06) 0%, transparent 32%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1280px, 100% - 32px); margin-inline: auto; }

body.has-active-order {
  --active-order-h: 48px;
  --sticky-stack: calc(var(--header-h) + var(--active-order-h));
}

/* ── Header (utility + main) — fixed on scroll ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  background: var(--mb-brown);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.header__utility {
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--header-utility-h);
}

.header__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__links {
  display: flex;
  gap: 18px;
}

.header__links a {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(250, 243, 232, 0.72);
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease);
}

.header__links a:hover { color: var(--mb-gold); }

.header__hours {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mb-gold);
}

.header__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-main-h);
  padding: 8px 0;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.header__nav-compact {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.header__nav-compact a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(250, 243, 232, 0.88);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.header__nav-compact a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--mb-gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.header__app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 162, 97, 0.18);
  color: var(--mb-gold);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  border: 1px solid rgba(244, 162, 97, 0.28);
}

.header__app svg { flex-shrink: 0; width: 16px; height: 16px; }

.header__app:hover {
  background: rgba(244, 162, 97, 0.32);
  transform: scale(1.03);
}

.header__app.is-hidden { display: none; }

.app-install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 8px;
}

.app-install-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--mb-cream);
  font-size: 0.875rem;
  color: var(--mb-brown);
  line-height: 1.45;
}

.app-install-step strong {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mb-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.header__logo:hover img { transform: scale(1.04); }

.header__loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bk-cream);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}

.header__loc svg { width: 14px; height: 14px; }
.header__loc svg:last-child { width: 8px; height: 8px; }

.header__loc:hover { background: rgba(255, 255, 255, 0.22); }

.header__search {
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--mb-cream);
}

.header__search svg { flex-shrink: 0; opacity: 0.75; }

.header__search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--mb-cream);
  font-size: 0.8125rem;
  outline: none;
}

.header__search input::placeholder { color: rgba(250, 243, 232, 0.55); }

.header__search:focus-within {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(244, 162, 97, 0.35);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mode-toggle {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.mode-toggle__btn {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(245, 235, 220, 0.85);
  transition: 0.25s var(--ease);
}

.mode-toggle__btn.is-active {
  background: var(--bk-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(214, 35, 0, 0.4);
}

.header__cart {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bk-orange);
  color: var(--bk-brown-dark);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header__account {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--bk-cream);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.header__account svg { width: 18px; height: 18px; }

.header__account:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.22);
}

.header__account.is-logged-in {
  background: var(--mb-green);
  color: #fff;
}

.header__account-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bk-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bk-brown);
}

.header__cart svg { width: 18px; height: 18px; }

.header__cart:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(255, 135, 50, 0.45);
}

.header__cart span {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bk-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bk-brown);
  animation: pop 0.35s var(--ease);
}

@keyframes pop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ── Promo carousel (full banner) ── */
.promo-carousel {
  background: var(--bk-cream);
  padding: 20px 0 28px;
}

.promo-carousel__wrap {
  position: relative;
}

.promo-carousel__viewport {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(43, 2, 0, 0.12);
}

.promo-carousel__track {
  display: flex;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.promo-slide {
  flex: 0 0 100%;
  min-height: var(--promo-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--bk-brown) 0%, #3d1a0f 55%, #2b0200 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.promo-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255, 135, 50, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.promo-slide__content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bk-cream);
}

.promo-slide__badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--bk-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: badgePop 0.6s var(--ease);
}

@keyframes badgePop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.promo-slide__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.promo-slide__subtitle {
  font-size: 1.0625rem;
  color: rgba(245, 235, 220, 0.85);
  margin-bottom: 28px;
  max-width: 340px;
  line-height: 1.4;
}

.promo-slide__cta {
  display: inline-flex;
  width: fit-content;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--bk-orange);
  color: var(--bk-brown-dark);
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 16px rgba(255, 135, 50, 0.35);
}

.promo-slide__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 135, 50, 0.5);
}

.promo-slide__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 24px 0;
}

.promo-slide__visual img {
  max-height: calc(var(--promo-h) - 24px);
  width: auto;
  max-width: 115%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  animation: floatFood 4s ease-in-out infinite;
}

@keyframes floatFood {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

.promo-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bk-white);
  color: var(--bk-brown);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.promo-carousel__arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--bk-orange);
  color: #fff;
}

.promo-carousel__arrow--prev { left: -20px; }
.promo-carousel__arrow--next { right: -20px; }

.promo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.promo-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bk-cream-2);
  border: 2px solid var(--bk-muted);
  transition: 0.3s var(--ease);
  padding: 0;
}

.promo-carousel__dot.is-active {
  width: 32px;
  border-radius: 999px;
  background: var(--bk-red);
  border-color: var(--bk-red);
}

.promo-carousel__progress {
  height: 3px;
  background: var(--bk-cream-2);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.promo-carousel__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mb-orange), var(--mb-gold));
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* ── Trust strip ── */
.trust-strip {
  background: var(--mb-white);
  border-bottom: 1px solid var(--mb-cream-2);
  padding: 14px 0;
  position: relative;
  z-index: 1;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--mb-cream);
  border: 1px solid rgba(61, 35, 24, 0.06);
  min-width: 0;
}

.trust-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mb-brown);
  color: var(--mb-gold);
  font-size: 1.1rem;
}

.trust-item__text {
  min-width: 0;
}

.trust-item__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-brown);
  line-height: 1.1;
}

.trust-item__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--mb-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-item--link {
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.trust-item--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Page layout: sidebar + content ── */
.page {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 24px;
  width: min(1280px, 100% - 32px);
  margin: 24px auto 0;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--sticky-stack) + 16px);
  background: var(--bk-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  max-height: calc(100vh - var(--sticky-stack) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--bk-brown);
  text-align: left;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.sidebar__item:hover {
  background: var(--bk-cream);
  transform: translateX(4px);
}

.sidebar__item.is-active {
  background: var(--bk-brown);
  color: var(--bk-cream);
  box-shadow: 0 4px 12px rgba(80, 35, 20, 0.25);
}

.sidebar__icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.page__content { min-width: 0; }

/* ── Menu grid ── */
.menu { padding-bottom: 64px; }

.menu-block {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--sticky-stack) + var(--mobile-cats-h) + 16px);
}

.menu-block__head {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-block__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mb-muted);
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.menu-block__head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bk-brown);
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.menu-block__head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--bk-orange);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  background: var(--mb-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: cardIn 0.5s var(--ease) both;
  border: 1px solid rgba(61, 35, 24, 0.07);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--mb-orange), var(--mb-gold));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card:hover::after { opacity: 1; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(43, 2, 0, 0.14);
}

.card__media {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.95) 0%, rgba(250, 243, 232, 0.5) 55%, transparent 72%);
  padding: 14px;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
  filter: drop-shadow(0 6px 14px rgba(26, 15, 10, 0.12));
}

.card:hover .card__media img { transform: scale(1.08); }

.card--flash {
  animation: cardFlash 1.4s var(--ease);
}

@keyframes cardFlash {
  0%, 100% { box-shadow: var(--shadow); transform: translateY(0); }
  25% { box-shadow: 0 0 0 3px var(--mb-orange), 0 16px 40px rgba(232, 93, 4, 0.25); transform: translateY(-6px) scale(1.02); }
  50% { box-shadow: 0 0 0 3px var(--mb-gold), 0 12px 32px rgba(244, 162, 97, 0.2); }
}

.card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge--hot { background: var(--bk-red); color: #fff; }
.badge--spicy { background: var(--bk-orange); color: #fff; }
.badge--fire { background: var(--bk-yellow); color: var(--bk-brown); }

.card__body {
  padding: 0 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--bk-brown);
  margin-bottom: 4px;
  line-height: 1.25;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--bk-muted);
  margin-bottom: 6px;
}

.card__desc {
  font-size: 0.75rem;
  color: var(--bk-muted);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.card__price {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--bk-brown);
}

.card__order {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bk-orange);
  color: var(--bk-brown-dark);
  font-weight: 700;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.card__order:hover {
  background: #ff9a4d;
  transform: scale(1.04);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.2s var(--ease);
}

.btn--primary { background: var(--bk-red); color: #fff; }
.btn--primary:hover { background: var(--bk-red-dark); }
.btn--full { width: 100%; }

/* ── Footer ── */
.footer {
  background: var(--mb-brown-dark);
  color: rgba(250, 243, 232, 0.85);
  margin-top: 32px;
}

.footer__cta {
  background: linear-gradient(135deg, var(--mb-brown) 0%, #2a1810 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
}

.footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__cta-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mb-gold);
  background: rgba(244, 162, 97, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.footer__cta-text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-cream);
  line-height: 1;
  margin-bottom: 6px;
}

.footer__cta-text p {
  font-size: 0.875rem;
  color: rgba(250, 243, 232, 0.72);
}

.footer__cta-btn {
  display: inline-flex;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--mb-orange);
  color: var(--mb-brown-dark);
  font-weight: 800;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.35);
}

.footer__cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.45);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 24px;
  padding: 40px 0 32px;
}

.footer__logo {
  height: 64px;
  width: auto;
  margin-bottom: 10px;
}

.footer__brand p { font-size: 0.875rem; max-width: 260px; }

.footer h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bk-orange);
  margin-bottom: 12px;
}

.footer a, .footer span {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer a:hover { color: #fff; }

.footer__locs p {
  font-size: 0.8125rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(245, 235, 220, 0.5);
}

/* ── Cart ── */
.cart-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 2, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s var(--ease);
  backdrop-filter: blur(2px);
}

.cart-overlay.is-open, .modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--bk-cream);
  z-index: 2001;
  transform: translateX(100%);
  transition: 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.cart-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--bk-cream);
  z-index: 2001;
  transform: translateX(100%);
  transition: 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.account-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.account-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--mb-green);
  color: var(--bk-cream);
}

.account-panel__head h2 {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-panel__head button {
  color: var(--bk-cream);
  font-size: 1.75rem;
  line-height: 1;
}

.account-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

.account-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--mb-white);
  border-radius: 14px;
  border: 1px solid var(--mb-cream-2);
}

.account-tab {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mb-muted);
  transition: 0.2s var(--ease);
}

.account-tab.is-active {
  background: var(--mb-brown);
  color: var(--mb-cream);
}

.account-guest__hero {
  text-align: center;
  padding: 12px 0 20px;
}

.account-guest__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.account-guest__hero h3 {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-brown);
  margin-bottom: 8px;
}

.account-guest__hero p {
  font-size: 0.875rem;
  color: var(--mb-muted);
  line-height: 1.5;
}

.account-guest__hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--mb-orange);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--ghost {
  background: transparent;
  color: var(--mb-muted);
  border: 1px solid var(--mb-cream-2);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
}

.btn--ghost:hover {
  border-color: var(--mb-brown);
  color: var(--mb-brown);
}

.account-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--mb-muted);
}

.account-empty span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.account-empty-text {
  font-size: 0.875rem;
  color: var(--mb-muted);
  padding: 16px 0;
}

.order-card {
  background: var(--mb-white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--mb-cream-2);
  box-shadow: var(--shadow);
}

.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.order-card__head strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--mb-brown);
}

.order-card__date {
  font-size: 0.75rem;
  color: var(--mb-muted);
}

.order-card__status {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--mb-green);
  white-space: nowrap;
}

.order-card__items {
  list-style: none;
  font-size: 0.8125rem;
  color: var(--mb-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mb-brown);
  padding-top: 8px;
  border-top: 1px solid var(--mb-cream-2);
}

.order-card__repeat {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mb-orange);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(232, 93, 4, 0.1);
}

.order-card__repeat:hover {
  background: rgba(232, 93, 4, 0.18);
}

.address-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
  font-size: 0.875rem;
  color: var(--mb-brown);
}

.address-item.is-default {
  border-color: var(--mb-green);
  background: rgba(45, 106, 79, 0.06);
}

.address-item em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--mb-green);
}

.address-item__remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--mb-muted);
  flex-shrink: 0;
}

.address-item__remove:hover {
  background: rgba(196, 30, 15, 0.1);
  color: var(--mb-red);
}

.checkout-login-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--mb-orange);
  text-decoration: underline;
  cursor: pointer;
}

.cart-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bk-brown);
  color: var(--bk-cream);
}

.cart-panel__head h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-panel__head button {
  color: var(--bk-cream);
  font-size: 1.75rem;
  line-height: 1;
}

.cart-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-panel__foot { padding: 16px 20px; background: var(--bk-white); border-top: 1px solid var(--bk-cream-2); }

.cart-panel__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--bk-brown);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bk-cream-2);
  animation: cardIn 0.3s var(--ease);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bk-cream);
}

.cart-item__name { font-weight: 600; font-size: 0.875rem; }
.cart-item__price { color: var(--bk-red); font-weight: 700; }

.cart-item__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item__ctrl button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bk-cream);
  font-weight: 700;
}

.empty { text-align: center; color: var(--mb-muted); padding: 32px 0; }

.cart-empty {
  text-align: center;
  padding: 48px 16px;
}

.cart-empty__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.85;
}

.cart-empty__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-brown);
  margin-bottom: 8px;
}

.cart-empty__text {
  font-size: 0.875rem;
  color: var(--mb-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.cart-empty__btn {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--mb-orange);
  color: var(--mb-brown-dark);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ── Modal ── */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(520px, calc(100% - 32px));
  max-height: 90vh;
  background: var(--mb-white);
  border-radius: calc(var(--radius) + 4px);
  z-index: 2001;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s var(--ease);
  box-shadow: 0 24px 64px rgba(26, 15, 10, 0.28);
  border: 1px solid rgba(61, 35, 24, 0.08);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.75rem;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.modal__img {
  position: relative;
  height: 280px;
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.95) 0%, var(--mb-cream) 70%),
    linear-gradient(180deg, var(--mb-brown) 0%, #2a1810 100%);
  background-size: 100% 85%, 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.modal__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--mb-red);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal__badge--spicy {
  left: auto;
  right: 12px;
  background: var(--mb-orange);
}

.modal__body { padding: 24px; }

.modal__meta {
  font-size: 0.875rem;
  color: var(--mb-muted);
  margin: 4px 0 12px;
}

.modal__desc {
  font-size: 0.9375rem;
  color: var(--mb-brown);
  line-height: 1.5;
  margin-bottom: 4px;
}

.modal__body h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bk-brown);
}

.modal__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.modal__foot .card__price { font-size: 1.75rem; color: var(--bk-red); }

.menu-search-mobile {
  display: none;
  padding: 0 0 12px;
}

.menu-search-mobile__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
  box-shadow: var(--shadow);
  color: var(--mb-muted);
}

.menu-search-mobile__inner input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--mb-brown);
  outline: none;
}

.menu-search-empty {
  text-align: center;
  color: var(--mb-muted);
  padding: 32px 16px;
  font-size: 0.9375rem;
}

.card.is-hidden { display: none !important; }

.menu-block.is-empty { display: none; }

.location-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.location-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--mb-cream-2);
  background: var(--mb-white);
  text-align: left;
  transition: 0.2s var(--ease);
}

.location-option:hover { border-color: var(--mb-orange); }

.location-option.is-active {
  border-color: var(--mb-brown);
  background: var(--mb-cream);
}

.location-option strong {
  font-size: 0.9375rem;
  color: var(--mb-brown);
}

.location-option span {
  font-size: 0.8125rem;
  color: var(--mb-muted);
}

.modal--sheet {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
}

.modal.modal--sheet.is-open {
  transform: translateY(0);
}

.modal--sheet .modal__x {
  color: var(--mb-brown);
  text-shadow: none;
}

.modal__body--pad { padding: 8px 24px 28px; }

.modal__sheet-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-brown);
  margin-bottom: 4px;
}

.modal__sheet-sub {
  font-size: 0.875rem;
  color: var(--mb-muted);
  margin-bottom: 16px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mb-brown);
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--mb-cream-2);
  background: var(--mb-white);
  font: inherit;
  color: var(--mb-ink);
  transition: border-color 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--mb-orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.form-field textarea { min-height: 72px; resize: vertical; }

.checkout-summary {
  margin: 8px 0 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--mb-cream);
  font-size: 0.8125rem;
  color: var(--mb-brown);
  line-height: 1.5;
  list-style: none;
}

.checkout-summary li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.checkout-success {
  text-align: center;
  padding: 16px 0 8px;
}

.checkout-success__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  color: var(--mb-green);
}

.checkout-success h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-brown);
  margin-bottom: 8px;
}

.checkout-success p {
  color: var(--mb-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.checkout-success p {
  color: var(--mb-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.checkout-success__bonus {
  color: var(--mb-green) !important;
  font-weight: 700;
}

.checkout-success__share {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-promo {
  padding: 12px;
  border-radius: 14px;
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
}

.checkout-promo__input {
  display: flex;
  gap: 8px;
}

.checkout-promo__input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--mb-cream-2);
  font: inherit;
}

.checkout-promo__input .btn--ghost {
  flex-shrink: 0;
  padding: 10px 14px;
}

.checkout-summary__discount {
  color: var(--mb-green);
  font-weight: 600;
}

.checkout-summary__total {
  font-weight: 700;
  border-top: 1px solid var(--mb-cream-2);
  padding-top: 8px;
  margin-top: 4px;
}

.card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mb-muted);
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: 0.2s var(--ease);
}

.card__fav:hover { transform: scale(1.08); color: var(--mb-red); }

.card__fav.is-active {
  color: var(--mb-red);
  background: #fff;
}

.modal__fav {
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.modal__fav.is-active {
  color: #ff6b6b;
  background: rgba(0, 0, 0, 0.5);
}

.active-order {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 1095;
  background: linear-gradient(90deg, var(--mb-green) 0%, #3d8b62 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.25);
}

.active-order__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.active-order__label {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.active-order__info strong {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.active-order__btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.active-order__btn:hover { background: rgba(255, 255, 255, 0.28); }

.bonus-card {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mb-brown) 0%, #5c3424 100%);
  color: var(--mb-cream);
  margin-bottom: 16px;
  text-align: center;
}

.bonus-card__label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.bonus-card__value {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mb-gold);
}

.bonus-card__hint {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.7;
  margin-top: 6px;
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
}

.fav-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--mb-cream);
}

.fav-card__info {
  flex: 1;
  min-width: 0;
}

.fav-card__info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--mb-brown);
}

.fav-card__info span {
  font-size: 0.8125rem;
  color: var(--mb-red);
  font-weight: 700;
}

.fav-card__add {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mb-orange);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.fav-card__remove {
  position: static;
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.order-card--active {
  border-color: var(--mb-orange);
}

.order-card__status--cooking { background: rgba(232, 93, 4, 0.12); color: var(--mb-orange); }
.order-card__status--delivering { background: rgba(61, 35, 24, 0.1); color: var(--mb-brown); }

.order-track {
  margin-bottom: 12px;
}

.order-track__bar {
  height: 4px;
  background: var(--mb-cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.order-track__bar span {
  display: block;
  height: 100%;
  background: var(--mb-green);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}

.order-track__labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.625rem;
  color: var(--mb-muted);
}

.order-track__labels span.is-done {
  color: var(--mb-green);
  font-weight: 700;
}

.cart-item__remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--mb-muted);
  padding: 4px 8px;
}

.cart-item__remove:hover { color: var(--mb-red); }

.cart-item__ctrl button.is-round {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
  font-size: 1.125rem;
  line-height: 1;
}

.cart-item__ctrl button.is-round:hover {
  background: var(--mb-cream);
  border-color: var(--mb-orange);
}

.card__desc { font-size: 0.875rem; color: var(--bk-muted); margin: 10px 0; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--bk-brown);
  color: var(--bk-cream);
  padding: 12px 24px;
  border-radius: 999px;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s var(--ease);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 2100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mb-brown);
  color: var(--mb-cream);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(26, 15, 10, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: 0.3s var(--ease);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: var(--mb-brown-mid);
  transform: translateY(-2px) scale(1.04);
}

.float-cart {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2100;
  transform: translateX(-50%) translateY(80px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--mb-orange);
  color: var(--mb-brown-dark);
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.35s var(--ease);
}

.float-cart.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.float-cart:hover {
  background: var(--mb-orange-light);
  transform: translateX(-50%) translateY(-2px);
}

body.has-float-cart .scroll-top {
  bottom: 84px;
}

body.cookie-visible .scroll-top.is-visible,
body.cookie-visible .float-cart.is-visible {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

body.cookie-visible .toast.is-visible {
  bottom: calc(80px + env(safe-area-inset-bottom));
}

body.has-float-cart.cookie-visible .scroll-top.is-visible {
  bottom: calc(140px + env(safe-area-inset-bottom));
}

body.has-float-cart .toast.is-visible {
  bottom: 88px;
}

.recent-block {
  margin-bottom: 16px;
}

.recent-block__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mb-brown);
  margin-bottom: 10px;
}

.recent-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.recent-rail::-webkit-scrollbar { display: none; }

.recent-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 88px;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--mb-white);
  border: 1px solid var(--mb-cream-2);
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.2s var(--ease);
}

.recent-chip:hover {
  border-color: var(--mb-orange);
  transform: translateY(-2px);
}

.recent-chip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.recent-chip span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--mb-brown);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-chip strong {
  font-size: 0.75rem;
  color: var(--mb-red);
}

.modal__share {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal__share:hover { background: rgba(0, 0, 0, 0.5); }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--mb-brown);
  color: var(--mb-cream);
  font-size: 0.8125rem;
  pointer-events: auto;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-bar p { max-width: 640px; margin: 0; }

.cookie-bar .btn {
  padding: 10px 22px;
  font-size: 0.875rem;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .scroll-top {
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }

  body.has-float-cart .scroll-top {
    bottom: 78px;
  }

  .float-cart {
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 320px;
    justify-content: center;
  }
}

/* ── Mobile category rail (hidden on desktop) ── */
.mobile-cats {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  :root { --sidebar-w: 0px; }

  .page {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar { display: none; }

  .mobile-cats {
    display: block;
    position: relative;
    z-index: 999;
    background: rgba(250, 243, 232, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mb-cream-2);
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(26, 15, 10, 0.12);
  }

  .mobile-cats.is-docked {
    position: fixed;
    top: var(--sticky-stack);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1090;
  }

  body.mobile-cats-docked #menu {
    padding-top: var(--mobile-cats-h);
  }

  .page {
    padding-top: 0;
  }

  .menu-block {
    scroll-margin-top: calc(var(--sticky-stack) + var(--mobile-cats-h) + 12px);
  }

  .menu { padding-top: 8px; }

  .mobile-cats__rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
  }

  .mobile-cats__rail::-webkit-scrollbar { display: none; }

  .cat-pill {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--bk-white);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--bk-brown);
    box-shadow: var(--shadow);
    transition: 0.2s var(--ease);
  }

  .cat-pill.is-active {
    background: var(--bk-brown);
    color: var(--bk-cream);
  }
}

@media (max-width: 768px) {
  :root {
    --header-utility-h: 0px;
    --header-main-h: 56px;
  }

  :root { --promo-h: 420px; }

  .header__utility { display: none; }

  .header__nav-compact { display: flex; }

  .header__app-label { display: none; }

  .header__app {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .header__logo img { height: 34px; }

  .header__loc {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .header__search { display: none; }
  .menu-search-mobile { display: block; }
  .header__loc span { display: none; }
  .mode-toggle { display: none; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-item { padding: 8px 10px; gap: 8px; }
  .trust-item__icon { width: 34px; height: 34px; font-size: 0.95rem; }
  .trust-item__label { font-size: 0.82rem; }
  .trust-item__sub { font-size: 0.68rem; }
  .promo-slide { grid-template-columns: 1fr; }
  .promo-slide__content { padding: 20px 20px 16px; }
  .promo-slide__visual {
    order: -1;
    padding: 0;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
  }
  .promo-slide__visual img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: clamp(200px, 42vw, 280px);
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
    animation: none;
  }
  .promo-carousel { padding: 12px 0 20px; }
  .promo-carousel__wrap { width: 100%; }
  .promo-carousel .container { width: 100%; max-width: 100%; padding-inline: 0; }
  .promo-carousel__viewport { border-radius: 16px; }
  .promo-carousel__arrow { width: 40px; height: 40px; }
  .promo-carousel__arrow--prev { left: 4px; }
  .promo-carousel__arrow--next { right: 4px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__cta-inner { flex-direction: column; text-align: center; }
  .footer__cta-btn { width: 100%; justify-content: center; }
  .card__order { padding: 8px 12px; font-size: 0.75rem; }
  .card__desc { display: none; }
}

@media (max-width: 480px) {
  .header__nav-compact a {
    padding: 6px 8px;
    font-size: 0.6875rem;
  }

  .header__main { gap: 6px; }

  .trust-strip__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .card__title { font-size: 0.8125rem; }
  .card__price { font-size: 1.125rem; }
}

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