/* ============================================================
   QR Menü - Frontend CSS
   Modern, mobil öncelikli tasarım
   ============================================================ */

:root {
  --primary:   #ff6b35;
  --secondary: #1a1a2e;
  --accent:    #ffd166;
  --font:      'Poppins', sans-serif;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(0,0,0,.1);
  --shadow-md: 0 8px 32px rgba(0,0,0,.15);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── KATEGORİ GRID (Ana Sayfa) ───────────────────────────── */

.menu-main--home {
  padding-top: 20px;
  padding-bottom: 40px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .cat-grid { gap: 16px; }
}

@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.cat-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cat-card::before {
  content: '';
  display: block;
  padding-top: 75%; /* 4:3 oranı — aspect-ratio yerine evrensel fallback */
}

.cat-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.cat-card:active {
  transform: scale(.97);
}

.cat-card__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #2d3748 100%);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.cat-card__fallback {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2b2b4a 100%);
  z-index: 0;
}

.cat-card:hover .cat-card__bg {
  transform: scale(1.08);
}

.cat-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.25) 40%,
    rgba(0,0,0,.72) 100%
  );
  z-index: 1;
}

.cat-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 2px;
}

.cat-card__name {
  font-size: clamp(.88rem, 3.5vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  letter-spacing: -.01em;
}

.cat-card__count {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

/* ── KATEGORİ DETAY BAR (Geri Butonu) ───────────────────── */

.cat-detail-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background .18s;
  flex-shrink: 0;
}

.back-btn:hover {
  background: rgba(255,107,53,.08);
}

.cat-detail-bar__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── FEATURED SLIDER ─────────────────────────────────────── */

.featured-section {
  max-width: 960px;
  margin: 18px auto 0;
  padding: 0 16px 8px;
}

.featured-section__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.featured-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  width: 100%;
}

.featured-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.featured-slider::-webkit-scrollbar { display: none; }

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  scroll-snap-align: start;
  color: var(--secondary);
  flex: 0 0 92px;
}

.featured-card__img-wrap {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.featured-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__name {
  width: 92px;
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 520px) {
  .featured-slider {
    gap: 12px;
  }

  .featured-card__img-wrap,
  .featured-card__name {
    width: 100px;
  }

  .featured-card {
    flex-basis: 100px;
  }
}

/* ── DİL SEÇİCİ ──────────────────────────────────────────── */

.lang-switcher {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 4px 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border: none;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  transition: background .18s, color .18s;
  padding: 0;
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.lang-btn--active {
  background: var(--primary);
  color: #fff;
}

/* ── HERO ─────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════
   HERO — Elite Minimal
   ══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 30px;
  overflow: hidden;
  background: var(--secondary);
}

/* Arka plan görseli */
.hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.25) saturate(.65);
}

/* Çok ince alt vignette */
.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
}

/* Masa rozeti — sağ üst, çok sade */
.hero__table-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* İçerik sarmalayıcı */
.hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  animation: heroFadeUp .5s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Kart yok — düz metin */
.hero__card {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo — varsa, küçük ve sade */
.hero__logo-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.hero__logo-ring--icon { display: none; } /* Logo yoksa çember gösterme */
.hero__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
}

/* Restoran adı */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hero__name {
  font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0;
}
.hero__tagline {
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255,255,255,.38);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}

/* İnce çizgi ayraç */
.hero__sep {
  width: 32px;
  height: 1px;
  background: rgba(var(--primary-rgb, 255,107,53), .6);
  margin: 14px auto 0;
}

/* Tel / Saat — dikey, çok sade */
.hero__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.hero__info-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.42);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .02em;
  white-space: nowrap;
}
.hero__info-item svg { color: var(--primary); opacity: .7; flex-shrink: 0; }

/* Geriye dönük uyumluluk */
.hero__overlay { display: none; }
.hero__content { display: none; }
.hero__hours   { display: none; }
.hero__table   { display: none; }

/* ── KATEGORİ NAV ─────────────────────────────────────────── */

.cat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}

.cat-nav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-nav__inner::-webkit-scrollbar { display: none; }

.cat-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 500;
  color: #555;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cat-nav__item:hover {
  background: #f0f0f0;
  color: var(--secondary);
}

.cat-nav__item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(255, 107, 53, .35);
}

.cat-nav__icon {
  font-size: 1rem;
}

/* ── MENÜ ANA ALAN ────────────────────────────────────────── */

.menu-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 100px;
}

/* ── KATEGORİ BÖLÜMÜ (SINGLE PAGE) ────────────────────────── */

.menu-main--single {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 100px 0;
}

.menu-container {
  background: #f4f4f4;
  min-height: 100vh;
}

.category-section {
  background: #ffffff;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border-radius: 20px;
}

.category-banner {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-banner__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
}

.category-banner__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.category-banner__title {
  position: relative;
  z-index: 10;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
  text-align: center;
  padding: 0 20px;
}

.category-products {
  padding: 10px 20px 20px;
}

.simple-product-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.2s ease;
}

.simple-product-card:active {
  opacity: 0.6;
}

.simple-product-card:last-child {
  border-bottom: none;
}

.simple-product-card__left {
  flex: 1;
  padding-right: 15px;
}

.simple-product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.simple-product-card__desc {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.4;
}

.simple-product-card__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.simple-product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
}

.simple-product-card--inactive {
  opacity: 0.5;
}

.simple-product-card__status {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-left: 8px;
}



/* ── BOŞ MENÜ ─────────────────────────────────────────────── */

.empty-menu {
  text-align: center;
  padding: 80px 20px;
  color: #aaa;
}

.empty-menu__icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-menu h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #666;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,.8);
  padding: 36px 20px;
}

.site-footer__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.site-footer__brand-logo {
  width: auto;
  height: 36px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin-top: 2px;
}

.site-footer__slogan {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  line-height: 1.55;
}

.site-footer__slogan a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
}

.site-footer__row a:hover { color: var(--accent); }

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: var(--transition);
}

.social-btn:hover { background: var(--primary); transform: scale(1.1); }

.site-footer__copy {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}

.site-footer__copy--brand {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
  margin-top: -2px;
}

.site-footer__copy--brand a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

body.has-contact-bar {
  padding-bottom: 104px;
}

.contact-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 240;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
}

.contact-bar__main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bar__button {
  width: 100%;
  border: none;
  border-radius: 18px;
  background: var(--contact-bar-bg, linear-gradient(135deg, rgba(26,26,46,.98) 0%, rgba(15,52,96,.98) 100%));
  color: #fff;
  padding: 14px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-bar__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-bar__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.contact-bar__title {
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-bar__sub {
  font-size: .72rem;
  color: rgba(255,255,255,.62);
}

.contact-bar__chev {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  transform: rotate(180deg);
}

.bottom-actions {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 250;
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: min(560px, calc(100% - 24px));
  transform: translateX(-50%);
}

.bottom-actions > * {
  flex: 1 1 0;
  min-width: 0;
}

body.has-contact-bar .bottom-actions {
  bottom: 86px;
}

.contact-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(10, 13, 20, .52);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  transition: opacity .22s ease, visibility .22s ease;
}

.contact-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.contact-sheet {
  width: min(100%, 640px);
  max-height: calc(100vh - 32px);
  pointer-events: auto;
}

.contact-sheet__panel {
  background: #fff;
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.26);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform .22s ease;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.contact-sheet-overlay.open .contact-sheet__panel {
  transform: translateY(0);
}

.contact-sheet__handle {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 12px auto 0;
}

.contact-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 8px;
}

.contact-sheet__kicker {
  font-size: .68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.contact-sheet__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

.contact-sheet__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
}

.contact-sheet__grid {
  display: grid;
  gap: 12px;
  padding: 8px 16px 18px;
}

.contact-sheet__section {
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 18px;
  padding: 14px;
}

.contact-sheet__section--full {
  width: 100%;
}

.contact-sheet__section-title {
  font-size: .72rem;
  font-weight: 800;
  color: #8a8f98;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.contact-sheet__row:last-child {
  margin-bottom: 0;
}

.contact-sheet__label {
  font-size: .74rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contact-sheet__row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-sheet__value {
  font-size: .92rem;
  color: #111827;
  font-weight: 600;
  line-height: 1.45;
}

.contact-sheet__value--masked {
  letter-spacing: .18em;
}

.contact-sheet__btn {
  border: none;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-sheet__btn--ghost {
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.contact-sheet__btn--solid {
  background: var(--primary);
  color: #fff;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 12px 14px;
  color: #1a1a2e;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.contact-link__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link__icon--instagram { background: #fff4fb; color: #e1306c; }
.contact-link__icon--facebook { background: #eef4ff; color: #1877f2; }
.contact-link__icon--google { background: #fff8e8; color: #5f6368; }
.contact-link__icon--tiktok { background: #f4f4f5; color: #111827; }

.contact-info {
  display: grid;
  gap: 10px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 12px 14px;
  color: #1a1a2e;
}

.contact-info__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
  color: #6b7280;
  flex-shrink: 0;
}

.contact-info__item span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-info__item strong {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8a8f98;
}

.contact-info__item em {
  font-style: normal;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}

@media (min-width: 768px) {
  body.has-contact-bar {
    padding-bottom: 118px;
  }

  .contact-bar {
    width: min(560px, calc(100% - 32px));
  }

  .contact-sheet-overlay {
    align-items: center;
  }

  .contact-sheet__panel {
    border-radius: 24px;
  }

  .contact-sheet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-sheet__section--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  body.has-contact-bar {
    padding-bottom: 120px;
  }

  .bottom-actions {
    bottom: 78px;
    width: calc(100% - 20px);
  }

  .contact-bar {
    bottom: 12px;
    width: calc(100% - 20px);
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-sheet {
    width: 100%;
    max-height: calc(100dvh - 150px);
  }

  .contact-sheet__panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 150px);
    overflow: hidden;
  }

  .contact-sheet__grid {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }

  .contact-bar__title {
    font-size: .9rem;
  }

  .contact-bar__sub {
    font-size: .68rem;
  }
}

/* ── MODAL ────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(40px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

@media (min-width: 640px) {
  .modal {
    border-radius: var(--radius);
    transform: scale(.92) translateY(20px);
    max-height: 85vh;
  }
}

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

@media (min-width: 640px) {
  .modal-overlay.open .modal {
    transform: scale(1) translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal__close:hover { background: rgba(0,0,0,.75); }

.modal__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.modal__body {
  padding: 20px 20px 28px;
}

.modal__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.modal__label--popular { background: #fff0eb; color: var(--primary); }
.modal__label--new     { background: #edfaf4; color: #28a745; }

.modal__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.modal__desc {
  font-size: .88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal__details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.modal__detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .8rem;
  color: #555;
}

.modal__detail-tag--cal  { background: #fff1ec; color: #c0390b; }
.modal__detail-tag--prep { background: #eef4ff; color: #1a5fba; }
.modal__allergens {
  margin-top: 8px;
  margin-bottom: 14px;
}
.modal__allergens-title {
  font-size: .78rem;
  font-weight: 700;
  color: #8a4d00;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal__allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal__allergen-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff6e8;
  color: #9a4b00;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

.modal__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── UTILITY ─────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SCROLL TRACK ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cat-section {
  animation: fadeInUp .4s ease both;
}
