/* --- Frontend Slider Styling --- */

/* hide slider until Swiper initializes */
.hssl-swiper {
  width: 100%;
  padding: 20px 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 320px; /* reserve space so layout doesn’t jump */
}

/* when Swiper is ready */
.hssl-swiper.swiper-initialized {
  visibility: visible;
  opacity: 1;
}

.hssl-swiper .swiper-slide {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
}

.product-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  border-radius: 8px 8px 0 0;
}

.product-content { padding: 15px; }

.product-title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
  color: #222;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #28a745;
}

/* --- Buy Button --- */
.buy-btn {
  display: inline-block;
  width: 100%;
  background: #007bff;
  color: #fff !important;
  font-weight: 600;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 15px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.product-link:hover .buy-btn {
  background: #0056b3;
  box-shadow: 0 5px 12px rgba(0, 86, 179, 0.4);
}

/* --- Swiper Pagination Fix --- */
.hssl-swiper .swiper-pagination-bullet {
  margin: -10px !important;   /* remove the 8px gap */
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .product-title { font-size: 14px; }
  .product-price { font-size: 14px; }
  .buy-btn { font-size: 14px; padding: 10px; }
}
