

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

body {
  height: auto !important; 
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--light-text-primary, #110b08);
  overflow-y: auto !important; 
  overflow-x: hidden;
  background: var(--slurpie-mesh-light) no-repeat center center fixed;
  background-size: cover;
  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-bulk, .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-bulk.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: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.restaurant-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(47, 122, 79, 0.15);
  border-color: rgba(47, 122, 79, 0.3);
}

.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,255,255,0.9);
  color: #2f7a4f;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  backdrop-filter: blur(5px);
}

.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: #27ae60;
  font-size: 1rem;
  font-weight: 600;
}

.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, #27ae60, #2ecc71);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Fredoka', cursive;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.restaurant-card:hover .restaurant-cta span {
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
  transform: translateY(-2px);
}

/* ========= 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 #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.4), 0 8px 30px rgba(0,0,0,0.06);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(46, 204, 113, 0.4), 0 8px 30px rgba(0,0,0,0.06); border-color: #2ecc71; }
  100% { box-shadow: 0 0 28px rgba(46, 204, 113, 0.75), 0 8px 30px rgba(0,0,0,0.06); border-color: #27ae60; }
}

.restaurant-card.is-open-highlight .restaurant-name {
  color: #1e8449;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  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.1rem;
  color: #27ae60;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

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

.restaurant-card.is-open-highlight:hover {
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.95), 0 20px 50px rgba(47, 122, 79, 0.15) !important;
  border-color: #219653 !important;
  transform: translateY(-8px) scale(1.02);
}

/* ========= 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 .restaurant-back-btn {
  background: rgba(30, 30, 30, 0.8) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
  color: #D4AF37 !important;
}
body.dark .restaurant-back-btn:hover {
  background: #D4AF37 !important;
  color: #111 !important;
}
body.dark .restaurant-expanded-info h2 { color: #FFD700 !important; }
body.dark .restaurant-expanded-info p { color: #aaa !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-bulk, 
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;
}
body.dark .food-card { 
  background: rgba(23, 23, 23, 0.85) !important; 
  border-color: rgba(212, 175, 55, 0.2) !important; 
}
body.dark .food-name { color: #FFD700 !important; }
body.dark .quantity-controls { 
  background: #111 !important; 
  border-color: rgba(212, 175, 55, 0.3) !important; 
}
body.dark .qty-count { color: #FFD700 !important; }
body.dark .community-footer {
    border-color: rgba(212, 175, 55, 0.2) !important;
}
body.dark .community-footer h3 {
    color: #D4AF37 !important;
}


@media (max-width: 900px) {
  .top-bar { flex-direction: column; gap: 15px; }
  .search-box { width: 100%; max-width: none; }
  .cart-bubble { position: relative; right: auto; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .centered-header .logo { font-size: 48px; gap: 15px; }
  .centered-header { margin-bottom: 40px !important; }
  .filter-group { gap: 12px; }
  .restaurant-expanded-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 600px) {
  .centered-header .logo { font-size: 30px !important; gap: 10px; margin-top: 20px; }
  .centered-header { margin-bottom: 30px !important; }
  .tagline { font-size: 14px; margin-bottom: 20px; }
  
  .filter-group { gap: 10px; }
  .fancy-veg, .fancy-bulk, .sort-selected { font-size: 12px; padding: 0 15px; height: 40px; }
  
  .page { padding: 0 15px; }
  .food-section { padding: 0; }
  
  .top-right { top: 10px; right: 10px; }
  .back-btn { top: 10px; left: 10px; padding: 8px 12px; font-size: 13px; }
  
  .premium-search { font-size: 14px; }
  .search-icon-fixed { font-size: 14px; }
}



