.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.producto {
    border: 2px solid aqua; /* borde aqua */
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* botón o contenido extra abajo */
    height: 350px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.producto .contenido {
    display: flex;
    flex-direction: column-reverse; /* invierte el orden: imagen debajo del texto */
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
}


.producto img {
    max-width: 130px;
    max-height: 150px;
    width: auto;        /* mantener proporción */
    height: auto;       /* mantener proporción */
    display: block;     /* necesario para centrar con margin */
    margin: 0 auto 10px auto; /* centrado horizontal y margen inferior */
    border-radius: 8px;
}


.producto p.descripcion {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Mostrar solo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Contenedor general de productos en promoción */
#promoGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

#promoGrid .producto {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s;
    border: 2px solid aqua; /* borde aqua */
}

#promoGrid .producto:hover {
    transform: translateY(-5px);
}

#promoGrid .producto img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

#promoGrid .promo-badge {
    position: absolute;
    top: 10px;
    left: -40px;
    background: #00cccc;
    color: white;
    font-weight: bold;
    padding: 5px 50px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 0.85rem;
}

#promoGrid .producto .descripcion {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    text-align: center;
}

#promoGrid .promo-precio-tachado {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

#promoGrid .promo-precio {
    color:#00cccc;
    font-weight: bold;
    font-size: 1.1rem;
}

#promoGrid .muted {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .producto {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}



.notificacion {
    background-color: #ff0000;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 15px auto;
    font-weight: bold;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.notificacion a {
    color: white;
    font-weight: bold;
}

.notificacion:hover {
    background-color: #e68900;
}
/* /* --------------------------- */
/* Tabla de stock bajo - prioridad alta */
.stock-bajo-container {
    position: relative;
    z-index: 1000;
    background-color: #E0F7F8 !important;
    border: 2px solid #50BBB5 !important;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.stock-bajo-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
}

.stock-bajo-table th.stock,
.stock-bajo-table td.stock {
    width: 80px; /* ajusta según necesites */
    text-align: center;
}


.stock-bajo-table th {
    background-color: #B2F0F2 !important;
    color: #007F82 !important;
}

.stock-bajo-table td.stock {
    color: #50BBB5 !important;
    font-weight: bold;
    text-align: center;
}

.stock-bajo-empty {
    font-style: italic;
    color: #50BBB5 !important;
}
