

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  height: auto !important; 
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  color: var(--light-text-primary, #110b08);
  overflow-x: hidden;
  animation: pageFade 0.8s ease;
  display: flex;
  flex-direction: column;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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


.page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 100vh;
  justify-content: flex-start !important;
  position: relative;
  z-index: 10;
}


.bg-pattern, 


.centered-header {
  text-align: center;
  margin-top: 5px !important;
  margin-bottom: 50px !important;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.centered-header .logo {
  font-family: 'Fredoka', cursive;
  font-size: 64px; 
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}





.marketplace-content {
  width: 100%;
  padding-bottom: 60px;
}


.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin-bottom: 35px;
}

.search-box {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 12px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
}

.search-box:focus-within {
  background: white;
  box-shadow: 0 15px 45px rgba(47, 122, 79, 0.12);
  transform: translateY(-2px);
  border-color: rgba(47, 122, 79, 0.3);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: #333;
  font-family: inherit;
}

.cart-bubble {
  position: absolute;
  right: 0;
  background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 50;
}

.cart-bubble:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 15px 35px rgba(39, 174, 96, 0.5);
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}


.filter-controls-row {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}


.fancy-veg, .fancy-nonveg, .sort-selected {
  height: 46px;
  padding: 0 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  font-family: 'Fredoka', cursive;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.fancy-veg.active { background: #2f7a4f; color: white; border-color: #2f7a4f; }
.fancy-nonveg.active { background: #d35400; color: white; border-color: #d35400; }


.quantity-controls {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #2f7a4f;
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-count {
  width: 34px;
  text-align: center;
  font-weight: 700;
  color: #2f7a4f;
}


.custom-sort { position: relative; min-width: 180px; }
.sort-options {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: white; border-radius: 15px; padding: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15); visibility: hidden;
  opacity: 0; transform: translateY(10px); transition: 0.3s; z-index: 100;
}
.custom-sort.open .sort-options { visibility: visible; opacity: 1; transform: translateY(0); }
.sort-item { padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.sort-item:hover { background: #f0f7f2; color: #2f7a4f; }
.sort-item.active { background: #2f7a4f; color: white; }


.community-footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  margin-top: 40px;
  border: 2px dashed rgba(47, 122, 79, 0.3);
  border-radius: 30px;
  background: rgba(47, 122, 79, 0.02);
}

.community-footer h3 { font-family: 'Fredoka', cursive; color: #2f7a4f; margin-bottom: 10px; }
.community-footer p { opacity: 0.8; max-width: 500px; margin: 0 auto; }


/* ========= Restaurant Cards ========= */
.restaurant-card {
  background: linear-gradient(145deg, rgba(255, 250, 235, 0.85), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 35px rgba(218, 165, 32, 0.15);
  display: flex;
  flex-direction: column;
}

.restaurant-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(218, 165, 32, 0.35);
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(145deg, rgba(255, 255, 240, 0.95), #ffffff);
}

.restaurant-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.restaurant-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.restaurant-card:hover .restaurant-cover img {
  transform: scale(1.08);
}

.restaurant-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  justify-content: flex-end;
}

.restaurant-item-count {
  background: rgba(255,250,235,0.95);
  color: #B8860B;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.restaurant-info {
  padding: 18px 20px 8px;
}

.restaurant-name {
  font-family: 'Fredoka', cursive;
  font-size: 1.15rem;
  color: #2c3e50;
  margin-bottom: 8px;
}

.restaurant-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.restaurant-price {
  font-family: 'Fredoka', cursive;
  color: #DAA520;
  font-size: 1.1rem;
  font-weight: 700;
}

.restaurant-distance {
  font-size: 0.82rem;
  color: #888;
  font-weight: 500;
}

.restaurant-cta {
  padding: 12px 20px 18px;
  margin-top: auto;
}

.restaurant-cta span {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #DAA520);
  color: #111;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Fredoka', cursive;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.restaurant-card:hover .restaurant-cta span {
  box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6);
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, #FFDF00, #B8860B);
}

/* ========= Expanded Restaurant Header ========= */
.restaurant-expanded-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 10px;
  border-bottom: 2px solid rgba(47, 122, 79, 0.15);
}

.restaurant-back-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(47, 122, 79, 0.2);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Fredoka', cursive;
  font-size: 0.9rem;
  cursor: pointer;
  color: #2f7a4f;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.restaurant-back-btn:hover {
  background: #2f7a4f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 122, 79, 0.3);
}

.restaurant-expanded-info h2 {
  font-family: 'Fredoka', cursive;
  font-size: 1.5rem;
  color: #2c3e50;
}

.restaurant-expanded-info p {
  color: #888;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ========= Open Highlight for Restaurant Cards ========= */
.restaurant-card.is-open-highlight {
  border: 2px solid #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 8px 30px rgba(218, 165, 32, 0.15);
  animation: glowPulseGold 2s infinite alternate;
}

@keyframes glowPulseGold {
  0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 8px 30px rgba(218, 165, 32, 0.15); border-color: #FFD700; }
  100% { box-shadow: 0 0 28px rgba(255, 215, 0, 0.8), 0 8px 30px rgba(218, 165, 32, 0.2); border-color: #DAA520; }
}

.restaurant-card.is-open-highlight .restaurant-name {
  color: #B8860B;
  text-shadow: 0 1px 2px rgba(218, 165, 32, 0.2);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.restaurant-card.is-open-highlight .restaurant-meta {
  font-weight: 600;
}

.restaurant-card.is-open-highlight .restaurant-price {
  font-size: 1.15rem;
  color: #DAA520;
  text-shadow: 0 1px 1px rgba(218, 165, 32, 0.1);
}

.restaurant-card.is-open-highlight .restaurant-distance {
  color: #444;
  font-weight: 600;
}

.restaurant-card.is-open-highlight:hover {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.95), 0 20px 50px rgba(218, 165, 32, 0.3) !important;
  border-color: #FFD700 !important;
  transform: translateY(-8px) scale(1.03);
}

/* ========= Dark Mode for Restaurant Cards ========= */
body.dark .restaurant-card {
  background: rgba(23, 23, 23, 0.85) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}
body.dark .restaurant-card.is-open-highlight {
  border-color: #27ae60 !important;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.5), 0 8px 30px rgba(0,0,0,0.2) !important;
}
body.dark .restaurant-card.is-open-highlight:hover {
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.8), 0 20px 50px rgba(0,0,0,0.3) !important;
}
body.dark .restaurant-name,
body.dark .restaurant-card.is-open-highlight .restaurant-name { color: #FFD700 !important; }
body.dark .restaurant-price,
body.dark .restaurant-card.is-open-highlight .restaurant-price { color: #D4AF37 !important; }
body.dark .restaurant-distance,
body.dark .restaurant-card.is-open-highlight .restaurant-distance { color: #ddd !important; }
body.dark .restaurant-cta span {
  background: linear-gradient(135deg, #D4AF37, #B8860B) !important;
}
body.dark .restaurant-expanded-header {
  border-color: rgba(212, 175, 55, 0.2) !important;
}


body.dark { 
  background: var(--slurpie-mesh-dark) no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #080808 !important;
  color: #f1e5ac !important; 
}
body.dark .search-box, 
body.dark .fancy-veg, 
body.dark .fancy-nonveg, 
body.dark .sort-selected,
body.dark .custom-sort .sort-options {
  background: rgba(23, 23, 23, 0.8) !important; 
  border-color: rgba(212, 175, 55, 0.3) !important; 
  color: #f1e5ac !important;
}
body.dark .search-box input {
  color: #D4AF37 !important;
}

/* ===== Slurpie Food Card (Brand Theme & Mobile Ergonomics) ===== */
.slurpie-food-card {
  --card-bg: rgba(255, 255, 255, 0.45);
  --card-accent: #27ae60;
  --card-accent-dark: #2f7a4f;
  --card-text: #1b432c;
  --card-subtext: #5a6e62;
  --card-shadow: 0 10px 25px -5px rgba(47, 122, 79, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --card-border: rgba(47, 122, 79, 0.18);

  width: 100%;
  height: 100%;
  min-height: 330px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  border: 1px solid var(--card-border);
  font-family: 'Outfit', sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

body.dark .slurpie-food-card {
  --card-bg: rgba(20, 24, 21, 0.55);
  --card-accent: #D4AF37;
  --card-accent-dark: #B8860B;
  --card-text: #f1e5ac;
  --card-subtext: #bbb;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 4px 10px -2px rgba(212, 175, 55, 0.05);
  --card-border: rgba(212, 175, 55, 0.25);
}

/* Shine and Glow Effects (Removed for performance) */
.slurpie-food-card .card__shine {
  display: none !important;
}
body.dark .slurpie-food-card .card__shine {
  display: none !important;
}

.slurpie-food-card .card__glow {
  display: none !important;
}
body.dark .slurpie-food-card .card__glow {
  display: none !important;
}

.slurpie-food-card .card__content {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 5;
  flex: 1;
}

.slurpie-food-card .card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  pointer-events: none;
}
.slurpie-food-card .card__badge.veg-badge { background: #10b981; }
.slurpie-food-card .card__badge.nonveg-badge { background: #ef4444; }

.slurpie-food-card .card__image {
  width: 100%;
  height: 145px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 8px;
  gap: 4px;
  box-shadow: inset 0 -20px 30px rgba(0,0,0,0.25);
}

.slurpie-food-card .card__image::after {
  display: none !important;
}

.slurpie-food-card .card__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2px;
}

.slurpie-food-card .card__title {
  color: var(--card-text);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slurpie-food-card .card__description {
  color: var(--card-subtext);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slurpie-food-card .card__location {
  font-size: 0.75rem;
  margin-top: 2px;
}

.slurpie-food-card .card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.06);
  flex-wrap: wrap;
  gap: 8px;
}
body.dark .slurpie-food-card .card__footer {
  border-top-color: rgba(255,255,255,0.08);
}

.slurpie-food-card .card__price {
  color: var(--card-accent);
  font-weight: 800;
  font-size: 1.25rem;
  font-family: 'Fredoka', cursive;
  flex: 1 1 auto;
  min-width: 0;
}

.slurpie-food-card .interactive-qty {
  flex-shrink: 0;
  width: 75px;
  height: 30px;
}

.slurpie-food-card .qty-add-text {
  font-size: 0.75rem;
}

.slurpie-food-card .interactive-qty.empty::after {
  content: none !important;
}

.slurpie-food-card .card__button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  background: linear-gradient(135deg, var(--card-accent), var(--card-accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: none !important;
  transition: none !important;
  transform: none !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body.dark .slurpie-food-card .card__button {
  color: #111;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.slurpie-food-card .card__button:active {
  transform: scale(0.92);
}

/* Hover effects removed for desktop optimization */
@media (hover: hover) {
  .slurpie-food-card:hover {
    border-color: rgba(39, 174, 96, 0.4);
  }
  body.dark .slurpie-food-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
  }
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
  .slurpie-food-card {
    min-height: 290px;
    border-radius: 16px;
    transform: none !important;
    transition: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    will-change: auto !important;
  }
  .slurpie-food-card .card__shine,
  .slurpie-food-card .card__glow,
  .slurpie-food-card .card__image::after {
    display: none !important;
  }
  .slurpie-food-card .card__content {
    padding: 0.85rem;
    gap: 0.5rem;
    z-index: 5;
  }
  .slurpie-food-card .card__image {
    height: 120px;
    border-radius: 12px;
  }
  .slurpie-food-card .card__title {
    font-size: 1rem;
  }
  .slurpie-food-card .card__description {
    font-size: 0.75rem;
  }
  .slurpie-food-card .card__price {
    font-size: 1.05rem;
  }
  .slurpie-food-card .card__button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .slurpie-food-card {
    min-height: 270px;
    border-radius: 14px;
    padding: 0 !important; /* Force reset generic .card padding from responsive.css */
  }
  .slurpie-food-card .card__content {
    padding: 0.75rem !important;
  }
  .slurpie-food-card .card__image {
    height: 110px;
  }
}

/* ========= New Restaurant Card Design ========= */
.new-restaurant-card {
  background: linear-gradient(145deg, rgba(255, 250, 235, 0.85), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(218, 165, 32, 0.15);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  border: 1px solid rgba(255, 215, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.new-restaurant-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(218, 165, 32, 0.35);
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(145deg, rgba(255, 255, 240, 0.95), #ffffff);
}

.nrc-image-section {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nrc-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nrc-badge-prime {
  background: rgba(255,250,235,0.95);
  color: #B8860B;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(218, 165, 32, 0.2);
  border: 1px solid rgba(218, 165, 32, 0.3);
  backdrop-filter: blur(5px);
}

.nrc-badge-closed {
  background: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nrc-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.nrc-pagination .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.nrc-pagination .dot.active {
  background: #FFD700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.nrc-content-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nrc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.nrc-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #DAA520;
}

.nrc-price-label {
  color: #B8860B;
  font-size: 0.9rem;
  font-weight: 500;
}

.nrc-title-row {
  margin-bottom: 15px;
  flex-grow: 1;
}

.nrc-title-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  font-family: 'Fredoka', cursive;
}

.nrc-title-sub {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

.nrc-divider {
  height: 1px;
  background: rgba(218, 165, 32, 0.2);
  margin: 15px 0;
}

.nrc-metrics-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nrc-metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nrc-icon {
  font-size: 1.1rem;
}

.nrc-metric-text {
  font-size: 0.95rem;
  color: #B8860B;
  font-weight: 600;
}

.nrc-metric-divider {
  width: 1px;
  height: 20px;
  background: rgba(218, 165, 32, 0.2);
}

.nrc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #777;
}

.nrc-author {
  font-weight: 600;
  color: #DAA520;
  text-decoration: underline;
}

.nrc-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD700, #DAA520);
  color: #111;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.nrc-action-btn:hover {
  background: linear-gradient(135deg, #FFDF00, #B8860B);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6);
}

body.dark .new-restaurant-card {
  background: rgba(23, 23, 23, 0.85) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

body.dark .new-restaurant-card:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 20px 50px rgba(0,0,0,0.5) !important;
  border-color: #D4AF37 !important;
}

body.dark .nrc-price { color: #D4AF37 !important; }
body.dark .nrc-title-main { color: #FFD700 !important; }
body.dark .nrc-author { color: #D4AF37 !important; }

body.dark .nrc-price-label,
body.dark .nrc-metric-text {
  color: #B8860B;
}

body.dark .nrc-title-sub,
body.dark .nrc-footer {
  color: #aaa;
}

body.dark .nrc-divider,
body.dark .nrc-metric-divider {
  background: rgba(212, 175, 55, 0.2);
}

body.dark .nrc-action-btn {
  background: linear-gradient(135deg, #D4AF37, #B8860B) !important;
  color: #111 !important;
}

body.dark .nrc-action-btn:hover {
  background: linear-gradient(135deg, #FFD700, #D4AF37) !important;
}

/* ===== Food Details Modal ===== */
.food-details-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 999999;
  justify-content: center;
  align-items: center;
}

.food-details-modal.show {
  display: flex;
}

.fdm-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.fdm-content {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbf7 100%);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow-y: auto;
  animation: fdmEntrance 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark .fdm-content {
  background: linear-gradient(135deg, #181c19 0%, #101411 100%);
  color: #f1e5ac;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.fdm-close {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(0,0,0,0.1);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.dark .fdm-close {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

@keyframes fdmEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fdm-header-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.fdm-body-content {
  padding: 20px;
}

.fdm-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1b432c;
  margin-bottom: 10px;
}
body.dark .fdm-title { color: #D4AF37; }

.fdm-desc {
  font-size: 0.95rem;
  color: #5a6e62;
  margin-bottom: 20px;
  line-height: 1.5;
}
body.dark .fdm-desc { color: #bbb; }

.fdm-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.fdm-icon {
  font-size: 1.2rem;
}

/* Custom Overrides from Video Feedback */

/* 1. New Catchy Traditional Background */
.bg-pattern {
  background-image: url('slurpie_traditional_bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  opacity: 0.9 !important;
  mix-blend-mode: multiply;
}

body.dark .bg-pattern {
  background-image: url('slurpie_traditional_bg.png') !important;
  opacity: 0.3 !important;
  mix-blend-mode: overlay;
}

/* 2. Fix Cart Emoji Alignment */
.slurpie-food-card .qty-add-text {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  text-align: center !important;
}
.slurpie-food-card .interactive-qty {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* 3. Fix Restaurant Header Overlap */
.restaurant-expanded-header {
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}
.restaurant-expanded-info {
  text-align: left;
}

/* On small screens, stack them and center */
@media (max-width: 600px) {
  .restaurant-expanded-header {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .restaurant-expanded-info {
    text-align: center;
  }
}

/* ==========================================================================
   Food Category Navigation & Section Styles (Swiggy Style)
   ========================================================================== */

/* Top-Right Swiggy Items Button */
.swiggy-items-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  font-family: 'Fredoka', cursive;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  flex-shrink: 0;
}

.swiggy-items-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.5);
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.swiggy-items-btn .items-icon {
  font-size: 16px;
}

.swiggy-items-btn .items-text {
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .swiggy-items-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* View Mode Switcher Toggle */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(47, 122, 79, 0.18);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Fredoka', cursive;
  font-size: 13px;
  font-weight: 600;
  color: #5a3d2b;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.view-mode-btn.active {
  background: linear-gradient(135deg, #2f7a4f, #27ae60);
  color: white;
  box-shadow: 0 4px 12px rgba(47, 122, 79, 0.25);
}

.view-mode-btn:not(.active):hover {
  background: rgba(47, 122, 79, 0.08);
  color: #2f7a4f;
}

/* Floating Category Button (Floating above chatbot) */
.floating-category-btn {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4), 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 9997;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 24px;
}

.floating-category-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 35px rgba(230, 126, 34, 0.55), 0 6px 15px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.floating-category-btn .cat-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #27ae60;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .floating-category-btn {
    bottom: 68px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* Category Modal / Drawer (Swiggy Style) */
#categoryMenuOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  animation: fadeIn 0.25s ease;
}

#categoryMenuModal {
  display: none;
  position: fixed;
  top: 80px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 9999;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cat-modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(243, 156, 18, 0.06));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-modal-header h3 {
  font-family: 'Fredoka', cursive;
  font-size: 1.15rem;
  color: #d35400;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cat-modal-close:hover {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.cat-modal-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-modal-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.cat-modal-search input:focus {
  border-color: #e67e22;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.cat-list {
  padding: 10px 12px;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-list::-webkit-scrollbar {
  width: 5px;
}
.cat-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Fredoka', cursive;
  font-size: 14px;
  color: #444;
}

.cat-item:hover {
  background: rgba(230, 126, 34, 0.1);
  color: #d35400;
  transform: translateX(4px);
}

.cat-item.active {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.cat-item.active .cat-item-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.cat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-item-icon {
  font-size: 18px;
}

.cat-item-count {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: #777;
  font-weight: 600;
}

/* Category Navigation Pills */
.category-nav-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 16px 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
}

.category-nav-bar::-webkit-scrollbar {
  display: none;
}

.cat-nav-pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(47, 122, 79, 0.15);
  font-family: 'Fredoka', cursive;
  font-size: 14px;
  color: #5a3d2b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.cat-nav-pill:hover {
  transform: translateY(-3px);
  border-color: #2f7a4f;
  color: #2f7a4f;
  box-shadow: 0 8px 20px rgba(47, 122, 79, 0.15);
}

.cat-nav-pill.active {
  background: linear-gradient(135deg, #2f7a4f, #27ae60);
  color: white;
  border-color: #27ae60;
  box-shadow: 0 8px 20px rgba(47, 122, 79, 0.3);
  transform: scale(1.03);
}

.cat-nav-pill .pill-count {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.cat-nav-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Categorized Section & Header */
.food-category-section {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 40px;
  scroll-margin-top: 100px;
  transition: background 0.4s ease;
  border-radius: 16px;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 14px 12px 14px;
  border-bottom: 2px dashed rgba(47, 122, 79, 0.2);
  border-radius: 12px;
  transition: all 0.4s ease;
}

.category-section-highlight .category-section-header {
  background: rgba(47, 122, 79, 0.12);
  border-bottom-color: #27ae60;
  box-shadow: 0 0 20px rgba(39, 174, 96, 0.25);
  animation: sectionPulse 1.5s ease;
}

@keyframes sectionPulse {
  0% { transform: scale(1); background: rgba(47, 122, 79, 0.25); }
  50% { transform: scale(1.01); background: rgba(47, 122, 79, 0.12); }
  100% { transform: scale(1); background: rgba(47, 122, 79, 0.04); }
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(47, 122, 79, 0.1);
  box-shadow: 0 4px 10px rgba(47, 122, 79, 0.08);
}

.category-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.5rem;
  color: #2f7a4f;
  margin: 0;
  letter-spacing: 0.5px;
}

.category-subtitle {
  display: block;
  font-size: 0.82rem;
  color: #888;
  font-family: 'Outfit', sans-serif;
  margin-top: 2px;
}

.category-badge {
  background: #e9f8ef;
  color: #27ae60;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.category-food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

@media (max-width: 600px) {
  .category-food-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .category-title {
    font-size: 1.25rem;
  }
  #categoryMenuModal {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 24px 24px 0 0;
    max-height: 75vh;
  }
}

/* Dark Mode Support for Categories */
body.dark #categoryMenuModal {
  background: rgba(30, 30, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark .cat-modal-header {
  background: rgba(230, 126, 34, 0.15);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .cat-modal-header h3 {
  color: #f39c12;
}

body.dark .cat-modal-search input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.dark .cat-item {
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
}

body.dark .cat-item:hover {
  background: rgba(230, 126, 34, 0.2);
  color: #f39c12;
}

body.dark .cat-nav-pill {
  background: rgba(35, 35, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

body.dark .cat-nav-pill:hover {
  border-color: #5fbf8f;
  color: #5fbf8f;
}

body.dark .view-mode-toggle {
  background: rgba(40, 40, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .view-mode-btn {
  color: #ccc;
}

body.dark .view-mode-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body.dark .category-section-header {
  border-color: rgba(95, 191, 143, 0.25);
}

body.dark .category-icon {
  background: rgba(95, 191, 143, 0.15);
}

body.dark .category-title {
  color: #5fbf8f;
}

body.dark .category-subtitle {
  color: #aaa;
}

body.dark .category-badge {
  background: rgba(95, 191, 143, 0.15);
  color: #5fbf8f;
  border-color: rgba(95, 191, 143, 0.3);
}

body.dark .category-section-highlight .category-section-header {
  background: rgba(95, 191, 143, 0.2);
  box-shadow: 0 0 20px rgba(95, 191, 143, 0.3);
}
