/* public/js/front/components/Header.css
   Extracted from the (unscoped, global) <style> block in
   resources/js/index/components/Header.vue. This was never "scoped" in the SFC either — it's
   included here as a plain sibling stylesheet so the rules keep applying (most notably the
   .desktop-header / .common-mobile-header responsive toggle, which is load-bearing: without
   it both the desktop and mobile header markup would show at once below 991.98px). */

.modal, .modal-overlay {
    z-index: 99999 !important;
}
.modal-backdrop{
    z-index: 9999 !important;
}
.desktop-header {
    display: block !important;
    position: relative !important;
}
.common-mobile-header {
    display: none !important;
}
header{ z-index: 9999; }
header .navbar-brand{
    max-width: 300px;
    display: inline-block;
}
header .logo_box > .col-12{ flex: 1;}
.offcanvas .navbar-nav .nav-link{
    padding: 8px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.menu-trigger {
    display: flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000000 !important;
    font-size: 14px !important;
    line-height: 1;
    padding: 15px 15px;
    white-space: nowrap;
}
.menu-trigger:hover {
    background: #f3f3f3;
}
.cart-loader {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #005f85;
}
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skeleton-menu-item {
    height: 16px;
    width: 100px;
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.2s infinite ease-in-out;
    margin: 10px 20px;
}
.header-info .ficon i {
    font-size: 16px;
}
.dropdown-toggle .ficon i,
.ficon {
    font-size: 24px;
}
/* CLS guard: keep top action row dimensions stable while auth/cart state hydrates */
.header-top .row {
    min-height: 52px;
}
.header-top .header-info-right {
    min-height: 40px;
}
.header-top .header-info > ul,
.header-top .top-bar-ul-links {
    min-height: 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.header-top .top-bar-ul-links {
    justify-content: flex-end;
    min-width: 320px;
}
.header-top .user_cart_box {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    min-height: 40px;
}
.header-top .user_cart_box > .list-group-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 8px !important;
}
.header-top .user_cart_box .list-group-item > a,
.header-top .user_cart_box .list-group-item .dropdown-toggle {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}
.header-top .user_cart_box .ficon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.header-top .user_cart_box .badge.rounded-pill {
    min-width: 22px;
    text-align: center;
}
.header_bg .user_cart_box {
    min-height: 52px;
    min-width: 360px;
    justify-content: flex-end;
}
.header_bg .user_cart_box > .list-group-item {
    min-height: 44px;
}
.header_bg .user_cart_box .list-group-item > a,
.header_bg .user_cart_box .list-group-item .dropdown-toggle {
    min-height: 36px;
}
.header_bg .user_cart_box .badge.rounded-pill {
    min-width: 22px;
    text-align: center;
}
.secondary_menu {
    min-height: 52px;
    flex: 1 1 420px;
}
.navbar_menu {
    min-height: unset;
}
.navbar_menu .navbar-nav {
    min-height: 44px;
    align-items: center;
}
.navbar_menu .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.navbar_menu button.dropdown-toggle i {
    color: #000 !important;
}
.mobile-promotion {
    min-height: 40px;
    display: flex;
    align-items: center;
}
.navbar-brand { display: inline-block;}
.navbar-brand img{ max-height: 200px;}
.contact-infor strong {
    min-width: 60px;
}
@media only screen and (min-width: 991.98px) {
    .header-bottom .search-style-2 {
        display: none;
    }
}
@media only screen and (max-width: 991.98px) {
    .header-bottom-bg-color{
        background-color: #ffffff !important;
    }
    .header-top .header-info-right,.header-top .header-info > ul {
        justify-content: center !important; flex-wrap: wrap; gap: 5px 0;
    }

    .header-top .top-bar-ul-links {
        min-width: 100%;
        justify-content: center;
    }

    .header_bg .user_cart_box {
        min-width: 100%;
        justify-content: center;
    }
}
@media only screen and (max-width: 768px) {
    .header-bottom .search-style-2 {
        padding-top: 60px;
    }

    header .logo {
        position: relative !important;
        order: 2;
        transform: none !important;
        left: auto !important;
    }
    header .header-wrap .header-action-icon-2 { order: 1; flex: 1; justify-content: flex-end;}
    header .header-action-right { order: 3; flex: 1; display: flex !important; justify-content: flex-end !important;  }
    header .search-style-2 { order: 4; padding-top: 10px !important; }

}
.mobile-header-active{ display: none;}
@media only screen and (max-width: 991.98px) {
    .mobile-header-active{ display: block;}
    .navbar_menu .navbar-nav{ align-items: unset !important; }
	.navbar_menu button.nav-link{width: 100%;}
	/* .navbar_menu button,.navbar_menu .nav-link{color: #000 !important;} */
    .primary_menu .navbar-nav .nav-link,.navbar_menu .nav-link.dropdown-toggle i {
        color: var(--primary-menu-text-color) !important;
    }
}

@media (max-width: 991px) {
    /* Container */
    .header-info ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    /* Each menu item */
    .top-menu-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    /* Link row */
    .top-menu-link,
    .top-menu-link-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
    }
    /* Remove inline layout issues */
    .top-menu-link-group {
        gap: 10px;
    }
    /* Toggle button */
    .top-menu-toggle {
        background: none;
        border: none;
        padding: 5px;
    }
    /* Dropdown (hidden by default) */
    .top-menu-dropdown {
        display: none;
        flex-direction: column;
        padding-left: 15px;
        background: #f9f9f9;
    }
    /* Show when active */
    .top-menu-item.active > .top-menu-dropdown {
        display: flex;
    }
    /* Nested dropdown */
    .top-menu-dropdown .top-menu-item {
        border: none;
    }
    .top-menu-dropdown .top-menu-link {
        font-size: 16px;
        padding: 10px 15px;
    }
    /* Arrow rotate when open */
    .top-menu-item.active .top-menu-toggle i {
        transform: rotate(180deg);
        transition: 0.3s;
    }
    /* Fix long text wrapping */
    .top-menu-link {
        white-space: normal;
    }
    .desktop-header {
        display: none !important;
    }
    .common-mobile-header {
        display: block !important;
    }
    header .badge {
        background-color: #ffffff !important;
        color: #000000 !important
    }
    .common-mobile-header .top-menu-link {
        color: var(--primary-menu-text-color) !important;
    }
    .common-mobile-header .top-menu-dropdown .top-menu-link {
        color: #000000 !important;
        min-height: unset;
        padding: 4px 0;
    }
}
.badge.rounded-pill{color:var(--slide-menu-icon-text-color) !important}
