.category-product-section {
  margin: 0 auto;
  padding: 0px 0px;
  background: #f5f8fd;
  border-radius: 30px;
  position: relative;
  font-family: "Fredoka One", cursive;
}

.item-container.product-container {
  padding-top: 40px;
}

.category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.category-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #fba551;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  color: #fba551;
  font-size: 16px;
  transition: 0.3s;
}

.category-btn.active,
.category-btn:hover {
  background-color: #fba551;
  color: white;
}

.item-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.item {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  flex: 0 0 230px;
  padding: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  user-select: none;
  text-align: center;
  height: 270px;
  padding-top: 110px;
}

.item.product-item > .image-bg {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 220px;
  height: 100px;
  background: #4aa7a0;
  border-radius: 100px / 50px;
  transform: translateX(-50%);
  z-index: 1;
}

.item img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 20px;
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.category-name {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  opacity: 0.6;
  margin-top: -10px;
}

.item.product-item .item-subinfo > h5.item-name {
  font-size: 19px !important;
  font-family: Fredoka One !important;
}

.item-subinfo {
  padding: 10px;
}

h4.primary-category-name {
  font-size: 20px !important;
  font-family: Fredoka One !important;
}

.item h4,
.item h5 {
  font-size: 16px;
  margin: 0 0 10px 0;
  text-transform: capitalize;
  color: #111;
}

.price {
  font-weight: 700;
  font-size: 17px;
  color: #4aa7a0;
  margin: 0;
}

.old-price {
  font-size: 13px;
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.add-to-cart {
  background: #fba551;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 15px;
  right: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.price > .woocommerce-Price-amount.amount {
  color: #51b0aa !important;
  font-family: "Fredoka One", cursive !important;
  font-size: 20px !important;
  font-weight: bold !important;
}

.price .old-price .woocommerce-Price-amount.amount {
  color: #555555 !important;
  font-family: "Fredoka One", cursive !important;
  font-size: 15px !important;
  font-weight: normal !important;
  text-decoration: line-through;
}

.add-to-cart svg {
  fill: white;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 10;
}

.carousel-nav button {
  pointer-events: auto;
  background: #fba551;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  color: white;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.carousel-nav button:hover:not(:disabled) {
  background-color: #e18910;
}

.carousel-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  width: 14px;
  height: 14px;
  background: #ddd;
  border-radius: 50%;
  display: inline-block;
  margin: 0 6px;
  cursor: pointer;
}

.dot.active {
  background: #fba551;
}

/* ✅ Responsive */
@media screen and (max-width: 768px) {
  .item-container {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
  }
  .item.product-item{
   max-width: 270px !important;
   margin-bottom: 40px;
  }
  
  .item {
    flex: 0 0 90%;
    max-width: 90%;
  }

  .carousel-nav {
    top: auto;
    bottom: -30px;
    transform: none;
  }

  .carousel-nav button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .dots {
    margin-top: 50px;
  }

  .item img {
    width: 130px;
    height: 130px;
    top: -60px;
  }

  .item .image-bg {
    width: 160px;
    height: 80px;
    top: -30px;
  }
}
