/*
 * Product Slider Carousel - Premium Styling
 */

:root {
  --psc-primary: #ed1c24; /* Red */
  --psc-secondary: #0b5e8c; /* Blue */
  --psc-white: #ffffff;
  --psc-text: #333333;
  --psc-price: #ed1c24;
  --psc-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.psc-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0px 0;
  padding-bottom: 50px;
  overflow: hidden;
}

.psc-product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09) !important;
}

.psc-product-card:hover {
  transform: translateY(-5px) !important;
  border-color: #e5e5e5 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.psc-product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f9f9f9;
}

.psc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.psc-product-card:hover .psc-product-image img {
  transform: scale(1.08);
}

.psc-product-info {
  padding: 15px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.psc-product-cat {
  width: max-content;
  color: var(--fs-color-primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-align: left;
  line-height: 1;
  position: relative;
  /*  */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.psc-product-cat::after {
  content: "";
  background-color: currentcolor;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  border-radius: 30px;
}

.psc-product-title {
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  color: var(--primary-color);
}

.psc-product-excerpt {
  font-size: 13px;
  color: #000;
  line-height: 1.5;
  margin-bottom: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  height: 3em;
  font-weight: 400;
}

.psc-product-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.psc-product-title a:hover {
  color: var(--psc-secondary);
}

.psc-product-price {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

div.psc-product-info > div.psc-product-price > span > bdi {
  color: var(--primary-color);
}

div.psc-product-info > div.psc-product-price > ins > span > bdi {
  color: var(--primary-color);
}

.psc-add-to-cart-btn {
  width: 40px !important;
  height: 40px !important;
  background-color: var(--primary-color) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-left: auto !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
  order: 3 !important;
}

.psc-add-to-cart-btn:hover {
  transform: scale(1.1) !important;
  background-color: #000 !important;
}

.psc-add-to-cart-btn i {
  font-size: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  left: 0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.psc-add-to-cart-btn i::before {
  margin: 0 !important;
  display: block !important;
}

.psc-add-to-cart-btn + .added_to_cart {
  display: none !important;
}

.psc-product-price ins {
  text-decoration: none;
  order: 1;
}

.psc-product-price del {
  font-size: 13px;
  color: #999;
  font-weight: 400;
  order: 2;
  margin: 0;
}

/* Navigation Buttons */
.psc-nav {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--psc-secondary) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  top: 40% !important;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.psc-slider-wrapper:hover .psc-nav {
  opacity: 1;
  visibility: visible;
}

.psc-nav:after {
  font-size: 18px !important;
  font-weight: bold;
}

.psc-nav:hover {
  background: var(--psc-secondary);
  color: #fff !important;
}

/* Pagination */
.psc-pagination {
  bottom: 0px !important;
}

.psc-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ddd;
  opacity: 1;
  transition: all 0.3s;
}

.psc-pagination .swiper-pagination-bullet-active {
  background: var(--psc-secondary);
  width: 25px;
  border-radius: 5px;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .psc-product-title {
    font-size: 14px;
  }
  .psc-product-price {
    font-size: 14px;
  }
}
