/* SIMPLE CLEAN SLIDER - NO CONFLICTS */

/* Remove ALL rounded corners from Splide */
.splide__arrow,
.splide__pagination__page,
.splide__spinner,
.soundpeats-responsive-slider *,
.soundpeats-slider-slide * {
    border-radius: 0 !important;
}

/* Slider container - BREAK OUT of ANY container using negative margins */
.soundpeats-responsive-slider {
    /* Full viewport width */
    width: 100vw !important;
    max-width: 100vw !important;

    /* Break out of container using 50% technique */
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;

    /* Remove all padding */
    padding: 0 !important;

    /* Start at very top - black extends behind header */
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    /* Clean background */
    background: transparent !important;

    /* No rounding */
    border-radius: 0 !important;

    /* Prevent overflow */
    overflow: hidden !important;
}

/* Slides - FULL WIDTH - NO ROUNDING - SPACESHIP WINDOW EFFECT */
.soundpeats-slider-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative !important;
    overflow: visible !important; /* Allow product image to show */

    /* Premium dark gradient background */
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a) !important;
}

/* Particle effects removed for premium minimal design */

/* Glass overlay removed for premium minimal design */

/* Splide track and list - FULL WIDTH NO GAP */
.splide__track,
.splide__list {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Product Image - Desktop: right center, moved slightly left */
.slider-product-image {
    position: absolute !important;
    right: 8% !important;
    top: calc(50% + 35px) !important; /* Move down 35px (half of 70px header) */
    transform: translateY(-50%) !important;
    width: 340px !important;
    max-width: 340px !important;
    height: auto !important;
    z-index: 15 !important; /* Above content and glass */
    pointer-events: auto !important; /* Enable click */
    cursor: pointer !important;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7)) drop-shadow(0 10px 30px rgba(255,255,255,0.1)) !important;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease, filter 0.3s ease !important;
}

/* Product Image Hover - Enhanced Premium Depth */
.slider-product-image:hover {
    transform: translateY(-50%) scale(1.05) !important;
    filter: drop-shadow(0 35px 70px rgba(0,0,0,0.8)) drop-shadow(0 15px 40px rgba(255,255,255,0.15)) !important;
}

/* Content wrapper - LOCKED GOLDEN STANDARD for desktop */
.slide-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px; /* Optimized: more space for content, less for image */
    gap: 2.5rem;
    padding: 2.5rem 2%; /* Reduced side padding from 3% to 2% for more usable width */
    padding-top: 90px !important; /* Align with Hi-Res badge (70px header + 20px spacing) */
    align-items: flex-start;
    height: 280px; /* LOCKED - golden standard */
    max-width: 1600px; /* LOCKED - golden standard */
    margin: 0 auto;
    overflow: visible !important; /* Allow image to overflow */
    position: relative !important;
    z-index: 10 !important; /* Above space background and glass */
}

/* Large monitors - taller slider with extended top */
@media (min-width: 1600px) {
    .soundpeats-responsive-slider {
        margin-top: -70px !important; /* Extend behind transparent header */
    }

    .soundpeats-slider-slide {
        min-height: 450px !important; /* Taller slider for large screens */
    }

    .slide-content-wrapper {
        height: 450px !important; /* Match slide height */
        padding-top: 140px !important; /* Push content down to stay below header (70px header + 70px spacing) */
        padding-bottom: 2.5rem !important;
    }
}

/* Extra large monitors - even taller */
@media (min-width: 2200px) {
    .soundpeats-slider-slide {
        min-height: 550px !important;
    }

    .slide-content-wrapper {
        height: 550px !important;
        padding-top: 180px !important; /* More top padding for taller slide */
    }
}

/* Content zone - optimized for horizontal space usage */
.content-zone {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 1rem; /* Add breathing room from image zone */
}

/* Content box - tight vertical spacing to fit 280px */
.content-box > div:first-child {
    margin-top: 0 !important; /* Align first line with Hi-Res badge at 90px */
    padding-top: 0 !important;
    margin-bottom: 0.3rem !important; /* Brand/product name */
}

/* CNET Badge - Official Logo with Text */
.cnet-badge-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.cnet-logo {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.content-box .product-badge {
    margin-bottom: 0.3rem !important;
}

.content-box .slide-title {
    margin-bottom: 0.2rem !important;
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
}

.content-box .slide-subtitle {
    margin-bottom: 0.4rem !important;
    font-size: 0.8rem !important;
}

.content-box .spec-badges {
    margin-bottom: 0.5rem !important;
}

/* Price and button section - visible and compact */
.content-box > div:has(> div > span) {
    margin-bottom: 0.3rem !important;
}

/* Typography - optimized spacing */
.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem; /* Tightened from 1rem */
    color: #1a1a1a;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem; /* Tightened from 1.5rem */
    line-height: 1.4;
}

/* Hide buttons as requested */
.wp-block-button,
.wp-block-buttons,
.cta-zone {
    display: none;
}

/* Product images - optimized for 350px zone */
.product-image-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px; /* LOCKED - matches grid column */
    height: 280px; /* LOCKED - matches wrapper height */
}

/* Badges and specs - visible */
.product-badge {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.spec-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.spec-badge {
    text-align: center;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.spec-badge:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

.spec-icon {
    width: 24px;
    height: 24px;
    fill: #666;
    margin-bottom: 0.25rem;
}

.spec-label {
    font-size: 0.875rem;
    color: #666;
}

/* Feature highlights */
.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-icon {
    width: 20px;
    height: 20px;
    fill: #FFD700;
}

/* Tablet responsive - maintain proportions */
@media (max-width: 1200px) {
    .slide-content-wrapper {
        grid-template-columns: 1fr 300px; /* Proportionally smaller */
        gap: 2rem;
        padding: 2rem 2%;
    }

    .product-image-zone {
        width: 300px;
    }

    .slider-product-image {
        max-height: 220px;
    }
}

/* Beta Notice - Premium Champagne Glass Effect */
.beta-notice {
    animation: fadeInUp 0.8s ease-out 0.1s both;
    /* Desktop/Tablet: Centered vertically and horizontally */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Mobile responsive for beta notice - position above product name */
@media (max-width: 768px) {
    .beta-notice {
        top: 130px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0.4rem 1rem !important;
        font-size: 0.75rem !important;
    }

    .beta-notice svg {
        width: 14px !important;
        height: 14px !important;
    }

    .beta-notice span {
        font-size: 0.75rem !important;
    }
}

/* Tablet responsive for beta notice - keep centered */
@media (min-width: 769px) and (max-width: 1024px) {
    .beta-notice {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        padding: 0.45rem 1.25rem !important;
    }

    .beta-notice span {
        font-size: 0.8rem !important;
    }
}

/* Hi-Res Audio Wireless Badge Wrapper - Frosted Glass Effect */
.hiresw-badge-wrapper {
    position: absolute !important;
    top: 90px !important; /* 70px header + 20px spacing */
    right: 20px !important;
    z-index: 100 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 8px !important;
    border-radius: 6px !important;
}

/* Hi-Res Audio Wireless Badge - Official JAS Logo */
.hiresw-badge {
    width: 80px !important;
    max-width: 80px !important;
    height: auto !important;
    display: block !important;
    cursor: help !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) !important;
}

/* Hi-Res Badge Hover - Subtle Info Effect */
.hiresw-badge-wrapper:hover .hiresw-badge {
    transform: scale(1.08) !important;
    filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.2)) !important;
}

/* Hi-Res Badge Tooltip */
.hiresw-badge-wrapper::after {
    content: 'Certified Hi-Res wireless transmission (96kHz/24-bit)' !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: #FFD700 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    z-index: 101 !important;
}

/* Mobile - tooltip appears to the left of badge */
@media (max-width: 768px) {
    .hiresw-badge-wrapper::after {
        top: 0 !important;
        right: calc(100% + 10px) !important;
        bottom: auto !important;
    }
}

.hiresw-badge-wrapper:hover::after {
    opacity: 1 !important;
}

/* Large monitors - align with content position */
@media (min-width: 1600px) {
    .hiresw-badge-wrapper {
        top: 140px !important; /* Align with content padding-top */
        right: calc((100vw - 1600px) / 2 + 20px) !important; /* Match max-width container edge */
    }
}

/* Extra large monitors */
@media (min-width: 2200px) {
    .hiresw-badge-wrapper {
        top: 180px !important; /* Match increased padding-top */
    }
}

/* Tablet (768-1024px) - align with content at 90px */
@media (min-width: 769px) and (max-width: 1024px) {
    .hiresw-badge-wrapper {
        top: 90px !important;
        right: 15px !important;
    }

    .hiresw-badge {
        width: 70px !important;
        max-width: 70px !important;
    }
}

/* Tablet landscape (1024-1200px) - align with Buy Now button, prevent crop */
@media (max-width: 1200px) {
    .slider-product-image {
        right: 12% !important;
        top: 15% !important;
        transform: none !important;
        width: 240px !important;
        max-width: 240px !important;
    }

    /* Disable hover jump but KEEP shadow on tablet landscape */
    .slider-product-image:hover {
        transform: scale(1.05) !important;
        filter: drop-shadow(0 35px 70px rgba(0,0,0,0.8)) drop-shadow(0 15px 40px rgba(255,255,255,0.15)) !important;
    }
}

/* Small tablet (769-1024px) - position below Hi-Res badge, MORE LEFT */
@media (min-width: 769px) and (max-width: 1024px) {
    .slider-product-image {
        right: 100px !important;
        top: 130px !important;
        transform: none !important;
        width: 190px !important;
        max-width: 190px !important;
    }

    /* Disable hover jump but KEEP shadow on tablet portrait */
    .slider-product-image:hover {
        transform: scale(1.05) !important;
        filter: drop-shadow(0 35px 70px rgba(0,0,0,0.8)) drop-shadow(0 15px 40px rgba(255,255,255,0.15)) !important;
    }
}

/* Buy Now Button - Premium Champagne Style */
.slider-buy-btn,
.slide-content-wrapper a[href*="/product/"] {
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.slider-buy-btn:hover,
.slide-content-wrapper a[href*="/product/"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4) !important;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* Cinematic Staggered Load-In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered animations to slider content elements */
.content-box > div:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cnet-badge-wrapper {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.slide-title {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.slide-subtitle {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.spec-badges {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.content-box > div:nth-child(5) {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.content-box > div:nth-child(6) {
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

/* Mobile responsive - stack layout */
@media (max-width: 768px) {
    .soundpeats-responsive-slider {
        margin-top: 64px !important; /* Adjust for smaller mobile header */
    }

    /* Product image - mobile: centered, away from Hi-Res badge */
    .slider-product-image {
        right: 80px !important;
        top: 40px !important;
        transform: none !important;
        width: 137px !important;
        max-width: 137px !important;
        z-index: 20 !important; /* Above Hi-Res badge */
    }

    /* Disable hover effect on mobile - prevent jump */
    .slider-product-image:hover {
        transform: none !important;
        filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7)) drop-shadow(0 10px 30px rgba(255,255,255,0.1)) !important;
    }

    /* Move badge to BOTTOM right on mobile */
    .hiresw-badge-wrapper {
        top: auto !important;
        bottom: 20px !important;
        right: 15px !important;
    }

    .hiresw-badge {
        width: 60px !important;
        max-width: 60px !important;
    }

    .slide-content-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        height: 400px !important; /* FIXED height - all slides identical */
        max-height: 400px !important;
        overflow: hidden; /* Prevent content overflow */
        display: flex;
        align-items: center; /* Vertically center content */
    }

    .content-zone {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Vertically center all content */
        align-items: flex-start;
        width: 100%;
    }

    .product-image-zone {
        order: -1;
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
    }

    .slider-product-image {
        max-height: 200px;
    }

    .spec-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}
