﻿/* Estilos para el grid de productos */
.gridproductos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.producto {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

    .producto:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: gray;
    }

.producto-seleccionado {
    background-color: #e7f1ff;
    border: 2px solid gray;
}

.imagenproducto {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 4px;
}

.add-to-cart {
    width: 100%;
    height: 100%;
    transition: all 0.2s;
}

.nombreProd {
    display: block;
    height: 40px;
    overflow: hidden;
    margin: 5px 0;
    font-size: 0.9rem;
    color: #333;
}

.priceProd {
    font-weight: bold;
    color: #12e910;
    font-size: 1.1rem;
}

.dollarsingal {
    font-size: 0.8em;
    color: #6c757d;
}

.idprod, .idprodSubCategoria3 {
    display: none;
}

/* Estilos para la sección de productos seleccionados */
.seleccionados-container {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
}

.seleccionados-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0d6efd;
}

.lista-seleccionados {
    max-height: 300px;
    overflow-y: auto;
}

.item-seleccionado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

    .item-seleccionado:last-child {
        border-bottom: none;
    }

.total-seleccionados {
    font-weight: bold;
    margin-top: 10px;
    text-align: right;
}

.resaltar-producto {
    animation: resaltar 2s ease;
    border: 2px solid #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

@keyframes resaltar {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
