/* ============================================================
   style.css — Premium Digital Menu
   Mobile-first, Plus Jakarta Sans, Soft UI
   ============================================================ */

/* ---------- Design Tokens ---------- */

/* Global Scrollbar Hide */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --text: #1C1917;
  --muted: #78716C;
  --border: #EEEBE7;
  
  /* Theme variables (overwritten dynamically) */
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-soft: #FFF1E8;
  --accent-2: #FFF1E8;
  --on-accent: #FFFFFF;
  
  --sold-out-grey: #A8A29E;
  
  --wa-green: #25D366;
  
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* Prevents horizontal scroll without breaking sticky */
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   TYPOGRAPHY & UTILS
   ============================================================ */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.restaurant-name { font-size: 24px; font-weight: 800; color: #1C1917; }
.category-heading { 
  font-size: 20px; font-weight: 700; margin-bottom: 12px; 
  scroll-margin-top: calc(var(--sticky-h, 120px) + 12px); 
}
.item-name { font-size: 16px; font-weight: 600; color: var(--text); }
.item-desc { font-size: 13px; font-weight: 400; color: var(--muted); }
.item-price { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; margin-top: 2px; }

/* ============================================================
   HEADER
   ============================================================ */
.header-cover {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 0; /* Mobile par kinare edge-to-edge */
  overflow: hidden; 
  margin-top: 0; /* Bina kisi gap ke top se start */
}
.header-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
}

/* Desktop View: Card style cover */
@media (min-width: 768px) { 
  .header-cover { 
    height: 320px; 
    max-width: 960px; 
    margin: 24px auto 0; /* Desktop par gap wapas aayega */
    border-radius: 24px; /* Desktop par rounded corners */
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  } 
  /* ::after gradient ko bhi round karein */
  .header-cover::after {
    border-radius: 24px; 
  }
  .header-content {
    margin-top: -36px; 
  }
}

.header-content {
  max-width: 960px;
  margin: -36px auto 0;
  padding: 0 20px 16px; /* Gap kam kiya */
  position: relative;
  z-index: 10;
}

.header-logo {
  width: 84px; height: 84px; /* Mobile par thoda bada */
  border-radius: 50%;
  background: var(--card);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  font-size: 32px; font-weight: 800; color: var(--accent);
  overflow: hidden;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .header-logo {
    width: 72px; height: 72px; /* Desktop par purana size */
    font-size: 28px;
  }
}
.header-logo img { width: 100%; height: 100%; object-fit: cover; }

.restaurant-tagline {
  font-size: 14px; font-weight: 500; color: #78716C;
  margin-top: 4px;
}

.restaurant-details {
  display: flex;
  flex-direction: column; /* Mobile par neeche neeche */
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 768px) {
  .restaurant-details {
    flex-direction: row; /* Desktop/Tablet par ek line mein */
    flex-wrap: wrap;
    gap: 12px;
  }
}
.detail-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none;
}
.detail-item:hover { color: var(--text); }
.detail-item svg { width: 14px; height: 14px; }

.whatsapp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa-green); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; margin-top: 16px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s;
}
.whatsapp-btn:active { transform: scale(0.96); }
.whatsapp-btn svg { width: 18px; height: 18px; }

/* ============================================================
   STICKY NAV (Search + Chips)
   ============================================================ */
/* Unified Sticky Header */
.header-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #FAFAF8;
  border-bottom: 1px solid #EEEBE7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Ensures children stretch full width */
  gap: 8px; /* Mobile gap */
  transition: box-shadow 0.2s;
}
.header-sticky-wrap.is-sticky {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Inner elements constrained to page content width */
.search-container, .filter-chips, .category-nav {
  width: 100%;
  max-width: 960px; /* Matches .menu-root */
  margin: 0 auto;
  padding-left: 16px; /* Mobile padding */
  padding-right: 16px;
  box-sizing: border-box;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute; left: 28px; /* 16px padding + 12px offset */
  color: var(--muted);
  width: 18px; height: 18px;
}

#search-input {
  width: 100%; padding: 12px 16px 12px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-main); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}

.clear-btn {
  position: absolute; right: 28px; /* 16px padding + 12px offset */
  color: var(--muted);
  padding: 4px; display: grid; place-items: center;
}
.clear-btn svg { width: 16px; height: 16px; }

.filter-chips, .category-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar, .category-nav::-webkit-scrollbar {
  display: none;
}

/* Compact mobile sizing */
@media (max-width: 639px) {
  #search-input { height: 42px; font-size: 14px; }
  .filter-chips .chip, .category-nav .chip {
    height: 34px;
    font-size: 13px;
    padding: 0 14px;
    min-height: 34px;
    flex-shrink: 0;
  }
}

/* Tablet Sizing & Padding */
@media (min-width: 640px) and (max-width: 1099px) {
  .header-sticky-wrap { gap: 10px; }
  .search-container, .filter-chips, .category-nav {
    padding-left: 24px;
    padding-right: 24px;
  }
  .search-icon { left: 36px; }
  .clear-btn { right: 36px; }
  .filter-chips, .category-nav { gap: 10px; }
  
  #search-input { height: 46px; }
  .filter-chips .chip, .category-nav .chip {
    height: 38px;
    font-size: 14px;
    padding: 0 16px;
    min-height: 38px;
    flex-shrink: 0;
  }
}

/* Desktop */
@media (min-width: 1100px) {
  .header-sticky-wrap { gap: 12px; }
  .search-container, .filter-chips, .category-nav {
    padding-left: 20px; /* Matches .menu-root desktop padding */
    padding-right: 20px;
  }
  .search-icon { left: 32px; }
  .clear-btn { right: 32px; }
  .filter-chips, .category-nav { gap: 10px; }
}

.search-container {
  max-width: 960px;
  margin: 0 auto 12px;
  padding: 0 20px;
  position: relative;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 32px; color: var(--muted);
  width: 18px; height: 18px;
}
#search-input {
  width: 100%; padding: 12px 16px 12px 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-main); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
#search-input:focus { border-color: var(--accent); }
.clear-btn {
  position: absolute; right: 32px; color: var(--muted);
  padding: 4px; display: grid; place-items: center;
}
.clear-btn svg { width: 16px; height: 16px; }

.category-nav {
  display: flex; gap: 8px;
  overflow-x: auto; white-space: nowrap;
  padding: 0 20px 4px;
  max-width: 960px; margin: 0 auto;
}

.chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all 0.2s; min-height: 44px; display: inline-flex; align-items: center;
}
.chip.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

/* ============================================================
   MENU LIST & CARDS
   ============================================================ */
.menu-root {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
}

.category-section { margin-bottom: 32px; }
@media (min-width: 768px) {
  .category-section:last-child {
    min-height: calc(100vh - 250px);
    padding-bottom: 40px;
  }
}

.menu-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

/* Card Layout */
.menu-card {
  display: flex; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 12px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s;
  min-height: 96px;
}
.menu-card:active { transform: scale(0.98); }

.card-text {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.item-desc {
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Image / Icon Right */
.card-media {
  width: 96px; height: 96px; flex: 0 0 96px;
  border-radius: 12px; overflow: hidden;
  position: relative; background: #f0f0f0;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-media-icon {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card-media-icon svg { width: 32px; height: 32px; }

/* Sold Out State */
.menu-card.sold-out .card-media img,
.menu-card.sold-out .card-media-icon { filter: grayscale(1); opacity: 0.6; }
.menu-card.sold-out .item-name,
.menu-card.sold-out .item-desc { color: var(--sold-out-grey); }
.menu-card.sold-out .item-price { text-decoration: line-through; color: var(--sold-out-grey); }

.sold-out-badge {
  position: absolute; top: 8px; left: 8px; right: 8px;
  background: rgba(28, 25, 23, 0.85); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  text-align: center; padding: 4px; border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Empty State */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.5; }

/* ============================================================
   BOTTOM SHEET (Item Detail)
   ============================================================ */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.sheet-overlay.active { opacity: 1; }

.item-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: var(--safe-bottom);
}
.item-sheet.active { transform: translateY(0); }

/* Tablet: Stacked with square image */
@media (min-width: 640px) and (max-width: 899px) {
  .item-sheet {
    max-width: 520px; margin: 0 auto; bottom: auto; top: 50%;
    border-radius: 24px; transform: translateY(-50%) scale(0.95);
    opacity: 0; transition: all 0.25s;
    padding-bottom: 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
  }
  .item-sheet.active { transform: translateY(-50%) scale(1); opacity: 1; }
  
  .sheet-image-wrap { 
    aspect-ratio: 1 / 1; 
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .sheet-body { 
    overflow-y: auto; 
    flex: 1; 
  }
}

/* Desktop: Two-column grid with perfect square image */
@media (min-width: 900px) {
  .item-sheet {
    --img-size: min(520px, 80vh, 52vw);
    width: fit-content; /* <--- FIX: Modal ab stretch nahi hoga */
    max-width: 94vw;
    height: auto;
    max-height: 92vh;
    margin: 0 auto; bottom: auto; top: 50%;
    border-radius: 24px; overflow: hidden;
    display: grid; 
    grid-template-columns: var(--img-size) minmax(300px, 420px);
    transform: translateY(-50%) scale(0.95); opacity: 0;
    transition: all 0.25s; padding-bottom: 0;
  }
  .item-sheet.active { transform: translateY(-50%) scale(1); opacity: 1; }
  
  .sheet-image-wrap { 
    width: var(--img-size); 
    height: var(--img-size); 
    aspect-ratio: 1 / 1; 
    border-radius: 0; 
  }
  
  .sheet-body { 
    height: var(--img-size);
    max-height: 100%;
    padding: 28px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
  }
  
  .close-sheet { top: 16px; right: 16px; }
}

.sheet-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.sheet-image { width: 100%; height: 100%; object-fit: cover; }
.sheet-icon { color: var(--accent); }
.sheet-icon svg { width: 64px; height: 64px; }

.close-sheet {
  position: absolute; top: 16px; right: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); z-index: 2;
  transition: transform 0.15s;
}
.close-sheet:active { transform: scale(0.9); }
.close-sheet svg { width: 20px; height: 20px; }

.sheet-body {
  padding: 20px;
  background: #fff;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sheet-title { font-size: 22px; font-weight: 700; color: #1C1917; margin-bottom: 6px; }
.sheet-price { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.sheet-desc { font-size: 14px; color: #57534E; line-height: 1.6; }
.sheet-badge {
  position: static; display: inline-block;
  margin-bottom: 12px; padding: 6px 12px; align-self: flex-start;
}

/* ============================================================
   FOOTER & ERROR
   ============================================================ */
.menu-footer {
  text-align: center; padding: 32px 20px; padding-bottom: calc(32px + var(--safe-bottom));
  color: var(--muted); font-size: 13px;
}

.error-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 80vh; padding: 20px; text-align: center;
}
.error-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.error-icon svg { width: 32px; height: 32px; }
.error-state h2 { font-size: 20px; margin-bottom: 8px; }
.error-state p { color: var(--muted); font-size: 14px; margin-bottom: 24px; max-width: 300px; }

.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; transition: background 0.2s;
}
.btn-primary:hover { background: #c2410c; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
#skeleton-loader { max-width: 960px; margin: 0 auto; }
.sk-cover { height: 180px; background: #e5e5e5; width: 100%; }
.sk-header { padding: 20px; margin-top: -36px; position: relative; z-index: 10; }
.sk-logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 3px solid #fff; margin-bottom: 16px; }
.sk-title { width: 160px; height: 24px; background: #e5e5e5; border-radius: 4px; margin-bottom: 12px; }
.sk-text { width: 240px; height: 14px; background: #e5e5e5; border-radius: 4px; margin-bottom: 8px; }
.sk-text.short { width: 140px; }
.sk-nav { padding: 12px 20px; }
.sk-search { height: 44px; background: #e5e5e5; border-radius: 999px; margin-bottom: 12px; }
.sk-chips { display: flex; gap: 8px; }
.sk-chip { width: 80px; height: 32px; background: #e5e5e5; border-radius: 999px; }
.sk-list { padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.sk-card { height: 96px; background: #e5e5e5; border-radius: 16px; }

/* Shimmer Animation */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.sk-cover, .sk-title, .sk-text, .sk-search, .sk-chip, .sk-card {
  background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 800px 100%;
  animation: shimmer 1.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sk-cover, .sk-title, .sk-text, .sk-search, .sk-chip, .sk-card { animation: none; }
  html { scroll-behavior: auto; }
  .item-sheet, .sheet-overlay { transition: none; }
}

/* Filter Chips Row */
.filter-chips { display: flex; gap: 8px; padding: 8px 20px 12px; max-width: 960px; margin: 0 auto; overflow-x: auto; }
.filter-chip { background: var(--bg); border-color: var(--border); font-size: 13px; padding: 6px 12px; min-height: 36px; }
.filter-chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* Item Badges */
.item-badges { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-popular { background: var(--accent-soft); color: var(--accent); }
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-spicy { background: transparent; color: #dc2626; font-size: 14px; padding: 0; }

/* Diet Marker */
.diet-marker { display: inline-block; width: 12px; height: 12px; border: 1px solid; position: relative; margin-right: 6px; vertical-align: middle; }
.diet-marker.veg { border-color: #16a34a; }
.diet-marker.veg::after { content: ''; display: block; width: 6px; height: 6px; background: #16a34a; border-radius: 50%; position: absolute; top: 2px; left: 2px; }
.diet-marker.nonveg { border-color: #dc2626; }
.diet-marker.nonveg::after { content: ''; display: block; width: 6px; height: 6px; background: #dc2626; border-radius: 50%; position: absolute; top: 2px; left: 2px; }

/* Sheet Variants */
.sheet-variants { margin-top: 16px; border-top: 1px solid #EEEBE7; padding-top: 12px; }
.variant-list-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #EEEBE7; font-size: 15px; }
.variant-list-item span { color: #1C1917; font-weight: 500; }
.variant-list-item strong { font-weight: 700; }
.variant-list-item:last-child { border-bottom: none; }

/* Labeled Tag Pills (Popup) */
.tag-pill {
  height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.tag-pill.veg { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.tag-pill.nonveg { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.tag-pill.spicy { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.tag-pill.popular { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.tag-pill.new { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Menu Legend Row */
.menu-legend {
  display: flex; gap: 16px; align-items: center;
  font-size: 12px; color: var(--muted); margin-bottom: 20px;
}
.menu-legend span { display: inline-flex; align-items: center; gap: 4px; }


/* =========================================
   FOODIE BITES — RESPONSIVE FOUNDATION
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

input,
select,
textarea {
  max-width: 100%;
  font-size: 16px;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

/* Main dashboard */
.app-shell {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.topbar-left,
.topbar-text {
  min-width: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-title,
.topbar-subtitle {
  overflow-wrap: anywhere;
}

/* Navigation */
.tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
}

/* Primary actions */
.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-row > * {
  min-width: 0;
}

/* Menu cards */
.menu-card {
  width: 100%;
  min-width: 0;
}

.menu-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.menu-card-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.menu-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Small Android phones and compact iPhones */
@media (max-width: 374px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar {
    gap: 8px;
  }

  .menu-card-top {
    gap: 8px;
  }

  .menu-card-footer {
    flex-wrap: wrap;
  }

  .menu-card-actions {
    margin-left: auto;
  }
}

/* Standard mobile phones */
@media (min-width: 375px) and (max-width: 767px) {
  .app-shell {
    padding-inline: 14px;
  }
}

/* iPads and Android tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .app-shell {
    padding-inline: 24px;
  }

  .tabs {
    gap: 12px;
  }

  .menu-card-top {
    gap: 16px;
  }
}
