/**
 * Bahga Store — responsive header / navbar
 */

#site-header-inner .wrap-box {
    position: relative;
    min-height: 57px;
}

#logo_header,
#mobile-logo_header,
.inner-canvas-nav .main-logo img {
    display: block;
    max-height: 42px;
    width: auto;
    max-width: min(180px, 42vw);
    object-fit: contain;
}

#site-header-inner .flat-wallet {
    gap: 12px;
    flex-wrap: nowrap;
}

#wallet-header {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

#wallet-header .tf-button.style-1 {
    width: auto;
    min-width: 0;
    padding: 0 16px;
    font-size: 14px;
}

.header-cart-btn {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    white-space: nowrap;
}

.mobile-nav-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-actions .tf-button {
    width: 100%;
    justify-content: center;
}

.mobile-button.active span {
    opacity: 0;
}

.mobile-button.active::before,
.mobile-button.active::after {
    top: 50%;
}

.mobile-button.active::before {
    transform: translate3d(0, 0, 0) rotate(45deg);
}

.mobile-button.active::after {
    transform: translate3d(0, 0, 0) rotate(-45deg);
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .header_1 #main-nav {
        left: 17%;
    }

    #main-nav > ul > li {
        padding: 16px 10px 18px;
    }

    .flat-wallet {
        gap: 10px;
    }

    #wallet-header .tf-button.style-1 {
        padding: 0 12px;
        font-size: 13px;
    }

    .header-cart-btn {
        padding: 0 12px !important;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .pt-40 {
        padding-top: 88px !important;
    }

    .header_1,
    .header_1.is-fixed.is-small {
        height: auto;
        min-height: 68px;
    }

    #site-logo {
        height: 68px;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 120px);
    }

    #site-header-inner .wrap-box {
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
    }

    #logo_header {
        max-height: 36px;
        max-width: 150px;
    }

    .flat-wallet {
        position: absolute;
        right: 52px;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0;
        padding: 0;
        gap: 10px;
    }

    .mobile-button {
        z-index: 2;
    }

    .mobile-nav-actions {
        display: flex;
    }

    #wallet-header {
        display: none !important;
    }

    .inner-mobile-nav .main-logo img {
        max-height: 36px;
    }
}

@media (max-width: 767px) {
    .flat-wallet {
        right: 48px;
        gap: 8px;
    }

    .header-cart-btn .cart-word {
        display: none;
    }

    .header-search .show-search {
        font-size: 18px;
        line-height: 44px;
        width: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #site-logo {
        max-width: calc(100% - 100px);
    }

    #logo_header {
        max-height: 32px;
        max-width: 120px;
    }

    .flat-wallet {
        right: 44px;
        gap: 6px;
    }

    .header-search {
        display: none;
    }

    .header-cart-btn {
        padding: 0 10px !important;
        min-width: 44px !important;
        height: 44px !important;
    }

    .mobile-nav-wrap .inner-mobile-nav {
        width: min(320px, 88vw);
    }
}

@media (max-width: 360px) {
    .header-cart-btn span {
        font-size: 12px;
    }
}
