/* header_allPujas — ported from WP's css/homepage/desktop-header-new.css, desktop only (>=992px). */

.header_allPujas .main_header { display: none; }

/* shared popover — nav is already position:fixed at both breakpoints (see below), so it anchors here regardless */
.header_allPujas .header-location-popover {
    display: none;
    position: absolute;
    top: 100%;
    background: var(--np-white);
    border: 1px solid #f0e8df;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 9999;
}
.header_allPujas .header-location-popover.is-open { display: block; }
.header_allPujas .header-location-input {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: var(--np-radius-pill);
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}

/* Mobile top bar (<992px): shrink the logo + cart button, matching WP's smaller mobile header. */
@media (max-width: 991px) {
    .header_allPujas {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999999;
        background-color: #fff;
    }
    /* Fixed takes it out of flow — compensate so page content doesn't render underneath it. */
    body { padding-top: 64px; }
    .header_allPujas .main_logo {
        height: 38px !important;
        width: auto !important;
    }
    .header_allPujas .applogo-menubtn .header-cart {
        width: 40px !important;
        height: 36px !important;
        font-size: 16px;
    }
    .header_allPujas .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        padding-left: 12px;
        padding-right: 12px;
    }
    .header_allPujas .headerLogo {
        margin-right: 0;
        padding: 0;
        flex-shrink: 0;
    }
    .header_allPujas .mobile_loction {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 10px;
        flex-shrink: 1;
        min-width: 0;
    }
    .header_allPujas .applogo-menubtn {
        margin-left: 0;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .header_allPujas .applogo-menubtn .cart-icon,
    .header_allPujas .applogo-menubtn .mobile_cart {
        margin-right: 0 !important;
    }
    .header_allPujas .mobile-locationnnn {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: var(--np-text-dark);
        font-weight: 600;
        cursor: pointer;
        margin: 0;
        max-width: 140px;
    }
    .header_allPujas .mobile-locationnnn .epuja-location-label {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header_allPujas .mobile-locationnnn .material-symbols-outlined { font-size: 16px; }
    .header_allPujas .header-location-popover { left: 10px; right: 10px; width: auto; }
}

@media (min-width: 992px) {
    .header_allPujas {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999999;
        background-color: #fff;
    }
    /* style.css's plain .header rule adds box-shadow:0 0 9px #b7b7b7 — cancel it
       only where .header and .header_allPujas co-occur (this nav), without
       touching .header on its own anywhere else it might be used. */
    .header.header_allPujas { box-shadow: none; }
    /* Fixed (not sticky) takes the header out of flow entirely, so the page
       needs matching top padding or content renders underneath it. */
    body { padding-top: 84px; }
    .header_allPujas .container-fluid {
        padding-right: 5rem;
        padding-left: 5rem;
        width: 100%;
        flex: 1 1 auto;
        box-shadow: 4px 4px 4px 0 #00000021;
    }
    .header_allPujas .applogo-menubtn { display: none; }
    .header_allPujas .mobile_loction { display: none; }
    .header_allPujas .main_header {
        width: 100%;
        align-items: center;
        background-color: var(--np-white);
        padding: 12px 0;
        justify-content: space-between;
        display: flex;
        gap: 12px;
    }
    .header_allPujas .headerLogo img { max-height: 45px !important; width: auto !important; }

    .header_allPujas .header-menu-items {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
        gap: 1.25rem;
    }
    .header_allPujas .menu-item { display: flex; align-items: center; }

    .header_allPujas .header-theme-link,
    .header_allPujas .header-nav-link {
        display: inline-flex;
        align-items: center;
        color: var(--np-text-dark) !important;
        font-size: 14.64px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
    }
    .header_allPujas .header-theme-link:hover,
    .header_allPujas .header-nav-link:hover { color: #d65a0c !important; }
    .header_allPujas .header-theme-link .material-symbols-outlined { font-size: 18px; vertical-align: middle; }

    .header_allPujas .header-dropdown-wrap { position: relative; }
    .header_allPujas .header-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        min-width: 160px;
        z-index: 9999;
        overflow: hidden;
        border: 1px solid #f0e8df;
    }
    .header_allPujas .header-dropdown-wrap:hover .header-dropdown-menu { display: block; }
    .header_allPujas .header-dropdown-item {
        display: block;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 500;
        color: #292321 !important;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .header_allPujas .header-dropdown-item:hover { background: #fff5ee; color: #F37420 !important; }
    .header_allPujas .header-dropdown-item + .header-dropdown-item { border-top: 1px solid #f5ede6; }

    /* .navbar .header-cart span (style.css) styles ANY span as the red count-badge circle —
       reset that for the icon span specifically, since it's a span too now (was an <i> before). */
    .header_allPujas .header-cart .material-symbols-outlined {
        position: static;
        width: auto;
        height: auto;
        line-height: inherit;
        background: none;
        border-radius: 0;
        font-size: inherit;
        color: inherit;
    }

    /* Desktop cart icon — circular, matches the hamburger button rather than the mobile orange box. */
    .header_allPujas .header-cart {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        line-height: 1 !important;
        border-radius: 50% !important;
        background: var(--np-cream, #FFF8F0) !important;
        color: var(--np-text-dark, #3E2723) !important;
        font-size: 20px !important;
        text-decoration: none !important;
        transition: background 0.2s, color 0.2s !important;
    }
    .header_allPujas .header-cart:hover {
        background: var(--np-saffron-bg, #FFF1E6) !important;
        color: var(--np-saffron-dark, #E05515) !important;
    }
    .header_allPujas .header-cart span:not(.material-symbols-outlined) {
        position: absolute !important;
        top: -2px !important;
        right: -2px !important;
        width: 18px !important;
        height: 18px !important;
        line-height: 18px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        background-color: #ef332e !important;
        color: #fff !important;
        border-radius: 50% !important;
        text-align: center !important;
    }

    .header_allPujas .language_loction { flex-shrink: 0; }
    .header_allPujas .main_header_ul { display: flex; align-items: center; gap: 16px; }
    .header_allPujas .header-hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--np-cream);
        color: var(--np-text-dark);
        border: none;
        cursor: pointer;
        font-size: 16px;
    }
    .header_allPujas .header-hamburger-btn:hover { background: var(--np-saffron-bg); color: var(--np-saffron-dark); }
    .header_allPujas .header-hamburger-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

    .header_allPujas .header-location-wrap { position: relative; }
    .header_allPujas .header-location-link {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        white-space: nowrap;
    }
    .header_allPujas .header-location-link .material-symbols-outlined { font-size: 18px; }
    .header_allPujas .header-location-popover { right: 20px; width: 280px; }

    /* ═══════════════════════════════════════════════
       HEADER BUTTONS (Login & Book a Pandit)
       Matches WordPress desktop header buttons 1:1
       ═══════════════════════════════════════════════ */
    .header_allPujas .np-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        cursor: pointer !important;
        font-family: var(--np-font, 'Noto Sans', sans-serif) !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border: none !important;
        outline: none !important;
        white-space: nowrap !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.20s ease, color 0.20s ease, border-color 0.20s ease !important;
        vertical-align: middle !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        font-size: 13px !important;
        padding: 8px 16px !important;
        min-height: 36px !important;
        border-radius: 999px !important;
    }

    .header_allPujas .np-btn--filled.np-btn--saffron,
    .header_allPujas .btn-book-pandit,
    .header_allPujas .btn-login {
        background: var(--np-saffron, #F37420) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(243, 116, 32, 0.28) !important;
    }

    .header_allPujas .np-btn--filled.np-btn--saffron:hover,
    .header_allPujas .btn-book-pandit:hover,
    .header_allPujas .btn-login:hover {
        background: var(--np-saffron-dark, #e05515) !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 20px rgba(243, 116, 32, 0.38) !important;
    }

    .header_allPujas .np-btn--filled.np-btn--saffron:active,
    .header_allPujas .btn-book-pandit:active,
    .header_allPujas .btn-login:active {
        transform: scale(0.97) translateY(0) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    }

    .header_allPujas .np-btn .np-btn__label {
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    .header_allPujas .np-btn .np-btn__icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 20px !important;
        height: 20px !important;
        font-size: 15px !important;
        color: #ffffff !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
    }

    .header_allPujas .np-btn .np-btn__icon .material-symbols-outlined {
        font-size: 15px !important;
        color: #ffffff !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }

    .header_allPujas .np-btn .np-btn__icon--bubble {
        background: rgba(255, 255, 255, 0.25) !important;
        border-radius: 50% !important;
        width: 20px !important;
        height: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header_allPujas .header-hamburger-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: var(--np-cream, #FFF8F0) !important;
        color: var(--np-text-dark, #3E2723) !important;
        border: none !important;
        cursor: pointer !important;
        font-size: 20px !important;
        transition: background 0.2s, color 0.2s !important;
    }

    .header_allPujas .header-hamburger-btn:hover {
        background: var(--np-saffron-bg, #FFF1E6) !important;
        color: var(--np-saffron-dark, #E05515) !important;
    }

    .header_allPujas .header-hamburger-btn .material-symbols-outlined {
        font-size: 20px !important;
        line-height: 1 !important;
    }
}
