/* ==========================================================================
   BRAVAS CRAFT KITCHEN - VERSİYON 3 (2 Sütunlu Yan Yana Kategori Kartları)
   ========================================================================== */

.mobile-app-container {
  width: 100%;
  max-width: 640px;
}

/* Üst Başlık (Hero Header) - Sadece Ana Sayfada Görünür, Ortalanmış Ferah Krem Kart */
.hero-header {
  position: relative;
  margin: 12px 14px 4px;
  padding: calc(18px + var(--safe-top)) 18px 16px;
  background: #FBF7EF;
  border: 1.5px solid #E4DACC;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(31, 36, 40, 0.04);
  overflow: hidden;
}

[data-theme="dark"] .hero-header {
  background: #241F1B;
  border-color: rgba(255, 245, 235, 0.12);
}

.hero-centered-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-header .brand-identity {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-header .brand-titles {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand-logo-wrap {
  width: 100%;
  max-width: 265px;
  margin: 0 auto 4px;
}

.hero-brand-logo-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

[data-theme="dark"] .hero-brand-logo-img {
  filter: invert(1) brightness(1.1);
}

.hero-header .brand-tagline {
  font-size: 13px;
  font-weight: 500;
  color: #4E443C;
  margin-top: 4px;
  line-height: 1.4;
  text-align: center;
}

[data-theme="dark"] .hero-header .brand-tagline {
  color: #C7BBAE;
}

/* Ortadaki 3 Eşit Simetrik Kategori Etiketi (• Pizzalar | • Makarnalar | • Burgerler) */
.hero-mini-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 100%;
  max-width: 320px;
  margin-top: 12px;
}

.hero-mini-badge {
  background: #FFF4EC;
  color: var(--accent);
  border: 1.2px solid #E4DACC;
  border-radius: 7px;
  height: 32px;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}

.hero-mini-badge:active {
  transform: scale(0.96);
}

[data-theme="dark"] .hero-mini-badge {
  background: #2E241E;
  border-color: rgba(255, 245, 235, 0.14);
}

/* En Altta Beyaz Arka Plan Olmadan Gün/Saat + Tema İkonu */
.top-utility-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #695F56;
  padding: 2px 0;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .status-pill {
  background: transparent;
  color: #B8ABA0;
}

.status-pill .status-dot {
  width: 7px;
  height: 7px;
}

.status-single-line {
  font-size: 11px;
  font-weight: 500;
  color: #695F56;
  white-space: nowrap;
}

[data-theme="dark"] .status-single-line {
  color: #B8ABA0;
}

.hero-header .icon-btn {
  width: 26px;
  height: 26px;
  font-size: 12px;
  border-radius: 50%;
  background: transparent;
  color: #1F2428;
  border: 1.2px solid #DED4C6;
  box-shadow: none;
  flex-shrink: 0;
}

[data-theme="dark"] .hero-header .icon-btn {
  background: transparent;
  color: #FAF5F0;
  border-color: rgba(255, 245, 235, 0.16);
}

/* Özel Gün / Duyuru Bandı */
.hero-announcement-bar {
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #FFF4EC;
  border: 1.2px solid #EDA872;
  color: #9E4E1E;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  width: 100%;
  max-width: 380px;
}

[data-theme="dark"] .hero-announcement-bar {
  background: #2E221A;
  border-color: #8F4A22;
  color: #F2B591;
}

/* ==========================================================================
   ANA EKRAN: 2 SÜTUNLU YAN YANA KATEGORİ KARTLARI (BAŞLANGIÇ | PİZZALAR vb.)
   ========================================================================== */
.v3-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px 14px 18px;
}

.v3-cat-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 14px 14px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  width: 100%;
}

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

/* 9. (Tek kalan son) kart satıra tam yayılır ve simetrik görünür */
.v3-cat-card.v3-cat-card-wide {
  grid-column: 1 / -1;
}

.v3-cat-card.v3-cat-card-wide .v3-cat-card-media {
  aspect-ratio: 24 / 9;
  max-height: 175px;
}

.v3-cat-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #647786;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

[data-theme="dark"] .v3-cat-card-title {
  color: #B8C4CE;
}

.v3-cat-card-media {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  background: #F4EFE6;
  box-shadow: 0 3px 10px rgba(31, 36, 40, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .v3-cat-card-media {
  background: #2E2722;
}

.v3-cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.v3-cat-card:hover .v3-cat-card-media img {
  transform: scale(1.03);
}

.v3-cat-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #FBF6EE 0%, #EFE6D8 100%);
  color: var(--accent);
}

[data-theme="dark"] .v3-cat-card-fallback {
  background: linear-gradient(135deg, #2C241E 0%, #221C18 100%);
}

.v3-cat-fallback-icon {
  font-size: 32px;
  line-height: 1;
}

.v3-cat-fallback-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

@media (max-width: 390px) {
  .v3-category-grid {
    gap: 10px;
    padding: 12px 10px 16px;
  }

  .v3-cat-card {
    padding: 11px 10px 12px;
    border-radius: 16px;
  }

  .v3-cat-card-title {
    font-size: 13.5px;
  }

  .v3-cat-card-media {
    border-radius: 13px;
  }
}

/* ==========================================================================
   GELİŞMİŞ FOOTER KISAYOL BUTONLARI (INSTAGRAM, YOL TARİFİ, DEĞERLENDİR)
   ========================================================================== */
.v3-footer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}

.v3-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 11px;
  background: #FBF7EF;
  border: 1.2px solid #E4DACC;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.v3-footer-btn:active {
  transform: scale(0.96);
}

.v3-footer-btn-star {
  background: #FFF4EC;
  color: var(--accent);
  border-color: rgba(217, 91, 36, 0.28);
}

[data-theme="dark"] .v3-footer-btn {
  background: #2E2722;
  border-color: rgba(255, 245, 235, 0.12);
  color: #FAF5F0;
}

/* ==========================================================================
   EKRAN 2: SEÇİLEN KATEGORİ GÖRÜNÜMÜ (ÜST SEKMELER + YUVARLAK GERİ İKONU)
   ========================================================================== */

.alt-selected-cat-header {
  padding: 14px 14px 6px;
}

.alt-cat-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alt-circle-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(31, 36, 40, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.alt-circle-back-btn:active {
  transform: scale(0.93);
}

.alt-cat-header-titles {
  flex: 1;
  min-width: 0;
}

.alt-cat-header-titles h2 {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-heading-card);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.alt-cat-header-titles p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}

.alt-category-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 14px 28px;
}

/* TÜKENDİ (Sold Out) ve Ürün Etiketleri (Badges) Stilleri */
.menu-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.item-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 2px;
}

.item-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.badge-sef {
  background: #FFF3D6;
  color: #9C6500;
  border: 1px solid #F2D080;
}

.badge-yeni {
  background: #E8F6EE;
  color: #1E7E45;
  border: 1px solid #A8DEC0;
}

.badge-acili {
  background: #FFEBE8;
  color: #C02F1D;
  border: 1px solid #F5B5AD;
}

.badge-vejetaryen {
  background: #EDF7ED;
  color: #2E7D32;
  border: 1px solid #B6DFB8;
}

.menu-item-card.is-sold-out {
  opacity: 0.72;
  background: var(--bg-secondary);
}

.menu-item-card.is-sold-out .menu-item-media {
  position: relative;
}

.menu-item-card.is-sold-out .menu-item-media img {
  filter: grayscale(65%);
}

.sold-out-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C93B2B;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(201, 59, 43, 0.35);
}

.menu-item-media .sold-out-pill {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.sold-out-inline-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #C93B2B;
  margin-left: 8px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   TEK TIKLA TR | EN DİL SEÇENEĞİ ANAHTARI
   ========================================================================== */
.top-utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #DED5C7;
  color: #5E666E;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(31, 24, 21, 0.05);
  transition: all 0.15s ease;
  font-family: inherit;
}

.lang-switch-btn:active {
  transform: scale(0.95);
}

.lang-switch-btn .lang-opt {
  color: #8A8178;
  transition: color 0.15s ease;
}

.lang-switch-btn .lang-opt.active {
  color: var(--accent, #D95B24);
  font-weight: 900;
}

.lang-switch-btn .lang-sep {
  color: #D2C8B8;
  font-weight: 400;
}

[data-theme="dark"] .lang-switch-btn {
  background: #27211D;
  border-color: rgba(255, 245, 235, 0.16);
  color: #D0C5BA;
}

[data-theme="dark"] .lang-switch-btn .lang-opt.active {
  color: #FF7A45;
}


