/* ===== HEADER STYLES ===== */
/* header {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    will-change: transform;
} */

.hide-nav {
    transform: translateY(-100%);
}
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Default state - transparent with shadow */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
    transition: all 0.3s ease;
}

/* Enhanced glassmorphic background when scrolled */
/* .main-header.scrolled::before {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(to bottom,
            rgba(105, 104, 98, 0.85) 0%,
            rgba(255, 205, 54, 0.85) 50%,
            rgba(114, 113, 110, 0.85) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
} */

.header-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.main-header.scrolled .header-container {
    margin: 30px auto;
}

/* Top Text */
.top-text {
    font-family: 'Nexa', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Logo */
.logo img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-link:hover {
    color: #FDB913;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FDB913;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ACTIVE STATE */
.nav-link.active {
    color: #FDB913;
}

.nav-link.active::after {
    width: 100%;
}
/* Auth Buttons */
/* Desktop & Tablet: No wrapping, keep everything in one line */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    /* ← Prevent wrapping */
    justify-content: flex-end;
    flex-shrink: 0;
    /* ← Prevent shrinking too much */
}

/* Only on mobile: allow wrapping and reposition */
@media (max-width: 860px) {
    .auth-buttons {
        flex-wrap: wrap;
        /* Allow wrap only on mobile */
        justify-content: center;
        gap: 0.8rem;
    }
}
/* we are no longer using them here, maaybe later */
/* .btn-sign-in {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-sign-in:hover {
    color: #FDB913;
} */

/* we are using the cart now */
.cart-container {
    display: flex;
    /* Aligns the icon and text in a row */
    align-items: center;
    /* Vertically centers the icon and text */
    padding: 0.6rem 1.5rem;

}

/* Styling the icon */
.cart-icon {
    color: #F8BA00;
    font-size: 1.5em;
    margin-right: 8px;
    /* Adds space between the icon and the text */
}

/* Styling the text */
.cart-text {
    color: #fff;
    /* Always white on desktop */
    font-size: 1rem;
    font-weight: 500;
}
.btn-sign-up {
    background-color: #FDB913;
    color: #000000;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-sign-up:hover {
    background-color: #e5a610;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.4);
}

/* ===== MODERN GLASSMORPHIC HAMBURGER MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.219);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle:hover {
    background: rgba(243, 219, 139, 0.15);
    border-color: rgba(253, 185, 19, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle:active {
    transform: translateY(0) scale(0.96);
}

.mobile-menu-toggle span {
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    display: block;
    position: relative;
}

.mobile-menu-toggle span::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(253, 185, 19, 0) 0%,
            rgba(253, 185, 19, 0.3) 50%,
            rgba(253, 185, 19, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.mobile-menu-toggle:hover span::before {
    opacity: 1;
}

/* Smooth hamburger to X animation */
/* .mobile-menu-toggle.active {
    background: rgba(253, 185, 19, 0.15);
    border-color: rgba(253, 185, 19, 0.5);
    box-shadow: 0 12px 40px rgba(253, 185, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background: linear-gradient(90deg, #FDB913 0%, #e5a610 100%);
    box-shadow: 0 2px 12px rgba(253, 185, 19, 0.5);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px) scale(0.5);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
    background: linear-gradient(90deg, #FDB913 0%, #e5a610 100%);
    box-shadow: 0 2px 12px rgba(253, 185, 19, 0.5);
} */

/* Smooth hamburger to X animation */
.mobile-menu-toggle.active {
    background: rgba(253, 185, 19, 0.15);
    border-color: rgba(253, 185, 19, 0.5);
    box-shadow: 0 12px 40px rgba(253, 185, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* X lines with white-dominant gradient */
.mobile-menu-toggle.active span:nth-child(1),
.mobile-menu-toggle.active span:nth-child(3) {
    background: linear-gradient(90deg, #ffffff 0%, #fff9e5 40%, #FDB913 100%);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px) scale(0.5);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}/* ===== MOBILE STYLES - Trigger at ≤1115px ===== */
@media (max-width: 1115px) {

    /* Reduce padding on smaller screens */
    .header-container {
        padding: 0 1.5rem;
        margin: 20px auto;
    }

    .main-header.scrolled .header-container {
        margin: 20px auto;
    }

    /* Hide cart text on mobile */
    .cart-text {
        display: none;
    }

    .cart-container {
        padding: 0.6rem;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu - bottom sheet with proper scrolling */
    .nav-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 70vh;
        /* Limit height */
        background: #777777;
        pointer-events: none;
        visibility: hidden;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        /* Better spacing between items */
        padding: 2rem 2rem 10rem 2rem;
        /* Extra bottom padding for auth buttons space */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.4s,
            background 0.3s ease;
        transform: translateY(100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 24px 24px 0 0;
        overflow-y: auto;
        /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        z-index: 999;
        scrollbar-width: thin;
        /* Firefox: thinner scrollbar */
        /* scrollbar-color: #FDB913 #777777; */
        /* Firefox: custom colors */
    }

    /* Webkit browsers (Chrome, Safari, Edge) - custom scrollbar */
    .nav-menu::-webkit-scrollbar {
        width: 8px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: #FDB913;
        border-radius: 4px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: #e5a610;
    }

    .nav-menu.active {
        pointer-events: all;
        visibility: visible;
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            background 0.3s ease;
    }

    /* Mobile nav links - staggered animation */
    .nav-link {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        text-shadow: none;
        padding: 0.9rem 2rem;
        width: 100%;
        max-width: 400px;
        text-align: center;
        border-radius: 12px;
        background: transparent;
        position: relative;
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s ease;
        margin: 0.3rem 0;
    }

    .nav-menu.active .nav-link {
        transform: translateY(0);
        opacity: 1;
    }

    /* Stagger animation delay for each link */
    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-link:nth-child(6) {
        transition-delay: 0.35s;
    }

    /* Underline effect */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 12px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #FDB913;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 50px;
    }

    .nav-link:hover {
        background: rgba(253, 185, 19, 0.15);
        color: #FDB913;
    }

    .nav-link.active {
        color: #F8BA00;
        font-weight: 700;
    }

    /* Mobile auth buttons - positioned above bottom padding */
    .auth-buttons {
        position: fixed;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 1rem;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        z-index: 1002;
        background: #ffffff;
        padding: 1rem;
        border-radius: 16px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active~.auth-buttons {
        opacity: 1;
        pointer-events: all;
        transition-delay: 0.4s;
    }

    /* Smaller top text & logo */
    .top-text {
        background: rgba(0, 0, 0, 0.6);
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .logo img {
        height: 50px;
    }

    /* Dark overlay when menu open */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(92, 92, 92, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: all;
    }
}