/* =====================================================
   VELQOR — Floating Header Architecture & Vibrant Highlights
   ===================================================== */

/* ---------- ANNOUNCEMENT BAR ---------- */
.announce {
    background: #0a0a0a;
    color: rgba(255, 255, 255, .9);
    height: var(--announce-h, 34px);
    display: flex;
    align-items: center;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    z-index: 101;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announce__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.announce__msg {
    text-align: center;
    letter-spacing: 0.12em;
}

.announce__region {
    position: absolute;
    right: 5%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .75);
    font-size: 10px;
    letter-spacing: 0.08em;
    transition: color 200ms ease;
}

.announce__region:hover {
    color: #ffd700;
}

/* ---------- FLOATING HEADER ---------- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inner pages (no hero banner): solid dark two-tier header matching index.html */
body:not(:has(> .hero)) .header:not(.is-scrolled),
body[data-page] .header:not(.is-scrolled),
.product-detail-page .header:not(.is-scrolled),
.checkout-body .header:not(.is-scrolled) {
    position: relative;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Scrolled Header State */
.header.is-scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.08);
}

/* Header Top Grid */
.header__top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

/* Left Section */
.header__left {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 45vw;
    flex: 1 1 auto;
    min-width: 0;
}

.header__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 250ms ease;
}

.header__logo-img {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 250ms ease, filter 250ms ease;
}

.header__logo-link:hover .header__logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
}

/* Logo */
.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.32em;
    color: #ffffff;
    text-align: center;
    padding-left: 0.32em;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 250ms ease, transform 250ms ease, letter-spacing 250ms ease, text-shadow 250ms ease;
}

.logo:hover {
    color: #ffd700;
    /* Vibrant Gold highlight on hover */
    letter-spacing: 0.36em;
    transform: scale(1.03);
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
}

.header.is-scrolled .logo {
    color: #121212;
    text-shadow: none;
}

.header.is-scrolled .logo:hover {
    color: #b79a68;
    text-shadow: 0 0 12px rgba(183, 154, 104, 0.4);
}

/* Icon Buttons */
.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: color 220ms ease, background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 200ms ease;
}

.icon-btn:hover {
    color: #ffd700;
    /* Vibrant Gold hover highlight */
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
}

.icon-btn:hover svg {
    transform: scale(1.1);
}

.header.is-scrolled .icon-btn {
    color: #121212;
    filter: none;
}

.header.is-scrolled .icon-btn:hover {
    color: #b79a68;
    background: rgba(183, 154, 104, 0.12);
    box-shadow: 0 4px 12px rgba(183, 154, 104, 0.25);
}

/* Badges */
.badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ffd700;
    color: #121212;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.header.is-scrolled .badge {
    background: #121212;
    color: #ffffff;
}

/* Hamburger Trigger */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: background-color 220ms ease, transform 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.8px;
    background: #ffffff;
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: transform 320ms ease, opacity 320ms ease, background-color 200ms ease;
}

.hamburger:hover span {
    background: #ffd700;
}

.header.is-scrolled .hamburger:hover {
    background: rgba(183, 154, 104, 0.12);
}

.header.is-scrolled .hamburger span {
    background: #121212;
    box-shadow: none;
}

.header.is-scrolled .hamburger:hover span {
    background: #b79a68;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(6.8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.8px) rotate(-45deg);
}

/* Navigation Links (Desktop & Secondary) */
.header__nav-desktop {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 100%;
}

.header__nav-secondary {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.header.is-scrolled .header__nav-secondary {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.header__nav-desktop a,
.header__nav-secondary a {
    position: relative;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 999px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

/* Hover Effect: Soft gold text shift with subtle background glow pill */
.header__nav-desktop a:hover,
.header__nav-secondary a:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Microscopic 1.5px Underline Indicator on Hover */
.header__nav-desktop a::after,
.header__nav-secondary a::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background-color: #ffd700;
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__nav-desktop a:hover::after,
.header__nav-secondary a:hover::after {
    transform: scaleX(1);
}

/* Scrolled Nav Link Colors & Hover */
.header.is-scrolled .header__nav-desktop a,
.header.is-scrolled .header__nav-secondary a {
    color: #121212;
    text-shadow: none;
}

.header.is-scrolled .header__nav-desktop a:hover,
.header.is-scrolled .header__nav-secondary a:hover {
    color: #b79a68;
    background: rgba(183, 154, 104, 0.12);
    text-shadow: none;
}

.header.is-scrolled .header__nav-desktop a::after,
.header.is-scrolled .header__nav-secondary a::after {
    background-color: #b79a68;
    box-shadow: none;
}

/* ---------- SEARCH PANEL ---------- */
.search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .14);
    animation: fadeDown 320ms ease both;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-panel__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 5% 48px;
}

.search-panel__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6E6E6E;
    margin-bottom: 16px;
}

.search-panel__field {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid #121212;
    padding-bottom: 12px;
}

.search-panel__field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 20px;
    font-weight: 400;
    color: #121212;
}

.search-panel__field input::placeholder {
    color: #B7B7B7;
}

.search-panel__field button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #121212;
}

.search-panel__popular {
    margin-top: 32px;
}

.search-panel__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6E6E6E;
    margin-bottom: 14px;
}

.search-panel__popular ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-panel__popular a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #E5E3DE;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #121212;
    text-decoration: none;
    transition: all 200ms ease;
}

.search-panel__popular a:hover {
    border-color: #b79a68;
    color: #b79a68;
    background: rgba(183, 154, 104, 0.08);
}

/* ---------- MINI CART ---------- */
.minicart {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(420px, 92vw);
    background: #ffffff;
    z-index: 1000;
    border-left: 1px solid #E5E3DE;
    box-shadow: -20px 0 40px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 320ms ease;
}

.minicart.is-open,
.minicart.is-active,
.minicart:not([hidden]) {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.minicart[hidden] {
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
}

.minicart__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.minicart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #E5E3DE;
}

.minicart__head h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #121212;
}

.minicart__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #121212;
    border-radius: 50%;
    transition: color 200ms ease, transform 200ms ease;
}

.minicart__close:hover {
    color: #b79a68;
    background: rgba(18, 18, 18, 0.05);
    transform: rotate(90deg);
}

.minicart__body {
    flex: 1;
    padding: 40px 28px;
    overflow-y: auto;
}

.minicart__empty {
    font-size: 13px;
    color: #6E6E6E;
    text-align: center;
    padding: 40px 0;
}

.minicart__foot {
    padding: 20px 24px 24px;
    border-top: 1px solid #E5E3DE;
    background: #FFFFFF;
}

.minicart__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E5E3DE;
}

.minicart__subtotal strong {
    font-size: 16px;
    font-weight: 700;
}

.minicart__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.minicart__actions .btn {
    height: 46px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
}

.minicart__continue {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #6E6E6E;
    text-decoration: underline;
    margin-top: 8px;
    cursor: pointer;
    transition: color 150ms ease;
}

.minicart__continue:hover {
    color: #121212;
}

/* ---------- BACKDROP ---------- */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, .55);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 300ms ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.backdrop.is-open,
.backdrop.is-active,
.backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.backdrop[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---------- MOBILE NAV DRAWER ---------- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(400px, 88vw);
    background: #ffffff;
    z-index: 999;
    border-right: 1px solid #E5E3DE;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 320ms ease;
}

.mobile-nav.is-open,
.mobile-nav.is-active,
.mobile-nav:not([hidden]) {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav[hidden] {
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #E5E3DE;
}

.mobile-nav__brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.28em;
    padding-left: 0.28em;
    text-transform: uppercase;
    color: #121212;
}

.mobile-nav__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #121212;
    border-radius: 50%;
}

.mobile-nav__links {
    flex: 1;
    padding: 12px 24px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav__links a {
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #121212;
    text-decoration: none;
    border-bottom: 1px solid #E5E3DE;
    transition: padding-left 200ms ease, color 200ms ease;
}

.mobile-nav__links a:hover {
    padding-left: 8px;
    color: #b79a68;
}

.mobile-nav__divider {
    display: block;
    height: 20px;
}

.mobile-nav__foot {
    padding: 18px 24px;
    border-top: 1px solid #E5E3DE;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6E6E6E;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {

    .header__nav-desktop,
    .header__nav-secondary {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header__top {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 12px;
        height: 70px;
    }

    .header__left {
        gap: 10px;
        max-width: none;
    }

    .header__logo-img {
        height: 34px;
        max-width: 110px;
    }

    .logo {
        font-size: 21px;
        letter-spacing: 0.28em;
        padding-left: 0.28em;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .header__top {
        padding: 0 16px;
        gap: 8px;
        height: 62px;
    }

    .logo {
        font-size: clamp(14px, 4.6vw, 19px);
        letter-spacing: 0.16em;
        padding-left: 0.16em;
    }

    .logo:hover {
        letter-spacing: 0.16em;
        transform: none;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .header__actions {
        gap: 2px;
    }

    /* Wishlist icon is hidden on mobile header to preserve spacing */
    .header__actions .icon-btn[aria-label="Wishlist"] {
        display: none;
    }

    /* Person / Account icon: ALWAYS visible on mobile */
    .header__actions #accountBtn,
    .header__actions .icon-btn[aria-label="Account"],
    .header__actions .icon-btn[aria-label^="Account"] {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .header__logo-link {
        display: none;
    }
}

@media (max-width: 360px) {
    .header__top {
        padding: 0 10px;
        gap: 4px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
    }
}