/* HERO CAROUSEL */
.hero-section .carousel {
  text-shadow: none;
}

.carousel-item img {
  height: 350px; /* smaller height on small screens */
  object-position: top;
}

.carousel-indicators.custom-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
  margin: 0 5px;
  border: 2px solid #fff;
}

.carousel-indicators.custom-indicators .active {
  width: 12px; /* bigger dot for active */
  height: 12px;
  opacity: 1;
  background-color: #fff;
}

/* Category Sidebar */
.category-section h3 {
  font-size: 1.75rem;
  color: #333;
}

.category-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.2rem 1.5rem;
  min-height: 70px !important;
  max-height: 100px !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  .category-content span:nth-child(1) {
    color: #28a745;
  }
}

.category-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--primary-green);
}

.category-item.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);

  .category-content span:nth-child(1) {
    color: #fff;
  }
}

.category-item.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-name {
  font-weight: 500;
  font-size: 1.1rem;
}

.category-count {
  background: var(--light-green);
  color: var(--primary-green);
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Filters Section */
.filters-section h3 {
  font-size: 1.75rem;
  color: #333;
}

.filters-container {
  margin-bottom: 2.5rem;
}

.search-input {
  border: 0.5px solid var(--orange-accent) !important;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
  outline: none;
}

.search-icon {
  right: 1.5rem;
  transform: translateY(-50%);
  color: #6c757d;
}

.sort-wrapper {
  border: 0.5px solid var(--orange-accent);
}

.sort-label {
  color: #6c757d;
}

.sort-select {
  min-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none !important;
}

.form-select:focus,
.sort-select:active {
  outline: none !important;
  box-shadow: none !important;
}
.product-card {
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.quantity-btn {
  width: 20px !important;
  height: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  background-color: #d4edda !important;
}

.quantity-btn:active {
  border-color: #6c757d !important;
}

.quantity-display {
  min-width: 30px;
}

.filter-dd.dropdown {
  width: 100% !important;
}

.filter-dd button span {
  font-size: 13px !important;
}

.filter-dd .dropdown-item {
  font-size: 13px !important;
  text-align: right;
}

.filter-dd button {
  border: 0.5px solid var(--orange-accent) !important;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  .product-image-container button {
    display: block !important;
  }
}

.product-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.veg-badge {
  left: 0;
  background: var(--primary-green);
  border-bottom-right-radius: 25px;
  font-size: 0.8rem;
}

.size-badge {
  right: 0;
  background: var(--vivid-orange);
  border-top-left-radius: 25px;
  font-size: 0.8rem;
}

.product-card .product-image-container button.wishlist-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.wishlist-btn.active {
  color: red !important;
  background-color: #fff !important;
}

.product-details {
  padding: 1rem;
}

.product-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  margin-bottom: 0.8rem;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.rating-star {
  color: #ffc107;
  margin-right: 0.4rem;
  font-size: 1rem;
}

.rating-value {
  color: #333;
  font-weight: 500;
  font-size: 1rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  color: var(--primary-green);
  font-size: 1.3rem;
  list-style: 1.5rem;
  text-underline-offset: 5px;
}

.add-btn {
  background: var(--light-green);
  color: var(--primary-green);
  border: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: scale(1.05);
}

.add-btn i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: white;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
}

.pagination-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: var(--light-green);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* Fixed Cart */
.fixed-cart {
  background: var(--primary-green);
  padding: 1.2rem 2.5rem;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  position: absolute !important;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fixed-cart:hover {
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.cart-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
}

.view-cart-btn {
  font-size: 1.1rem;
  cursor: pointer;
}

.view-cart-btn i {
  margin-right: 0.6rem;
  font-size: 1rem;
}

@media screen and (max-width: 1390px) {
  .product-price {
    font-size: 16px !important;
  }

  .product-details {
    padding: 1.4rem 0.8rem;
  }
}

@media screen and (min-width: 996px) {
  .product-rating {
    justify-content: start !important;
    width: 25% !important;
  }
}

@media screen and (max-width: 995px) {
  .carousel-item img {
    height: 300px;
  }
  .action-buttons {
    flex-flow: column nowrap !important;
  }

  .product-rating {
    justify-content: end !important;
  }

  .wishlist-btn {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 250px;
  }
  .sort-wrapper {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .fixed-cart {
    left: 1rem;
    right: 1rem;
    transform: none;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 220px;
  }
  .category-item {
    padding: 0.8rem;
  }

  .product-details {
    padding: 1.2rem 0.8rem !important;
  }
}

@media screen and (max-width: 350px) {
  .product-image-container {
    max-height: 180px !important;
  }
}
