/* Global Styles */
body {
  background-color: #f8f9fa;
  padding-top: 70px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar-brand img {
  height: 30px;
}

.navbar .form-control {
  width: 300px;
}

.navbar-nav .nav-link.btn {
  padding: 6px 12px;
}

/* Top Banner */
.top-banner {
  background: #ffc107;
  color: #000;
  font-weight: bold;
}

/* Category Strip (Below Navbar) */
.category-strip {
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  white-space: nowrap;
}

.category-item {
  display: inline-block;
  padding: 10px 15px;
  text-align: center;
  color: #333;
  text-decoration: none;
}

.category-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 5px;
}

.category-item span {
  display: block;
  font-size: 0.9rem;
}

/* Category Card */
.category-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

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

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0d6efd;
}

.subcategory-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
  color: #495057;
}

/* Wide Category Link */
.widecategory-link {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 6px 14px;
  background: #e9ecef;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #212529;
  text-decoration: none;
  transition: all 0.2s;
}

.widecategory-link:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Category Highlights */
.cat-highlight {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cat-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.cat-name {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

/* Product Card */
.product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card img {
  height: 180px;
  object-fit: cover;
}

.price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d6efd;
}

/* Carousel */
.carousel-item img {
  height: 400px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 767px) {
  .hero {
    padding: 60px 0;
  }

  .cat-icon {
    width: 50px;
    height: 50px;
  }

  .cat-name {
    font-size: 0.9rem;
  }

  .product-card img {
    height: 150px;
  }

  .testimonial {
    padding: 40px 10px;
  }
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .navbar,
body.dark-mode .top-banner,
body.dark-mode .footer {
  background-color: #1f1f1f !important;
  color: #f1f1f1 !important;
}

body.dark-mode .card,
body.dark-mode .form-control {
  background-color: #1e1e1e;
  color: #ffffff;
}

body.dark-mode .card .card-body,
body.dark-mode .btn-outline-primary {
  border-color: #444;
}

body.dark-mode .btn-outline-primary {
  color: #ffffff;
}

body.dark-mode .form-control {
  border-color: #555;
  background-color: #333;
}

/* Mega Menu Adjustments */
.dropdown-menu.position-static {
  border: none;
}

@media (max-width: 991px) {
  .dropdown-menu.position-static .container {
    display: block;
    padding: 1rem;
  }
}
.dropdown-menu .dropdown-item i {
  width: 20px;
  text-align: center;
}

