/**
 * Header Styles - Minimal Clean Design
 * 
 * @package ChildTheme_Clean
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --announcement-bar-height-mobile: 32px;
    --announcement-bar-height-desktop: 45px;
    --announcement-bar-height: var(--announcement-bar-height-mobile);
    --header-height-mobile: 56px;
    --header-height-desktop: 80px;
    --header-height: var(--header-height-mobile);
}

@media (min-width: 1025px) {
    :root {
        --header-height: var(--header-height-desktop);
        --announcement-bar-height: var(--announcement-bar-height-desktop);
    }
}

/* Base header styles - Simple fixed header */
.site-header {
    position: fixed !important;
    top: var(--announcement-bar-height-mobile, 32px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1003 !important;
    background-color: #fff !important;
    color: #000000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Account for WordPress admin bar - header goes below announcement bar which is below admin bar */
.admin-bar .site-header {
    top: calc(var(--announcement-bar-height-mobile, 32px) + 32px) !important;
}

@media (min-width: 783px) {
    .admin-bar .site-header {
        top: calc(var(--announcement-bar-height-mobile, 32px) + 46px) !important;
    }
}

/* Mobile styles - ensure header stays fixed and visible */
@media (max-width: 1024px) {
    .site-header {
        position: fixed !important;
        top: var(--announcement-bar-height-mobile, 32px) !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Override any parent theme classes that might hide header */
    .site-header.hidden,
    .site-header[class*="hide"],
    body.scrolled .site-header,
    body.scrolling .site-header,
    html.scrolled .site-header,
    html.scrolling .site-header {
        position: fixed !important;
        transform: translate3d(0, 0, 0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Account for WordPress admin bar on mobile - header positioned directly below announcement bar */
    .admin-bar .site-header {
        top: calc(var(--announcement-bar-height-mobile, 32px) + 32px) !important;
    }

    /* On larger mobile with admin bar (783px+) */
    @media (min-width: 783px) {
        .admin-bar .site-header {
            top: calc(var(--announcement-bar-height-mobile, 32px) + 46px) !important;
        }
    }

    /* Ensure no spacing elements between announcement bar and header */
    #page>.site-header,
    .site>.site-header,
    .announcement-bar+.site-header,
    .announcement-bar~.site-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    .site-header {
        top: var(--announcement-bar-height-desktop, 45px) !important;
    }

    /* Account for WordPress admin bar on desktop - header positioned directly below announcement bar */
    .admin-bar .site-header {
        top: calc(var(--announcement-bar-height-desktop, 45px) + 46px) !important;
    }
}

/* When announcement bar is hidden, move header to top */
body.announcement-hidden .site-header {
    top: 0 !important;
}

/* When announcement bar is hidden but admin bar is present */
.admin-bar body.announcement-hidden .site-header {
    top: 32px !important;
}

/* Ensure header is always directly below announcement bar (or admin bar + announcement bar) */
.announcement-bar~.site-header {
    margin-top: 0 !important;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
}

/* Desktop: Center branding properly */
@media (min-width: 1025px) {
    .header-container {
        justify-content: center;
    }

    .header-categories {
        position: absolute;
        left: 1.5rem;
    }

    .header-actions {
        position: absolute;
        right: 1.5rem;
    }
}

/* Hamburger Menu Button (Mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #000000;
    margin: 0;
    flex-shrink: 0;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    height: 16px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #000000;
}

/* Hamburger icon stays the same - no transformation when drawer is open */

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #000000;
    margin: 0;
    flex-shrink: 0;
}

.mobile-search-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* Header Categories - Legacy support (kept for backward compatibility) */
.header-categories {
    display: none;
}

@media (min-width: 1025px) {
    .header-categories {
        display: flex;
    }
}

/* New header menu categories are styled in menu.css */

/* Site Branding (Logo) - Centered */
.site-branding {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.site-branding .custom-logo-link {
    display: block;
    text-decoration: none;
    color: #000000;
}

.site-branding .custom-logo-link:hover,
.site-branding .custom-logo-link:focus,
.site-branding .custom-logo-link:active {
    color: #000000;
    text-decoration: none;
    opacity: 1;
}

.site-branding .custom-logo {
    max-height: 28px;
    width: auto;
    display: block;
    filter: none;
    opacity: 1;
}

.site-branding .custom-logo:hover {
    opacity: 1;
    filter: none;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #000000 !important;
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1.3;
}

.site-title a,
.site-title a:link,
.site-title a:visited {
    color: #000000 !important;
    text-decoration: none;
}

.site-title a:hover,
.site-title a:focus,
.site-title a:active {
    color: #000000 !important;
    text-decoration: none;
    opacity: 1;
}

/* Main Navigation - Hidden */
.main-navigation {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px)) !important;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px)) !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none !important;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto !important;
    visibility: visible;
}

/* Mobile Navigation - Full Screen Sidebar */
.mobile-navigation {
    position: fixed;
    top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px)) !important;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px)) !important;
    background-color: #fff;
    z-index: 1002 !important;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 0;
    visibility: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.mobile-navigation.active {
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Category Items */
.mobile-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0 !important;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.mobile-category-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-category-link {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    gap: 1rem;
    width: 100%;
}

.mobile-category-link:hover,
.mobile-category-link:focus,
.mobile-category-link:active {
    color: #000000;
    text-decoration: none;
    background-color: transparent;
}

/* Category Thumbnail */
.category-thumbnail {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-thumbnail-placeholder {
    background-color: #f5f5f5;
}

/* Category Name */
.category-name {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #000000;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.01em;
}

/* Category Arrow - Circular button style */
.category-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #000000;
}

.category-arrow svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Featured Product Banner */
.mobile-menu-featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mobile-menu-featured-link:hover,
.mobile-menu-featured-link:focus {
    text-decoration: none;
    color: inherit;
}

.mobile-menu-featured {
    background-color: #8B3A3A;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mobile-menu-featured-link:hover .mobile-menu-featured,
.mobile-menu-featured-link:focus .mobile-menu-featured {
    opacity: 0.9;
}

.mobile-menu-featured-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.mobile-menu-featured-text {
    flex: 1;
    color: #fff;
}

.mobile-menu-featured-badge {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.mobile-menu-featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.mobile-menu-featured-image {
    flex-shrink: 0;
    position: relative;
    width: 120px;
    height: 120px;
}

.mobile-menu-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.mobile-menu-featured-arrow {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #000000;
    pointer-events: none;
}

.mobile-menu-featured-arrow svg {
    width: 20px;
    height: 20px;
}


/* Additional Mobile Menu Items */
.mobile-additional-menu {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}

/* Featured Product Banner */
.mobile-menu-featured {
    flex-shrink: 0;
}

/* My Account and Wishlist Links */
.mobile-menu-account-wishlist {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
    flex-shrink: 0;
    background-color: #fff;
}

.mobile-menu-account-link,
.mobile-menu-wishlist-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-menu-account-link:hover,
.mobile-menu-account-link:focus,
.mobile-menu-wishlist-link:hover,
.mobile-menu-wishlist-link:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
    text-decoration: none;
}

.mobile-menu-account-link svg,
.mobile-menu-wishlist-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.mobile-additional-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-additional-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.01em;
}

.mobile-additional-menu a:hover,
.mobile-additional-menu a:focus,
.mobile-additional-menu a:active {
    color: #000000;
    text-decoration: none;
    background-color: transparent;
}

/* Removed duplicate styles - using drawer styles above */

/* Header Actions - Right Side */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1003;
}

/* Search Form - Desktop Hidden */
.header-search {
    position: relative;
}

.desktop-search {
    display: none;
}

.mobile-search {
    display: none;
}

/* Mobile Search Overlay - Replaces entire header content */
@media (max-width: 1024px) {
    .site-header.search-active .header-container {
        padding: 0.5rem 1.25rem;
    }

    /* Hide all header content when search is active */
    .site-header.search-active .mobile-menu-toggle,
    .site-header.search-active .mobile-search-toggle,
    .site-header.search-active .header-menu-categories,
    .site-header.search-active .site-branding,
    .site-header.search-active .header-actions>*:not(.mobile-search) {
        display: none !important;
    }

    /* Show mobile search when header has search-active class */
    .site-header.search-active .mobile-search {
        display: block;
        width: 100%;
        flex: 1;
    }

    /* Full-width search form in header */
    .site-header.search-active .mobile-search .search-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0;
    }

    .site-header.search-active .mobile-search .search-field {
        flex: 1;
        min-width: 0;
        margin: 0;
    }

    .site-header.search-active .mobile-search .search-submit {
        flex-shrink: 0;
    }
}

/* Search close button */
.search-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.search-close:hover,
.search-close:focus {
    color: #000000;
}

.search-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* Header Search Form - Override layout.css styles */
.header-search .search-form,
.header-actions .search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
}

/* Mobile search form when active - full width in header */
@media (max-width: 1024px) {
    .site-header.search-active .mobile-search .search-form {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

.header-search .search-form:focus-within,
.header-actions .search-form:focus-within {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.header-search .search-form .search-field,
.header-actions .search-form .search-field,
.header-search .search-field,
.header-actions .search-field {
    padding: 0.625rem 1rem !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.875rem;
    width: 100%;
    min-width: 200px;
    outline: none;
    background: #fff !important;
    color: #000000 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header-search .search-form .search-field::placeholder,
.header-actions .search-form .search-field::placeholder,
.header-search .search-field::placeholder,
.header-actions .search-field::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

.header-search .search-form .search-field:focus,
.header-actions .search-form .search-field:focus,
.header-search .search-field:focus,
.header-actions .search-field:focus {
    outline: none !important;
    border: none !important;
    border-color: transparent !important;
}

.header-search .search-form .search-submit,
.header-actions .search-form .search-submit,
.header-search .search-submit,
.header-actions .search-submit {
    background: #fff !important;
    border: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0.625rem 1rem !important;
    cursor: pointer;
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    border-radius: 0 !important;
}

.header-search .search-form .search-submit:hover,
.header-actions .search-form .search-submit:hover,
.header-search .search-form .search-submit:focus,
.header-actions .search-form .search-submit:focus,
.header-search .search-submit:hover,
.header-actions .search-submit:hover,
.header-search .search-submit:focus,
.header-actions .search-submit:focus {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: #000000 !important;
}

.header-search .search-form .search-submit:active,
.header-actions .search-form .search-submit:active,
.header-search .search-submit:active,
.header-actions .search-submit:active {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #000000 !important;
}

.header-search .search-form .search-submit svg,
.header-actions .search-form .search-submit svg,
.header-search .search-submit svg,
.header-actions .search-submit svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

/* Header Icons */
.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.header-icon:hover,
.header-icon:focus,
.header-icon:active {
    color: #000000;
    text-decoration: none;
    opacity: 1;
}

.header-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    pointer-events: none;
}

/* Ensure cart icon is clickable */
.header-icon.cart-icon,
button.cart-icon,
#cart-drawer-trigger {
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto !important;
    z-index: 1003 !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Cart Badge */
.cart-count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #000000;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 500;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .header-container {
        justify-content: flex-start;
        position: relative;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: none;
    }

    .header-categories {
        position: absolute;
        left: 1.5rem;
        display: flex;
        flex: 0 0 auto;
    }

    .header-menu-categories {
        position: relative;
        left: 0;
        flex: 0 0 auto;
        overflow: visible;
        margin-right: 2rem;
    }

    .header-actions {
        position: absolute;
        right: 1.5rem;
        flex: 0 0 auto;
    }

    .site-branding {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        pointer-events: none;
    }

    .site-branding * {
        pointer-events: auto;
    }

    .desktop-search {
        display: block;
    }
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .site-header {
        border-bottom: none;
        box-shadow: none;
    }

    .header-container {
        padding: 0.75rem 1rem;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        height: 56px;
        min-height: 56px;
        position: relative;
    }

    /* Left side: hamburger + search grouped together */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        margin: 0;
        margin-right: 0.25rem;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        order: 1;
    }

    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        margin: 0;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        order: 2;
    }

    .wishlist-icon {
        display: none;
    }

    .desktop-search {
        display: none;
    }

    /* Center: Logo */
    .site-branding {
        flex: 1;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        margin: 0;
        order: 3;
    }

    /* Right side: account + cart */
    .header-actions {
        gap: 0.5rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        order: 4;
        margin-left: auto;
    }

    /* Hide desktop menu categories on mobile */
    .header-menu-categories {
        display: none !important;
        visibility: hidden !important;
    }

    .header-categories {
        display: none !important;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
    .mobile-navigation {
        display: none !important;
        visibility: hidden !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Ensure mobile menu only shows in drawer on mobile */
@media (max-width: 1024px) {
    .mobile-menu-overlay {
        top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px)) !important;
        height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px)) !important;
        z-index: 1001 !important;
    }

    .mobile-navigation {
        position: fixed;
        top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px)) !important;
        left: 0;
        width: 85%;
        max-width: 400px;
        height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px)) !important;
        background-color: #fff;
        z-index: 1002 !important;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 0 !important;
        visibility: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-navigation.active {
        visibility: visible;
        transform: translateX(0);
    }

    /* Account for admin bar */
    .admin-bar .mobile-menu-overlay {
        top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px) + 32px) !important;
        height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px) - 32px) !important;
    }

    .admin-bar .mobile-navigation {
        top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px) + 32px) !important;
        height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px) - 32px) !important;
    }

    @media (min-width: 783px) {
        .admin-bar .mobile-menu-overlay {
            top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px) + 46px) !important;
            height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px) - 46px) !important;
        }

        .admin-bar .mobile-navigation {
            top: calc(var(--announcement-bar-height-mobile, 32px) + var(--header-height-mobile, 56px) + 46px) !important;
            height: calc(100vh - var(--announcement-bar-height-mobile, 32px) - var(--header-height-mobile, 56px) - 46px) !important;
        }
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
        height: 56px;
        min-height: 56px;
        gap: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        padding: 0.5rem;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle {
        margin-right: 0.25rem;
    }

    .hamburger-icon {
        width: 20px;
        height: 16px;
    }

    .mobile-search-toggle svg {
        width: 20px;
        height: 20px;
    }

    .site-branding {
        flex: 1;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        margin: 0;
    }

    .site-branding .custom-logo {
        max-height: 24px;
    }

    .site-title {
        font-size: 1.125rem;
        font-family: 'Playfair Display', 'Georgia', serif;
        margin: 0;
        line-height: 1;
    }

    .header-actions {
        gap: 0.5rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .header-icon {
        padding: 0.5rem;
        position: relative;
        z-index: 1003 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    /* Ensure cart icon is clickable on mobile */
    .header-icon.cart-icon,
    .cart-icon {
        z-index: 1003 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        cursor: pointer;
        position: relative;
    }

    .header-icon svg {
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

    .cart-count-badge {
        width: 14px;
        height: 14px;
        font-size: 0.5625rem;
        top: 2px;
        right: 2px;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 0.875rem;
        height: 56px;
        min-height: 56px;
        gap: 0;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        padding: 0.5rem;
    }

    .site-branding .custom-logo {
        max-height: 22px;
    }

    .site-title {
        font-size: 1rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-icon {
        padding: 0.5rem;
    }

    .header-icon svg {
        width: 20px;
        height: 20px;
    }
}