
/* Banner Section */
.banner-section {
  margin-top: 15px;
  padding: 0 15px;
}

.banner-container {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.banner-card {
  min-width: 100%;
  overflow: hidden;
  position: relative;
}

.banner-card img {
  width: 100%;
  height: 460px;
  object-fit: contain;
}

/* Dots */
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.banner-dots span {
  width: 14px;
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.banner-dots span.active {
  width: 46px;
  border-radius: 14px;
  background: #2c3e50;
}

@media (max-width: 768px) {

  .banner-card {
    min-height: 160px;
    border-radius: 16px;
  }

.banner-card img {
  height: 100%;
  object-fit: cover;
}

  .banner-dots span {
    width: 8px;
    height: 8px;
  }

  .banner-dots span.active {
    width: 32px;
    border-radius: 8px;
  }

}

/* End Banner Section */

/* Category Section */
.category-section {
  margin-top: 15px;
  background: #fff;
  padding: 15px 10px;
}

.category-container {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.category-container::-webkit-scrollbar {
  display: none;
}

/* Card */
.category-card {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* Gradient Border Icon */
.category-icon {
  width: 94px;
  height: 94px;
}

.category-icon img {
  width: 100%;
  height: 100%;
  background: #fff;
  object-fit: contain;
  padding: 10px;
}

/* Text */
.category-card p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

@media (max-width: 768px) {
  .category-container {
    gap: 0;
  }

  .category-card {
    min-width: 80px;
    gap: 0;
  }

  .category-icon {
    width: 64px;
    height: 64px;
  }

  .category-icon img {
    padding: 8px;
  }

  .category-card p {
    font-size: 12px;
  }

}

/* End Category Section */


/* Product Section */
.product-section {
  padding: 15px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: #333;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* Card */
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Image */
.product-img {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Discount */
.discount-badge {
  position: absolute;
  top: 4px;
  left: 0;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Text */
.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  color: #333;
  font-family: "Andika", sans-serif;
}

.old-price {
  font-size: 15px;
  color: #888;
  text-decoration: line-through;
  margin-top: 4px;
}

.new-price {
  font-size: 15px;
  font-weight: bold;
  color: #27ae60;
  margin-top: 2px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Mobile optimization */
@media (max-width: 768px) {

  .product-section {
    padding: 0px;
    background: #f5f5f5;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
  }

  .section-title {
    padding: 15px 0 0 10px;
    font-size: 18px;
    color: #333;
  }

  .product-card {
    border: 1px solid #eee;
    border-radius: 0;
    box-shadow: none;
  }

  .product-img {
    height: 180px;
  }

  .product-name {
    font-size: 12px;
  }

}
