/* ==========================================================================
   Sukhji Official Food Ordering Website Stylesheet
   Mobile-First, Ultra-Responsive UI matching the Sukhji Mobile App
   ========================================================================== */

:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #FFEBEE;
  --primary-gradient: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  --accent-orange: #FF9F1C;
  --accent-gradient: linear-gradient(135deg, #FF9F1C 0%, #FF6B6B 100%);
  --text-main: #1C1E21;
  --text-muted: #65676B;
  --text-light: #90949C;
  --bg-page: #F7F8FA;
  --bg-card: #FFFFFF;
  --border-color: #E8EAED;
  --success: #2E7D32;
  --success-bg: #E8F5E9;
  --star-gold: #FFA000;
  --star-text: #E65100;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(211,47,47,0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 50px;
  --header-height: 64px;
  --bottom-nav-height: 62px;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.4;
  overflow-x: hidden;
  padding-bottom: 90px; /* Space for mobile nav and cart pill */
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================================
   Top App Download Banner (Sticky or Dismissible)
   ========================================================================== */
.top-app-banner {
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1010;
}

.top-app-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.top-app-banner .mini-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #FFF;
  padding: 2px;
  flex-shrink: 0;
}

.top-app-banner .banner-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-app-banner .banner-text strong {
  color: #FFD54F;
}

.top-app-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-app-banner .btn-get-app {
  background: var(--primary);
  color: #FFF;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.top-app-banner .btn-get-app:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.top-app-banner .btn-close-banner {
  color: #AAA;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.header-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.location-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F1F3F5;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.location-chip:hover {
  border-color: #DDD;
  background: #E9ECEF;
}

.location-chip i {
  color: var(--primary);
  font-size: 14px;
}

.header-search-wrap {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  background: #F5F6F8;
  border: 1.5px solid #E8EAED;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.header-search-input:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  color: #8E94A0;
  font-size: 14px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header-app {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-header-app:hover {
  background: var(--primary);
  color: #FFF;
}

.btn-header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #F5F6F8;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 18px;
  transition: all 0.2s ease;
}

.btn-header-cart:hover {
  background: #EAECEF;
}

.header-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFF;
}

/* ==========================================================================
   Store Status Alert Bar
   ========================================================================== */
.store-alert-bar {
  background: #FFF3CD;
  color: #856404;
  border-bottom: 1px solid #FFEBAA;
  padding: 8px 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  display: none;
}

.store-alert-bar.closed {
  display: block;
  background: #F8D7DA;
  color: #721C24;
  border-color: #F5C6CB;
}

/* ==========================================================================
   Container Layout
   ========================================================================== */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 14px 40px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-wrap i {
  font-size: 18px;
  color: var(--primary);
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.section-action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Banners Carousel
   ========================================================================== */
.banners-wrapper {
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.banners-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.banners-track::-webkit-scrollbar {
  display: none;
}

.banner-card {
  flex: 0 0 88%;
  max-width: 480px;
  aspect-ratio: 16 / 7.5;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-card:hover img {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .banner-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .banner-card {
    flex: 0 0 calc(33.333% - 12px);
  }
}

/* ==========================================================================
   Categories Horizontal Scroll
   ========================================================================== */
.categories-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 70px;
  transition: transform 0.15s ease;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-img-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: var(--shadow-sm);
  padding: 3px;
  border: 1.5px solid #F0F0F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-item.active .category-img-wrap {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.category-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

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

/* ==========================================================================
   Outlets / Restaurants Carousel / Grid
   ========================================================================== */
.outlets-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.outlets-track::-webkit-scrollbar {
  display: none;
}

.outlet-card {
  flex: 0 0 220px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.outlet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D32F2F44;
}

.outlet-card.active-filter {
  border-color: var(--primary);
  background: var(--primary-light);
}

.outlet-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outlet-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #F1F3F5;
  border: 1px solid #ECEFF1;
  flex-shrink: 0;
}

.outlet-info {
  flex: 1;
  min-width: 0;
}

.outlet-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlet-address {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outlet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  margin-top: 2px;
}

.outlet-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #FFF8E1;
  color: var(--star-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.outlet-status-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.outlet-status-badge.open {
  background: var(--success-bg);
  color: var(--success);
}

.outlet-status-badge.closed {
  background: #FFEBEE;
  color: var(--primary);
}

/* ==========================================================================
   SAME SMALL CARDS OF ITEMS (Compact Items Grid)
   Strictly matched with the Sukhji Flutter App _CompactProductCard
   ========================================================================== */
.compact-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

@media (max-width: 340px) {
  .compact-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (min-width: 600px) {
  .compact-items-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .compact-items-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1150px) {
  .compact-items-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

.compact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Image Container: Ratio 1.25 */
.compact-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  background: #F1F3F5;
  overflow: hidden;
}

.compact-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-card:hover .compact-image-wrap img {
  transform: scale(1.04);
}

/* Badges on Image */
.badge-discount {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 7.5px;
  font-weight: 800;
  padding: 2px 4.5px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  letter-spacing: 0.2px;
}

.badge-rating {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--star-text);
  font-size: 8px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.badge-rating i {
  color: var(--star-gold);
  font-size: 8px;
}

.badge-popular {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-size: 7px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Out of Stock Overlay */
.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.stock-tag {
  background: var(--primary);
  color: #FFF;
  font-size: 7.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Card Content / Details */
.compact-details {
  padding: 6px 6px 7px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-name {
  font-size: 11px;
  font-weight: 700;
  color: #212121;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.item-restaurant {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  margin-bottom: 6px;
}

/* Price & Add Button Row */
.compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 4px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.final-price {
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

.original-price {
  font-size: 7.5px;
  color: #8C8C8C;
  text-decoration: line-through;
  white-space: nowrap;
}

/* ADD Button & Counter */
.btn-add-item {
  height: 24px;
  padding: 0 8px;
  background: #FFFFFF;
  color: var(--primary);
  border: 1.2px solid var(--primary);
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-add-item:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.qty-counter {
  height: 24px;
  display: flex;
  align-items: center;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-counter button {
  width: 22px;
  height: 100%;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s ease;
}

.qty-counter button:active {
  background: var(--primary-dark);
}

.qty-counter span {
  font-size: 10px;
  font-weight: 800;
  padding: 0 4px;
  min-width: 14px;
  text-align: center;
}

.btn-disabled-item {
  height: 24px;
  padding: 0 6px;
  background: #EAEAEA;
  color: #777;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}

/* ==========================================================================
   Hero App Download Section
   ========================================================================== */
.app-promo-card {
  background: linear-gradient(135deg, #1C1E24 0%, #2B1810 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #FFFFFF;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

.app-promo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(211,47,47,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(211,47,47,0.25);
  border: 1px solid rgba(211,47,47,0.5);
  color: #FF8A80;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.promo-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.promo-title span {
  color: #FF5252;
}

.promo-desc {
  font-size: 13px;
  color: #CFD8DC;
  line-height: 1.5;
}

.promo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111215;
  color: #FFF;
  border: 1px solid #374151;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-store:hover {
  background: #23272F;
  border-color: #6B7280;
  transform: translateY(-2px);
}

.btn-store i {
  font-size: 22px;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.btn-store-text small {
  font-size: 9px;
  color: #9CA3AF;
  text-transform: uppercase;
}

.btn-store-text strong {
  font-size: 13px;
  font-weight: 700;
}

.promo-qr-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 12px;
  width: fit-content;
  border: 1px dashed rgba(255,255,255,0.18);
}

.promo-qr-wrap img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #FFF;
  padding: 3px;
}

.promo-qr-text {
  font-size: 11px;
  color: #B0BEC5;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .app-promo-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }
  .promo-content {
    max-width: 60%;
  }
}

/* ==========================================================================
   Floating "View Cart" Bottom Pill (Identical to Flutter App)
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 74px;
  left: 16px;
  right: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(211,47,47,0.38);
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 990;
  cursor: pointer;
  animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart-bar.visible {
  display: flex;
}

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

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

.cart-bar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cart-bar-details {
  display: flex;
  flex-direction: column;
}

.cart-bar-count {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.1;
}

.cart-bar-total {
  font-size: 10.5px;
  color: rgba(255,255,255,0.88);
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 980;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.15s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
}

.nav-cart-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 16px);
  background: var(--primary);
  color: #FFF;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ==========================================================================
   Modals & Drawers (Cart, Variant Picker, Checkout, Tracking)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

@media (min-width: 600px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
}

@media (min-width: 600px) {
  .modal-sheet {
    border-radius: 20px;
    max-height: 85vh;
  }
}

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

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F3F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: #FAFAFA;
}

/* Cart Items inside Modal */
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F5;
}

.cart-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #EEE;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 10.5px;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

/* Bill Breakdown */
.bill-breakdown {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid #ECEFF1;
}

.bill-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #78909C;
  margin-bottom: 10px;
}

.bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.bill-row.free-tag span:last-child {
  color: var(--success);
  font-weight: 800;
}

.bill-row.grand-total {
  border-top: 1px dashed #CFD8DC;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-main);
}

/* Form inputs */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: #FFF;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

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

.btn-primary-action {
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary-action:active {
  transform: scale(0.98);
}

.btn-primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: #212529;
  color: #FFF;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  animation: toastFadeIn 0.25s ease;
}

.toast.success { background: #2E7D32; }
.toast.error { background: #C62828; }

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  color: #CFD8DC;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 12px;
}
