/* =========================================
   NAVIGATION STYLES (nav.css)
   ========================================= */

:root {
    --nav-height: 80px;
    --nav-text: #333333;
    --nav-accent: #B08968; 
    --nav-bg: rgba(249, 247, 242, 0.85);
    --nav-white: #ffffff;
}

/* --- Fixed Navbar Container --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25); /* semi transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* --- Logo --- */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nav-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* --- Navigation Links (Desktop) --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links .nav-item {
    position: relative;
}

.nav-links .nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Hover & Active Underline Animation */
.nav-links .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--nav-accent);
    transition: width 0.3s ease;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--nav-accent);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
    width: 100%;
}

/* --- Cart Icon Wrapper --- */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon-wrapper:hover {
    color: var(--nav-accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--nav-accent);
    color: var(--nav-white);
    font-size: 10px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hamburger Menu (Mobile) --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--nav-text);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height); /* Starts below the navbar */
        right: -100%; /* Hidden by default */
        height: calc(100vh - var(--nav-height));
        width: 100%; /* Full width on mobile or 70% if preferred */
        background: var(--nav-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Class added by JS to show menu */
    .nav-links.nav-active {
        right: 0;
    }

    .nav-links .nav-link {
        font-size: 1.2rem;
    }
}