/* ===== CARRITO BASE - SOLO FUNCIONALIDAD ===== */
/* SIN COLORES, SIN DISEÑO - SOLO LAYOUT Y ESTRUCTURA */

/* Variables mínimas para funcionalidad */
:root {
    --base-radius: 8px;
    --base-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Icono del carrito - solo posicionamiento */
.carrito-icono {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

#carrito-contador {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Modal - solo estructura */
#carrito-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--base-radius);
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

#cerrar-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: none;
}

/* Items del carrito - solo layout */
#carrito-items {
    margin: 20px 0;
}

.carrito-vacio {
    text-align: center;
    padding: 40px 20px;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--base-radius);
}

.item-info {
    flex: 2;
}

.item-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cantidad {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cantidad-numero {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.btn-eliminar {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* Total y botones - solo estructura */
.carrito-total-container {
    text-align: right;
    margin: 30px 0 20px;
    padding-top: 20px;
}

.carrito-botones {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.carrito-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--base-radius);
    cursor: pointer;
    font-size: 1rem;
}

/* Alerta temporal - solo posición */
.alerta-temporal {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--base-radius);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Productos - solo layout */
.producto-card-carrito {
    border-radius: var(--base-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.producto-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-agregar-carrito {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--base-radius);
    cursor: pointer;
    font-size: 1rem;
}

.btn-agregar-carrito:disabled {
    cursor: not-allowed;
}

/* Responsive - solo cambios de layout */
@media (max-width: 768px) {
    .carrito-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .carrito-botones {
        flex-direction: column;
    }
    
    .carrito-btn {
        width: 100%;
    }
}