/* INTEROL - Homepage category banners only. */
body.home .banners-carousel .promo-banner {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
}

/* Keep the photograph as the full height of the tile. */
body.home .banners-carousel .promo-banner .main-wrapp-img {
    position: relative;
}

/* Gradient belongs to the photograph, not a separate content panel. */
body.home .banners-carousel .promo-banner .main-wrapp-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        transparent 35%,
        rgba(0, 0, 0, 0.08) 52%,
        rgba(0, 0, 0, 0.42) 76%,
        rgba(0, 0, 0, 0.82) 100%
    );
    pointer-events: none;
}

/* Place title, description and button on the image. */
body.home .banners-carousel .promo-banner .wrapper-content-banner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    background: transparent;
}

body.home .banners-carousel .promo-banner .content-banner {
    width: 100%;
}

body.home .banners-carousel .banner-btn-wrapper .btn {
    border-radius: 7px !important;
}

/* Keep WoodMart's full-tile link active. */
body.home .banners-carousel .promo-banner .wd-promo-banner-link {
    z-index: 3;
}

/* ==========================================
   INTEROL - Homepage category menu
   ========================================== */

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-menu.widget_nav_mega_menu:has(#menu-categories-menu-books-2) {
    background: #fff;
    border: 1px solid #e8e8e5;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Heading inside the same rounded card. */
@media (min-width: 1025px) {
    body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-menu.widget_nav_mega_menu:has(#menu-categories-menu-books-2)::before {
    content: "Kategorie";
    display: block;
    padding: 13px 18px;
    margin: 0;
    background: #fff;
    color: #252525;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    border-bottom: 1px solid #eeeeec;
}
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li::before,
body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li::after {
    display: none !important;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li > a.woodmart-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 30px 10px 15px;
    gap: 12px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    color: #252525;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

/* INTEROL - Rozmiar ikon menu kategorii */

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li > a.woodmart-nav-link > img.wd-nav-img {
    display: block !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    margin: 0 !important;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 .nav-link-text {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    color: #252525;
}

/* Chevron on the right. */
body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li > a.woodmart-nav-link::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #666;
    border-right: 1.5px solid #666;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li:hover > a.woodmart-nav-link {
    background: #eef0e9;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li:hover > a.woodmart-nav-link .nav-link-text {
    color: #252525;
}

/* Active category: use WordPress/WooCommerce menu state, not item order. */
body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li.current-menu-item > a.woodmart-nav-link,
body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li.current-menu-ancestor:not(:has(ul .current-menu-item, ul .current-menu-ancestor)) > a.woodmart-nav-link {
    background: #e5e8df;
}

/* The final item fills the bottom edge and follows the card corners. */
body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li:last-child {
    margin-bottom: 0 !important;
}

body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li:last-child > a.woodmart-nav-link {
    border-radius: 0 0 9px 9px !important;
}

/* Disable WoodMart's decorative pseudo-element. */
body:is(.home, .post-type-archive-product, .tax-product_cat, .tax-product_tag) #menu-categories-menu-books-2 > li > a.woodmart-nav-link::before {
    display: none;
}

.elementor-icon-box-title a[href^="tel:"] {
    color: inherit !important;
    text-decoration: none !important;
    font: inherit !important;
}

.elementor-icon-box-title a[href^="tel:"]:hover,
.elementor-icon-box-title a[href^="tel:"]:focus {
    color: inherit !important;
    text-decoration: none !important;
}



/* INTEROL - Separatory paska korzyści. */
@media (min-width: 1025px) {

    body.home .elementor-element-19be23c
    > .elementor-widget-divider {
        flex: 0 0 1px !important;
        width: 1px !important;
        min-width: 1px !important;
        max-width: 1px !important;
        align-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.home .elementor-element-19be23c
    > .elementor-widget-divider .elementor-divider {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.home .elementor-element-19be23c
    > .elementor-widget-divider .elementor-divider-separator {
        display: block !important;
        width: 1px !important;
        min-width: 1px !important;
        height: 60px !important;
        margin: 0 !important;
        border: 0 !important;
        background-color: #dededb !important;
    }
}


