/* ============================================
   Premium Luxe Header System
   ============================================ */

:root {
    --luxe-turquoise: #2DBEC1;
    --luxe-sand: #F4E7D6;
    --luxe-grey: #2D2D2D;
    --luxe-duration: 0.6s;
    --luxe-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Header */
.luxe-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, 
        rgba(244, 231, 214, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--luxe-duration) var(--luxe-ease);
}

/* Announcement Bar */
.luxe-header__announcement-bar {
    position: relative;
    background: linear-gradient(135deg, #2DBEC1 0%, #45D4D7 100%);
    color: white;
    text-align: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45, 190, 193, 0.3);
}

/* Particle Canvas */
.announcement-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

@media (min-width: 1024px) {
    .announcement-particles {
        display: block;
    }
}

.luxe-header__announcement-text {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .luxe-header__announcement-text {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .luxe-header__announcement-text {
        font-size: 0.9rem;
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* Navigation Container */
.luxe-header__nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Navigation */
.luxe-header__nav-left {
    flex: 1;
}

@media (max-width: 1023px) {
    .luxe-header__nav-left {
        display: none;
    }
}

.luxe-header__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.luxe-header__link {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--luxe-grey);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--luxe-turquoise), var(--luxe-sand));
    transition: width var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__link:hover {
    color: var(--luxe-turquoise);
}

.luxe-header__link:hover::after {
    width: 100%;
}

/* Center Logo */
.luxe-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.luxe-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__logo-link:hover {
    transform: scale(1.08);
}

.luxe-header__logo-image {
    display: none; /* Hide the logo image */
}

.luxe-header__logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.luxe-header__logo-text {
    font-family: 'Cormorant', serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--luxe-grey);
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.luxe-header__tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--luxe-turquoise);
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* Right Actions */
.luxe-header__nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

@media (max-width: 1023px) {
    .luxe-header__nav-right {
        margin-left: 0;
    }
}

.luxe-header__search,
.luxe-header__basket {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(45, 190, 193, 0.2);
    border-radius: 50%;
    color: var(--luxe-grey);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

/* Font Awesome icon sizing */
.luxe-header__search i,
.luxe-header__basket i {
    font-size: 16px;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__search:hover,
.luxe-header__basket:hover {
    background: var(--luxe-turquoise);
    border-color: var(--luxe-turquoise);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 190, 193, 0.3);
}

/* Add a subtle scale animation on hover for the icons */
.luxe-header__search:hover i,
.luxe-header__basket:hover i {
    transform: scale(1.1);
}

/* Special styling for the shopping cart icon */
.luxe-header__basket i.fa-shopping-cart {
    font-size: 16px; /* Perfect size for shopping cart */
}

/* Enhanced hover animations for cart icon */
.luxe-header__basket:hover i.fa-shopping-cart {
    transform: scale(1.15) rotate(-5deg);
}

.luxe-header__basket-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Show count when there are items */
.luxe-header__basket-count:not([data-basket-count="0"]) {
    display: block;
}

/* Ensure it's hidden when count is 0 */
.luxe-header__basket-count[data-basket-count="0"] {
    display: none;
}

/* Mobile Menu Toggle */
.luxe-header__mobile-toggle {
    position: relative;
    z-index: 1001;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.luxe-header__mobile-toggle:focus {
    outline: none;
}

@media (min-width: 1024px) {
    .luxe-header__mobile-toggle {
        display: none;
    }
}

.luxe-header__burger {
    position: relative;
    width: 24px;
    height: 18px;
    margin: 0 auto;
}

.luxe-header__burger span {
    display: block;
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--luxe-grey);
    border-radius: 2px;
    transition: all 0.3s var(--luxe-ease);
}

.luxe-header__burger span:nth-child(1) {
    top: 0;
}

.luxe-header__burger span:nth-child(2) {
    top: 8px;
}

.luxe-header__burger span:nth-child(3) {
    top: 16px;
}

/* Active Burger State */
.luxe-header__mobile-toggle--active .luxe-header__burger span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
    background: black;
}

.luxe-header__mobile-toggle--active .luxe-header__burger span:nth-child(2) {
    opacity: 0;
}

.luxe-header__mobile-toggle--active .luxe-header__burger span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
    background: black;
}

/* Mobile Menu */
.luxe-header__mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: linear-gradient(135deg, 
        var(--luxe-sand) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: right var(--luxe-duration) var(--luxe-ease);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .luxe-header__mobile-menu {
        max-width: 100%;
    }
}

/* Mobile Menu Overlay */
.luxe-header__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

/* Active Menu State */
.luxe-header__mobile-menu--active {
    right: 0;
}

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

/* Mobile Menu Content */
.luxe-header__mobile-content {
    padding: 2rem 2rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.luxe-header__mobile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.luxe-header__mobile-logo {
    display: none; /* Hide mobile logo image */
}

/* Add mobile brand text */
.luxe-header__mobile-brand {
    text-align: center;
}

.luxe-header__mobile-brand-text {
    font-family: 'Cormorant', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--luxe-grey);
    line-height: 1;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.luxe-header__mobile-brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--luxe-turquoise);
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Mobile Navigation */
.luxe-header__mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luxe-header__mobile-nav li {
    border-bottom: 1px solid rgba(45, 190, 193, 0.1);
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.6s var(--luxe-ease) forwards;
}

.luxe-header__mobile-nav li:nth-child(1) { animation-delay: 0.1s; }
.luxe-header__mobile-nav li:nth-child(2) { animation-delay: 0.2s; }
.luxe-header__mobile-nav li:nth-child(3) { animation-delay: 0.3s; }
.luxe-header__mobile-nav li:nth-child(4) { animation-delay: 0.4s; }
.luxe-header__mobile-nav li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.luxe-header__mobile-nav a {
    display: block;
    padding: 1.25rem 0;
    font-family: 'Cormorant', serif;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--luxe-grey);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__mobile-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(45, 190, 193, 0.1), 
        transparent);
    transition: left 0.6s var(--luxe-ease);
}

.luxe-header__mobile-nav a:hover::before {
    left: 100%;
}

.luxe-header__mobile-nav a:hover {
    color: var(--luxe-turquoise);
    transform: translateX(10px);
}

/* Mobile Actions */
.luxe-header__mobile-actions {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(45, 190, 193, 0.2);
}

.luxe-header__mobile-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid rgba(45, 190, 193, 0.2);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--luxe-grey);
    text-decoration: none;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__mobile-action:hover {
    background: var(--luxe-turquoise);
    border-color: var(--luxe-turquoise);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 190, 193, 0.3);
}

/* Mobile Footer */
.luxe-header__mobile-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(45, 190, 193, 0.2);
}

.luxe-header__mobile-logo-section {
    margin-bottom: 1rem;
}

.luxe-header__mobile-footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__mobile-footer-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.luxe-header__mobile-footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--luxe-grey);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.luxe-header__mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.luxe-header__mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(45, 190, 193, 0.2);
    border-radius: 50%;
    color: var(--luxe-grey);
    text-decoration: none;
    transition: all var(--luxe-duration) var(--luxe-ease);
}

.luxe-header__mobile-social a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.luxe-header__mobile-social a:hover {
    background: var(--luxe-turquoise);
    border-color: var(--luxe-turquoise);
    color: white;
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 4px 12px rgba(45, 190, 193, 0.3);
}

/* Scrolled Header State */
.luxe-header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Body scroll lock */
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .luxe-header__nav {
        padding: 1rem;
    }
    
    .luxe-header__logo-text {
        font-size: 1.875rem;
    }
    
    .luxe-header__mobile-nav a {
        font-size: 1.5rem;
    }
    
    .luxe-header__mobile-brand-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .luxe-header__logo-text {
        font-size: 1.5rem;
    }
    
    .luxe-header__tagline {
        font-size: 0.5rem;
    }
    
    .luxe-header__mobile-brand-text {
        font-size: 2rem;
    }
}

/* Accessibility Focus States - Only show for keyboard navigation */
.luxe-header__link:focus-visible,
.luxe-header__search:focus-visible,
.luxe-header__basket:focus-visible,
.luxe-header__mobile-nav a:focus-visible,
.luxe-header__mobile-action:focus-visible,
.luxe-header__mobile-social a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px var(--luxe-turquoise);
    border-radius: 3px;
}

/* Remove focus styles for mouse clicks */
.luxe-header__link:focus:not(:focus-visible),
.luxe-header__search:focus:not(:focus-visible),
.luxe-header__basket:focus:not(:focus-visible),
.luxe-header__mobile-nav a:focus:not(:focus-visible),
.luxe-header__mobile-action:focus:not(:focus-visible),
.luxe-header__mobile-social a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}