.product-carousel-section {
  padding-top: 10px;
}

.product-carousel-section h1 {
  display: none;
  padding-left: 20px;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #ffe9c9 0%, #f8f8f8 100%);
  border-left: 2px solid #ff9900;
  text-align: center;
}

.product-carousel-category {
  padding-bottom: 5px;
}

.product-carousel-title {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0 20px;
  color: #453c30;
}

.product-carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;   /* center section */
  padding: 0 5px;        /* 5px padding left/right for whole container */
  box-sizing: border-box;
  width: 100%;
}

/* Product grid wrapper */
.product-carousel-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;  /* center all product cards */
  gap: 15px;
  overflow: visible;
  cursor: default;
  width: 99%;
  box-sizing: border-box;
  margin-left: 1%;
}

/* Product cards */
.product-carousel-card {
  flex: 0 0 190px;
  /* background: #fff; */
  /* border-radius: 12px; */
  /* box-shadow: 0 0 3px rgba(0,0,0,0.08); */
  border: 1px solid #6666662e;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.4s;
  display: flex;
  flex-direction: column;
  height: 260px;
  margin-top: 5px;
}

.product-carousel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  /* border-radius: 12px 12px 0 0; */
}

.product-carousel-name {
  font-weight: 550;
  font-size: 0.9rem;
  color: #222;
  margin: 10px 12px 5px 12px;
}

.product-carousel-price {
  font-weight: bold;
  font-size: 0.8rem;
  color: #ff9900;
  margin: 0 12px 8px 12px;
}

.product-carousel-desc {
  font-size: 0.8rem;
  color: #666;
  margin: 0 12px 12px 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Remove carousel buttons completely */
.carousel-btn {
  display: none;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .product-carousel-title {
    font-size: 1rem;
  }

  .product-carousel-wrapper {
    justify-content: center; /* keep centered on mobile too */
    gap: 10px;
  }
  .product-carousel-wrapper {
    justify-content: start; 
    padding-left:0.5%;
    padding-bottom: 5px;
  }
  .product-carousel-card {
    flex: 0 0 48%;  /* two cards per row */
    height: auto;
  }

  .product-carousel-card img {
    height: 140px;
  }

  .product-carousel-name {
    font-size: 0.8rem;
  }

  .product-carousel-price {
    font-size: 0.7rem;
  }

  .product-carousel-desc {
    font-size: 0.7rem;
  }
}
