/* Navbar */
app-navbar{
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar {
    position: fixed;
    top: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: var(--nav-height);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    border-radius: 5vw;
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-container.nav-centered {
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Shopping Cart UI */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Footer Responsiveness */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(0);
        width: 100%;
        border-radius: unset;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-col {
        text-align: center !important;
        align-items: center !important;
    }
    .footer-links {
        justify-content: center !important;
        grid-template-columns: 1fr !important;
    }
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}
.cart-items::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

.empty-cart-msg {
    color: var(--text-muted);
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.cart-item-price {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.remove-btn {
    background: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.5rem;
}

.remove-btn:hover {
    color: var(--primary);
}

.cart-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Footer structure */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-li.nav-cart:hover {
    color: var(--primary-light);
}

.hidden-desktop {
    display: none;
}
.mobile-menu-btn {
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Navbar Responsiveness */
@media (max-width: 768px) {
    .hidden-desktop {
        display: block;
    }
    .navbar {
        position: fixed;
    }
    .nav-container {
        position: relative;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0 1.5rem;
        height: 100%;
    }
    .nav-container.nav-centered {
        justify-content: flex-end;
    }
    .nav-logo-img {
        height: 45px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* --- Cart Drawer --- */
.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Loaders */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .cart-sidebar { width: 100%; }
    .footer-container { flex-direction: column; }
    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}
