/* Estilos para Sidebar do Carrinho */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.cart-item-price {
    margin: 4px 0;
    font-size: 14px;
    color: #6b7280;
}

.cart-item-quantity {
    margin: 4px 0;
    font-size: 13px;
    color: #6b7280;
}

.cart-item-total {
    margin-top: 8px;
}

.cart-item-total strong {
    font-size: 16px;
    color: #1d4ed8;
    font-weight: 700;
}

.remove-cart-item {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.remove-cart-item:hover {
    background: #dc2626;
}

body.cart-sidebar-open {
    overflow: hidden;
}

/* Menu Mobile */
@media (max-width: 991px) {
    .navbar-area .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1d4ed8;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .navbar-area .navbar-collapse.sopen {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-area .navbar-collapse .navbar-nav {
        display: block;
        width: 100%;
    }
    
    .navbar-area .navbar-collapse .navbar-nav li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-area .navbar-collapse .navbar-nav li:last-child {
        border-bottom: none;
    }
    
    .navbar-area .navbar-collapse .navbar-nav li a {
        color: white;
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }
}




