/* =============================
   Goldstar Base Header Styles
   Used across all page types (main-store, product-pages)
   ============================= */

.goldstar-custom-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    height: 70px;
    line-height: 70px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e5e5;
}

/* Adjust sticky header position when WordPress admin bar is visible */
body.admin-bar .goldstar-custom-header {
    top: 32px;
}

.goldstar-custom-header .ast-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 782px) {
    body.admin-bar .goldstar-custom-header {
        top: 46px;
    }
}

.goldstar-header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
}

.goldstar-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.goldstar-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

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

.goldstar-contact-us-btn {
    display: inline-block;
    background-color: #0052CC;
    color: #ffffff !important;
    padding: 0 0.9rem !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 3px;
    height: 36px;
    line-height: 36px;
}

.goldstar-contact-us-btn:hover {
    background-color: #0052CC;
    color: #ffffff !important;
    text-decoration: none;
}

/* Hamburger Button (Hidden on Desktop) */
.goldstar-hamburger {
    display: none;
}

/* Mobile Menu Panel (Hidden on Desktop) */
.goldstar-mobile-nav {
    display: none;
}

/* =============================
   Mobile Responsive Header
   ============================= */

@media (max-width: 768px) {
    .goldstar-custom-header {
        padding: 0.35rem 0;
        height: auto;
        line-height: normal;
    }

    .goldstar-custom-header .ast-container {
        height: auto;
        padding: 0.35rem 0.75rem;
    }

    .goldstar-header-content {
        flex-direction: row;
        gap: 0.35rem;
        height: auto;
        padding: 0;
        justify-content: space-between;
        max-width: 100%;
    }

    .goldstar-logo-img {
        max-height: 24px;
        width: auto;
    }

    /* Hamburger Button Mobile */
    .goldstar-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .goldstar-hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #333333;
        margin: 4px 0;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .goldstar-custom-header.mobile-open .goldstar-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(11px, 10px);
    }

    .goldstar-custom-header.mobile-open .goldstar-hamburger span:nth-child(2) {
        opacity: 0;
    }

    .goldstar-custom-header.mobile-open .goldstar-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile Menu Panel */
    .goldstar-mobile-nav {
        display: none;
        background-color: #f5f5f5;
        border-top: 1px solid #e5e5e5;
        padding: 1rem;
    }

    .goldstar-mobile-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .goldstar-mobile-cta {
        display: block;
        background-color: #0052CC;
        color: #ffffff !important;
        padding: 0.75rem 1.5rem !important;
        text-decoration: none !important;
        font-weight: bold !important;
        text-align: center;
        border-radius: 3px;
        transition: background-color 0.3s ease;
    }

    .goldstar-mobile-cta:hover {
        background-color: #0052CC;
    }

    /* Hide action button on mobile */
    .goldstar-header-actions {
        display: none;
    }
}
