/* Mobile header + mmenu overlay drawer */

/* ---- Top sticky header (hamburger bar) ---- */
.mobile-menu__header.header.stylehome1 {
    background: linear-gradient(135deg, #443297 0%, #5b44b9 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(68, 50, 151, 0.22);
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    height: auto !important;
    min-height: 136px;
    padding: 1rem 0.85rem 0.9rem !important;
    position: relative;
    z-index: 3;
}

.mobile-menu__top {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    min-height: 44px;
    position: relative;
    width: 100%;
}

.mobile-menu__actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 0.38rem;
    margin-top: -28px;
}

.mobile-menu__header .mobile_menu_bar {
    align-items: center;
    display: flex;
    flex: 1;
    float: none;
    gap: 0.7rem;
    min-width: 0;
    position: static;
}

.mobile-menu__header .mobile_menu_bar a.menubar {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(16, 24, 40, 0.1);
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    height: 40px;
    justify-content: center;
    left: auto;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: static;
    top: auto;
    width: 40px;
}

.mobile-menu__header .mobile_menu_bar a.menubar i {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
}

.mobile-menu__header .mobile_menu_bar a.menubar:hover,
.mobile-menu__header .mobile_menu_bar a.menubar:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
}

.mobile-menu__header .mobile_menu_bar a.menubar span,
.mobile-menu__header .mobile_menu_bar a.menubar:before,
.mobile-menu__header .mobile_menu_bar a.menubar:after,
.mobile-menu__header a.menubar span,
.mobile-menu__header a.menubar:before,
.mobile-menu__header a.menubar:after {
    display: none !important;
}

.mobile-menu__header .mobile_menu_bar a.mobile_logo {
    align-items: center;
    color: inherit;
    display: inline-flex;
    flex: 0 1 auto;
    margin: 0;
    max-width: min(34vw, 132px);
    min-width: 0;
    padding: 0;
}

.mobile-menu__header .mobile_menu_bar a.mobile_logo .logo {
    display: block;
    filter: none;
    height: 30px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.mobile-menu__header .mobile_menu_widget_icons {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    position: static;
    right: auto;
}

.mobile-menu__header .mobile_menu_widget_icons .cart {
    align-items: center;
    display: flex;
    gap: 0.32rem;
    margin: 0;
    padding: 0;
}

.mobile-menu__header .mobile_menu_widget_icons .list-inline-item {
    margin: 0 !important;
}

.mobile-menu__header .mobile_menu_widget_icons a.cart_btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    color: #fff;
    height: 38px;
    line-height: 1;
    margin: 0;
    position: relative;
    width: 38px;
}

.mobile-menu__header .mobile_menu_widget_icons a.cart_btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu__header .mobile_menu_widget_icons a.cart_btn .icon {
    align-items: center;
    display: inline-flex;
    height: auto !important;
    justify-content: center;
    position: static;
    width: auto !important;
}

.mobile-menu__header .mobile_menu_widget_icons a.cart_btn span.badge {
    align-items: center;
    background: #fff !important;
    border-radius: 999px;
    color: #443297 !important;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 0.25rem;
    position: absolute;
    right: -4px;
    top: -4px;
    width: auto;
}

.mobile-menu__header .mobile_menu_widget_icons .icon {
    color: #fff;
}

/* Invert only header toggle icons — keep dropdown language flags in original colors */
.mobile-menu__header .mobile_menu_widget_icons > .cart > .list-inline-item > a img,
.mobile-menu__header .mobile_menu_widget_icons > .cart > .list-inline-item > form > .dropdown > a img {
    filter: brightness(0) invert(1);
}

.mobile-menu__header .mobile_menu_widget_icons .dropdown-menu {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    margin-top: 0.45rem;
    min-width: 168px;
    padding: 0.35rem;
}

.mobile-menu__header .mobile_menu_widget_icons .dropdown-menu .dropdown-item {
    align-items: center;
    border-radius: 10px;
    color: #344054;
    display: flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 0.55rem;
    line-height: 1.2;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
}

.mobile-menu__header .mobile_menu_widget_icons .dropdown-menu .dropdown-item img {
    border-radius: 3px;
    display: block;
    filter: none !important;
    flex-shrink: 0;
    height: 18px;
    object-fit: cover;
    width: 24px;
}

.mobile-menu__header .mobile_menu_widget_icons .dropdown-menu .dropdown-item:hover,
.mobile-menu__header .mobile_menu_widget_icons .dropdown-menu .dropdown-item:focus {
    background: rgba(68, 50, 151, 0.08);
    color: #443297;
}

.mobile-menu__header .mobile_menu_search_widget {
    bottom: auto;
    left: auto;
    margin: 0.15rem 0 0;
    position: static;
    right: auto;
    width: 100%;
}

.mobile-menu__header .header_middle_advnc_search .search_form_wrapper {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.mobile-menu__header .header_middle_advnc_search .form_control {
    color: #101828;
    font-size: 0.9rem;
}

.mobile-menu__header .header_middle_advnc_search .form_control::placeholder {
    color: #98a2b3;
}

.mobile-menu__header .advscrh_frm_btn .search-btn {
    background: #443297;
    border-radius: 0 12px 12px 0;
    color: #fff;
    min-height: 44px;
}

.mobile_menu_close_btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    left: auto;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 1px;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    width: 38px;
    z-index: 4;
}

.mobile_menu_close_btn:hover,
.mobile_menu_close_btn:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    outline: none;
}

body.mobile-menu-is-open .mobile_menu_close_btn,
html.mm-wrapper_opening .mobile_menu_close_btn,
.mm-wrapper_opening .mobile_menu_close_btn {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* ---- Overlay drawer: slide from left over full page ---- */
html.mm-wrapper_opened,
html.mm-wrapper_opening,
html.mm-wrapper_blocking,
body.mobile-menu-is-open {
    overflow: hidden !important;
}

/* Keep page in place — drawer overlays instead of pushing content */
html.mm-wrapper_opening .mm-menu_offcanvas.mm-menu_opened ~ .mm-slideout,
html.mm-wrapper_opening .mm-slideout,
.mm-wrapper_opening .mm-menu_offcanvas.mm-menu_opened ~ .mm-slideout {
    transform: none !important;
}

/* Full-page black dim overlay */
.mm-wrapper__blocker {
    background: rgba(0, 0, 0, 0.62) !important;
    display: none;
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed !important;
    top: 0;
    transition: opacity 0.28s ease;
    width: 100%;
    z-index: 100040 !important;
}

html.mm-wrapper_blocking .mm-wrapper__blocker,
html.mm-wrapper_opening .mm-wrapper__blocker,
body.mobile-menu-is-open .mm-wrapper__blocker {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* Menu slides in from left above the overlay */
.mm-menu_offcanvas,
#mm-0.mm-menu,
.mm-menu.stylehome1 {
    --mm-color-background: #f5f7fb;
    --mm-color-text: #101828;
    --mm-color-border: transparent;
    --mm-color-button: #667085;
    --mm-color-text-dimmed: #667085;
    --mm-navbar-size: 58px;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
    display: block !important;
    height: 100%;
    left: 0 !important;
    max-width: 360px;
    min-width: 280px;
    position: fixed !important;
    right: auto !important;
    top: 0 !important;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    width: min(86vw, 360px) !important;
    z-index: 100050 !important;
}

html.mm-wrapper_opening .mm-menu_offcanvas.mm-menu_opened,
.mm-menu_offcanvas.mm-menu_opened {
    transform: translate3d(0, 0, 0);
    visibility: visible;
}

.stylehome1.mm-menu .mm-navbar {
    background: linear-gradient(135deg, #443297 0%, #5b44b9 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    min-height: 58px;
    padding: 0 0.25rem;
}

.stylehome1.mm-menu .mm-navbar > *,
.stylehome1.mm-menu .mm-navbar a,
.stylehome1.mm-menu .mm-btn {
    color: #fff;
}

.stylehome1.mm-menu .mm-btn_close:before,
.stylehome1.mm-menu .mm-btn_prev:before {
    border-color: #fff;
    opacity: 1;
}

.stylehome1.mm-menu .mm-panels,
.stylehome1.mm-menu .mm-panel {
    background:
        radial-gradient(circle at top left, rgba(68, 50, 151, 0.08), transparent 34%),
        #f5f7fb;
}

.stylehome1.mm-menu .mm-panel {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.stylehome1.mm-menu .mm-listitem {
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.035);
    margin: 0.42rem 0;
    overflow: hidden;
}

.stylehome1.mm-menu .mm-listitem:after {
    display: none;
}

.stylehome1.mm-menu a.mm-listitem__text {
    align-items: center;
    color: #263244;
    display: flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.55rem;
    letter-spacing: 0;
    min-height: 50px;
    padding: 0.72rem 1rem;
    text-transform: none;
}

.stylehome1.mm-menu a.mm-listitem__text:hover,
.stylehome1.mm-menu a.mm-listitem__text:focus {
    background: linear-gradient(135deg, rgba(68, 50, 151, 0.09), rgba(68, 50, 151, 0.03));
    color: #443297;
    outline: none;
}

.stylehome1.mm-menu .mm-listitem__btn {
    background: rgba(68, 50, 151, 0.04);
    border-left: 1px solid #eef2f6;
    min-width: 54px;
}

.stylehome1.mm-menu .mm-listitem__btn:after {
    border-color: #443297;
}

.stylehome1.mm-menu span.mm-listitem__text {
    align-items: center;
    color: #263244;
    display: flex;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.72rem 1rem;
    text-transform: none;
}

.stylehome1 .mobile-menu__divider.mm-listitem {
    background: transparent;
    border: 0;
    border-bottom: none;
    box-shadow: none;
    margin: 0.9rem 0 0.2rem;
    min-height: auto;
    overflow: visible;
    padding: 0;
}

.stylehome1 .mobile-menu__divider .mm-listitem__text {
    color: #443297;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    min-height: auto;
    padding: 0.25rem 0.25rem 0.2rem;
    text-transform: uppercase;
}

.stylehome1 .mobile-menu__category-icon {
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.stylehome1 .mobile-menu__category-label .mobile-menu__category-icon {
    background: #fff;
    border: 1px solid #eef2f6;
    padding: 2px;
}

.stylehome1 .mm-panel .mm-listview:first-child {
    margin-top: 0.6rem;
}

.stylehome1 .mm-panel .mm-listview {
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.stylehome1.mm-menu .mm-listitem_vertical > .mm-panel {
    background: #fff;
    border-top: 1px solid #eef2f6;
    padding: 0.35rem 0.35rem 0.55rem 0.55rem;
}

.stylehome1.mm-menu .mm-listitem_vertical > .mm-panel .mm-listitem__text {
    font-size: 0.88rem;
    font-weight: 600;
}

.stylehome1.mm-menu .mm-listitem_selected > .mm-listitem__text {
    background: linear-gradient(135deg, rgba(68, 50, 151, 0.14), rgba(68, 50, 151, 0.06));
    color: #443297;
}

.stylehome1.mm-menu .mm-navbar__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff !important;
    display: inline-flex !important;
    flex: 0 0 auto;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    margin: 10px 12px 10px 0;
    min-width: 38px;
    padding: 0 !important;
    width: 38px;
}

.stylehome1.mm-menu .mm-navbar__close:hover,
.stylehome1.mm-menu .mm-navbar__close:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    color: #fff !important;
    outline: none;
}

.stylehome1.mm-menu .mm-navbar__close:before,
.stylehome1.mm-menu .mm-navbar__close:after {
    display: none;
}

@media (max-width: 992px) {
    .header.stylehome1 {
        height: auto;
    }
}
