/* ==================================================
   UZAYO NAVBAR
   ================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: 0.35s ease;
}

.nav-container {
    width: min(92%, 1450px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==================================================
   LOGO
   ================================================== */

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 10px;
    text-decoration: none;
    color: #111;
    transition: 0.35s;
}

.logo:hover {
    letter-spacing: 14px;
    color: var(--color-gold);
}

/* ==================================================
   DESKTOP NAV
   ================================================== */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 55px;
}

.desktop-nav a {
    position: relative;
    text-decoration: none;
    color: #222;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.3s;
}

.desktop-nav a:hover {
    color: var(--color-gold);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: 0.35s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* ==================================================
   ICONS
   ================================================== */

.nav-icons {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    text-decoration: none;
    color: #111;
    transition: 0.35s ease;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: 0.35s ease;
}

.nav-icon:hover {
    background: rgba(184, 155, 94, 0.10);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* ==================================================
   CART BADGE
   ================================================== */

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* ==================================================
   SCROLLED NAV
   ================================================== */

.navbar.scrolled {
    height: 78px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* ==================================================
   MOBILE MENU BUTTON
   ================================================== */

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    background: #111;
    transition: 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================================================
   MOBILE MENU
   ================================================== */

.mobile-nav {
    display: none;
}

/* ==================================================
   TABLET / MOBILE
   ================================================== */

@media (max-width: 992px) {

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-button {
        display: flex;
    }

    .nav-container {
        width: 92%;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 7px;
    }

    .mobile-nav {
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);

        display: flex;
        flex-direction: column;

        max-height: 0;
        overflow: hidden;

        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            visibility 0.35s ease;
    }

    .mobile-nav.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav a {
        display: block;
        padding: 20px 24px;
        text-align: center;

        text-decoration: none;
        color: #111;

        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;

        border-bottom: 1px solid rgba(0, 0, 0, 0.05);

        transition: 0.25s ease;
    }

    .mobile-nav a:hover {
        color: var(--color-gold);
        background: rgba(184, 155, 94, 0.06);
    }
}

/* ==================================================
   SMALL MOBILE
   ================================================== */

@media (max-width: 768px) {

    .navbar {
        height: 78px;
    }

    .logo {
        font-size: 1.6rem;
        letter-spacing: 5px;
    }

    .nav-icons {
        gap: 8px;
    }

    .nav-icon {
        width: 38px;
        height: 38px;
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;
    }

    .mobile-nav {
        top: 78px;
    }
}

/* ==================================================
   ACCESSIBILITY
   ================================================== */

.desktop-nav a:focus-visible,
.nav-icon:focus-visible,
.mobile-menu-button:focus-visible,
.mobile-nav a:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 4px;
}

/* ==================================================
   PERFORMANCE
   ================================================== */

.navbar {
    will-change: background, box-shadow;
}

.nav-icon,
.desktop-nav a,
.mobile-menu-button span {
    will-change: transform;
}