/* ==========================================================================
   Featured Products Section (BEM)
   ========================================================================== */

.pf-featured-products {
  position: relative;
  padding-top: var(--pf-space-16, 4rem);
  padding-bottom: var(--pf-space-16, 4rem);
}

@media (min-width: 992px) {
  .pf-featured-products {
    padding-top: var(--pf-space-20, 5rem);
    padding-bottom: var(--pf-space-20, 5rem);
  }
}

.pf-featured-products__inner {
  position: relative;
}

/* Header Section */
.pf-featured-products__header {
  text-align: left;
  margin-bottom: var(--pf-space-12, 3rem);
}

@media (min-width: 992px) {
  .pf-featured-products__header {
    margin-bottom: var(--pf-space-16, 4rem);
  }
}

/* Badge (reused from why-choose, or redefined locally) */
.pf-featured-products__subtitle-wrapper {
  margin-bottom: var(--pf-space-4, 1rem);
}

.pf-featured-products__title {
  font-size: var(--pf-text-3xl, 1.875rem);
  font-weight: 700;
  color: var(--pf-text-color-heading, #111827);
  margin-bottom: var(--pf-space-4, 1rem);
}

@media (min-width: 768px) {
  .pf-featured-products__title {
    font-size: var(--pf-text-4xl, 2.25rem);
  }
}

@media (min-width: 992px) {
  .pf-featured-products__title {
    font-size: var(--pf-text-5xl, 3rem);
  }
}

.pf-featured-products__desc {
  font-size: var(--pf-text-base, 1rem);
  line-height: 1.625;
  color: #ffffff;
  max-width: 42rem;
}

/* Slider */
.pf-featured-products__slider {
  position: relative;
  padding: var(--pf-space-8, 2rem) var(--pf-space-4, 1rem);
}

.pf-featured-products__slide {
  padding-bottom: var(--pf-space-8, 2rem);
  height: auto;
}

/* Modern Card Layout */
.pf-product-card--modern {
  position: relative;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pf-product-card--modern:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
}

.pf-product-card__glow {
  position: absolute;
  inset: 0;
  background-color: var(--pf-primary-color);
  opacity: 0;
  border-radius: 1rem;
  filter: blur(24px);
  transition: opacity 0.5s ease;
  z-index: -10;
}

.pf-product-card--modern:hover .pf-product-card__glow {
  opacity: 0.02;
}

.pf-product-card__link {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
}

.pf-product-card__image-wrap {
  position: relative;
  height: 16rem;
  background-color: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}

.pf-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s ease;
}

.pf-product-card--modern:hover .pf-product-card__image,
.pf-product-card--classic:hover .pf-product-card__image {
  transform: scale(1.1);
}

.pf-product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.pf-product-card__badge--right {
  left: auto;
  right: 1rem;
}

.pf-product-card__overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
}

.pf-product-card__overlay-hover {
  position: absolute;
  inset: 0;
  background-color: transparent;
  transition: all 0.3s ease;
}

.pf-product-card--modern:hover .pf-product-card__overlay-hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.pf-product-card__action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: all 0.3s ease;
  z-index: 20;
}

.pf-product-card--modern:hover .pf-product-card__action {
  opacity: 1;
  transform: scale(1);
}

.pf-product-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pf-product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.pf-product-card--modern:hover .pf-product-card__title {
  color: var(--pf-primary-color);
}

.pf-product-card__price {
  color: var(--pf-primary-color);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.pf-product-card__view {
  display: flex;
  align-items: center;
  margin-top: auto;
  color: var(--pf-primary-color);
  font-weight: 500;
  font-size: 0.875rem;
}

.pf-product-card__view-text {
  transition: all 0.3s ease;
}

.pf-product-card--modern:hover .pf-product-card__view-text {
  margin-right: 0.5rem;
}

.pf-product-card__view-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.pf-product-card--modern:hover .pf-product-card__view-icon {
  transform: translateX(0.25rem);
}


/* Classic Product Card Layout */
.pf-product-card--classic {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  height: 100%;
}

.pf-product-card--classic:hover {
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pf-product-card__accent {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pf-primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pf-product-card--classic:hover .pf-product-card__accent {
  opacity: 1;
}

.pf-product-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pf-product-card__thumb {
  flex-shrink: 0;
}

.pf-product-card__thumb-box {
  width: 4rem;
  height: 4rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pf-product-card--classic:hover .pf-product-card__thumb-box {
  background-color: color-mix(in srgb, var(--pf-primary-color) 10%, transparent);
}

.pf-product-card__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pf-product-card__details {
  flex: 1;
  min-width: 0;
}

.pf-product-card__details-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
  transition: color 0.3s ease;
}

.pf-product-card__details-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pf-product-card__details-title a:hover {
  color: var(--pf-primary-color);
}

.pf-product-card__details-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pf-primary-color);
  margin-bottom: 0.5rem;
}

.pf-product-card__details-desc {
  font-size: 0.875rem;
  line-height: 1.625;
  color: #1f2937;
  opacity: 0.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.pf-product-card__arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(0.5rem);
  transition: all 0.3s ease;
}

.pf-product-card--classic:hover .pf-product-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.pf-product-card__arrow-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

/* Navigation buttons */
.pf-slider-nav-prev,
.pf-slider-nav-next {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #4b5563;
}

.pf-slider-nav-prev:hover,
.pf-slider-nav-next:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.pf-slider-nav-prev {
  left: 1rem;
}

.pf-slider-nav-next {
  right: 1rem;
}

.pf-slider-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
}
