/**
 * WooCommerce Products Carousel Styles
 * Simple and Clean Design
 */

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Carousel Title */
.wpc-carousel-title {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  text-align: left;
  margin: 0 0 30px 0;
  line-height: 1.2;
}

/* Product Card Link Wrapper */
.wpc-product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.wpc-product-card-link:hover {
  text-decoration: none;
}

/* Product Card Container */
.wpc-product-card {
  position: relative;
  border: 2px solid #A8C8E8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
}

/* Product Image */
.wpc-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}

.wpc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center bottom;
}

/* Product Info */
.wpc-product-info {
  padding: 15px 15px 0;
  text-align: center;
  position: relative;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Product Title */
.wpc-product-title {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  margin: 0;
  line-height: 1.4;
  transition: transform 0.3s ease;
}

/* Product Button */
.wpc-product-btn {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: #252aa5;
  padding: 12px 0;
  text-decoration: none;
  opacity: 0;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0 0 10px 10px;
}

/* Hover Effect - Title moves up, button appears */
.wpc-product-card-link:hover .wpc-product-title {
  transform: translateY(-30px);
}

.wpc-product-card-link:hover .wpc-product-btn {
  opacity: 1;
  background: #1d2085;
}

/* Pagination Dots */
.product-dot-konstic {
  text-align: center;
  margin-top: 50px;
}

.product-dot-konstic .swiper-pagination-bullet {
  background: #cccccc;
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.product-dot-konstic .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #252aa5;
  width: 30px;
  border-radius: 5px;
}

/* Project Wrapper */
.project-wrapper-new {
  position: relative;
  width: 100%;
}

/* Carousel Navigation Arrows - Scoped to this plugin only */
.project-wrapper-new > .wpc-carousel-navigation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow {
  width: 50px;
  height: 50px;
  background: rgba(37, 42, 165, 0.3);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  outline: none;
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow:hover {
  background: rgba(37, 42, 165, 0.8);
  transform: scale(1.05);
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow:focus {
  outline: none;
  background: rgba(37, 42, 165, 0.8);
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow:active {
  background: rgba(37, 42, 165, 0.8);
  transform: scale(0.98);
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow-prev {
  margin-left: 10px;
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow-next {
  margin-right: 10px;
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow.swiper-button-disabled:hover {
  transform: scale(1);
  background: rgba(37, 42, 165, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .wpc-carousel-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .wpc-product-title {
    font-size: 14px;
  }

  .wpc-product-btn {
    font-size: 12px;
    padding: 8px 20px;
  }

  .wpc-product-info {
    padding: 15px;
    min-height: 60px;
  }

  .product-dot-konstic {
    display: none;
  }

  .project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow-prev {
    margin-left: 5px;
  }

  .project-wrapper-new > .wpc-carousel-navigation > .wpc-carousel-arrow-next {
    margin-right: 5px;
  }
}

@media (max-width: 575px) {
  .wpc-carousel-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .wpc-product-card {
    border-width: 1.5px;
    border-radius: 10px;
  }

  .wpc-product-title {
    font-size: 13px;
  }

  .wpc-product-info {
    padding: 12px;
    min-height: 60px;
  }
}

/* Ensure Swiper doesn't break layout */
.product-slider-konstic {
  overflow: hidden;
}

.product-slider-konstic .swiper-wrapper {
  align-items: stretch;
}

.product-slider-konstic .swiper-slide {
  height: auto;
  display: flex;
  /* Fix para iPhone - mantener flexbox correcto sin forzar ancho */
  flex-shrink: 0;
}

.product-slider-konstic .wpc-product-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Fix específico para iPhone y Safari Mobile */
@media (max-width: 768px) {
  .product-slider-konstic .swiper-wrapper {
    -webkit-box-align: stretch;
  }
  
  .wpc-product-card-link {
    width: 100%;
    display: flex;
  }
  
  /* Asegurar que el slide respeta el width calculado por Swiper */
  .product-slider-konstic .swiper-slide {
    box-sizing: border-box;
  }
}