:root {
  --primary: #ff6648;
  --primary-dark: #e94222;
  --secondary: #f9c200;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --bg-light: #f6f8fc;
  --card-border: rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: all 0.3s ease;
}
.logo-size{
    width: 16% !important;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(255,102,72,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(249,194,0,0.08), transparent 24%),
    linear-gradient(180deg, #fff8f4 0%, #ffffff 220px, #f6f8fc 100%);
  padding-bottom: 92px;
}

img {
  max-width: 100%;
  display: block;
}

button, a {
  transition: var(--transition);
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

a {
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 28px));
  margin: auto;
}

/* ================= HEADER ================= */
.foods-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  padding: 12px 0;
}

.foods-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-btn,
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.back-btn:hover,
.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(233,66,34,0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 800;
}

.brand-text small {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3d00;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= HERO ================= */
.foods-hero {
  padding: 24px 0 14px;
}

.foods-hero-card {
  background: linear-gradient(135deg, rgba(255,244,239,0.96), rgba(255,255,255,0.96));
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 12px 0 10px;
  color: var(--text-dark);
}

.hero-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #ffe0d7;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 0 16px;
  height: 58px;
  box-shadow: var(--shadow-sm);
}

.hero-search i {
  color: var(--text-light);
  margin-right: 10px;
}

.hero-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-dark);
}

/* ================= FILTERS ================= */
.filters-section {
    padding: 10px 0 8px;
    position: relative;
    z-index: 0;
}
.filters-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.filter-item label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.filter-item select {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid #e8edf5;
  background: #fff;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.filter-actions {
  display: flex;
  align-items: center;
}

.reset-btn {
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff3ee;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #ffd9cd;
}

.reset-btn:hover {
  background: var(--primary);
  color: #fff;
}

.quick-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chip {
  border: 1px solid #edf2f7;
  background: #fff;
  color: var(--text-dark);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.chip:hover,
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.results-bar h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.results-bar p {
  font-size: 14px;
  color: var(--text-light);
}

.results-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-dark);
  border: 1px solid #eceff5;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.results-link:hover {
  background: var(--secondary);
  color: #111;
}

/* ================= GRID ================= */
.foods-grid-section {
    padding: 8px 0 30px;
    position: relative;
    z-index: 0;
}

.foods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.food-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.food-img {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background: linear-gradient(135deg, #fff3ee, #f8fafc);
  overflow: hidden;
}

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

.food-card:hover .food-img img {
  transform: scale(1.05);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: var(--primary);
  color: #fff;
}

.rating-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15,23,42,0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.rating-badge i {
  color: #fbbf24;
  margin-right: 4px;
}

.food-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.title-row h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-dark);
}

.title-row h3 a {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-dark);
}


.veg-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.veg-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
}

.veg-dot.veg {
  border: 2px solid #16a34a;
}
.veg-dot.veg::after {
  background: #16a34a;
}

.veg-dot.nonveg {
  border: 2px solid #dc2626;
}
.veg-dot.nonveg::after {
  background: #dc2626;
}

.food-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.food-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.food-tags span {
  background: #fff3ee;
  color: var(--text-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.food-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.food-meta span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  background: #f8fafc;
  border: 1px solid #eef2f7;
  padding: 6px 10px;
  border-radius: 999px;
}

.food-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.food-footer strong {
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.add-btn {
  min-width: fit-content;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(233, 66, 34, 0.2);
}

.add-btn:hover {
  transform: translateY(-2px);
}

.cart-action-slot {
  flex-shrink: 0;
}

.cart-stepper--inline {
  display: inline-flex;
  align-items: center;
  background: #fff0f2;
  border: 1px solid #ffd6dc;
  border-radius: 12px;
  overflow: hidden;
}

.cart-stepper-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e23744;
  background: transparent;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
}

.cart-stepper-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ================= EMPTY ================= */
.empty-state {
  min-height: 280px;
  border-radius: 28px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-light);
  text-align: center;
  gap: 10px;
}

.empty-state i {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff3ee;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.empty-state h3 {
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 800;
}

/* ================= MOBILE NAV ================= */
.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(94%, 520px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.15);
  padding: 10px 8px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 1300;
}

.mobile-bottom-nav a {
  flex: 1;
  text-decoration: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 4px;
  border-radius: 14px;
}

.mobile-bottom-nav a i {
  font-size: 18px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--primary);
  background: #fff3ee;
}

/* Mobile cart toast & active order (main.js) */
.foodigo-mobile-stack {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 520px);
  z-index: 1285;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  box-sizing: border-box;
}

.foodigo-mobile-stack > * {
  pointer-events: auto;
}

.foodigo-cart-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  font-size: 13px;
  font-weight: 600;
}

.foodigo-cart-toast[hidden] {
  display: none !important;
}

.foodigo-cart-toast-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.foodigo-cart-toast-msg i {
  color: #fdba74;
}

.foodigo-cart-toast-link {
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 102, 72, 0.95);
}

.foodigo-cart-toast-link:hover {
  color: #fff;
  filter: brightness(1.05);
}

.foodigo-active-order-bar[hidden] {
  display: none !important;
}

.foodigo-active-order-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  text-decoration: none;
  color: inherit;
}

.foodigo-active-order-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: foodigo-order-pulse 1.5s ease-in-out infinite;
}

@keyframes foodigo-order-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.foodigo-active-order-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foodigo-active-order-text strong {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.foodigo-active-order-status {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.foodigo-active-order-cta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

@media (min-width: 993px) {
  .foodigo-mobile-stack {
    display: none !important;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .foods-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  body.foodigo-has-active-order {
    padding-bottom: 148px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .foods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .filters-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 22px));
  }

  .foods-header {
    padding: 10px 0;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .foods-hero-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .results-bar h2 {
    font-size: 22px;
  }

  .food-img {
    min-height: 170px;
  }
}

@media (max-width: 576px) {
  .brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

  .back-btn,
  .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .foods-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filters-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-content h1 {
    font-size: 1.45rem;
  }

  .hero-search {
    height: 52px;
    border-radius: 16px;
  }

  .food-content {
    padding: 14px;
  }

  .title-row h3 {
    font-size: 15px;
  }

  .food-meta {
    gap: 6px;
  }

  .food-meta span {
    font-size: 10px;
    padding: 5px 8px;
  }
}

            /* Search Dropdown Styles */
    .hero-search { position: relative;     width: 100%;
    max-width: 100%;}
    .search-container { position: relative; width: 100%; }
    .search-dropdown {
      position: absolute; top: 100%; left: 0; right: 0;
      background: white; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
      margin-top: 8px; z-index: 1000; max-height: 400px; overflow-y: auto;
      display: none; border: 1px solid rgba(0,0,0,0.08);
    }
    .search-dropdown.active { display: block; animation: fadeIn 0.2s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .search-section { padding: 16px; border-bottom: 1px solid #f0f0f0; }
    .search-section:last-child { border-bottom: none; }
    .search-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #ff6648; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
    .search-category-item, .search-food-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; text-decoration: none; color: inherit; }
    .search-category-item:hover, .search-food-item:hover { background: #fff5f2; }
    .search-category-icon { width: 44px; height: 44px; background: linear-gradient(135deg, #fff0eb, #ffe8e2); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .search-category-icon i { font-size: 22px; color: #ff6648; }
    .search-food-img { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #f8f8f8; }
    .search-food-img img { width: 100%; height: 100%; object-fit: cover; }
    .search-item-info { flex: 1; }
    .search-item-info h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px 0; color: #1a1a2e; }
    .search-item-info .category-badge { font-size: 11px; color: #ff6648; background: #fff0eb; padding: 3px 10px; border-radius: 20px; display: inline-block; }
    .search-item-info .food-price { font-size: 13px; font-weight: 700; color: #ff6648; }
    .search-empty { text-align: center; padding: 40px 20px; color: #999; }
    .search-empty i { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
    .search-loading { text-align: center; padding: 30px; }
    .search-loading .spinner { width: 30px; height: 30px; border: 3px solid #f0f0f0; border-top-color: #ff6648; border-radius: 50%; animation: spin 0.6s linear infinite; margin: 0 auto 10px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .hero-search input { width: 100%; border: none; font-size: 16px; background: white;  padding-left: 50px; }
    .hero-search > i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 1; color: #999; }
    
    /* Hide pagination when filtering */
    .pagination.hidden { display: none; }
    
    /* Wishlist Toast */
    .wishlist-toast {
        position: fixed;
        bottom: 80px;
        right: 20px;
        background: #122033;
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        font-size: 14px;
        z-index: 9999;
        animation: slideInRight 0.3s ease;
        font-family: 'Plus Jakarta Sans', sans-serif;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    @keyframes slideInRight {
        from { opacity: 0; transform: translateX(100px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .logo-size {
        width: 12%;
    }