/**
 * JazPiper Product Slider Styles
 * Version: 1.0.1
 */

/* Wrapper */
.jazpiper-product-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: none !important;
    margin: 0 auto;
    padding: 40px 60px;
    overflow: hidden;
}

/* Slider Container */
.jazpiper-product-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* Slide */
.jazpiper-product-slide {
    flex: 0 0 calc(33.333% - 13.333px);
    min-width: 0;
}

/* Product Card */
.jazpiper-product-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 15px;
    overflow: hidden;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jazpiper-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Gradient Variations - 作为后备背景 */
.jazpiper-product-slide:nth-child(3n+1) .jazpiper-product-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.jazpiper-product-slide:nth-child(3n+2) .jazpiper-product-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-size: cover;
    background-position: center;
}

.jazpiper-product-slide:nth-child(3n+3) .jazpiper-product-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: cover;
    background-position: center;
}

/* Content Section */
.jazpiper-product-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Product Title */
.jazpiper-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Subtitle */
.jazpiper-product-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Product Button */
.jazpiper-product-button {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jazpiper-product-button:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

/* Navigation Arrows */
.jazpiper-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 悬停在轮播容器上时显示箭头 */
.jazpiper-product-slider-wrapper:hover .jazpiper-slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.jazpiper-slider-arrow:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.jazpiper-slider-arrow svg {
    color: #333;
}

.jazpiper-slider-prev {
    left: 10px;
}

.jazpiper-slider-next {
    right: 10px;
}

.jazpiper-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots Navigation */
.jazpiper-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.jazpiper-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.jazpiper-slider-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.jazpiper-slider-dot.active {
    background: rgba(0, 0, 0, 0.7);
    width: 30px;
    border-radius: 5px;
}

/* Tablet Styles (iPad) - 2 cards */
@media (max-width: 1024px) {
    .jazpiper-product-slider-wrapper {
        padding: 40px 50px;
    }

    .jazpiper-product-slide {
        flex: 0 0 calc(50% - 10px);
    }

    .jazpiper-product-title {
        font-size: 24px;
    }

    .jazpiper-product-subtitle {
        font-size: 13px;
    }

    .jazpiper-slider-arrow {
        width: 45px;
        height: 45px;
    }
}

/* Mobile Styles - 1 card */
@media (max-width: 768px) {
    .jazpiper-product-slider-wrapper {
        padding: 30px 40px;
    }

    .jazpiper-product-slide {
        flex: 0 0 100%;
    }

    .jazpiper-product-card {
        padding: 30px 20px;
    }

    .jazpiper-product-title {
        font-size: 22px;
    }

    .jazpiper-product-subtitle {
        font-size: 12px;
    }

    .jazpiper-product-button {
        font-size: 13px;
    }

    .jazpiper-slider-arrow {
        width: 40px;
        height: 40px;
    }

    .jazpiper-slider-prev {
        left: 5px;
    }

    .jazpiper-slider-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .jazpiper-product-slider-wrapper {
        padding: 20px 35px;
    }

    .jazpiper-product-card {
        padding: 25px 15px;
    }

    .jazpiper-product-title {
        font-size: 20px;
    }
}

/* Loading State */
.jazpiper-product-slider-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* RTL Support */
.rtl .jazpiper-slider-prev {
    left: auto;
    right: 10px;
}

.rtl .jazpiper-slider-next {
    right: auto;
    left: 10px;
}

/* Accessibility */
.jazpiper-slider-arrow:focus,
.jazpiper-slider-dot:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .jazpiper-slider-arrow,
    .jazpiper-slider-dots {
        display: none;
    }

    .jazpiper-product-slide {
        page-break-inside: avoid;
    }
}

/* Checkbox Spacing */
input[type="checkbox"] {
    margin-right: 8px;
}

label input[type="checkbox"] {
    margin-right: 10px;
}

/* Flex Layout for Labels with Checkboxes */
label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hotspot Description Styles */
.hotspot-description-title,
.hotspot-description-content {
    text-align: center;
}
