/* ============================================
   NAVIGATION — Nav, Mobile Menu, Mobile Overlay
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--gold);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
    background-color: rgba(10, 12, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(212, 175, 125, 0.25);
}

.nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.nav-logo {
    height: 50px;
}

.nav-left {
    display: none;
}

.nav-right {
    display: none;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.mobile-left {
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 1;
}

.mobile-right {
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 1;
}

.basket-icon {
    filter: invert(1);
}

.social-icon {
    opacity: 0.8;
}

.nav-icon-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

.favorites-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--gold);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.favorites-count.active {
    opacity: 1;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--gold);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.cart-count.active {
    opacity: 1;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: rgb(15, 18, 35);
    z-index: 1002;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    height: 55px;
}

.mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 5px;
}

.mobile-menu ul a {
    display: block;
    color: white;
    font-size: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu ul a:active {
    background-color: rgba(212, 175, 125, 0.2);
    color: var(--gold);
}

.mobile-social {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 25px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.mobile-social img {
    height: 30px;
    width: 30px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-left ul a {
    color: white;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-right ul {
    gap: 15px;
}

.nav-right ul a {
    display: flex;
    align-items: center;
}

.social_button {
    height: 24px;
    width: 24px;
    opacity: 0.8;
}

.cart-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Desktop nav cart-count (different sizing) */
.cart-button .cart-count {
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
}

/* ---- Responsive: Nav ---- */

@media (min-width: 900px) {
    nav {
        height: 88px;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0) 100%
        );
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(212, 175, 125, 0.15);
    }

    .nav-inner {
        padding: 0 40px;
    }

    .nav-left {
        display: block;
        flex: 1;
    }

    .nav-right {
        display: flex;
        flex: 1;
        justify-content: flex-end;
    }

    .nav-center {
        flex: 0;
        position: static;
        transform: none;
    }

    .nav-logo {
        height: 60px;
        filter: drop-shadow(0 0 8px rgba(212, 175, 125, 0.2));
    }

    .nav-logo:hover {
        filter: drop-shadow(0 0 12px rgba(212, 175, 125, 0.4));
    }

    .mobile-left {
        display: none;
    }

    .mobile-right {
        display: none;
    }

    .nav-left ul a {
        position: relative;
    }

    .nav-left ul a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background-color: var(--gold);
        transition: width 0.3s ease;
    }

    .nav-left ul a:hover {
        color: var(--gold-light);
    }

    .nav-left ul a:hover::after {
        width: 100%;
    }

    .nav-icon-button:hover .nav-icon {
        opacity: 1;
    }

    .nav-icon-button:hover .basket-icon {
        filter: invert(1) drop-shadow(0 0 6px rgba(212, 175, 125, 0.4));
    }

    .social-icon:hover {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(212, 175, 125, 0.4));
    }

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-overlay {
        display: none;
    }
}
