/* ========================================
   HEADER
======================================== */

.site-header {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
transition: box-shadow 0.3s ease, background 0.3s ease;}

/* Push sticky header below WP admin bar
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
} */

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.header-container {
    width: min(1200px, 92%);
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-width: 0;
    box-sizing: border-box;
}
/* ========================================
   BRANDING
======================================== */

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    padding: 6px 0;
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
}

.site-logo img,
.site-logo .logo-img,
.site-logo .custom-logo {
    width: 125px;
    height: 58px;
    max-width: 180px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(2.1);
    transition: opacity 0.2s ease;
}

.site-logo:hover img,
.site-logo:hover .logo-img {
    opacity: 0.85;
}

/* ========================================
   NAVIGATION
======================================== */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 34px;

    margin-left: auto;
}

.main-navigation a {
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #124b8f;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.main-navigation a:hover {
    color: #124b8f;
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
    width: 100%;
}

.main-navigation a.current-menu-item {
    color: #124b8f;
    font-weight: 600;
}


/* ========================================
   HEADER ACTIONS
======================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Cart */

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    background: #f1f5f9;

    border-radius: 12px;

    color: #111827;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.cart-button:hover {
    background: #e2e8f0;
}

.cart-count {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #124b8f;
    color: #ffffff;

    border-radius: 50%;

    font-size: 12px;
}


/* Login */

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    background: #124b8f;
    color: #ffffff;

    border-radius: 12px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.login-button:hover {
    background: #0d3e78;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(18, 75, 143, 0.35);
}


/* ========================================
   HAMBURGER BUTTON
======================================== */

.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 40px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: all 0.25s ease;
}


/* ========================================
   MOBILE DRAWER
======================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, calc(100vw - 20px));
    height: 100dvh;
    background: #ffffff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

body.admin-bar .mobile-drawer {
    top: 32px;
    height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .mobile-drawer {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}

/* Drawer-specific logo styling: remove global scale(2.1) transform */
.mobile-drawer .site-logo {
    flex-shrink: 0;
    max-width: 100%;
}

.mobile-drawer .site-logo img,
.mobile-drawer .site-logo .logo-img,
.mobile-drawer .site-logo .custom-logo {
    width: 120px;
    height: 40px;
    max-width: 120px;
    transform: none;
    border-radius: 6px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.drawer-close:hover {
    background: #e2e8f0;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 12px;
    flex: 1;
    overflow-y: auto;
}

.drawer-nav a {
    display: block;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.drawer-nav a:hover {
    background: #eff6ff;
    color: #124b8f;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}

.drawer-actions .cart-button,
.drawer-actions .login-button {
    width: 100%;
    justify-content: center;
}


/* Backdrop */

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* Lock body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {

    .main-navigation,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

   .header-container {
    min-height: 60px;
    gap: 0;
    padding: 0 16px;
    width: 100%;
}

    .site-logo img,
    .site-logo .logo-img,
    .site-logo .custom-logo {
        height: 42px;
        max-width: 155px;
    }

    /* Ensure drawer logo doesn't inherit header scale on mobile */
    .mobile-drawer .site-logo img,
    .mobile-drawer .site-logo .logo-img,
    .mobile-drawer .site-logo .custom-logo {
        width: 110px;
        height: 36px;
        max-width: 110px;
    }

    /* .site-header {
        position: sticky;
        top: 0;
    }

    .admin-bar .site-header {
        top: 46px;
    } */

} /* End responsive header */
