/* Header & Nav Base */
header {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b35;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b35;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Cart Link */
.cart-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.3s;
}

.hamburger:hover span {
    background: #ff6b35;
}

/* Mobile Popover */
.nav-popover {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
}

.nav-popover::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/*noinspection CssInvalidPseudoSelector*/
.nav-popover:popover-open {
    display: flex;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    padding: 80px 2rem 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.sidebar a:hover {
    color: #ff6b35;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff6b35;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .nav-popover {
        display: none !important;
    }
}