/**
 * Custom CSS for Piano Luxury & Keyboard Sections
 * Add this to your theme's custom.css or style.css
 */

/* ==========================================================================
   Piano Luxury Section Enhancements
   ========================================================================== */

.pianoLuxurySwiper .swiper-slide {
    position: relative;
}

/* Gradient fade effect on the partially visible next slide */
.pianoLuxurySwiper .swiper-slide:not(.swiper-slide-active)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 100%);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.3s ease;
}
.button-ctrl-light {
    background: none !important;
    box-shadow: none !important;
}
.button-ctrl-light::before {
    width: 12px !important;
    height: 12px !important;
}
@media (min-width: 768px) {
    .keyboardSwiper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%); 
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.3s ease;
    width: 30%;
}
.keyboardSwiper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.3s ease;
    width: 30%;
}
}
/* Remove gradient on active slide */
.pianoLuxurySwiper .swiper-slide-active::after {
    opacity: 0;
}

/* Hover effect on navigation buttons */
.piano-luxury-prev,
.piano-luxury-next,
.keyboard-prev,
.keyboard-next {
    backdrop-filter: blur(10px);
}

.piano-luxury-prev:hover svg,
.piano-luxury-next:hover svg,
.keyboard-prev:hover svg,
.keyboard-next:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* ==========================================================================
   Keyboard Section - Center Mode Effects
   ========================================================================== */

.keyboardSwiper {
    padding: 20px 0;
}

.keyboardSwiper .swiper-slide {
    opacity: 0.5;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
}

.keyboardSwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
}


/* Smooth image transitions */
.keyboardSwiper .swiper-slide img {
    transition: transform 0.5s ease;
}

.keyboardSwiper .swiper-slide-active img {
    transform: scale(1.05);
}

/* ==========================================================================
   Product Info Animations
   ========================================================================== */

.pianoLuxurySwiper .swiper-slide::before { 
    content: "";
    inset: 0;
    position: absolute;
    background: linear-gradient(269.98deg, rgba(0, 0, 0, 0.6) 0.01%, rgba(100, 100, 100, 0.36) 99.99%);
    z-index: 10;
}
.pianoLuxurySwiper .swiper-slide-active::before {
    /* content: none;  */
     opacity: 0;
    transition: opacity 0.4s ease; 
}
.keyboardSwiper .swiper-slide h3,
.keyboardSwiper .swiper-slide .grprice,
.keyboardSwiper .swiper-slide a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.keyboardSwiper .swiper-slide-active h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.keyboardSwiper .swiper-slide-active .grprice{
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.keyboardSwiper .swiper-slide-active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* ==========================================================================
   Keyboard Product Card Hover
   ========================================================================== */

.keyboard-slide-inner {
    transition: all 0.3s ease;
}


/* ==========================================================================
   Price Styling
   ========================================================================== */

.keyboardSwiper .text-orange-500,
.pianoLuxurySwiper .text-orange-500 {
    color: #F8941E;
    text-shadow: 0 2px 4px rgba(248, 148, 30, 0.1);
}

/* Sale badge effect (optional) */
.swiper-slide[data-sale="true"]::before {
    content: 'SALE';
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F8941E;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 25;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .keyboardSwiper .swiper-slide {
        transform: scale(0.9);
    }
    
    .keyboardSwiper .swiper-slide-active {
        transform: scale(1);
    }
    
    .pianoLuxurySwiper .swiper-slide > div {
        height: 350px;
    }
    
    /* .piano-luxury-prev,
    .piano-luxury-next,
    .keyboard-prev,
    .keyboard-next {
        width: 40px;
        height: 40px;
    } */
}

/* ==========================================================================
   Loading State (Optional)
   ========================================================================== */

.swiper:not(.swiper-initialized) {
    opacity: 0;
}

.swiper.swiper-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}
@media (min-width: 1024px) {
    .price-luxury .product-price {
    font-size: 16px;
}
    
}
/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

.swiper-slide a:focus {
    outline: 2px solid #F8941E;
    outline-offset: 4px;
}

/* .piano-luxury-prev:focus,
.piano-luxury-next:focus,
.keyboard-prev:focus,
.keyboard-next:focus {
    outline: 2px solid #F8941E;
    outline-offset: 2px;
} */

/* ==========================================================================
   Brand Logo Hover Effects
   ========================================================================== */

.flex.overflow-x-auto a img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.flex.overflow-x-auto a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .piano-luxury-prev,
    .piano-luxury-next,
    .keyboard-prev,
    .keyboard-next {
        display: none;
    }
}
