/* =====================================================
   PRODUCT CAROUSEL — Homepage
   Component: Kadence Product Carousel card overrides
   Reference: FDC-style compact cards with consistent
   image sizing + dark background product tiles
===================================================== */

/* =========================
   Section wrapper
   ========================= */

.wp-block-kadence-productcarousel {
  margin-bottom: var(--ga-8);
}

/* Category headings above carousels */
.entry-content .wp-block-heading.has-text-align-center {
  font-family: var(--ga-font-serif);
  font-weight: 700;
  font-size: var(--ga-text-2xl);
  color: var(--ga-text);
  margin: var(--ga-10) 0 var(--ga-4);
  letter-spacing: 0.02em;
}

/* =========================
   Product card — base
   ========================= */

.kt-product-carousel-wrap .woocommerce ul.products li.product,
.kt-product-carousel-wrap ul.products li.product {
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--ga-radius-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.kt-product-carousel-wrap .woocommerce ul.products li.product:hover,
.kt-product-carousel-wrap ul.products li.product:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* =========================
   Product image — consistent sizing
   ========================= */

.kt-product-carousel-wrap ul.products li.product .woocommerce-loop-image-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.kt-product-carousel-wrap ul.products li.product .woocommerce-loop-image-link img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.kt-product-carousel-wrap ul.products li.product:hover .woocommerce-loop-image-link img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* =========================
   Product details — text area
   ========================= */

.kt-product-carousel-wrap ul.products li.product .product-details {
  padding: var(--ga-3) var(--ga-4) var(--ga-4);
  background: #f7f7f7;
}

.kt-product-carousel-wrap ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ga-font-sans);
  font-weight: 600;
  font-size: var(--ga-text-sm);
  line-height: 1.35;
  color: var(--ga-text);
  margin: 0 0 var(--ga-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.kt-product-carousel-wrap ul.products li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

.kt-product-carousel-wrap ul.products li.product .woocommerce-loop-product__title a:hover {
  color: var(--ga-red);
}

/* =========================
   Price
   ========================= */

.kt-product-carousel-wrap ul.products li.product .price {
  font-family: var(--ga-font-sans);
  font-weight: 700;
  font-size: var(--ga-text-md);
  color: var(--ga-text);
  margin: 0 0 var(--ga-3);
}

.kt-product-carousel-wrap ul.products li.product .price del {
  color: #999;
  font-weight: 400;
  font-size: var(--ga-text-sm);
}

.kt-product-carousel-wrap ul.products li.product .price ins {
  text-decoration: none;
  color: var(--ga-red);
  font-weight: 700;
}

/* =========================
   Brand / tag labels
   ========================= */

.kt-product-carousel-wrap ul.products li.product .berocket_better_labels,
.kt-product-carousel-wrap ul.products li.product .product_brand_loop {
  font-size: var(--ga-text-xs);
  color: #666;
  margin-bottom: var(--ga-1);
}

/* =========================
   Add to cart button
   ========================= */

.kt-product-carousel-wrap ul.products li.product .product-action-wrap .button,
.kt-product-carousel-wrap ul.products li.product .product-action-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ga-red);
  color: #fff;
  font-family: var(--ga-font-sans);
  font-weight: 600;
  font-size: var(--ga-text-xs);
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  line-height: 1;
}

.kt-product-carousel-wrap ul.products li.product .product-action-wrap .button:hover,
.kt-product-carousel-wrap ul.products li.product .product-action-wrap a:hover {
  background: var(--ga-red-hover);
  color: #fff;
}

/* Hide the arrow icon inside button for cleaner look */
.kt-product-carousel-wrap ul.products li.product .product-action-wrap .kadence-svg-iconset {
  display: none;
}

/* =========================
   Wishlist button
   ========================= */

.kt-product-carousel-wrap ul.products li.product .tinvwl_add_to_wishlist_button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.kt-product-carousel-wrap ul.products li.product .tinvwl_add_to_wishlist_button:hover {
  transform: scale(1.1);
}

/* =========================
   Out of stock badge
   ========================= */

.kt-product-carousel-wrap ul.products li.product.outofstock .woocommerce-loop-image-link::after {
  content: "Out of Stock";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--ga-font-sans);
  font-size: var(--ga-text-xs);
  font-weight: 600;
  text-align: center;
  padding: 6px;
  z-index: 1;
}

/* =========================
   Carousel navigation arrows
   ========================= */

.kt-product-carousel-wrap .splide__arrow {
  background: var(--ga-navy);
  opacity: 0.9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kt-product-carousel-wrap .splide__arrow:hover {
  opacity: 1;
  transform: scale(1.08);
}

.kt-product-carousel-wrap .splide__arrow svg {
  fill: #fff;
}

/* =========================
   Carousel dots
   ========================= */

.kt-product-carousel-wrap .splide__pagination__page {
  background: #ccc;
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: background-color 0.2s ease;
}

.kt-product-carousel-wrap .splide__pagination__page.is-active {
  background: var(--ga-red);
}

/* =========================
   Members Only overlay
   ========================= */

.kt-product-carousel-wrap ul.products li.product .membership-content {
  position: relative;
}

/* =========================
   Responsive — Tablet
   ========================= */

@media (max-width: 1024px) {
  .entry-content .wp-block-heading.has-text-align-center {
    font-size: var(--ga-text-xl);
    margin: var(--ga-8) 0 var(--ga-3);
  }

  .kt-product-carousel-wrap .splide__arrow {
    width: 34px;
    height: 34px;
  }
}

/* =========================
   Responsive — Mobile
   ========================= */

@media (max-width: 768px) {
  .entry-content .wp-block-heading.has-text-align-center {
    font-size: var(--ga-text-lg);
    margin: var(--ga-6) 0 var(--ga-2);
  }

  .kt-product-carousel-wrap ul.products li.product .product-details {
    padding: var(--ga-2) var(--ga-3) var(--ga-3);
  }

  .kt-product-carousel-wrap ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--ga-text-xs);
  }

  .kt-product-carousel-wrap .splide__arrow {
    width: 30px;
    height: 30px;
  }
}
