.category-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 450px;
  margin: 5px auto;
  gap: 20px;
  margin-bottom: 20px;
  background-color: var(--light-gray-bg);
  padding: 5px 20px;
  border-radius: 50px;
  border: var(--border);
  overflow-x: auto;
            white-space: nowrap;
            scroll-behavior: smooth;
}
.category-button {
  border: none;
  color: #000;
  font-size: 16px;
  cursor: pointer;
}
.category-button.active {
  border-bottom: 2px solid #000;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background: var(--light-gray-bg);
  border-radius: 10px;
  text-align: left;
  transition: transform 0.3s ease-in-out;
  
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  
}

.product-card h5 {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

.price-container {
  font-size: 12px;
  color: gray;
  transition: opacity 0.3s ease-in-out;
}
.price-container strong {
  color: #000;
  font-size: 14px;
}
.discount-tag {
  position: absolute;
  margin-left: 10px;
  font-size: 10px;
  margin-top: 10px;
  background-color: #ff000013;
  backdrop-filter: BLUR(10px);
  padding: 0 10px;
  border-radius: 50px;
  border: var(--border);
  color: red;
  font-weight: bold;
}
.buy-now-button {
  width: 100%;
  display: none;
  background-color: #000;
  color: white;
  padding: 5px 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border-radius: var(--border-radius);
}
.product-card:hover .buy-now-button {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.other-products-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
}
.other-products {
  width: calc(50% - 5px);
}
.star-rating{
  margin-bottom: 0;
}
  .product-card:hover .price-container{
    opacity: 0;
    display: none;
  }
    .product-card:hover .star-rating{
opacity: 0;
display :none;
    }

/* Mobile View: 100% width for first, 2x2 for others */
@media (max-width: 768px) {
  .product-card {
    margin-top: 10px;
    padding: 8px;
    
  }
  .first-product {
    width: 100%;
  }


}
/* Desktop View: 50% for first, 2x2 grid for others */
@media (min-width: 768px) {
  #product-container {
    display: flex;
    gap: 20px;
  }

  .other-products-container {
    width: 50%;
  }
  .first-product {
    width: 50%;
  }
}

  @keyframes fadeIn {
  from {
    opacity: 0;
    margin-bottom: -50px;
  }
  to {
    opacity: 1;
    margin-bottom: 0px;
  }
}