/* Navbar + mobile search fix for the provided navbar.blade.php */

/* Make header stable */
.header-style-01 {
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
    position: relative;
    z-index: 1000;
}

.header-style-01 .navbar-area {
    background: #ffffff;
    min-height: 86px;
    padding: 0;
}

.header-style-01 .nav-container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

.header-style-01 .responsive-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-width: 170px;
}

.header-style-01 .logo-wrapper,
.header-style-01 .logo {
    display: inline-flex;
    align-items: center;
}

.header-style-01 .logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.header-style-01 .site-title {
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    margin: 0;
}

/* Main menu */
.header-style-01 .navbar-collapse {
    flex: 1 1 auto;
}

.header-style-01 .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
}

.header-style-01 .navbar-nav li {
    list-style: none;
}

.header-style-01 .navbar-nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    color: #111827 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
}

.header-style-01 .navbar-nav li a:hover,
.header-style-01 .navbar-nav li.current-menu-item > a {
    background: rgba(13, 110, 253, .08);
    color: #0d6efd !important;
}

/* Right icons */
.header-style-01 .navbar-right-content,
.header-style-01 .single-right-content,
.header-style-01 .navbar-right-flex,
.header-style-01 .track-icon-list {
    display: flex;
    align-items: center;
}

.header-style-01 .navbar-right-content {
    flex: 0 0 auto;
    margin-left: auto;
}

.header-style-01 .single-right-content,
.header-style-01 .navbar-right-flex,
.header-style-01 .track-icon-list {
    gap: 10px;
}

.header-style-01 .search-suggestions-icon-wrapper,
.header-style-01 .single-icon.cart-shopping,
.header-style-01 .login-account {
    position: relative;
}

.header-style-01 .search-click-icon,
.header-style-01 .track-icon-list .single-icon > .icon,
.header-style-01 .login-account > .accounts {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.header-style-01 .search-click-icon:hover,
.header-style-01 .track-icon-list .single-icon > .icon:hover,
.header-style-01 .login-account > .accounts:hover {
    background: #0d6efd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(13, 110, 253, .22);
}

.header-style-01 .search-click-icon i,
.header-style-01 .track-icon-list .single-icon > .icon i,
.header-style-01 .login-account > .accounts i {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

/* Counters */
.header-style-01 .icon-notification {
    position: absolute;
    top: -9px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0d6efd;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 6px 14px rgba(13, 110, 253, .26);
    text-decoration: none;
}

[dir="rtl"] .header-style-01 .icon-notification {
    right: auto;
    left: -6px;
}

/* Desktop dropdowns */
.header-style-01 .addto-cart-contents,
.header-style-01 .account-list-item {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 9999;
}

.header-style-01 .addto-cart-contents {
    width: 370px;
    max-width: calc(100vw - 28px);
}

.header-style-01 .account-list-item {
    min-width: 190px;
    list-style: none;
    padding: 8px;
    margin: 0;
}

[dir="rtl"] .header-style-01 .addto-cart-contents,
[dir="rtl"] .header-style-01 .account-list-item {
    right: auto;
    left: 0;
}

.header-style-01 .cart-shopping:hover .addto-cart-contents,
.header-style-01 .login-account:hover .account-list-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-style-01 .account-list-item .list a {
    display: block;
    padding: 10px 12px;
    color: #334155 !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.header-style-01 .account-list-item .list a:hover {
    background: rgba(13, 110, 253, .08);
    color: #0d6efd !important;
}

/* Search dropdown - desktop */
.header-style-01 .search-suggetions-show {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 440px;
    max-width: calc(100vw - 28px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 9999;
}

[dir="rtl"] .header-style-01 .search-suggetions-show {
    right: auto;
    left: 0;
}

.header-style-01 .search-suggestions-icon-wrapper:hover .search-suggetions-show,
.header-style-01 .search-suggetions-show.active,
.header-style-01 .search-suggetions-show.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-style-01 .search-open-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-style-01 .search-open-form .form--control {
    width: 100%;
    height: 50px;
    border: 1px solid #dbe3ef !important;
    border-radius: 14px !important;
    padding: 0 92px 0 16px !important;
    color: #111827;
    background: #ffffff;
    box-shadow: none !important;
}

[dir="rtl"] .header-style-01 .search-open-form .form--control {
    padding: 0 16px 0 92px !important;
}

.header-style-01 .search-open-form button {
    position: absolute;
    right: 48px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #0d6efd;
    color: #ffffff;
}

[dir="rtl"] .header-style-01 .search-open-form button {
    right: auto;
    left: 48px;
}

.header-style-01 .suggetions-icon-close {
    position: absolute;
    right: 6px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

[dir="rtl"] .header-style-01 .suggetions-icon-close {
    right: auto;
    left: 6px;
}

.header-style-01 .search-suggestions {
    display: none;
    margin-top: 14px;
    max-height: 360px;
    overflow: auto;
}

.header-style-01 .search-suggestions.active,
.header-style-01 .search-suggestions.show,
.header-style-01 .search-suggestions:has(li) {
    display: block;
}

.header-style-01 .search-suggestions-title {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}

.header-style-01 .product-suggestion-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Mobile menu */
@media (max-width: 991px) {
    .header-style-01 .navbar-area,
    .header-style-01 .nav-container {
        min-height: 76px;
    }

    .header-style-01 .nav-container {
        gap: 12px;
    }

    .header-style-01 .responsive-mobile-menu {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-style-01 .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
        padding: 12px;
        z-index: 9999;
    }

    .header-style-01 .navbar-collapse:not(.show) {
        display: none !important;
    }

    .header-style-01 .navbar-nav {
        display: block;
        width: 100%;
    }

    .header-style-01 .navbar-nav li a {
        width: 100%;
        justify-content: flex-start;
    }

    .header-style-01 .navbar-right-content {
        margin-left: 0;
    }

    .header-style-01 .search-click-icon,
    .header-style-01 .track-icon-list .single-icon > .icon,
    .header-style-01 .login-account > .accounts {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
        font-size: 21px;
    }

    .header-style-01 .search-suggetions-show {
        position: fixed !important;
        inset: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: rgba(255, 255, 255, .98);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 80px 16px 24px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        z-index: 100000;
        overflow-y: auto;
    }

    .header-style-01 .search-suggestions-icon-wrapper:hover .search-suggetions-show {
        opacity: 0;
        visibility: hidden;
    }

    .header-style-01 .search-suggetions-show.active,
    .header-style-01 .search-suggetions-show.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .header-style-01 .navbar-input.searchbar-suggetions {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }

    .header-style-01 .search-open-form .form--control {
        height: 58px;
        border-radius: 999px !important;
        padding: 0 104px 0 22px !important;
        font-size: 16px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, .12) !important;
    }

    [dir="rtl"] .header-style-01 .search-open-form .form--control {
        padding: 0 22px 0 104px !important;
    }

    .header-style-01 .search-open-form button {
        right: 58px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    [dir="rtl"] .header-style-01 .search-open-form button {
        right: auto;
        left: 58px;
    }

    .header-style-01 .suggetions-icon-close {
        right: 6px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
        font-size: 24px;
    }

    [dir="rtl"] .header-style-01 .suggetions-icon-close {
        right: auto;
        left: 6px;
    }

    .header-style-01 .search-suggestions {
        display: block;
        margin-top: 18px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        padding: 16px;
        max-height: calc(100vh - 180px);
        box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
    }

    .header-style-01 .search-suggestions-title {
        font-size: 16px;
    }

    .header-style-01 .product-suggestion-list:empty::before {
        content: "Start typing to search products";
        display: block;
        color: #64748b;
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (max-width: 575px) {
    .header-style-01 .nav-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-style-01 .logo img {
        max-height: 42px;
    }

    .header-style-01 .site-title {
        font-size: 22px;
    }

    .header-style-01 .single-right-content,
    .header-style-01 .navbar-right-flex,
    .header-style-01 .track-icon-list {
        gap: 6px;
    }

    .header-style-01 .search-click-icon,
    .header-style-01 .track-icon-list .single-icon > .icon,
    .header-style-01 .login-account > .accounts {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
        font-size: 19px;
    }

    .header-style-01 .icon-notification {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
        top: -7px;
        right: -5px;
    }

    .header-style-01 .search-suggetions-show {
        padding-top: 72px;
    }
}
/* FORCE FIX - Mobile search popup */
@media (max-width: 991px) {
    .header-style-01 .search-suggetions-show {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 90px 16px 24px !important;
        margin: 0 !important;
        z-index: 999999 !important;
        overflow-y: auto !important;

        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        display: block !important;
    }

    .header-style-01 .search-suggetions-show.active,
    .header-style-01 .search-suggetions-show.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .header-style-01 .navbar-input.searchbar-suggetions {
        width: 100% !important;
        max-width: 620px !important;
        margin: 0 auto !important;
        background: transparent !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .header-style-01 .search-open-form {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .header-style-01 .search-open-form input,
    .header-style-01 .search-open-form .form--control,
    #search_form_input {
        width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        border: 1px solid #dbe3ef !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #111827 !important;
        font-size: 16px !important;
        padding: 0 104px 0 22px !important;
        box-shadow: 0 16px 40px rgba(15, 23, 42, .12) !important;
        outline: none !important;
    }

    .header-style-01 .search-open-form input::placeholder,
    #search_form_input::placeholder {
        color: #64748b !important;
        opacity: 1 !important;
    }

    .header-style-01 .search-open-form button {
        position: absolute !important;
        top: 50% !important;
        right: 58px !important;
        transform: translateY(-50%) !important;
        width: 44px !important;
        height: 44px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #0d6efd !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
    }

    .header-style-01 .suggetions-icon-close {
        position: absolute !important;
        top: 50% !important;
        right: 6px !important;
        transform: translateY(-50%) !important;
        width: 46px !important;
        height: 46px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        border: 1px solid #dbe3ef !important;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        cursor: pointer !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .10) !important;
        z-index: 4 !important;
    }

    .header-style-01 .search-suggestions {
        display: block !important;
        width: 100% !important;
        margin-top: 18px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        padding: 16px !important;
        min-height: 120px !important;
        max-height: calc(100vh - 190px) !important;
        overflow-y: auto !important;
        box-shadow: 0 18px 50px rgba(15, 23, 42, .10) !important;
    }

    .header-style-01 .search-suggestions-title {
        color: #111827 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        margin-bottom: 10px !important;
    }

    .header-style-01 .product-suggestion-list {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .header-style-01 .product-suggestion-list:empty::before {
        content: "Start typing to search products";
        display: block;
        color: #64748b;
        font-size: 14px;
        padding: 10px 0;
    }

    body.search-popup-open {
        overflow: hidden !important;
    }
}