.add-to-cart-btn {
    background-color: #009999; /* ITElectric's orange accent color */
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background-color: #e05d00; /* Slightly darker orange */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.3);
}

.add-to-cart-btn i {
    font-size: 18px;
    color: white;
}

/* Disabled state */
.add-to-cart-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn:hover {
    background-color: #e05d00; /* Slightly darker orange */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.3);
}

.add-to-cart-btn i {
    font-size: 18px;
    color: white;
}

/* Disabled state */
.add-to-cart-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

#suggestions-box div {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

#suggestions-box div:hover {
  background-color: #f8f9fa;
}

#suggestions-box div:last-child {
  border-bottom: none;
}

/* Adjust search form for suggestions */
.search-form {
  position: relative; /* This is important for absolute positioning of suggestions */
}

 .popular-brands {
      width: 90%;
      margin: 3rem auto;
      text-align: center;
      overflow: hidden;
    }

    .popular-brands h2 {
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
      color: #1a365d;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-weight: 600;
      position: relative;
      display: inline-block;
      padding-bottom: 0.8rem;
    }

    .popular-brands h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 2px;
      background: linear-gradient(90deg, #3182ce, #63b3ed);
      border-radius: 2px;
    }

    .brands-grid {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 1.5rem;
      padding: 1rem 0;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE/Edge */
    }

    .brands-grid::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }

 .brand-card {
      scroll-snap-align: start;
      flex: 0 0 auto;
      width: 160px;
      background: white;
      border: 1px solid #e2e8f0;
      padding: 1.5rem 1rem;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

.brand-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
      border-color: #cbd5e0;
    }

.brand-card img {
      width: 100%;
      max-width: 140px;
      height: 90px;
      object-fit: contain;
      margin-bottom: 1rem;
      filter: grayscale(20%);
      transition: filter 0.3s ease;
    }

.brand-card:hover img {
      filter: grayscale(0%);
    }

.brand-card h4 {
      font-size: 1rem;
      color: #2d3748;
      font-weight: 500;
      margin-top: auto;
      letter-spacing: 0.3px;
      text-align: center;
  }


.category-carousel{
  margin-left: 12px;
}

.carousel-controls {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 0.5rem;
}

.carousel-prev, .carousel-next {
  background: #fff;
  border: 1px solid #dee2e6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #495057;
  transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background: #e9ecef;
  color: #212529;
}

.category-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.category-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-card {
  flex: 0 0 calc(16.666% - 1.5rem);
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #dee2e6;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f3f5;
  color: #495057;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background-color: #e9ecef;
  color: #212529;
}

.category-card h3 {
  color: #212529;
  font-size: 1rem;
  font-weight: 500;
  margin: 0.5rem 0;
  text-align: center;
}

.category-link {
  color: #0d6efd;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-link {
  opacity: 1;
}


@media (max-width: 576px) {
.category-card {
  flex: 0 0 calc(45% - 1rem); /* make each card a bit smaller */
  min-width: 120px;           /* was 160px, now reduced */
  padding: 0.8rem 0.6rem;     /* less padding inside */
  border-radius: 8px;
  margin-left: 0.75rem;        /* spacing from the left */
}
.category-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;              /* smaller icons */
    margin-bottom: 0.5rem;
  }

.category-card h3 {
    font-size: 0.85rem;             /* smaller heading text */
    margin: 0.3rem 0;
  }

  .category-link {
    font-size: 0.75rem;             /* smaller link text */
  }

  .carousel-controls {
    top: -10px;                     /* lift controls a bit for smaller screens */
    right: 5px;
    gap: 0.3rem;
  }

  .carousel-prev, .carousel-next {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;              /* smaller buttons */
  }
}



@media (max-width: 480px) {
  .popular-brands h2 {
    font-size: 1.1rem;
  }

  .brand-card {
    flex: 0 0 calc(50% - 0.8rem); /* fallback to 2 per row on very small screens */
  }

  .brand-card img {
    max-width: 70px;
    height: 50px;
  }

  .brand-card h4 {
    font-size: 0.8rem;
  }
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .search-form.active {
    position: relative;
    z-index: 1001;
  }
  
  #suggestions-box {
    top: calc(100% - 1px);
    left: 1rem;
    width: calc(100% - 2rem);
  }
}

/* Desktop adjustments */
@media (min-width: 992px) {
  .search-form {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  #suggestions-box {
    top: 100%;
    left: 0;
    width: 100%;
  }
}
