/* Products mega menu: Woodmart shell and Elementor nested tabs. */

.wd-dropdown-cats,
.wd-dropdown-cats .wd-nav.wd-nav-vertical,
.wd-dropdown-cats .wd-nav.wd-nav-vertical > li:first-child > a {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.wd-dropdown-cats,
.wd-dropdown-cats .wd-dropdown-menu {
    margin-top: 4px !important;
}

.wd-dropdown-menu.wd-dropdown.wd-design-full-width.color-scheme-dark.wd-opened {
    margin-left: 5px;
    margin-top: 0 !important;
}

#menu-produkti > .menu-item-18138 > a.woodmart-nav-link,
.wd-nav-header > .menu-item-18138 > a.woodmart-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding-left: 26px !important;
    padding-right: 26px !important;
}

#menu-produkti > .menu-item-18138 > a.woodmart-nav-link::after,
.wd-nav-header > .menu-item-18138 > a.woodmart-nav-link::after,
#menu-produkti > .menu-item-18138 > a.woodmart-nav-link .wd-nav-opener,
.wd-nav-header > .menu-item-18138 > a.woodmart-nav-link .wd-nav-opener {
    position: static !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

#menu-produkti > .menu-item-18138 > .wd-dropdown-menu,
.wd-nav-header > .menu-item-18138 > .wd-dropdown-menu {
    width: min(1500px, calc(100vw - 30px)) !important;
    max-width: calc(100vw - 30px) !important;
    height: auto !important;
    max-height: calc(100vh - var(--all4kids-menu-top, 250px) - 16px) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#menu-produkti > .menu-item-18138:hover > .wd-dropdown-menu,
#menu-produkti > .menu-item-18138.wd-opened > .wd-dropdown-menu,
.wd-nav-header > .menu-item-18138:hover > .wd-dropdown-menu,
.wd-nav-header > .menu-item-18138.wd-opened > .wd-dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

#menu-produkti > .menu-item-18138 > .wd-dropdown-menu > .container,
.wd-nav-header > .menu-item-18138 > .wd-dropdown-menu > .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.all4kids-product-tabs,
.all4kids-product-tabs .e-n-tabs {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.all4kids-product-tabs .e-n-tabs-heading {
    flex: 0 0 clamp(230px, 22vw, 320px) !important;
    width: clamp(230px, 22vw, 320px) !important;
    min-height: min(640px, calc(100vh - 130px)) !important;
}

.all4kids-product-tabs .e-n-tab-title {
    cursor: pointer;
}

/* Main-category icons are intentionally disabled; internal category images remain visible. */
.all4kids-product-tabs .e-n-tabs-heading > .e-n-tab-title::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
}
.all4kids-product-tabs [role="tabpanel"] {
    height: auto !important;
    min-height: 0 !important;
}

.all4kids-product-tabs [role="tabpanel"][hidden] {
    display: none !important;
}

.all4kids-product-tabs .all4kids-content-area {
    min-height: min(640px, calc(100vh - 130px)) !important;
}

.all4kids-product-tabs .all4kids-promo-card {
    min-height: min(640px, calc(100vh - 130px)) !important;
}

@media (max-width: 1360px) {
    .all4kids-product-tabs .all4kids-content-area {
        padding: 18px 20px !important;
    }

    .all4kids-product-tabs .all4kids-category-card,
    .all4kids-product-tabs .all4kids-vehicle-card,
    .all4kids-product-tabs .all4kids-menu-card {
        gap: 14px !important;
        min-height: 118px !important;
        padding-top: 16px !important;
        padding-right: 14px !important;
        padding-bottom: 14px !important;
    }

    .all4kids-product-tabs .all4kids-category-visual,
    .all4kids-product-tabs .all4kids-vehicle-visual,
    .all4kids-product-tabs .all4kids-category-visual .elementor-widget-container,
    .all4kids-product-tabs .all4kids-vehicle-visual .elementor-widget-container,
    .all4kids-product-tabs .all4kids-category-visual a,
    .all4kids-product-tabs .all4kids-vehicle-visual a {
        flex-basis: 84px !important;
        width: 84px !important;
        max-width: 84px !important;
        height: 84px !important;
    }

    .all4kids-product-tabs .all4kids-category-visual img,
    .all4kids-product-tabs .all4kids-vehicle-visual img {
        max-width: 84px !important;
        max-height: 84px !important;
    }

    .all4kids-product-tabs .all4kids-category-copy .elementor-heading-title,
    .all4kids-product-tabs .all4kids-vehicle-copy .elementor-heading-title {
        font-size: 16px !important;
    }

    .all4kids-product-tabs .all4kids-category-copy .elementor-icon-list-text,
    .all4kids-product-tabs .all4kids-vehicle-copy .elementor-icon-list-text {
        font-size: 13px !important;
        line-height: 1.22 !important;
    }
}

@media (max-width: 1180px) {
    #menu-produkti > .menu-item-18138 > .wd-dropdown-menu,
    .wd-nav-header > .menu-item-18138 > .wd-dropdown-menu {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: auto !important;
        transform: none !important;
        max-height: calc(100vh - var(--all4kids-menu-top, 180px) - 12px) !important;
    }

    .all4kids-product-tabs .e-n-tabs {
        flex-direction: row !important;
    }

    .all4kids-product-tabs .e-n-tabs-heading {
        flex-basis: 220px !important;
        width: 220px !important;
        padding: 8px !important;
    }

    .all4kids-product-tabs .e-n-tab-title {
        height: 48px !important;
        min-height: 48px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .all4kids-product-tabs .e-n-tab-title-text {
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    .all4kids-product-tabs .all4kids-promo-card {
        flex-basis: 260px !important;
        width: 260px !important;
    }
}

@media (max-width: 1024px) {
    .all4kids-product-tabs .e-n-tabs {
        flex-direction: column !important;
    }

    .all4kids-product-tabs .e-n-tabs-heading {
        width: 100% !important;
        flex-basis: auto !important;
        min-height: auto !important;
        max-height: 240px !important;
        overflow: auto !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(40, 95, 175, 0.14) !important;
    }

    .all4kids-product-tabs .e-n-tab-title {
        height: 44px !important;
        min-height: 44px !important;
    }

    .all4kids-product-tabs .all4kids-content-area,
    .all4kids-product-tabs .all4kids-promo-card {
        min-height: 0 !important;
    }

    .all4kids-product-tabs .all4kids-tab-content {
        flex-direction: column !important;
    }
}

@media (max-width: 767px) {
    #menu-produkti > .menu-item-18138 > .wd-dropdown-menu,
    .wd-nav-header > .menu-item-18138 > .wd-dropdown-menu {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        left: 6px !important;
        max-height: calc(100vh - var(--all4kids-menu-top, 120px) - 10px) !important;
    }

    .all4kids-product-tabs .all4kids-category-row,
    .all4kids-product-tabs .all4kids-vehicle-row {
        flex-direction: column !important;
    }

    .all4kids-product-tabs .all4kids-category-card,
    .all4kids-product-tabs .all4kids-vehicle-card,
    .all4kids-product-tabs .all4kids-menu-card,
    .all4kids-product-tabs .all4kids-category-row .all4kids-category-card:only-child,
    .all4kids-product-tabs .all4kids-vehicle-row.row-three .all4kids-vehicle-card {
        flex-basis: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .all4kids-product-tabs .all4kids-category-row .all4kids-category-card:first-child:not(:only-child),
    .all4kids-product-tabs .all4kids-vehicle-row .all4kids-vehicle-card:first-child:not(:only-child) {
        border-right: 0 !important;
    }
}

/* Match Elementor's generated selector weight so the compact rules win. */
.elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs,
.elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tabs {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tabs-heading {
    flex: 0 0 clamp(230px, 22vw, 320px) !important;
    width: clamp(230px, 22vw, 320px) !important;
    min-height: min(640px, calc(100vh - 130px)) !important;
}

.elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-content-area,
.elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-promo-card {
    min-height: min(640px, calc(100vh - 130px)) !important;
}

@media (max-width: 1360px) {
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-content-area {
        padding: 18px 20px !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-card,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-card,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-menu-card {
        gap: 14px !important;
        min-height: 118px !important;
        padding-top: 16px !important;
        padding-right: 14px !important;
        padding-bottom: 14px !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-visual,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-visual,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-visual .elementor-widget-container,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-visual .elementor-widget-container,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-visual a,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-visual a {
        flex-basis: 84px !important;
        width: 84px !important;
        max-width: 84px !important;
        height: 84px !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-visual img,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-visual img {
        max-width: 84px !important;
        max-height: 84px !important;
    }
}

@media (max-width: 1180px) {
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tabs {
        flex-direction: row !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tabs-heading {
        flex-basis: 220px !important;
        width: 220px !important;
        padding: 8px !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tab-title {
        height: 48px !important;
        min-height: 48px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-promo-card {
        flex-basis: 260px !important;
        width: 260px !important;
    }
}

@media (max-width: 1024px) {
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tabs {
        flex-direction: column !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tabs-heading {
        width: 100% !important;
        flex-basis: auto !important;
        min-height: auto !important;
        max-height: 240px !important;
        overflow: auto !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .e-n-tab-title {
        height: 44px !important;
        min-height: 44px !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-content-area,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-promo-card {
        min-height: 0 !important;
    }
}

@media (max-width: 767px) {
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-row,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-row {
        flex-direction: column !important;
    }

    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-category-card,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-vehicle-card,
    .elementor-18101 .elementor-element.elementor-element-44ae7bd3 .all4kids-product-tabs .all4kids-menu-card {
        flex-basis: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Desktop Products mega menu: restore the existing category icon assets. */
@media (min-width: 1025px) {
    .all4kids-product-tabs .e-n-tabs-heading > .e-n-tab-title::before {
        display: block !important;
        content: "" !important;
        background-image: var(--all4kids-menu-icon, none) !important;
    }
}

.all4kids-mega-menu-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: clamp(420px, calc(100vh - 190px), 640px);
    color: #6f7480;
    font-size: 14px;
}

.all4kids-mega-menu-loading::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid rgba(57, 97, 171, 0.2);
    border-top-color: #3961ab;
    border-radius: 50%;
    vertical-align: -4px;
    animation: all4kids-mega-menu-spin 0.7s linear infinite;
}

@keyframes all4kids-mega-menu-spin {
    to {
        transform: rotate(360deg);
    }
}
