/* ===== CATEGORIA SUPERMERCADO ===== */

#site-main {
    background: #f5f5f5;
    min-height: 80vh;
    margin-top: 3%;
}

/* titulo categoria */
#site-main h2 {
    font-weight: 700;
    color: #333;
}

/* tarjeta producto */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    background: white;
}

/* hover efecto tienda real */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* imagen producto */
.product-card img {
    height: 180px;
    object-fit: cover;
    padding: 15px;
}

/* cuerpo card */
.product-card .card-body {
    padding: 15px;
}

/* nombre producto */
.product-card h6 {
    font-weight: 600;
    color: #222;
    min-height: 40px;
}

/* precio estilo supermercado */
.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-success);
    margin-top: 5px;
}

/* boton carrito */
.product-card button {
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}

.product-card button:hover {
    background: #157347;
}

/* alerta */
.alert-warning {
    text-align: center;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .product-card img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .product-card img {
        height: 140px;
    }

    .price {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .product-card img {
        height: 120px;
    }

    #site-main h2 {
        font-size: 22px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.price {
    font-weight: bold;
    font-size: 18px;
    color: #2e7d32;
}
