/* 🌞 Light Mode – Default */
body {
  background-color: #DEDEDE;
  color: #1a1a1a;
  transition: background-color 0.4s ease, color 0.4s ease;
}

header,
footer,
nav,
.modal,
#filters-section,
.home-product-card,
.banner-slide,
#trustbadges-section {
  background-color: #02040f;
  color: #1a1a1a;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 🌚 Dark Mode */
body.dark-mode {
  background-color: #02061f;
  color: #DBDBDB;
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode nav,
body.dark-mode .modal,
body.dark-mode #filters-section,
body.dark-mode .home-product-card,
body.dark-mode .banner-slide,
body.dark-mode #trustbadges-section {
  background-color: #02061f;
  color: #eaeaea;
  border-color: #333;
}

body.dark-mode input,
body.dark-mode select {
  background-color: #262626;
  color: #eaeaea;
  border: 1px solid #444;
}

body.dark-mode .badge {
  background-color: #2a2a2a;
  border-color: #444;
}

/* 🎨 Accent Styling (Shared) */
.badge {
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  display: inline-block;
}

body.dark-mode .home-section-title {
  color: #ffffff;
}

#themeToggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#themeToggle:hover {
  transform: scale(1.1);
}








#recentSearches,
#recommendedSearches,
#popularProducts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* --- HEADER FIX --- */
.header {}

/* --- SEARCH SECTIONS SPACING --- */
#searchSuggestions,
#recentSearches,
#recommendedSearches,
#popularProducts {
  margin-bottom: 16px;
}

/* --- CHIP STYLES --- */
.chip {
  background: #f0f0f0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin: 4px 6px 4px 0;
}

.chip:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

/* --- MINI PRODUCT GRIDS --- */
#productSuggestions,
#popularProducts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* --- MINI PRODUCT CARD --- */
.mini-card,
.product-card.small {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  background: #fafafa;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.mini-card:hover,
.product-card.small:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mini-card img,
.product-card.small img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 6px;
}

.mini-card span,
.product-card.small h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: block;
  margin: 4px 0;
}

.product-card.small p {
  font-size: 13px;
  color: #444;
  margin: 0;
}

/* --- DARK MODE SUPPORT --- */
@media (prefers-color-scheme: dark) {
  .search-wrapper {
    background: #1f1f1f;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
  }

  .search-icon {
    color: #aaa;
  }

  #searchInput {
    color: #fff;
  }

  #search-overlay,
  #search-focus-overlay {
    background: #121212;
  }

  .chip {
    background: #2a2a2a;
    color: #ccc;
  }

  .chip:hover {
    background: #333;
  }

  .mini-card,
  .product-card.small {
    background: #1e1e1e;
    border-color: #333;
    color: #ddd;
  }

  .mini-card span,
  .product-card.small h4,
  .product-card.small p {
    color: #ccc;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 600px) {
  #productSuggestions,
  #popularProducts {
    grid-template-columns: repeat(3, 1fr);
  }

  .chip {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .product-card.small h4 {
    font-size: 13px;
  }

  .product-card.small p {
    font-size: 12px;
  }
}
/* --- OVERLAY ANIMATIONS --- */
#search-overlay,
#search-focus-overlay {
  animation: fadeInUp 0.3s ease both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- LIVE TEXT SUGGESTIONS BOX --- */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 250px;
  overflow-y: auto;
}

.suggestions-box .suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.suggestions-box .suggestion-item:hover {
  background: #f9f9f9;
}

.suggestions-box .suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 6px;
}

.suggestions-box .suggestion-item span {
  font-size: 14px;
  color: #333;
}

/* --- DARK MODE: SUGGESTIONS --- */
@media (prefers-color-scheme: dark) {
  .suggestions-box {
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  }

  .suggestions-box .suggestion-item {
    border-bottom: 1px solid #2e2e2e;
  }

  .suggestions-box .suggestion-item:hover {
    background: #2a2a2a;
  }

  .suggestions-box .suggestion-item span {
    color: #ccc;
  }
}