/*
 * Heikaya v6.20.0 — PHONE-ONLY header redesign.
 *
 * IMPORTANT:
 * All layout changes below are restricted to max-width: 767px.
 * Desktop and tablet header layouts remain untouched.
 */

/* The extra account link exists only for the phone dropdown. */
.heikaya-mobile-account-menu {
    display: none !important;
}

@media (max-width: 767px) {

    /* ==========================================================
       PHONE ANNOUNCEMENT STRIPE — larger, easier to read
       ========================================================== */
    body .lumiere-news-stripe {
        height: 54px !important;
        min-height: 54px !important;
        gap: 7px !important;
    }

    body .lumiere-news-stripe__viewport,
    body .lumiere-news-stripe__track,
    body .lumiere-news-stripe__item {
        height: 54px !important;
        min-height: 54px !important;
    }

    body .lumiere-news-stripe__item {
        padding: 5px 7px !important;
    }

    body .lumiere-news-stripe__item a,
    body .lumiere-news-stripe__item span {
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        letter-spacing: .085em !important;
    }

    body .lumiere-news-stripe__arrow {
        width: 20px !important;
        min-width: 20px !important;
        height: 34px !important;
    }

    /* ==========================================================
       PHONE HEADER BAR
       Left: burger
       Center: larger logo
       Right: search + wishlist + cart
       ========================================================== */
    #lumiere-site-header .lumiere-header__inner {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: calc(100% - 24px) !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* Perfect visual center, independent of different left/right widths. */
    #lumiere-site-header .lumiere-header__brand {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        z-index: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: auto !important;
    }

    #lumiere-site-header .lumiere-header__brand .custom-logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    #lumiere-site-header .lumiere-header__brand .custom-logo {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 126px !important;
        max-height: 64px !important;
        object-fit: contain !important;
    }

    #lumiere-site-header .lumiere-header__site-name {
        font-size: 28px !important;
        text-align: center !important;
    }

    /* Right-side actions contain only search, wishlist and cart on phones. */
    #lumiere-site-header .lumiere-header__actions {
        position: static !important;
        z-index: 4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        width: auto !important;
        height: 80px !important;
        min-height: 80px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #lumiere-site-header .lumiere-header__account {
        display: none !important;
    }

    #lumiere-site-header .lumiere-search-toggle,
    #lumiere-site-header .lumiere-header__wishlist,
    #lumiere-site-header .lumiere-header__cart {
        position: relative !important;
        display: grid !important;
        place-items: center !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-color: rgba(21,18,15,.17) !important;
        background: #fffdf9 !important;
        color: #15120f !important;
        box-shadow: none !important;
    }

    #lumiere-site-header .lumiere-search-toggle svg,
    #lumiere-site-header .lumiere-header__wishlist svg,
    #lumiere-site-header .lumiere-header__cart svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Burger lives independently on the left edge. */
    #lumiere-site-header .lumiere-mobile-toggle {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        z-index: 5 !important;
        display: grid !important;
        place-items: center !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-color: rgba(21,18,15,.17) !important;
        background: #fffdf9 !important;
        color: #15120f !important;
        box-shadow: none !important;
        transform: translateY(-50%) !important;
    }

    #lumiere-site-header .lumiere-mobile-toggle:hover,
    #lumiere-site-header .lumiere-mobile-toggle:focus,
    #lumiere-site-header .lumiere-mobile-toggle:active {
        background: #fffdf9 !important;
        color: #15120f !important;
        transform: translateY(-50%) !important;
    }

    #lumiere-site-header .lumiere-mobile-toggle span {
        width: 18px !important;
        height: 1.5px !important;
    }

    /* Keep counter bubbles compact around the smaller right-side icons. */
    #lumiere-site-header .lumiere-cart-count,
    #lumiere-site-header .lumiere-wishlist-count {
        top: -5px !important;
        right: -5px !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        font-size: 7.5px !important;
    }

    /* ==========================================================
       PHONE DROPDOWN
       ========================================================== */
    #lumiere-site-header .lumiere-primary-nav {
        top: 100% !important;
        right: -12px !important;
        left: -12px !important;
        max-height: calc(100svh - 80px) !important;
        padding: 12px 16px max(20px, env(safe-area-inset-bottom)) !important;
    }

    /* Profile/account becomes the final item in the burger dropdown. */
    #lumiere-site-header .heikaya-mobile-account-menu {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        min-height: 54px !important;
        margin: 14px 0 0 !important;
        padding: 14px 2px 2px !important;
        border-top: 1px solid rgba(21,18,15,.14) !important;
        color: #15120f !important;
        font-family: Montserrat, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: .08em !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
    }

    #lumiere-site-header .heikaya-mobile-account-menu svg {
        flex: 0 0 auto !important;
        width: 22px !important;
        height: 22px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.7 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    /* Very narrow phones: protect the true centered logo from right actions. */
    @media (max-width: 380px) {
        #lumiere-site-header .lumiere-header__brand .custom-logo {
            max-width: 114px !important;
            max-height: 60px !important;
        }

        #lumiere-site-header .lumiere-search-toggle,
        #lumiere-site-header .lumiere-header__wishlist,
        #lumiere-site-header .lumiere-header__cart {
            width: 31px !important;
            min-width: 31px !important;
            height: 31px !important;
            min-height: 31px !important;
        }

        #lumiere-site-header .lumiere-header__actions {
            gap: 2px !important;
        }
    }
}
