/* Polegada 2026-07-06 mobile header controls v24 */
@media (max-width: 991px) {
    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #page,
    #wrapper,
    #header,
    #header .header-top,
    #header .header-inner-top,
    #header .header-top .container,
    #header .header-top .header-inner-content {
        max-width: 100% !important;
        overflow-x: clip;
    }

    #header .header-top .header-inner-content {
        box-sizing: border-box !important;
        min-height: 86px !important;
        padding-bottom: 8px !important;
        padding-top: 8px !important;
        position: relative !important;
    }

    #header .header_logo {
        height: 70px !important;
        line-height: 0 !important;
        margin-left: 18px !important;
        margin-top: 0 !important;
        pointer-events: none !important;
        position: relative !important;
        z-index: 10036 !important;
    }

    #header .header_logo h1,
    #header .header_logo a {
        height: 70px !important;
        line-height: 0 !important;
    }

    #header .header_logo h1,
    #header .header_logo a,
    #header .header_logo img {
        display: inline-block !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10037 !important;
    }

    #header .header_logo img {
        display: block !important;
        height: 70px !important;
        max-height: 70px !important;
        width: auto !important;
    }

    #header .header-top-inner .mobile-menu {
        pointer-events: none !important;
        z-index: 10060 !important;
    }

    #header .header-top-inner .mobile-menu > .menu-icon,
    #header .header-top-inner .mobile-menu > .menu-icon * {
        pointer-events: auto !important;
    }

    #header #mobile_top_menu_wrapper:not(.slide):not(.active),
    #header #mobile_top_menu_wrapper:not(.slide):not(.active) * {
        pointer-events: none !important;
    }

    #header #mobile_top_menu_wrapper.slide,
    #header #mobile_top_menu_wrapper.active,
    #header #mobile_top_menu_wrapper.slide *,
    #header #mobile_top_menu_wrapper.active * {
        pointer-events: auto !important;
    }

    #header .header-right {
        align-items: center !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 13px !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 28px !important;
        top: 21px !important;
        width: auto !important;
        z-index: 10030 !important;
    }

    #menu-icon,
    .menu-icon {
        align-items: center !important;
        background: #efeeed !important;
        background-image: none !important;
        border: 1px solid #fff !important;
        border-radius: 20% !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14) !important;
        box-sizing: border-box !important;
        color: transparent !important;
        cursor: pointer !important;
        display: inline-flex !important;
        font-size: 0 !important;
        height: 37px !important;
        justify-content: center !important;
        line-height: 0 !important;
        margin-right: 16px !important;
        min-width: 37px !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        position: relative !important;
        text-indent: -9999px !important;
        text-shadow: none !important;
        transform: translateY(-3px) !important;
        width: 37px !important;
        z-index: 10061 !important;
    }

    #menu-icon:before,
    .menu-icon:before {
        background: #111 !important;
        border-radius: 3px !important;
        content: "" !important;
        display: block !important;
        height: 3px !important;
        left: 50% !important;
        margin: 0 !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -50%) translateY(-8px) !important;
        width: 25px !important;
        z-index: 2 !important;
    }

    #menu-icon:after,
    .menu-icon:after {
        background: #111 !important;
        border-radius: 3px !important;
        box-shadow: 0 8px 0 #111 !important;
        content: "" !important;
        display: block !important;
        height: 3px !important;
        left: 50% !important;
        margin: 0 !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 25px !important;
        z-index: 2 !important;
    }

    #menu-icon:hover,
    .menu-icon:hover,
    #menu-icon.active,
    .menu-icon.active {
        background: #f7f7f7 !important;
        border-color: #d6d6d6 !important;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18) !important;
    }

    #menu-icon .material-icons,
    .menu-icon .material-icons,
    #menu-icon i,
    .menu-icon i,
    #menu-icon span,
    .menu-icon span {
        color: transparent !important;
        display: block !important;
        font-size: 0 !important;
        height: 0 !important;
        line-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    #menu-icon .material-icons:before,
    #menu-icon .material-icons:after,
    .menu-icon .material-icons:before,
    .menu-icon .material-icons:after,
    #menu-icon i:before,
    #menu-icon i:after,
    .menu-icon i:before,
    .menu-icon i:after,
    #menu-icon span:before,
    #menu-icon span:after,
    .menu-icon span:before,
    .menu-icon span:after {
        content: none !important;
        display: none !important;
    }

    body.active #menu-icon,
    body.active .menu-icon,
    #page.active #menu-icon,
    #page.active .menu-icon,
    body.polegada-mobile-menu-open #menu-icon,
    body.polegada-mobile-menu-open .menu-icon,
    #header.is-open #menu-icon,
    #header.is-open .menu-icon {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    body.active #menu-icon:before,
    body.active #menu-icon:after,
    body.active .menu-icon:before,
    body.active .menu-icon:after,
    #page.active #menu-icon:before,
    #page.active #menu-icon:after,
    #page.active .menu-icon:before,
    #page.active .menu-icon:after,
    body.polegada-mobile-menu-open #menu-icon:before,
    body.polegada-mobile-menu-open #menu-icon:after,
    body.polegada-mobile-menu-open .menu-icon:before,
    body.polegada-mobile-menu-open .menu-icon:after,
    #header.is-open #menu-icon:before,
    #header.is-open #menu-icon:after,
    #header.is-open .menu-icon:before,
    #header.is-open .menu-icon:after {
        opacity: 0 !important;
    }

    #header #search_widget.search-widget,
    #header .search-widget,
    #header .user-info,
    #header #desktop_cart,
    #header .blockcart,
    #header #_mobile_cart {
        flex: 0 0 auto !important;
        float: none !important;
        margin: 0 !important;
        min-width: 0 !important;
        position: relative !important;
        transform: none !important;
        width: auto !important;
        z-index: 10031 !important;
    }

    #header #cart-overlay {
        display: none !important;
    }

    #header #search_widget.search-widget,
    #header .search-widget {
        order: 1 !important;
    }

    #header #_mobile_user_info,
    #header .user-info {
        order: 2 !important;
    }

    #header #desktop_cart,
    #header .blockcart,
    #header #_mobile_cart {
        order: 3 !important;
    }

    #header .search-widget .search_button,
    #header #search_widget .search_button,
    #header .user-info {
        align-items: center !important;
        background: #efeeed !important;
        border: 1px solid #fff !important;
        border-radius: 20% !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14) !important;
        box-sizing: border-box !important;
        color: #111 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        height: 36px !important;
        justify-content: center !important;
        line-height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        width: 36px !important;
    }

    #header .search-widget .search_button,
    #header #search_widget .search_button {
        background-image: none !important;
        position: relative !important;
        z-index: 10032 !important;
    }

    #header .search-widget .search_button:before,
    #header #search_widget .search_button:before {
        color: #111 !important;
        content: "\f002" !important;
        display: block !important;
        font-family: "FontAwesome" !important;
        font-size: 20px !important;
        font-style: normal !important;
        font-weight: normal !important;
        height: 36px !important;
        line-height: 36px !important;
        text-align: center !important;
        width: 36px !important;
    }

    #header .user-info i.fa.fa-user-o {
        color: #111 !important;
        font-size: 21px !important;
    }

    #header .user-info a {
        align-items: center !important;
        color: inherit !important;
        display: flex !important;
        height: 100% !important;
        justify-content: center !important;
        width: 100% !important;
    }

    body.polegada-customer-logged-in #header .user-info,
    #header .user-info.polegada-customer-logged-in {
        background: #2faa32 !important;
        border-color: #2faa32 !important;
        box-shadow: 0 1px 5px rgba(47, 170, 50, 0.32) !important;
        color: #fff !important;
    }

    body.polegada-customer-logged-in #header .user-info a,
    #header .user-info.polegada-customer-logged-in a,
    body.polegada-customer-logged-in #header .user-info i.fa.fa-user-o,
    #header .user-info.polegada-customer-logged-in i.fa.fa-user-o {
        color: #fff !important;
    }

    #header .search-widget .search_button:hover,
    #header .search-widget .search_button.active,
    #header #search_widget .search_button:hover,
    #header #search_widget .search_button.active,
    #header .user-info:hover {
        background: #f7f7f7 !important;
        border-color: #d6d6d6 !important;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18) !important;
        color: #111 !important;
    }

    #header .user-info:hover i.fa.fa-user-o {
        color: #111 !important;
    }

    body.polegada-customer-logged-in #header .user-info:hover,
    #header .user-info.polegada-customer-logged-in:hover {
        background: #28962d !important;
        border-color: #28962d !important;
        color: #fff !important;
    }

    body.polegada-customer-logged-in #header .user-info:hover i.fa.fa-user-o,
    #header .user-info.polegada-customer-logged-in:hover i.fa.fa-user-o {
        color: #fff !important;
    }

    #rf-sidebar-menu .menu-level:not(#sub_0) .close-btn {
        display: none !important;
    }

    #rf-sidebar-menu #sub_0 .menu-header .close-btn {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #111827 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        font-size: 30px !important;
        font-weight: 400 !important;
        height: 42px !important;
        justify-content: center !important;
        line-height: 42px !important;
        margin-left: auto !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        text-align: center !important;
        top: auto !important;
        width: 42px !important;
        z-index: 3 !important;
    }

    #header .blockcart .blockcart-header > a.shopping-cart {
        margin: 0 !important;
    }

    #header .blockcart,
    #header .blockcart .blockcart-header,
    #header .blockcart .blockcart-header > a.shopping-cart {
        align-items: center !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        height: 42px !important;
        justify-content: center !important;
        line-height: 1 !important;
        min-width: 42px !important;
        position: relative !important;
        vertical-align: middle !important;
    }

    #header .blockcart .blockcart-header > a.shopping-cart {
        font-size: 29px !important;
        transform: translateY(7px) !important;
    }

    #header .blockcart .blockcart-header > a.shopping-cart .mobile_count {
        align-items: center !important;
        display: inline-flex !important;
        font-size: 13px !important;
        height: 25px !important;
        justify-content: center !important;
        line-height: 25px !important;
        min-width: 25px !important;
        position: absolute !important;
        right: -10px !important;
        top: -8px !important;
    }

    #header .search-widget .search_toggle,
    #header #search_widget .search_toggle {
        box-sizing: border-box !important;
        left: 12px !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        overflow: visible !important;
        position: fixed !important;
        right: 12px !important;
        top: 96px !important;
        width: auto !important;
        z-index: 10050 !important;
    }

    body.polegada-motive-search-open #header .search-widget .search_toggle,
    body.polegada-motive-search-open #header #search_widget .search_toggle {
        display: block !important;
        height: 1px !important;
        left: 0 !important;
        max-height: 1px !important;
        max-width: 1px !important;
        opacity: 0 !important;
        overflow: hidden !important;
        visibility: visible !important;
        pointer-events: none !important;
        right: auto !important;
        top: 0 !important;
        width: 1px !important;
    }

    #header .search-widget form,
    #header #search_widget form,
    #header .search-widget form input[type="text"],
    #header #search_widget form input[type="text"] {
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-home .flexslider {
        left: auto !important;
        max-width: 100% !important;
        transform: translateY(-76px) !important;
        width: 100% !important;
    }

    .ui-autocomplete {
        left: 12px !important;
        max-width: calc(100vw - 24px) !important;
        width: calc(100vw - 24px) !important;
        z-index: 10051 !important;
    }

    #rf-sidebar-menu #sub_0 .polegada-mobile-main-links {
        background: #fff !important;
        border-bottom: 1px solid #e5e7eb !important;
        border-top: 1px solid #f3f4f6 !important;
        display: block !important;
        padding: 6px 0 !important;
    }

    #rf-sidebar-menu #sub_0 .polegada-mobile-main-link {
        align-items: center !important;
        box-sizing: border-box !important;
        color: #111827 !important;
        display: flex !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        justify-content: space-between !important;
        line-height: 1.2 !important;
        min-height: 42px !important;
        padding: 0 20px !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        width: 100% !important;
    }

    #rf-sidebar-menu #sub_0 .polegada-mobile-main-link:after {
        color: #9ca3af !important;
        content: ">" !important;
        font-size: 20px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }

    #rf-sidebar-menu #sub_0 .polegada-mobile-main-link.is-current {
        background: #f6fbf6 !important;
        color: #2faa32 !important;
    }

    #rf-sidebar-menu #sub_0 .polegada-mobile-main-link.is-current:after {
        background: #2faa32 !important;
        border-radius: 50% !important;
        content: "" !important;
        height: 8px !important;
        width: 8px !important;
    }
}