/* carrito.css */
.carrito-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
}

/* Clase para mostrar el carrito */
.carrito-sidebar.active {
    right: 0;
}

/* Botón de cerrar */
.cerrarBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #231a11;
    z-index: 1010;
    padding: 5px 10px;
}

.cerrarBtn:hover {
    color: #e74c3c;
}

.carrito-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 999;
}

.carrito-overlay.active {
    opacity: 1;
    visibility: visible;
}

#totalCarrito {
    font-size: 1.5rem;
    font-weight: bold;
    color: #231a11;
    text-align: center;
    margin: 2rem 0;
}

.btn-confirmar {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    cursor: pointer;
}

.btn-vaciar {
    width: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
}