/* ===============================
   Reduce overall header height
================================ */

.header-middle,
.navigation-megamenu-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}


/* ===============================
   Logo column - Desktop
================================ */

.logo-header {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    text-align: center !important;
}


/* ===============================
   Online Battery Wala Logo - Desktop
================================ */

.navigation-megamenu-wrapper .custom-header-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 110px !important;
    padding: 10px 0 !important;
}

.navigation-megamenu-wrapper .custom-header-logo img {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
}


/* ===============================
   Tablet
================================ */

@media (max-width: 1024px) {

    .logo-header {
        flex: 0 0 32% !important;
        max-width: 32% !important;
    }

    .navigation-megamenu-wrapper .custom-header-logo {
        min-height: 95px !important;
    }

    .navigation-megamenu-wrapper .custom-header-logo img {
        width: 160px !important;
        max-width: 160px !important;
        height: auto !important;
    }
}


/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {

    /* Header wrapper */
    .header-middle,
    .navigation-megamenu-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Keep custom logo visible */
    .navigation-megamenu-wrapper,
    .custom-header-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Stack header content */
    .header-middle .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Main logo */
    .logo-header {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Space below main logo */
    .logo-header .logo {
        margin-bottom: 10px !important;
    }

    /* Main logo size */
    .logo-header img {
        width: 140px !important;
        max-width: 140px !important;
        height: auto !important;
    }

    /* Online Battery Wala logo */
    .navigation-megamenu-wrapper .custom-header-logo {
        width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        margin: 5px 0 !important;
        text-align: center !important;
    }

    .navigation-megamenu-wrapper .custom-header-logo img {
        width: 150px !important;
        max-width: 150px !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Menu */
    .main-megamenu {
        width: 100% !important;
        text-align: center !important;
    }

    /* Hide menu message */
    .navigation-megamenu-wrapper .note-msg {
        display: none !important;
    }

    /* Login / cart */
    .header-middle-right {
        width: 100% !important;
        text-align: center !important;
        margin-top: 5px !important;
    }

    .user-info {
        display: block !important;
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    /* Header spacing */
    .header-middle {
        padding: 10px 0 !important;
    }
}


/* ===============================
   Remove select arrow spacing
================================ */

select::-ms-expand {
    display: none;
}
