/**
 * Featured Products Carousel Styles
 * Styles for the Swiper.js-based carousel for WooCommerce featured products
 */

/* Swiper slide opacity effects */
.sswp-fpc-wrapper .swiper-slide {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.sswp-fpc-wrapper .swiper-slide-active {
  opacity: 1;
}

/* Main slide container */
.sswp-fpc-wrapper .sswp-fpc-slide {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 20px;
  overflow: visible;
  text-align: left;
}

/* Left side - Product image */
.sswp-fpc-wrapper .sswp-fpc-left {
  overflow: visible;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sswp-fpc-wrapper .sswp-fpc-left .img-wrapper {
  background: #ddaf73;
  background: linear-gradient(
    180deg,
    rgba(221, 175, 115, 1) 0%,
    rgba(119, 94, 62, 1) 100%
  );
  box-shadow: 0px 18px 24px 0px rgba(46, 26, 0, 0.1),
    0px 24px 56px 0px rgba(46, 26, 0, 0.2),
    0px 36px 86px 0px rgba(46, 26, 0, 0.25);
  padding: 8px;
  display: flex;
  width: 100%;
  max-width: 420px;
}

.sswp-fpc-wrapper .sswp-fpc-left img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: solid 2px black;
  margin: 0;
  padding: 0;
}

/* Right side - Product details */
.sswp-fpc-wrapper .sswp-fpc-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.sswp-fpc-wrapper .sswp-fpc-right h2 {
  color: #2f2604;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0 0 16px 0;
}

.sswp-fpc-wrapper .sswp-fpc-right .product-category {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 4px 8px;
  background-color: rgba(47, 38, 4, 0.1);
  color: #2f2604;
  font-size: 14px;
  border-radius: 4px;
}

.sswp-fpc-wrapper .sswp-fpc-right .price {
  color: #2f2604;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 8px 0;
}

.sswp-fpc-wrapper .sswp-fpc-right .excerpt {
  overflow: hidden;
  color: rgba(47, 38, 4, 0.8);
  text-overflow: ellipsis;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  margin: 24px 0;
  display: -webkit-box;
}

.sswp-fpc-wrapper .sswp-fpc-right .button.product-link {
  background: #2e1a00;
  border-radius: 4px;
  padding: 12px 24px;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.sswp-fpc-wrapper .sswp-fpc-right .button.product-link:hover {
  background: #1a0f00;
  color: #fff;
}

/* Swiper container */
.sswp-fpc-wrapper .sswp-fpc-swiper-container {
  position: relative;
  padding-bottom: 80px; /* space for controls */
}

/* Swiper controls */
.sswp-fpc-wrapper .sswp-fpc-swiper-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 86px;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.sswp-fpc-wrapper .sswp-fpc-swiper-controls .swiper-button-prev,
.sswp-fpc-wrapper .sswp-fpc-swiper-controls .swiper-button-next {
  position: static;
  margin: 0;
  width: auto;
  height: auto;
  background-image: none !important;
}

.sswp-fpc-wrapper .sswp-fpc-swiper-controls .swiper-button-prev::after,
.sswp-fpc-wrapper .sswp-fpc-swiper-controls .swiper-button-next::after {
  color: #2f2604 !important;
  font-size: 28px;
  background-image: none !important;
}

.sswp-fpc-wrapper .sswp-fpc-swiper-controls .swiper-pagination {
  position: static;
  display: flex;
  gap: 8px;
  justify-content: center;
  width: auto;
}

.sswp-fpc-wrapper .swiper-pagination-bullet {
  background: #2f2604;
  opacity: 0.3;
  transform: scale(1.5);
  margin: 0;
}

.sswp-fpc-wrapper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(2);
}

/* No products message */
.sswp-fpc-no-products {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* Mobile responsive styles */
@media (max-width: 980px) {
  .sswp-fpc-wrapper .sswp-fpc-slide {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sswp-fpc-wrapper .sswp-fpc-right {
    align-items: center;
  }

  .sswp-fpc-wrapper .product-category,
  .sswp-fpc-wrapper .price,
  .sswp-fpc-wrapper .button.product-link {
    text-align: center;
    align-self: center;
  }

  .sswp-fpc-wrapper .sswp-fpc-left img {
    max-width: 100%;
  }

  .sswp-fpc-wrapper .sswp-fpc-right h2 {
    font-size: 28px;
  }

  .sswp-fpc-wrapper .sswp-fpc-right .price {
    font-size: 24px;
  }

  .sswp-fpc-wrapper .sswp-fpc-right .excerpt {
    font-size: 18px;
    -webkit-line-clamp: 5;
  }
}

@media (max-width: 768px) {
  .sswp-fpc-wrapper .sswp-fpc-slide {
    gap: 20px;
    padding: 15px;
  }

  .sswp-fpc-wrapper .sswp-fpc-swiper-controls {
    gap: 40px;
  }

  .sswp-fpc-wrapper .sswp-fpc-right h2 {
    font-size: 24px;
  }

  .sswp-fpc-wrapper .sswp-fpc-right .price {
    font-size: 20px;
  }

  .sswp-fpc-wrapper .sswp-fpc-right .excerpt {
    font-size: 16px;
    margin: 16px 0;
  }
}
