/* Modern dual header — slim, glass, translucent */

header {
    transition: box-shadow 0.35s ease;
}

/* ─── Upper info bar ─── */
header .top-header {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    background: rgba(30, 30, 30, 0.45) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .top-header .text-sm,
header .top-header span {
    font-size: 0.74rem !important;
    letter-spacing: 0.02em;
}

header .top-header .flex.items-center i {
    font-size: 0.76rem !important;
    margin-right: 0.4rem !important;
}

header .top-header .space-x-6 {
    gap: 1rem;
}

header .top-header .space-x-4 a {
    font-size: 0.84rem;
    opacity: 0.85;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

header .top-header .space-x-4 a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ─── Main navigation bar ─── */
header .main-header {
    padding-top: 0.58rem !important;
    padding-bottom: 0.58rem !important;
    background: rgba(18, 18, 18, 0.55) !important;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

header .main-header img[alt*="Logo"],
header .main-header img[alt*="logo"],
header .main-header .h-16 {
    height: 2.85rem !important;
    width: auto;
    margin-right: 0.5rem !important;
    transition: height 0.3s ease;
}

header .main-header nav.hidden.md\:flex {
    gap: 1.35rem !important;
}

header .main-header .nav-link {
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

header .main-header .nav-link .nav-icon,
header .main-header .nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    color: #F59E0B;
    opacity: 0.92;
    transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

header .main-header .nav-link:hover .nav-icon,
header .main-header .nav-link.nav-active .nav-icon,
header .main-header nav a[href*="cart"]:hover .nav-icon,
.mobile-menu nav a[href*="cart"]:hover .nav-icon {
    opacity: 1;
    transform: translateY(-1px) scale(1.06);
    color: #FBBF24;
}

.mobile-menu nav a,
.mobile-menu nav button.mobile-menu-dropdown {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mobile-menu .nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    color: #F59E0B;
}

.mobile-menu .mobile-menu-dropdown .nav-icon {
    margin-right: 0;
}

.mobile-menu .mobile-menu-dropdown i.fa-chevron-down {
    margin-left: auto;
}

/* ─── Profile dropdown + search (modern panel) ─── */
.header-profile-menu.is-open .header-profile-dropdown,
.header-profile-menu:hover .header-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-profile-menu.is-open .header-profile-chevron,
.header-profile-menu.is-open .header-profile-trigger__avatar {
    transform: scale(1.02);
}

.header-profile-menu.is-open .header-profile-chevron {
    transform: rotate(180deg) scale(1.02);
}

.header-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.1rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #fff;
}

.header-profile-trigger__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-profile-trigger:hover .header-profile-trigger__avatar,
.header-profile-menu.is-open .header-profile-trigger__avatar {
    border-color: rgba(251, 191, 36, 0.75);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-profile-trigger__avatar .nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: #F59E0B;
}

.header-profile-trigger .header-profile-chevron {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.58rem !important;
}

.header-profile-dropdown {
    width: min(19.5rem, calc(100vw - 2rem));
    border-radius: 1.125rem;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(36, 36, 36, 0.98) 0%, rgba(16, 16, 16, 0.99) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 22px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-profile-dropdown--mobile {
    width: 100%;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-profile-panel {
    position: relative;
    padding: 0.85rem;
}

.header-profile-panel__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F59E0B 22%, #FBBF24 50%, #F59E0B 78%, transparent);
    opacity: 0.95;
}

.header-profile-panel__section {
    position: relative;
}

.header-profile-panel__section--search {
    padding-top: 0.35rem;
}

.header-profile-panel__section--links {
    padding-bottom: 0.15rem;
}

.header-profile-panel__eyebrow {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 158, 11, 0.85);
}

.header-profile-panel__divider {
    height: 1px;
    margin: 0.85rem 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.header-search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.35rem 0.35rem 0.45rem;
    border-radius: 0.875rem;
    background: rgba(8, 8, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search-field:focus-within {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(10, 10, 10, 0.92);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.header-search-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.55rem;
    background: rgba(245, 158, 11, 0.12);
    flex-shrink: 0;
}

.header-search-icon {
    width: 0.9rem;
    height: 0.9rem;
    color: #F59E0B;
    flex-shrink: 0;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 0.84rem;
    line-height: 1.3;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.header-search-input--error {
    animation: header-search-shake 0.35s ease;
}

.header-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.65rem;
    color: #121212;
    background: linear-gradient(145deg, #FBBF24, #F59E0B);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.header-search-submit svg {
    width: 0.95rem;
    height: 0.95rem;
}

.header-search-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.header-profile-panel__grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.header-profile-link {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.header-profile-link:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.18);
    transform: translateX(2px);
}

.header-profile-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
}

.header-profile-link__icon .nav-icon {
    width: 1rem;
    height: 1rem;
    color: #F59E0B;
}

.header-profile-link__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.header-profile-link__title {
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.header-profile-link__hint {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.01em;
}

.header-profile-link__arrow {
    width: 0.85rem;
    height: 0.85rem;
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: color 0.22s ease, transform 0.22s ease;
}

.header-profile-link:hover .header-profile-link__arrow {
    color: #F59E0B;
    transform: translateX(2px);
}

.header-profile-link:hover .header-profile-link__title {
    color: #FBBF24;
}

@keyframes header-search-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


header .main-header .nav-link::after {
    height: 1.5px;
    bottom: -2px;
}

header .main-header nav > a:not(.nav-link),
header .main-header nav a.text-xl {
    font-size: 0.84rem !important;
    letter-spacing: 0.04em;
    gap: 0.35rem !important;
}

header .main-header nav a.text-xl i {
    font-size: 0.9rem !important;
}

header .main-header .cart-count {
    height: 1.05rem !important;
    width: 1.05rem !important;
    min-width: 1.05rem;
    font-size: 0.6rem !important;
}

header .main-header .group > div,
header .main-header .group .absolute {
    background: rgba(30, 30, 30, 0.82) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

header .main-header .group .absolute a {
    font-size: 0.82rem !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}

header .hamburger {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

header .hamburger span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: #fff;
}

/* ─── Scrolled / shrunk state ─── */
header.header-scrolled .top-header,
header.header-scrolled .main-header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

header.header-scrolled .main-header {
    background: rgba(18, 18, 18, 0.72) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header.header-scrolled .top-header {
    background: rgba(30, 30, 30, 0.58) !important;
}

header.header-shrink .main-header {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}

header.header-shrink .main-header img[alt*="Logo"],
header.header-shrink .main-header img[alt*="logo"],
header.header-shrink .main-header .h-16 {
    height: 2.5rem !important;
}

header.header-shrink .top-header {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    border-bottom-color: transparent;
}

/* ─── Fixed header pages ─── */
header.fixed .top-header,
header.fixed .main-header,
header.sticky .top-header,
header.sticky .main-header {
    background-blend-mode: normal;
}

@media (max-width: 767px) {
    header .top-header .container {
        justify-content: center;
    }

    header .top-header .flex.space-x-4 {
        margin: 0 auto;
    }
}

section {
    scroll-margin-top: 82px;
}

@media (min-width: 768px) {
    section {
        scroll-margin-top: 92px;
    }
}

/* ─── Menu dropdown (click to toggle) ─── */
.header-nav-dropdown__trigger {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
}

.header-nav-dropdown__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    min-width: 13rem;
    border-radius: 0.75rem;
    background: rgba(30, 30, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 100;
}

.header-nav-dropdown.is-open .header-nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav-dropdown.is-open .header-nav-dropdown__chevron {
    transform: rotate(180deg);
}

.header-nav-dropdown__chevron {
    transition: transform 0.25s ease;
}
