/* ==========================================================================
   HAMBUR GHETTO - DIGITAL MENU WEBAPP STYLES
   Brand Colors: Hamburg Red (#E31828), White (#FFFFFF), Deep Slate (#111827)
   Theme: Pure Light Mode (Strictly No Dark Backgrounds)
   ========================================================================== */

:root {
  --primary-red: #E31828;
  --primary-red-hover: #C61321;
  --primary-red-soft: #FEE2E2;
  --primary-red-ultra: #FFF5F5;
  --accent-gold: #F59E0B;
  --accent-gold-soft: #FEF3C7;
  
  --bg-white: #FFFFFF;
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-muted: #F3F4F6;
  --bg-tag: #F1F5F9;

  --text-main: #111827;
  --text-muted: #6B7280;
  --text-sub: #4B5563;
  --text-white: #FFFFFF;

  --border-light: #E5E7EB;
  --border-soft: #F3F4F6;
  --border-red: #FCA5A5;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 12px 28px -4px rgba(227, 24, 40, 0.22), 0 6px 12px -2px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DESKTOP QR VIEW (VISIBLE ON SCREENS > 768px)
   ========================================================================== */
.desktop-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 50%, #FEE2E2 100%);
  padding: 32px 16px;
}

.desktop-container {
  max-width: 520px;
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(227, 24, 40, 0.12), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-align: center;
}

.checkered-ribbon {
  height: 14px;
  background-color: #ffffff;
  background-image: 
    linear-gradient(45deg, var(--primary-red) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--primary-red) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, var(--primary-red) 75%), 
    linear-gradient(-45deg, transparent 75%, var(--primary-red) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
}

.desktop-card {
  padding: 36px 28px;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.desktop-logo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-red);
}

.brand-text {
  text-align: left;
}

.brand-title {
  font-family: 'Bungee', cursive, sans-serif;
  font-size: 26px;
  color: var(--primary-red);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-top: 4px;
}

.desktop-hero {
  margin-bottom: 24px;
}

.pill-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--primary-red-soft);
  color: var(--primary-red);
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.desktop-hero h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.25;
}

.desktop-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
}

/* QR Code Container */
.qr-wrapper {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px dashed var(--primary-red-soft);
}

.qr-box {
  position: relative;
  background: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: inline-block;
}

#qrcode-desktop canvas, #qrcode-desktop img {
  display: block;
  max-width: 190px;
  max-height: 190px;
}

.qr-corners .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--primary-red);
  border-style: solid;
}
.qr-corners .tl { top: -4px; left: -4px; border-width: 3px 0 0 3px; border-top-left-radius: 4px; }
.qr-corners .tr { top: -4px; right: -4px; border-width: 3px 3px 0 0; border-top-right-radius: 4px; }
.qr-corners .bl { bottom: -4px; left: -4px; border-width: 0 0 3px 3px; border-bottom-left-radius: 4px; }
.qr-corners .br { bottom: -4px; right: -4px; border-width: 0 3px 3px 0; border-bottom-right-radius: 4px; }

.qr-instruction {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.feat-item {
  background: var(--bg-page);
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.feat-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.feat-item strong {
  display: block;
  font-size: 12px;
  color: var(--text-main);
}

.feat-item small {
  font-size: 10px;
  color: var(--text-muted);
}

.desktop-meta {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}

.desktop-meta strong {
  color: var(--primary-red);
}

.btn-text-link {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
  transition: color 0.2s;
}
.btn-text-link:hover {
  color: var(--primary-red);
}

/* Hide mobile app on desktop unless forced */
@media (min-width: 769px) {
  .mobile-app:not(.forced-mobile) {
    display: none !important;
  }
  
  .mobile-app.forced-mobile {
    display: block !important;
    max-width: 430px;
    margin: 30px auto;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18), 0 0 0 12px #222;
    overflow: hidden;
    height: 90vh;
    border: 3px solid #333;
    position: relative;
  }

  .mobile-app.forced-mobile .floating-bottom-bar {
    position: absolute;
    width: calc(100% - 32px);
    bottom: 16px;
  }
}

/* ==========================================================================
   MOBILE APP STYLES (SCREEN <= 768px or .forced-mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .desktop-view {
    display: none !important;
  }
  .mobile-app {
    display: block !important;
  }
}

.mobile-app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-page);
  position: relative;
  padding-bottom: calc(90px + var(--safe-bottom));
}

/* --------------------------------------------------------------------------
   APP HEADER
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary-red);
}

.header-info {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-family: 'Bungee', cursive, sans-serif;
  font-size: 16px;
  color: var(--primary-red);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.header-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Mode Toggle Pill */
.order-mode-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-red-ultra);
  border: 1.5px solid var(--primary-red-soft);
  color: var(--primary-red);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.order-mode-pill:active {
  transform: scale(0.96);
  background-color: var(--primary-red-soft);
}
.mode-icon {
  font-size: 14px;
}
.mode-arrow {
  font-size: 9px;
  opacity: 0.7;
}

/* Quick Status Bar */
.quick-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-muted);
  padding: 6px 16px;
  font-size: 11.5px;
  color: var(--text-sub);
  border-top: 1px solid var(--border-soft);
}
.status-content {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
  box-shadow: 0 0 6px #10B981;
}
.status-change-btn {
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
}

/* Horizontal Category Navigation Bar */
.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.cat-pill:hover {
  background-color: var(--primary-red-ultra);
  color: var(--primary-red);
}
.cat-pill.active {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--text-white);
  box-shadow: 0 3px 8px rgba(227, 24, 40, 0.3);
  transform: translateY(-1px);
}
.cat-icon {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   APP MAIN & VIEWS
   -------------------------------------------------------------------------- */
.app-main {
  padding: 16px;
}

.app-view {
  display: none;
}
.app-view.active {
  display: block;
  animation: fadeIn 0.25s ease-out forwards;
}

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

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #FFF1F2 0%, #FFFFFF 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--primary-red-soft);
  padding: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-checkered-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: 
    linear-gradient(45deg, var(--primary-red) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--primary-red) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, var(--primary-red) 75%), 
    linear-gradient(-45deg, transparent 75%, var(--primary-red) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}
.hero-content {
  position: relative;
}
.hero-badge {
  display: inline-block;
  background-color: var(--primary-red);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.hero-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.4;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-tags .tag {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
}

/* Search Box */
.search-section {
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.search-box:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--primary-red-soft);
}
.search-icon {
  font-size: 16px;
  color: var(--text-muted);
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text-main);
  font-family: inherit;
}
.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS
   -------------------------------------------------------------------------- */
.menu-section {
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-light);
}
.heading-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.heading-icon {
  font-size: 20px;
}
.heading-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}
.heading-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-red);
  background-color: var(--primary-red-ultra);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   PRODUCT CARDS & GRIDS
   -------------------------------------------------------------------------- */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Featured / Burger Card (App Style) */
.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.product-card:active {
  transform: scale(0.985);
}
.product-card:hover {
  border-color: var(--primary-red-soft);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  width: 120px;
  min-width: 120px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
}
.card-img {
  width: 100%;
  height: 105px;
  object-fit: contain;
  background-color: #FFFFFF;
  transition: transform 0.3s ease;
}
.product-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--primary-red);
  color: var(--text-white);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.card-content {
  flex: 1;
  padding: 12px 14px 12px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

/* Heart Button */
.btn-fav {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  color: #D1D5DB;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.btn-fav:hover {
  transform: scale(1.2);
}
.btn-fav.active {
  color: var(--primary-red);
}

.card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 6px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-red);
}
.btn-card-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--primary-red);
  color: var(--text-white);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn-card-add:hover {
  background-color: var(--primary-red-hover);
}

/* Compact Grid for Adicionales & Bebidas (No fake images, clean fast-food list cards) */
.compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.compact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.compact-card:hover {
  border-color: var(--primary-red-soft);
  background-color: var(--primary-red-ultra);
}
.compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.compact-info h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
.compact-info p {
  font-size: 11.5px;
  color: var(--text-muted);
}
.compact-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compact-price {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--primary-red);
}

/* --------------------------------------------------------------------------
   INTER-CATEGORY BANNERS (STYLE APP PROMOTIONS)
   -------------------------------------------------------------------------- */
.inter-banner {
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 20px 0 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.banner-combo {
  background: linear-gradient(135deg, #FFF1F2 0%, #FEE2E2 100%);
  border: 1.5px solid #FECACA;
}
.banner-papas {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 1.5px solid #FDE68A;
}
.banner-adicionales {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #BBF7D0;
}
.banner-bebidas {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #BFDBFE;
}

.inter-banner-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 4px;
}
.inter-banner-content p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
}
.inter-banner-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  background-color: var(--bg-white);
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.btn-banner {
  margin-top: 10px;
  background-color: var(--primary-red);
  color: var(--text-white);
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.potato-flavor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}
.potato-flavor-chips .chip {
  background: var(--bg-white);
  border: 1px solid #F59E0B;
  color: #B45309;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.chip-desc {
  font-size: 11px !important;
  color: #92400E !important;
}

/* --------------------------------------------------------------------------
   FLOATING BOTTOM APP NAVIGATION BAR
   (McDonald's / Burger King style)
   -------------------------------------------------------------------------- */
.floating-bottom-bar {
  position: fixed;
  bottom: calc(12px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  height: 66px;
  background-color: #FFFFFF;
  border-radius: 36px;
  box-shadow: var(--shadow-float);
  border: 2px solid var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  z-index: 1000;
}

.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}
.nav-btn .nav-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-btn .nav-label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}
.nav-btn.active {
  color: var(--primary-red);
}
.nav-btn.active .nav-icon {
  transform: scale(1.15) translateY(-2px);
}

/* Special Cart Button in Bottom Bar */
.cart-nav-btn {
  background: var(--primary-red-ultra);
  border-radius: 24px;
}
.cart-nav-btn.active {
  background: var(--primary-red);
  color: var(--text-white) !important;
}
.cart-pill-icon {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  background-color: var(--primary-red);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
}
.cart-nav-btn.active .nav-badge {
  background-color: #FFFFFF;
  color: var(--primary-red);
}
.nav-subtotal {
  font-size: 9px;
  font-weight: 800;
  color: var(--primary-red);
}
.cart-nav-btn.active .nav-subtotal {
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   VIEW HEADERS & EMPTY STATES
   -------------------------------------------------------------------------- */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.view-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-icon {
  font-size: 28px;
}
.view-title-group h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}
.view-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}
.btn-clear {
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.btn-clear:hover {
  background-color: var(--primary-red-ultra);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  margin-top: 16px;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-white);
  border: none;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(227, 24, 40, 0.25);
}

/* --------------------------------------------------------------------------
   CART & CHECKOUT
   -------------------------------------------------------------------------- */
.cart-order-type-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
}
.cart-box-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.order-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius-pill);
}
.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
}
.type-btn.active {
  background: var(--primary-red);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.cart-item-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #FFFFFF;
}
.cart-item-no-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.cart-item-details {
  font-size: 11px;
  color: var(--text-muted);
  margin: 3px 0 6px;
  line-height: 1.3;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-red);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}
.btn-qty-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--bg-white);
  color: var(--text-main);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.qty-mini-num {
  font-size: 12px;
  font-weight: 800;
  min-width: 14px;
  text-align: center;
}

/* Checkout Form Section */
.checkout-form-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 18px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.order-form-fields {
  margin-bottom: 18px;
}
.form-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  background: var(--bg-page);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-red);
  background: var(--bg-white);
}
.form-row {
  display: flex;
  gap: 10px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Bill Summary */
.bill-summary {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.delivery-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-red-soft);
  color: var(--primary-red);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.total-row {
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text-main);
}
.total-price {
  font-size: 18px;
  color: var(--primary-red);
  font-weight: 900;
}

/* WhatsApp Submit Button */
.btn-whatsapp {
  width: 100%;
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
  transition: background-color 0.15s, transform 0.15s;
}
.btn-whatsapp:active {
  transform: scale(0.98);
}
.ws-icon {
  font-size: 26px;
}
.btn-ws-text {
  text-align: left;
}
.btn-ws-title {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.2;
}
.btn-ws-sub {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}
.ws-guarantee {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   INFO & CONTACT VIEW
   -------------------------------------------------------------------------- */
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.info-logo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.info-logo {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary-red);
}
.info-brand-texts h3 {
  font-family: 'Bungee', cursive, sans-serif;
  font-size: 18px;
  color: var(--primary-red);
  line-height: 1.1;
}
.info-slogan {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
.info-est {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-red);
  background: var(--primary-red-ultra);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 4px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-row-icon {
  font-size: 20px;
}
.info-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-main);
  margin-bottom: 2px;
}
.info-row p, .info-row a {
  font-size: 12px;
  color: var(--text-sub);
  text-decoration: none;
}
.info-row a {
  color: var(--primary-red);
  font-weight: 700;
}

.info-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-info-action {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ws-outline {
  background: #E8F8EE;
  color: #108A38;
  border: 1.5px solid #25D366;
}
.btn-map-outline {
  background: var(--bg-muted);
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   MODALS & DIALOGS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-scroll-body {
  overflow-y: auto;
  padding: 0 0 16px;
  -webkit-overflow-scrolling: touch;
}

.modal-img-container {
  width: 100%;
  height: 190px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.modal-img {
  max-width: 80%;
  max-height: 160px;
  object-fit: contain;
  background: #FFFFFF;
}
.modal-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--primary-red-ultra);
}
.modal-big-icon {
  font-size: 64px;
}

.modal-fav-btn {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-fav-btn.active {
  color: var(--primary-red);
}

.modal-details {
  padding: 16px 20px 0;
}
.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.modal-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}
.modal-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-red);
}
.modal-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Modal Customization Sections */
.modal-custom-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.custom-section-title {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}
.required-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-red);
  background: var(--primary-red-ultra);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}
.optional-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

/* Flavor Radio Cards */
.flavor-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.flavor-card input {
  display: none;
}
.flavor-chip-body {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--bg-page);
  transition: all 0.15s ease;
}
.flavor-card input:checked + .flavor-chip-body {
  border-color: var(--primary-red);
  background-color: var(--primary-red-ultra);
  box-shadow: 0 0 0 2px var(--primary-red-soft);
}
.flv-icon { font-size: 16px; }
.flv-name { font-size: 12.5px; font-weight: 700; color: var(--text-main); }

/* Extras Checkboxes List */
.extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.extra-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  cursor: pointer;
}
.extra-card-item.selected {
  border-color: var(--primary-red);
  background-color: var(--primary-red-ultra);
}
.extra-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.extra-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-red);
}

.modal-notes-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}
.modal-notes-input:focus {
  border-color: var(--primary-red);
}

/* Modal Footer */
.modal-footer {
  padding: 14px 20px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-white);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-white);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.qty-btn:active {
  transform: scale(0.9);
}
.qty-num {
  font-size: 15px;
  font-weight: 900;
  min-width: 20px;
  text-align: center;
}

.btn-modal-add {
  flex: 1;
  background-color: var(--primary-red);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(227, 24, 40, 0.3);
}
.btn-modal-add:active {
  transform: scale(0.98);
}

/* Order Mode Dialog */
.modal-dialog-box {
  background: var(--bg-white);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  padding: 24px;
  animation: slideUp 0.25s ease-out;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dialog-header h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}
.dialog-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.dialog-modes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dialog-mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.dialog-mode-card:hover {
  border-color: var(--primary-red);
  background: var(--primary-red-ultra);
}
.card-icon {
  font-size: 28px;
}
.card-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}
.card-text small {
  font-size: 11px;
  color: var(--text-muted);
}
.card-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--primary-red);
  font-weight: 900;
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
