/* Store-specific styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 40px;
}

.slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
}

.slide-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slide-controls button {
  background-color: rgba(8, 50, 78, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-controls button:hover {
  background-color: rgba(8, 50, 78, 1);
}

/* Categories Section */
.categories {
  padding: 40px 5%;
}

.category-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  flex: 0 0 calc(25% - 20px);
  min-width: 200px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark-theme .category-card {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(8, 50, 78, 0.8);
  color: white;
  padding: 12px;
  margin: 0;
  text-align: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.category-card:hover h3 {
  background-color: rgba(119, 205, 255, 0.9);
  color: #08324e;
}

/* Product Section */
.product-section {
  padding: 40px 5%;
  position: relative;
}

.items-grid, .deals-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.items-grid::-webkit-scrollbar, .deals-grid::-webkit-scrollbar {
  display: none;
}

.item, .deal-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: white;
  padding-bottom: 15px;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dark-theme .item, .dark-theme .deal-item {
  background-color: #1e1e1e;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.item:hover, .deal-item:hover {
  transform: translateY(-10px);
}

.item img, .deal-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item h3, .deal-item h3 {
  font-size: 18px;
  margin: 15px 0 5px;
  padding: 0 15px;
  color: #08324e;
}

.dark-theme .item h3, .dark-theme .deal-item h3 {
  color: #e0e0e0;
}

.item p, .deal-item p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 0 15px;
  color: #031b28;
}

.dark-theme .item p, .dark-theme .deal-item p {
  color: #77cdff;
}

.item button, .deal-item button {
  margin: 0 15px;
  width: calc(100% - 30px);
}

.swipe-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.swipe-controls button {
  background-color: #08324e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swipe-controls button:hover {
  background-color: #056996;
}

/* Trending Deals */
.trending-deals {
  background-color: #f8f9fa;
  padding: 60px 5%;
  margin-top: 40px;
}

.dark-theme .trending-deals {
  background-color: #121212;
}

.trending-deals > p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.dark-theme .trending-deals > p {
  color: #aaa;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category-btn {
  background-color: transparent;
  border: 2px solid #08324e;
  color: #08324e;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme .category-btn {
  border-color: #77cdff;
  color: #77cdff;
}

.category-btn:hover, .category-btn.active {
  background-color: #08324e;
  color: white;
}

.dark-theme .category-btn:hover, .dark-theme .category-btn.active {
  background-color: #77cdff;
  color: #08324e;
}

.shopbtn {
  display: block;
  margin: 30px auto 0;
  padding: 12px 24px;
  background-color: #08324e;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shopbtn:hover {
  background-color: #056996;
  transform: translateY(-3px);
}

/* Deals Container */
.deals-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 5%;
  background-color: white;
}

.dark-theme .deals-container {
  background-color: #1e1e1e;
}

.outlet-deals, .deal-of-day {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-theme .outlet-deals, .dark-theme .deal-of-day {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.outlet-deals:hover, .deal-of-day:hover {
  transform: translateY(-10px);
}

.outlet-deals {
  background-color: #e9f7ff;
}

.dark-theme .outlet-deals {
  background-color: #0a1a24;
}

.deal-of-day {
  background-color: #f0f8ff;
  text-align: center;
}

.dark-theme .deal-of-day {
  background-color: #0d2331;
}

.outlet-deals h2, .deal-of-day h2 {
  color: #08324e;
  margin-bottom: 15px;
}

.dark-theme .outlet-deals h2, .dark-theme .deal-of-day h2 {
  color: #77cdff;
}

.outlet-deals p, .deal-of-day p {
  margin-bottom: 20px;
}

.deal-of-day img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 20px 0;
  border-radius: 6px;
}

.viewbtn {
  background-color: #77cdff;
  color: #08324e;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.viewbtn:hover {
  background-color: #08324e;
  color: white;
}

/* Search and Filter */
.search-filter {
  padding: 20px 5%;
  background-color: #f8f9fa;
}

.dark-theme .search-filter {
  background-color: #121212;
}

#searchForm {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.search-container {
  flex: 2;
  min-width: 300px;
  display: flex;
}

.search-container input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: 16px;
}

.dark-theme .search-container input {
  background-color: #333;
  color: #f0f0f0;
  border-color: #444;
}

.search-container button {
  background-color: #08324e;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-container button:hover {
  background-color: #056996;
}

.filter-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  gap: 10px;
}

.filter-container select {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  font-size: 16px;
  background-color: white;
}

.dark-theme .filter-container select {
  background-color: #333;
  color: #f0f0f0;
  border-color: #444;
}

#filterButton {
  background-color: #77cdff;
  color: #08324e;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

#filterButton:hover {
  background-color: #08324e;
  color: white;
}

/* Responsive */
@media screen and (max-width: 992px) {
  .category-card {
    flex: 0 0 calc(33.33% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .hero-slider {
    height: 300px;
  }

  .category-card {
    flex: 0 0 calc(50% - 20px);
  }

  .search-filter {
    padding: 20px;
  }

  #searchForm, .filter-container {
    flex-direction: column;
  }

  .filter-container {
    width: 100%;
  }

  .search-container {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .hero-slider {
    height: 200px;
  }

  .category-card {
    flex: 0 0 100%;
  }

  .category-btn {
    font-size: 14px;
    padding: 6px 12px;
  }
}
