/**
 * Product Includes Frontend Styles
 */

/* Reset */
.wcpe-product-includes,
.wcpe-product-includes * {
    box-sizing: border-box;
}

.wcpe-product-includes h1,
.wcpe-product-includes h2,
.wcpe-product-includes h3,
.wcpe-product-includes p {
    margin: 0;
    padding: 0;
}

/* Main Container */
.wcpe-product-includes {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 50px 0;
    text-align: center;
    overflow: hidden;
}

/* Shoptimizer theme compatibility */
.theme-flavor-flavor .wcpe-product-includes,
.flavor-flavor .wcpe-product-includes {
    margin: 35px 0;
}

/* Title */
.wcpe-pi-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px !important;
    font-style: italic;
    letter-spacing: 1px;
}

/* Title Divider */
.wcpe-pi-title-divider {
    width: 60px;
    height: 4px;
    background: #1e3a5f;
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

/* Subtitle */
.wcpe-pi-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px !important;
}

/* Slider Container */
.wcpe-pi-slider-container {
    position: relative;
    padding: 0 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Swiper */
.wcpe-pi-swiper {
    width: 100%;
    overflow: visible;
}

.wcpe-pi-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Slide */
.wcpe-pi-slide {
    height: auto;
}

/* Item Card */
.wcpe-pi-item-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wcpe-pi-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Item Image */
.wcpe-pi-item-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.wcpe-pi-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Item Caption */
.wcpe-pi-item-caption {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    padding-top: 15px;
}

.wcpe-pi-caption-line {
    display: block;
    width: 40px;
    height: 3px;
    background: currentColor;
    margin: 0 auto 15px auto;
    opacity: 0.3;
    border-radius: 2px;
}

/* Navigation Buttons */
.wcpe-pi-nav-prev,
.wcpe-pi-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.wcpe-pi-nav-prev {
    left: 10px;
}

.wcpe-pi-nav-next {
    right: 10px;
}

.wcpe-pi-nav-prev:hover svg,
.wcpe-pi-nav-next:hover svg {
    color: #fff;
    transform: scale(1.2);
}

.wcpe-pi-nav-prev svg,
.wcpe-pi-nav-next svg {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.wcpe-pi-nav-prev.swiper-button-disabled svg,
.wcpe-pi-nav-next.swiper-button-disabled svg {
    opacity: 0.3;
}

.wcpe-pi-nav-prev.swiper-button-disabled,
.wcpe-pi-nav-next.swiper-button-disabled {
    cursor: not-allowed;
}

/* Pagination */
.wcpe-pi-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wcpe-pi-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpe-pi-pagination .swiper-pagination-bullet-active {
    background: #ff4081;
    transform: scale(1.2);
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .wcpe-pi-slider-container {
        padding: 0 50px;
    }
}

@media screen and (max-width: 1024px) {
    .wcpe-pi-slider-container {
        padding: 0 45px;
    }
    
    .wcpe-pi-item-image {
        height: 150px;
    }
}

@media screen and (max-width: 768px) {
    .wcpe-product-includes {
        margin: 30px 0;
        padding: 40px 0;
    }
    
    .wcpe-pi-title {
        font-size: 26px;
    }
    
    .wcpe-pi-subtitle {
        font-size: 14px;
    }
    
    .wcpe-pi-slider-container {
        padding: 0 40px;
    }
    
    .wcpe-pi-item-card {
        padding: 25px 15px;
    }
    
    .wcpe-pi-item-image {
        height: 130px;
    }
    
    .wcpe-pi-item-caption {
        font-size: 14px;
    }
    
    .wcpe-pi-nav-prev svg,
    .wcpe-pi-nav-next svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 480px) {
    .wcpe-pi-title {
        font-size: 22px;
        letter-spacing: 0.5px;
    }
    
    .wcpe-pi-subtitle {
        font-size: 12px;
    }
    
    .wcpe-pi-slider-container {
        padding: 0 35px;
    }
    
    .wcpe-pi-item-card {
        padding: 20px 10px;
        border-radius: 15px;
    }
    
    .wcpe-pi-item-image {
        height: 110px;
        margin-bottom: 15px;
    }
    
    .wcpe-pi-item-caption {
        font-size: 13px;
    }
    
    .wcpe-pi-nav-prev,
    .wcpe-pi-nav-next {
        width: 35px;
        height: 35px;
    }
    
    .wcpe-pi-nav-prev svg,
    .wcpe-pi-nav-next svg {
        width: 20px;
        height: 20px;
    }
}
