/* ===================================================
   LA TAQUERÍA PY - STREET MEXICAN FOOD
   Mobile-Only Interactive WebApp Styles
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Rye&display=swap');

:root {
  --color-primary: #8E0E00;
  --color-primary-dark: #660A00;
  --color-primary-light: #B22222;
  --color-accent-gold: #F59E0B;
  --color-accent-yellow: #FBBF24;
  --color-accent-green: #15803D;
  --color-accent-green-dark: #0E5C2A;
  
  --color-bg-base: #F8F5EE;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-secondary: #F3EFE6;
  --color-bg-dark: #120A08;
  
  --color-text-main: #1C1917;
  --color-text-muted: #78716C;
  --color-text-light: #A8A29E;
  --color-text-inverse: #FFFFFF;
  
  --font-display: 'Calistoga', 'Rye', serif;
  --font-brand: 'Rye', cursive, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 10px 25px rgba(142, 14, 0, 0.28);
  
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: var(--font-ui);
  background-color: #0c0604;
  color: var(--color-text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   DESKTOP BLOCKER
   Matches exactly the user's provided screenshot:
   No mobile mockup frame on the side. Centered card.
   =================================================== */

#desktop-shield {
  display: none;
}

@media (min-width: 800px) {
  #desktop-shield {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 35%, #230805 0%, #120504 55%, #080202 100%);
    color: #FFFFFF;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
  }

  .desktop-content {
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: auto;
  }

  .desktop-brand {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .desktop-logo-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--color-accent-gold);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
    object-fit: cover;
    background-color: #120A08;
  }

  .desktop-title {
    font-family: var(--font-brand);
    font-size: 2.1rem;
    color: var(--color-accent-gold);
    letter-spacing: 1px;
    line-height: 1.1;
  }

  .desktop-subtitle {
    color: #F87171;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
  }

  .desktop-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #FECACA;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
  }

  .desktop-desc {
    color: #D6D3D1;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .desktop-qr-card {
    background: #180D0B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .qr-box {
    background: #FFFFFF;
    padding: 8px;
    border-radius: var(--radius-md);
    width: 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
  }

  .qr-box img, .qr-box canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .qr-info h4 {
    color: var(--color-accent-gold);
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .qr-info p {
    font-size: 0.85rem;
    color: #A8A29E;
    line-height: 1.45;
  }

  .qr-target-url-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .qr-target-label {
    color: #A8A29E;
    font-weight: 600;
    flex-shrink: 0;
  }

  .qr-target-val {
    color: var(--color-accent-gold);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
  }

  .btn-edit-qr-url {
    background: none;
    border: none;
    color: #60A5FA;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    text-decoration: underline;
  }

  .qr-edit-box {
    margin-top: 8px;
    display: flex;
    gap: 6px;
  }

  .qr-url-input {
    flex: 1;
    background: #0D0706;
    border: 1.5px solid var(--color-accent-gold);
    color: #FFF;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: var(--font-ui);
    outline: none;
  }

  .btn-save-qr {
    background: var(--color-primary);
    color: #FFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .desktop-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
  }

  .btn-simular {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #B22222, #8E0E00);
    color: #FFFFFF;
    border: none;
    padding: 13px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-float);
  }

  .btn-simular:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #C81D25, #8E0E00);
  }
}

/* OPTIONAL SIMULATOR MODAL (TRIGGERED ONLY IF BUTTON IS CLICKED) */
.simulator-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.simulator-modal-backdrop.active {
  display: flex;
}

.simulator-modal-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.simulator-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.simulator-phone-frame {
  width: 390px;
  height: 780px;
  background: #000;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 0 2px #444;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notch-camera {
  width: 11px;
  height: 11px;
  background: #111;
  border: 1px solid #222;
  border-radius: 50%;
}

.simulated-app-mount {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-bg-base);
}

/* On mobile viewports */
@media (max-width: 799px) {
  #desktop-shield, #simulator-overlay-modal {
    display: none !important;
  }
  
  .app-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* ===================================================
   MAIN MOBILE WEBAPP CONTAINER
   =================================================== */

.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg-base);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 95px;
}

/* TOP STATUS / BRAND HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: calc(var(--safe-top) + 10px);
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
  transition: all 0.3s ease;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-gold);
  box-shadow: 0 2px 8px rgba(142, 14, 0, 0.2);
  object-fit: cover;
  background: #180D0B;
}

.brand-info h1 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-info h1 .py-tag {
  background: var(--color-primary);
  color: #FFF;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-weight: 800;
}

.brand-info p {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-green);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* MODALITY SELECTOR PILL */
.modality-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid var(--color-accent-gold);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modality-pill-btn:active {
  transform: scale(0.96);
}

.modality-icon {
  font-size: 1.05rem;
}

.modality-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.modality-label {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.modality-val {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.1;
}

.modality-arrow {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* HERO BANNER */
.hero-card {
  margin: 14px 16px 8px;
  background: linear-gradient(135deg, #8E0E00 0%, #B22222 60%, #D32F2F 100%);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(142, 14, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-badge {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-badge.open {
  background: var(--color-accent-green);
  color: #FFF;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 4px;
  color: #FFF8F0;
}

.hero-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SEARCH & FILTER BAR */
.search-container {
  padding: 8px 16px 8px;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--color-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--color-bg-surface);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(142, 14, 0, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

/* STICKY CATEGORIES BAR WITH ICONS */
.categories-sticky-wrap {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: rgba(248, 245, 238, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--color-bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.category-tab-btn .cat-icon {
  font-size: 1.1rem;
}

.category-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(142, 14, 0, 0.25);
  transform: translateY(-1px);
}

/* ===================================================
   CATEGORY BANNERS (RENDERED BETWEEN EACH CATEGORY)
   "entre cada categoria a medida que se hace scroll por ejemplo cuando llego a combos genera un banner sobre los combos igual cuando llego a tacos colocar un banner de tacos y asi sucesivamente"
   =================================================== */

.category-section-block {
  scroll-margin-top: 130px;
  padding-bottom: 8px;
}

.category-banner-card {
  margin: 18px 16px 12px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  min-height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 10, 8, 0.35) 0%, rgba(18, 7, 5, 0.88) 100%);
  z-index: 1;
}

.category-banner-content {
  position: relative;
  z-index: 2;
}

.category-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-primary);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.category-banner-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-accent-gold);
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-banner-subtitle {
  font-size: 0.78rem;
  color: #F5F5F4;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* PRODUCTS GRID WITHIN CATEGORY SECTION */
.products-grid {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.product-card:active {
  transform: scale(0.985);
  background-color: #FCFBF9;
}

.product-image-wrap {
  width: 105px;
  height: 105px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-color: var(--color-bg-surface-secondary);
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(14, 10, 8, 0.88);
  color: var(--color-accent-yellow);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.product-price .currency {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-green);
}

.btn-add-quick {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(142, 14, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-quick:active {
  transform: scale(0.9);
  background: var(--color-accent-gold);
}

/* ===================================================
   FLOATING CART BAR & BOTTOM APP NAVIGATION
   =================================================== */

.floating-cart-bar {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 448px;
  z-index: 150;
  background: linear-gradient(135deg, var(--color-primary) 0%, #B22222 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-bar-badge {
  background: var(--color-accent-gold);
  color: var(--color-text-main);
  font-size: 0.85rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-bar-label {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
}

.cart-bar-sub {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 500;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-bar-total {
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-bar-btn {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* BOTTOM APP NAV BAR */
.bottom-app-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 140;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px calc(var(--safe-bottom) + 8px);
}

.nav-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding: 4px 12px;
  transition: all 0.2s ease;
}

.nav-item-btn .nav-icon {
  font-size: 1.25rem;
}

.nav-item-btn.active {
  color: var(--color-primary);
  font-weight: 800;
}

.nav-badge-count {
  position: absolute;
  top: 0px;
  right: 12px;
  background: var(--color-primary);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===================================================
   MODALS & BOTTOM SHEETS
   =================================================== */

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

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--color-bg-surface);
  border-radius: 28px 28px 0 0;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  padding-bottom: calc(var(--safe-bottom) + 20px);
}

.modal-backdrop.active .modal-bottom-sheet {
  transform: translateY(0);
}

.sheet-handle-bar {
  width: 44px;
  height: 5px;
  background: #E5E5E5;
  border-radius: var(--radius-full);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

/* ITEM DETAIL MODAL */
.modal-product-img-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  background: #000;
}

.modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.modal-content-body {
  padding: 18px 20px;
}

.modal-product-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-text-main);
  line-height: 1.2;
}

.modal-product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 6px 0 12px;
}

.modal-product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  background: var(--color-bg-base);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent-gold);
}

/* CHOICES SELECTOR */
.choices-box {
  margin-bottom: 20px;
}

.choices-box-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.choices-box-count {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 800;
}

.choices-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.choice-chip {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--color-bg-base);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.choice-chip.selected {
  background: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: #000;
  font-weight: 700;
}

/* SPECIAL NOTES TEXTAREA */
.notes-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  display: block;
}

.notes-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  outline: none;
  resize: none;
  height: 64px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.notes-input:focus {
  border-color: var(--color-primary);
}

/* QUANTITY CONTROLS */
.quantity-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--color-bg-base);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #FFF;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.qty-number {
  min-width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}

.btn-add-to-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #FFFFFF;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: all 0.2s ease;
}

.btn-add-to-cart:active {
  transform: scale(0.98);
}

/* ===================================================
   CHECKOUT / CART DRAWER MODAL
   =================================================== */

.drawer-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-clear-btn {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* MODALITY TOGGLE TRACK IN CART */
.modality-toggle-container {
  padding: 14px 20px 8px;
}

.modality-toggle-track {
  display: flex;
  background: var(--color-bg-base);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.modality-toggle-opt {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.modality-toggle-opt.active {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* CART ITEMS LIST */
.cart-items-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-left {
  flex: 1;
  padding-right: 10px;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-main);
}

.cart-item-details {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #FFF;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty {
  font-weight: 800;
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}

/* CHECKOUT FORM FIELDS */
.checkout-form-section {
  padding: 12px 20px;
  background: var(--color-bg-base);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-text-main);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-primary);
}

/* TABLE SELECTOR CHIPS */
.table-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.table-chip {
  padding: 7px 0;
  text-align: center;
  background: #FFF;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.table-chip.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFF;
}

/* SUMMARY & WHATSAPP BUTTON */
.checkout-summary-section {
  padding: 14px 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.summary-row.total-row {
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.summary-row.total-row .total-amount {
  color: var(--color-primary);
}

.btn-whatsapp-order {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: none;
  padding: 16px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  margin-top: 12px;
  transition: all 0.2s ease;
}

.btn-whatsapp-order:active {
  transform: scale(0.98);
}

.ws-lock-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ===================================================
   INFO VIEW & SETTINGS MODAL
   =================================================== */

.info-view-content {
  padding: 20px;
}

.info-header {
  text-align: center;
  margin-bottom: 20px;
}

.info-logo-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-accent-gold);
  margin-bottom: 10px;
  object-fit: cover;
  background-color: #120A08;
}

.info-header h2 {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  color: var(--color-primary);
}

.info-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--color-bg-base);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-card-icon {
  font-size: 1.4rem;
}

.info-card-text h4 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.info-card-text p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* TOAST NOTIFICATIONS */
.toast-notice {
  position: fixed;
  top: calc(var(--safe-top) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(18, 10, 8, 0.95);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}
