/* MEDICAR NOW - MOBILE HEADER */
/* Homepage only. Desktop remains unchanged. */

@media (min-width: 861px) {
    .home-page .mobile-header-actions {
        display: none !important;
    }
}

@media (max-width: 860px) {

    .home-page .site-header {
        overflow: visible !important;
    }

    .home-page .site-header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        padding: 12px 14px !important;
    }

    .home-page .site-logo {
        display: flex !important;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .home-page .site-logo img {
        width: 42px !important;
        height: 42px !important;
        flex-shrink: 0;
        object-fit: contain;
    }

    .home-page .brand-text {
        min-width: 0;
    }

    .home-page .brand-text b {
        font-size: 15px !important;
    }

    .home-page .brand-text small,
    .home-page .brand-text em {
        font-size: 9px !important;
    }

    /* Cart and menu buttons */

    .home-page .mobile-header-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        gap: 8px;
        margin-left: auto;
    }

    .home-page .mobile-cart-link,
    .home-page .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 42px;
        height: 42px;
        padding: 0;
        color: #fff;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 11px;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
    }

    .home-page .mobile-cart-link svg,
    .home-page .mobile-menu-toggle svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .home-page .mobile-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 19px;
        height: 19px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ed151c;
        color: white;
        border-radius: 20px;
        font-size: 10px;
        font-weight: 800;
    }

    /* Collapsible navigation */

    .home-page .site-nav {
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 0 !important;
        padding: 12px 0 0 !important;
        gap: 7px !important;
        overflow: visible !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .home-page .site-nav.is-open {
        display: flex !important;
    }

    .home-page .site-nav>a,
    .home-page .site-nav>button {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        width: 100% !important;
        min-height: 43px;
        padding: 11px 14px !important;
        box-sizing: border-box;
        font-size: 13px !important;
        text-align: left;
        white-space: normal !important;
        border-radius: 10px;
    }

    .home-page .site-nav .cart-link {
        display: none !important;
    }

    .home-page #language-btn {
        justify-content: center !important;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .home-page .site-header-inner {
        padding: 10px !important;
    }

    .home-page .site-logo img {
        width: 36px !important;
        height: 36px !important;
    }

    .home-page .brand-text b {
        font-size: 13px !important;
    }

    .home-page .brand-text small,
    .home-page .brand-text em {
        font-size: 8px !important;
    }

    .home-page .mobile-header-actions {
        gap: 5px;
    }

    .home-page .mobile-cart-link,
    .home-page .mobile-menu-toggle {
        width: 37px;
        height: 37px;
    }
}