/*
Theme Name: Frank Vos Motors Child
Theme URI: https://frankvos.co.za/
Description: Child theme for the Frank Vos Motors Multisite build.
Author: NetMark Pro
Template: motors
Version: 1.0.5
Text Domain: frankvos-motors-child
*/

/* Keep submenu labels readable when the primary navigation becomes sticky. */
body .header-nav-fixed.header-nav-sticky .main-menu .sub-menu,
body .header-nav-fixed.header-nav-sticky .header-menu .sub-menu,
body .header-nav-fixed.header-nav-sticky nav .sub-menu,
body #header .header-nav-fixed.header-nav-sticky .sub-menu {
    background: #ffffff !important;
    border-top: 3px solid #942b3a !important;
    box-shadow: 0 12px 26px rgba(8, 27, 44, .16) !important;
}

body .header-nav-fixed.header-nav-sticky .main-menu .sub-menu a,
body .header-nav-fixed.header-nav-sticky .header-menu .sub-menu a,
body .header-nav-fixed.header-nav-sticky nav .sub-menu a,
body #header .header-nav-fixed.header-nav-sticky .sub-menu a {
    background: transparent !important;
    color: #081b2c !important;
    -webkit-text-fill-color: #081b2c !important;
    opacity: 1 !important;
    padding: 12px 22px !important;
    text-shadow: none !important;
    visibility: visible !important;
}

body .header-nav-fixed.header-nav-sticky .main-menu .sub-menu a:hover,
body .header-nav-fixed.header-nav-sticky .header-menu .sub-menu a:hover,
body .header-nav-fixed.header-nav-sticky nav .sub-menu a:hover,
body #header .header-nav-fixed.header-nav-sticky .sub-menu a:hover,
body .header-nav-fixed.header-nav-sticky .main-menu .sub-menu .current-menu-item > a,
body .header-nav-fixed.header-nav-sticky .header-menu .sub-menu .current-menu-item > a,
body .header-nav-fixed.header-nav-sticky nav .sub-menu .current-menu-item > a,
body #header .header-nav-fixed.header-nav-sticky .sub-menu .current-menu-item > a {
    background: #f2f6f9 !important;
    color: #942b3a !important;
    -webkit-text-fill-color: #942b3a !important;
}

/* Responsive primary-menu fallback for narrow viewports. */
.fv-mobile-menu-toggle,
.fv-mobile-menu {
    display: none;
}

@media (max-width: 767px) {
    /* Keep the min/max price values paired below the range slider. */
    .stm-modern-filter-price > .row,
    #price > .stm-accordion-content-wrapper > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .stm-modern-filter-price > .row > [class*='col-'],
    #price > .stm-accordion-content-wrapper > .row > [class*='col-'] {
        float: none !important;
        min-width: 0 !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        width: 50% !important;
    }

    .stm-modern-filter-price > .row input,
    #price > .stm-accordion-content-wrapper > .row input {
        box-sizing: border-box;
        width: 100% !important;
    }

    #header-nav-holder {
        display: none !important;
    }

    #header .header-main,
    #header .header-main .container {
        position: relative;
    }

    #header .fv-mobile-menu-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: 44px;
        justify-content: center;
        padding: 8px;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        z-index: 1002;
    }

    #header .fv-mobile-menu-toggle span {
        background: #ffffff;
        display: block;
        height: 2px;
        transition: transform .18s ease, opacity .18s ease;
        width: 25px;
    }

    #header .fv-mobile-menu-toggle.is-open span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    #header .fv-mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    #header .fv-mobile-menu-toggle.is-open span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    #header .fv-mobile-menu {
        background: #ffffff;
        border-top: 3px solid #942b3a;
        box-shadow: 0 14px 28px rgba(8, 27, 44, .18);
        display: none;
        left: 0;
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 1001;
    }

    #header .fv-mobile-menu.is-open {
        display: block;
    }

    #header .fv-mobile-menu-list,
    #header .fv-mobile-menu-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #header .fv-mobile-menu-list > li,
    #header .fv-mobile-menu-list .sub-menu li {
        border-bottom: 1px solid #e4ebf0;
        float: none !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #header .fv-mobile-menu-list a {
        color: #081b2c !important;
        display: block;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        padding: 14px 22px;
        text-transform: uppercase;
        -webkit-text-fill-color: #081b2c !important;
    }

    #header .fv-mobile-menu-list .sub-menu {
        background: #f2f6f9;
        display: block !important;
        opacity: 1 !important;
        position: static !important;
        visibility: visible !important;
        width: auto !important;
    }

    #header .fv-mobile-menu-list .sub-menu a {
        color: #496379 !important;
        font-size: 13px;
        padding-left: 40px;
        -webkit-text-fill-color: #496379 !important;
    }
}

