/**
 * SPD FSE Header - Royal Navy Design
 * New header styles with 4-panel mobile layout
 *
 * @package SPD_FSE
 * @since 2024-12-14
 */

/* ========================================
   Design Tokens
   ======================================== */
:root {
    --ink: #0d1117;
    --ink-90: #1a2028;
    --ink-80: #252d38;
    --ink-70: #343e4c;

    --gold: #c4a35a;
    --gold-light: #d4b76a;
    --gold-dark: #a68a42;
    --gold-glow: rgba(196, 163, 90, 0.15);

    --terracotta: #c67b5c;
    --terracotta-glow: rgba(198, 123, 92, 0.2);

    --cream: #faf9f7;
    --cream-dark: #f0ede8;

    --text-white: rgba(255, 255, 255, 0.95);
    --text-light: rgba(255, 255, 255, 1);
    --text-muted: rgba(255, 255, 255, 0.45);

    --shadow-sm: 0 2px 8px rgba(13, 17, 23, 0.08);
    --shadow-md: 0 8px 30px rgba(13, 17, 23, 0.12);
    --shadow-lg: 0 20px 60px rgba(13, 17, 23, 0.18);
    --shadow-glow: 0 0 40px rgba(196, 163, 90, 0.15);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Header Container
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ink); /* Prevent white gaps from showing */
}

/* ========================================
   PANEL 1: Announcement Bar
   ======================================== */
.header-announce {
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, height 0.4s ease;
}

.header-announce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
    opacity: 0.4;
}

.header-announce__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.header-announce__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.header-announce__item:hover {
    color: var(--gold);
}

.header-announce__item svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
    opacity: 0.6;
}

.header-announce__divider {
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.5;
}

/* ========================================
   PANEL 2: Main Header (Logo, Search, Icons)
   ======================================== */
.header-main {
    background: linear-gradient(180deg, var(--ink-90) 0%, var(--ink) 100%);
    position: relative;
}

.header-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.header-main__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo - Libre Baskerville with Gold Underline */
.header-logo {
    flex-shrink: 0;
}

.header-logo__link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
}

.header-logo__skypop {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
}

/* Gold gradient underline on hover */
.header-logo__skypop::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.header-logo__link:hover .header-logo__skypop::after {
    transform: scaleX(1);
}

.header-logo__divider {
    width: 1px;
    height: 22px;
    background: var(--text-muted);
    transition: all 0.5s var(--ease-smooth);
}

.header-logo__link:hover .header-logo__divider {
    background: var(--gold);
    height: 28px;
}

.header-logo__designs {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    transition: color 0.5s var(--ease-smooth);
}

.header-logo__link:hover .header-logo__designs {
    color: var(--text-white);
}

/* Search - FILLS AVAILABLE SPACE */
.header-search {
    flex: 1;
}

.header-search__form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search__input {
    width: 100%;
    height: 46px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0 50px 0 24px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: var(--text-white);
    outline: none;
    transition: all 0.4s var(--ease-out-expo);
}

.header-search__input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.header-search__input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 163, 90, 0.4);
    box-shadow: var(--shadow-glow);
}

.header-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.header-search__btn:hover {
    color: var(--gold);
    background: var(--gold-glow);
}

.header-search__btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

/* AJAX Search - uses base styling from product-tools.css */
/* Ivory/cream input with dark text for readability */
.header-search .lw-search {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-action {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

.header-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-action:hover {
    border-color: rgba(196, 163, 90, 0.3);
    transform: translateY(-2px);
}

.header-action:hover::before {
    opacity: 1;
}

.header-action:hover svg {
    color: var(--gold);
}

.header-action svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
    transition: all 0.3s var(--ease-smooth);
}

/* Badge styling - only applies when .header-action__badge class is present */
.header-action__badge,
.header-action .lw-wishlist-count:not(.lw-wishlist-count--empty) {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--terracotta), #b56a4d) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    padding: 0 5px !important;
    z-index: 2 !important;
}

/* Hide wishlist badge when empty */
.header-action .lw-wishlist-count--empty {
    display: none !important;
}

/* ========================================
   Account Button - Logged In State
   Lime green glow indicates "online/active"
   ======================================== */
.header-account-btn {
    position: relative;
}

/* Online indicator dot - hidden by default */
.header-account-indicator {
    display: none;
}

/* When logged in - show the magic */
.header-account-btn.is-logged-in {
    border-color: rgba(132, 204, 22, 0.4);
    background: rgba(132, 204, 22, 0.08);
}

.header-account-btn.is-logged-in svg {
    color: #a3e635; /* Lime-400 */
    filter: drop-shadow(0 0 6px rgba(163, 230, 53, 0.5));
}

.header-account-btn.is-logged-in::before {
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.15), transparent);
    opacity: 1;
}

/* Pulsing online indicator dot */
.header-account-btn.is-logged-in .header-account-indicator {
    display: block;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #84cc16; /* Lime-500 */
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 8px rgba(132, 204, 22, 0.8);
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(132, 204, 22, 0.8);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(132, 204, 22, 1);
    }
}

/* Hover state for logged-in */
.header-account-btn.is-logged-in:hover {
    border-color: rgba(163, 230, 53, 0.6);
    background: rgba(132, 204, 22, 0.15);
    transform: translateY(-2px);
}

.header-account-btn.is-logged-in:hover svg {
    color: #bef264; /* Lime-300 - brighter on hover */
    filter: drop-shadow(0 0 10px rgba(163, 230, 53, 0.7));
}

/* ========================================
   PANEL 3: Navigation
   ======================================== */
.header-nav {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, height 0.4s ease;
}

.header-nav__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.header-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.header-nav-item:hover .header-nav-link {
    color: var(--gold);
}

.header-nav-item:hover .header-nav-link::after {
    transform: scaleX(1);
}

.header-nav-link__arrow {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.header-nav-item:hover .header-nav-link__arrow {
    opacity: 1;
    transform: rotate(180deg);
}

.header-nav-link__badge {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 3px 6px;
    border-radius: 3px;
    line-height: 1;
}

.header-nav-link__badge--hot {
    background: linear-gradient(135deg, var(--terracotta), #b56a4d);
    color: white;
}

.header-nav-link__badge--new {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--ink);
}

/* ========================================
   Megamenu
   ======================================== */
.header-megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 700px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-out-expo);
    z-index: 1000;
}

.header-nav-item:hover .header-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-megamenu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 32px;
}

.header-megamenu__col h4 {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-dark);
    position: relative;
}

.header-megamenu__col h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.header-megamenu__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-megamenu__links li {
    margin-bottom: 10px;
}

.header-megamenu__links a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--ink-70);
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-megamenu__links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--gold);
    margin-right: 0;
    transition: all 0.25s var(--ease-out-expo);
}

.header-megamenu__links a:hover {
    color: var(--ink);
}

.header-megamenu__links a:hover::before {
    width: 12px;
    margin-right: 8px;
}

.header-megamenu__featured {
    text-align: center;
}

.header-megamenu__image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
}

.header-megamenu__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.header-megamenu__image:hover img {
    transform: scale(1.06);
}

.header-megamenu__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--ink);
    color: #fff;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
}

.header-megamenu__btn:hover {
    background: var(--gold);
    color: var(--ink);
}

.header-megamenu__btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.header-megamenu__btn:hover svg {
    transform: translateX(3px);
}

/* Dropdown */
.header-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-out-expo);
    list-style: none;
    z-index: 1000;
    margin: 0;
}

.header-nav-item:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-dropdown a {
    display: block;
    padding: 12px 24px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--ink-70);
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-dropdown a:hover {
    background: var(--cream);
    color: var(--ink);
    padding-left: 30px;
}

/* ========================================
   SCROLL BEHAVIOR - Desktop
   ======================================== */
.site-header.is-scrolled .header-announce {
    transform: translateY(-100%);
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
}

.site-header.is-scrolled .header-nav {
    transform: translateY(-100%);
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.site-header.is-scrolled .header-main {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MOBILE STYLES (4-Panel Layout)
   ======================================== */
/* Hide mobile elements on desktop */
.header-mobile-controls,
.header-mobile-search {
    display: none;
}

@media (max-width: 1100px) {
    .header-nav-link {
        padding: 14px 14px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .header-main__inner {
        padding: 14px 24px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }

    .header-logo__skypop {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .header-logo__designs {
        font-size: 10px;
        letter-spacing: 5px;
    }

    .header-logo__divider {
        height: 18px;
    }
}

@media (max-width: 768px) {
    /* ========== MOBILE 4-PANEL LAYOUT ========== */

    /* PANEL 1: Announcement - Rotating Messages */
    .header-announce__inner {
        padding: 8px 16px;
        gap: 0;
        position: relative;
        justify-content: center;
        min-height: 20px;
    }

    .header-announce__divider {
        display: none;
    }

    .header-announce__item {
        font-size: 10px;
        letter-spacing: 1px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        white-space: nowrap;
    }

    .header-announce__item.active {
        opacity: 1;
    }

    /* First item visible by default until JS loads */
    .header-announce__item:first-child {
        opacity: 1;
    }

    .header-announce__inner.js-loaded .header-announce__item:first-child {
        opacity: 0;
    }

    .header-announce__inner.js-loaded .header-announce__item.active {
        opacity: 1;
    }

    /* PANEL 2: Logo Only (centered) */
    .header-main {
        background: var(--ink);
    }

    .header-main__inner {
        padding: 12px 20px;
        justify-content: center;
    }

    /* Hide search and icons in main header on mobile */
    .header-main .header-search,
    .header-main .header-actions {
        display: none;
    }

    .header-logo__link {
        justify-content: center;
    }

    /* PANEL 3: Mobile Controls (hamburger left, icons right) */
    .header-mobile-controls {
        display: block;
        background: var(--ink-90);
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, height 0.4s ease;
    }

    .header-mobile-controls__inner {
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        color: var(--text-light);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-toggle:hover {
        background: var(--gold-glow);
        border-color: rgba(196, 163, 90, 0.3);
        color: var(--gold);
    }

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

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-actions .header-action {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .mobile-actions .header-action svg {
        width: 18px;
        height: 18px;
    }

    /* PANEL 4: Search (full width) */
    .header-mobile-search {
        display: block;
        background: var(--ink);
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        padding: 12px 20px 16px;
        transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, height 0.4s ease;
    }

    .header-mobile-search .header-search {
        display: block;
    }

    /* Mobile search - slightly smaller height */
    .header-mobile-search .lw-search-input {
        height: 44px;
    }

    /* ========== MOBILE SCROLL BEHAVIOR ========== */
    /* On scroll: Only logo stays visible */
    .site-header.is-scrolled .header-announce {
        transform: translateY(-100%);
        height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .site-header.is-scrolled .header-mobile-controls {
        transform: translateY(-100%);
        height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .site-header.is-scrolled .header-mobile-search {
        transform: translateY(-100%);
        height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .site-header.is-scrolled .header-main {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .header-logo__skypop {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .header-logo__designs {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .header-logo__divider {
        height: 16px;
    }

    .header-logo__link {
        gap: 10px;
    }

    .mobile-actions .header-action {
        width: 40px;
        height: 40px;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Page Spacer
   ======================================== */
.site-header-spacer {
    height: 130px;
}

@media (max-width: 768px) {
    .site-header-spacer {
        height: 185px;
    }
}

/* ========================================
   WordPress Admin Bar Fix
   When logged in, offset the fixed header
   ======================================== */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .site-header-spacer {
    height: 162px; /* 130px + 32px */
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* WordPress mobile admin bar is 46px */
    }

    body.admin-bar .site-header-spacer {
        height: 231px; /* 185px + 46px */
    }
}

/* ========================================
   LEGACY: Support for existing lw- classes
   Keep mobile menu, account panel, overlay working
   ======================================== */

/* Overlay - keep existing styles working */
.lw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lw-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel - Style updates for new design */
.lw-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--ink);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out-expo);
    overflow-y: auto;
}

.lw-mobile-menu.active {
    transform: translateX(0);
}

.lw-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--ink-90);
}

.lw-mobile-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gold);
}

.lw-mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lw-mobile-close:hover {
    background: var(--gold-glow);
    border-color: rgba(196, 163, 90, 0.3);
    color: var(--gold);
}

.lw-mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lw-mobile-search form {
    position: relative;
}

.lw-mobile-search input {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 44px 0 16px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--text-white);
}

.lw-mobile-search input::placeholder {
    color: var(--text-muted);
}

.lw-mobile-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.lw-mobile-nav {
    padding: 16px 0;
}

.lw-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lw-mobile-nav > ul > li > a,
.lw-mobile-nav .lw-submenu-trigger a {
    display: block;
    padding: 14px 20px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lw-mobile-nav > ul > li > a:hover,
.lw-mobile-nav .lw-submenu-trigger a:hover {
    color: var(--gold);
    padding-left: 24px;
}

.lw-has-submenu .lw-submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lw-has-submenu .lw-submenu-trigger button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.lw-has-submenu .lw-submenu-trigger button:hover {
    background: var(--gold-glow);
    color: var(--gold);
}

.lw-has-submenu .lw-submenu-trigger button svg {
    transition: transform 0.3s ease;
}

.lw-has-submenu.open .lw-submenu-trigger button svg {
    transform: rotate(180deg);
}

.lw-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 0;
}

.lw-has-submenu.open .lw-submenu {
    display: block;
}

.lw-submenu li a {
    padding: 10px 20px 10px 36px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.lw-submenu li a:hover {
    color: var(--gold) !important;
    padding-left: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.lw-mobile-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--ink-90);
}

.lw-mobile-bottom a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lw-mobile-bottom a:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.lw-mobile-bottom a:hover {
    color: var(--gold);
    background: var(--gold-glow);
}

.lw-badge {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--terracotta);
    color: white;
    margin-left: 6px;
}

/* Account Panel - Style updates for new design */
.lw-account-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: var(--ink);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.lw-account-panel.active {
    transform: translateX(0);
}

.lw-account-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--ink-90);
}

.lw-account-panel-title {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-white);
    margin: 0;
}

.lw-account-panel-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lw-account-panel-close:hover {
    background: var(--gold-glow);
    border-color: rgba(196, 163, 90, 0.3);
    color: var(--gold);
}

.lw-account-panel-body {
    padding: 32px 24px;
}

.lw-account-panel-text {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.lw-account-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.lw-account-btn-primary {
    background: var(--gold);
    color: var(--ink);
}

.lw-account-btn-primary:hover {
    background: var(--gold-light);
}

.lw-account-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.lw-account-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Body scroll lock */
body.lw-menu-open,
body.lw-panel-open {
    overflow: hidden;
}

/* ========================================
   FOOTER - Navy Theme Override
   Match header colors for cohesive design
   ======================================== */
.lw-footer-features {
    background: var(--ink) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.lw-feature-icon {
    color: var(--gold) !important;
}

.lw-footer {
    background: var(--ink) !important;
}

.lw-footer-social a:hover {
    background: var(--gold) !important;
    color: var(--ink) !important;
}

.lw-footer-column h3::after {
    background: var(--gold) !important;
}

.lw-footer-links a:hover {
    color: var(--gold) !important;
}

.lw-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Footer Logo - Libre Baskerville with Gold Underline */
.lw-footer-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    margin-bottom: 20px !important;
}

.lw-footer-logo-skypop {
    font-family: 'Libre Baskerville', Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 4px !important;
    color: var(--gold) !important;
    text-transform: uppercase !important;
    position: relative !important;
}

/* The underline effect - matches header exactly */
.lw-footer-logo-skypop::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)) !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.5s var(--ease-out-expo) !important;
}

.lw-footer-logo:hover .lw-footer-logo-skypop::after {
    transform: scaleX(1) !important;
}

.lw-footer-logo-divider {
    width: 1px !important;
    height: 18px !important;
    background: var(--text-muted) !important;
    transition: all 0.5s var(--ease-smooth) !important;
}

.lw-footer-logo:hover .lw-footer-logo-divider {
    background: var(--gold) !important;
    height: 24px !important;
}

.lw-footer-logo-designs {
    font-family: 'Libre Baskerville', Georgia, serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 5px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    transition: color 0.5s var(--ease-smooth) !important;
}

.lw-footer-logo:hover .lw-footer-logo-designs {
    color: var(--text-white) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lw-footer-logo {
        justify-content: center !important;
        gap: 10px !important;
    }

    .lw-footer-logo-skypop {
        font-size: 18px !important;
        letter-spacing: 3px !important;
    }

    .lw-footer-logo-designs {
        font-size: 9px !important;
        letter-spacing: 4px !important;
    }

    .lw-footer-logo-divider {
        height: 14px !important;
    }
}
