/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Custom Cart Colors */
body .whb-color-light .wd-header-cart.wd-design-3 .wd-tools-icon:before {
    color: #4c4c4b;
}

body .whb-color-light .wd-header-cart.wd-design-3 .wd-cart-number {
    color: #4c4c4b;
}

body .whb-color-light .wd-tools-element {
    --wd-header-el-color: #4c4c4b;
    --wd-header-el-color-hover: #D4005B;
}

/* Promo Text Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.whb-top-bar .wd-header-text {
    white-space: nowrap;
    overflow: hidden;
    animation: marquee 25s linear infinite;
    display: block;
    /* Ensure it takes width to scroll */
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* Ensure container doesn't overflow */
.whb-top-bar .whb-column {
    overflow: hidden;
}

/* Full Width Slider & Remove Top Padding (Verified) */
#main-content.wd-content-layout,
.home .main-page-wrapper {
    padding-top: 0 !important;
}

/* Add margin for content pages (non-home) */
body:not(.home) .main-page-wrapper {
    padding-top: 40px;
}

.elementor-section.wd-section-stretch,
.home .wd-slider-element,
.home .rev_slider_wrapper {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
}

.wd-carousel-wrap,
.wd-carousel,
.wd-slide,
.wd-slider-element .wd-slider-inner {
    border-radius: 0 !important;
}

/* Category Banner Styles (Custom Class) */
.custom_category-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Style Text and ensure it's above overlay */
.custom_category-nav-link .nav-link-summary {
    text-align: center;
    position: relative;
    z-index: 2;
}

.custom_category-nav-link .nav-link-text {
    font-size: 24px;
    font-weight: 700;
    color: rgb(51, 51, 51) !important;
    text-shadow: none;
    display: block;
}

.custom_category-nav-link .nav-link-count {
    color: rgb(51, 51, 51) !important;
    opacity: 0.9;
    display: block;
}

/* Change Info Box icons to white */
.wd-info-box .info-box-icon img {
    filter: brightness(0) invert(1);
}

/* Masquer le calculateur d'expÃ©dition dans la page panier */
.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .shipping-calculator-button {
    display: none !important;
}

/* Masquer le bloc de catégories sur la page de recherche des produits */
.search-results.post-type-archive-product .wd-nav-product-cat,
.search-results.post-type-archive-product .woodmart-product-categories,
.search-results.post-type-archive-product .wd-shop-cats,
.search-results.post-type-archive-product .elementor-widget-wd_product_categories,
.search-results.post-type-archive-product .wd-product-cats {
    display: none !important;
}

/* Masquer le bloc de catégories sur la taxonomie marque (product_brand) */
.tax-product_brand .wd-nav-product-cat,
.tax-product_brand .woodmart-product-categories,
.tax-product_brand .wd-shop-cats,
.tax-product_brand .elementor-widget-wd_product_categories,
.tax-product_brand .wd-product-cats,
.tax-product_brand .widget_product_categories {
    display: none !important;
}