@charset "UTF-8";

/* ============================================================
   Header — desktop inline nav + mobile top-dropdown
   Desktop (>1400px): inline links inside navbar.
   Mobile (≤1400px): compact fixed bar + top dropdown.
   ============================================================ */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--si);
    padding: 0 1.5rem;  /* mirrors .banner padding */
}

/* ---- Desktop navbar ---- */
.navbar {
    display: flex;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 12px 0 18px 0;
}

.logo-container {
    padding: 0;
    margin-top: 22px;
    background-color: transparent;
    z-index: 3;
    width: 240px;
    flex-shrink: 0;
}

.logo {
    width: 160px;
}

/* ---- Desktop inline nav ---- */
.nav-desktop {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

.nav-desktop ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 14px 0 0 0;
    padding: 0;
}

.nav-desktop ul li {
    display: inline-block;
    margin: 4px 0px 0px 42px;
    position: relative;
}

.nav-desktop ul li a {
    text-decoration: none;
    color: #212427;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 300;
    transition: color 0.25s ease;
}

.nav-desktop ul li a.activemenu {
    color: var(--se);
}

.nav-desktop ul li::after {
    content: '';
    height: 2px;
    width: 0%;
    background: var(--primary-color);
    display: block;
    margin: auto;
    position: absolute;
    left: 0;
    bottom: -10px;
    transition: 0.5s;
}

.nav-desktop ul li:hover::after {
    width: 100%;
    background: #000;
}

/* ---- Right-side actions + cart (desktop: top-right, after nav) ---- */
.navbar__actions {
    display: flex;
    align-items: center;
    margin-top: 14px;
    margin-left: 38px;
}

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #212427;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cart-button:hover {
    background: #f3f4f6;
    color: var(--se);
}

.cart-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.cart-count {
    position: absolute;
    top: 9px;
    left: 25px;
    color: var(--se);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: left;
    pointer-events: none;
}

.cart-count--empty { display: none; }

/* Hide mobile elements on desktop */
.menu__toggle   { display: none; }
.menu-button    { display: none; }
.toggle-checkbox { display: none; }
.menu-overlay   { display: none; }
.menu__links    { display: none; }


/* ============================================================
   Mobile / Tablet — fixed bar + top dropdown (≤1400px)
   ============================================================ */
@media (max-width: 1400px) {

    .no-scroll { overflow: hidden; }

    body {
        padding-top: 56px;
    }

    header {
        padding: 0;  /* remove desktop horizontal padding — fixed navbar ignores it anyway */
    }

    /* Fixed navbar bar */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        max-width: none;
        height: 56px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #fff;
        border-bottom: 1px solid #f0f0f0;
        z-index: 100;
    }

    .logo-container {
        position: static;
        margin: 0;
        padding: 0;
        width: auto;
        display: flex;
        align-items: center;
    }

    .logo {
        width: 140px;
        display: block;
    }

    /* Hide desktop nav, show hamburger */
    .nav-desktop { display: none; }

    .menu__toggle {
        display: flex;
        align-items: center;
        position: static;
        width: auto;
        height: auto;
    }

    /* Cart sits to the LEFT of the hamburger on mobile */
    .navbar__actions {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0;
    }

    .cart-button {
        width: 44px;
        height: 44px;
    }

    .toggle-checkbox { display: none; }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        color: #212427;
        transition: background 0.15s ease;
        position: relative;
        z-index: 101;
    }

    .menu-button:hover { background: #f3f4f6; }

    .hamburger-icon {
        width: 24px;
        height: 24px;
        display: block;
    }

    .menu-close-btn { display: none; }

    .toggle-checkbox:checked ~ .navbar .menu-open-btn  { display: none; }
    .toggle-checkbox:checked ~ .navbar .menu-close-btn { display: inline-flex; }

    /* Dim overlay */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 97;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }

    .toggle-checkbox:checked ~ .menu-overlay {
        opacity: 1;
        pointer-events: all;
    }

    /* Dropdown panel */
    .menu__links {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 98;
        transform: translateY(-100vh);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        padding: 4px 0;
        overflow: hidden;
    }

    .toggle-checkbox:checked ~ .menu__links {
        transform: translateY(0);
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-list li a {
        display: block;
        padding: 11px 24px;
        font-size: 16px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: #212427;
        text-decoration: none;
        border-bottom: 1px solid #f4f4f4;
        transition: background 0.15s ease;
    }

    .mobile-nav-list li:last-child a {
        border-bottom: none;
    }

    .mobile-nav-list li a:hover {
        background: #f9fafb;
    }

    .mobile-nav-list li a.activemenu {
        font-weight: 600;
        color: var(--se);
    }
}

@media (max-width: 700px) {
    .navbar { padding: 0 16px; }
    .logo   { width: 130px; }
}
