/* Original category navigation from blocks-functions.php, scoped to products.
 * Image paths are local; the obsolete fixed stage height is omitted because
 * original carousels.css explicitly restores natural card height. */

            .slider-products .owl-nav button.owl-prev {
                background: white url('images/left.svg') no-repeat center center !important;
                background-size: 50%;
                border-radius: 50%;
                width: 50px !important;
                height: 50px !important;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
                border: none;
                cursor: pointer;
				position: absolute;
				left: -10px;
				top: -30px;
            }
            .slider-products .owl-nav button.owl-next {
                background: white url('images/right.svg') no-repeat center center !important;
                background-size: 50%;
                border-radius: 50%;
                width: 50px !important;
                height: 50px !important;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
                border: none;
                cursor: pointer;
				position: absolute;
				right: -10px;
				top: -30px;
            }
			
			
            /* Hide the default text inside the buttons */
            .slider-products .owl-nav button span {
                display: none;
            }
			
			@media only screen and (max-width:468px) {
	.slider-products .owl-nav button.owl-next {
		display: none !important;
	}

	.slider-products .owl-nav button.owl-prev {
		display: none !important;
	}
	
	
			}
        
/* Adapter for the clean theme's existing content container, not card styling. */
.home .esprit-page {
    background: #fff;
    padding-top: 16px;
}
.home .esprit-page .esprit-carousel {
    margin-block: 0;
    padding-block: 14px;
}
.esprit-carousel .titles-columns { margin-bottom: 0; }
.esprit-carousel .wp-block-separator {
    border: 0;
    border-top: 1px solid #dadbdb;
    margin: 10px 0 12px;
}
@media (max-width: 781px) {
    .home .esprit-page { padding-top: 10px; }
    .home .esprit-page .esprit-carousel { padding-block: 8px; }
}
/* This same Owl rule is already in the source theme; restrict flex wrapping
 * from WooCommerce's native .products style to the fallback before init. */
.slider-products:not(.owl-loaded){display:flex;overflow:hidden;visibility:hidden}
.slider-products:not(.owl-loaded)>.esprit-carousel-item{flex:0 0 20%}
.slider-products .esprit-carousel-card .esprit-carousel-cover .badges{display:flex;position:absolute}
.slider-products .esprit-carousel-cover .badge-new{background:#000}
.slider-products .esprit-carousel-cover .badge-promo{background:#0094ff}

.woocommerce .products.slider-products.owl-loaded{display:block}

.home .esprit-listening-guide {
    padding-block: 26px 38px;
    color: #000;
}
.home .esprit-listening-guide h2 {
    margin: 0 0 46px;
    color: #000;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}
.esprit-listening-guide ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.esprit-listening-guide li {
    min-width: 0;
    text-align: center;
}
.esprit-listening-guide .esprit-guide-illustration {
    height: 165px;
    margin: 0 0 26px;
}
.esprit-listening-guide .esprit-guide-illustration img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.home .esprit-listening-guide h3 {
    margin: 0 0 2px;
    color: #0091e6;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}
.esprit-listening-guide h3 a {
    color: inherit;
}
.esprit-listening-guide li p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.esprit-listening-guide li p a {
    color: inherit;
}
.esprit-listening-guide a:hover,
.esprit-listening-guide a:focus-visible {
    text-decoration: underline;
}
@media (max-width: 781px) {
    .home .esprit-listening-guide h2 { margin-bottom: 26px; }
    .esprit-listening-guide ol {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(230px, 78%);
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x proximity;
    }
    .esprit-listening-guide li { scroll-snap-align: start; }
    .esprit-listening-guide .esprit-guide-illustration { margin-bottom: 16px; }
}
