/* =============================================
   CAROUSEL_PRODUCTS.CSS – Product Carousels
   Premium Heritage Design – Navy/Gold accents
   ============================================= */

/* ----- Carousel Container ----- */
.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3.5rem;
}

/* ----- Track (scrollable row of slides) ----- */
.product-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0 2rem;
}

.product-track::-webkit-scrollbar {
  display: none;
}

/* ----- Individual Slide ----- */
.product-slide {
  flex: 0 0 calc(33.333% - 1.17rem);
  min-width: 260px;
}

/* ----- Product Card ----- */
.product-premium {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-xl, 1.25rem);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(26, 26, 46, 0.04));
  transition: all 0.6s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  background: #fff;
  border: 1px solid var(--border-light, #F2EDE5);
  position: relative;
}

/* Gold gradient accent at top */
.product-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark, #A67D2E), var(--gold, #C8993F), var(--gold-light, #E2B964));
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out, ease);
}

.product-premium:hover::before {
  opacity: 1;
}

.product-premium:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 56px rgba(26, 26, 46, 0.12);
  border-color: transparent;
  color: inherit;
}

/* ----- Product Image ----- */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream, #FFF9F0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Subtle gradient overlay on image */
.product-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(27, 58, 92, 0.05) 0%,
    rgba(27, 58, 92, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.product-premium:hover .product-img-wrapper img {
  transform: scale(1.1);
}

/* ----- Product Body ----- */
.product-body {
  background: #fff;
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
}

/* Decorative accent line */
.product-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold, #C8993F), var(--gold-light, #E2B964));
  border-radius: 1px;
  transition: width 0.6s var(--ease-out, ease);
}

.product-premium:hover .product-body::before {
  width: 50px;
}

.product-body h6 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink, #1A1A2E);
  letter-spacing: -0.01em;
}

.product-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary, #1B3A5C);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.5s var(--ease-out, ease), color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-premium:hover .product-link {
  gap: 0.6rem;
  color: var(--gold-dark, #A67D2E);
}

/* ----- Carousel Arrow Buttons ----- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border, #E8E2D8);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink, #1A1A2E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.5s var(--ease-out, ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: var(--primary, #1B3A5C);
  color: #fff;
  border-color: var(--primary, #1B3A5C);
  box-shadow: 0 8px 28px rgba(27, 58, 92, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.left {
  left: 0;
}

.carousel-arrow.right {
  right: 0;
}

/* Arrow disabled state */
.carousel-arrow[disabled],
.carousel-arrow.disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .product-slide {
    flex: 0 0 calc(50% - 0.875rem);
    min-width: 220px;
  }
  .product-carousel {
    padding: 0 3rem;
  }
}

@media (max-width: 575.98px) {
  .product-slide {
    flex: 0 0 calc(100% - 0.5rem);
    min-width: 0;
  }
  .product-carousel {
    padding: 0 2.5rem;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .product-body {
    padding: 1rem 1.25rem 1.25rem;
  }
  .product-premium {
    border-radius: var(--radius, 0.75rem);
  }
}
