/* ===========================
   LISTADO DE PRODUCTOS
   =========================== */

.listado {
    padding: 40px 0;
}

#titulo-listado {
    font-size: 28px;
    margin-bottom: 20px;
}

/* GRID DE PRODUCTOS */
.grid-listado {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* TARJETA DE PRODUCTO */
.item-producto {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.item-producto:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.item-producto img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.item-producto h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: #333;
}

.item-producto .ref {
    font-size: 13px;
    color: #777;
}

.item-producto .precio {
    font-size: 15px;
    font-weight: bold;
    color: #0077cc;
    margin-top: 8px;
}

/* MIGAS */
.breadcrumb {
    background: #f5f5f5;
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #0077cc;
    text-decoration: none;
}

.breadcrumb span {
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .grid-listado {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .item-producto img {
        height: 140px;
    }
}
.producto-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 220px;
}
.producto-imagen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 220px;
}
.producto-nombre {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin: 6px 0;
    height: 34px; /* 2 líneas */
    overflow: hidden;
}
.producto-info {
    display: flex;
    flex-direction: column;
}

.producto-ref {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    text-align: right;
}
.producto-link {
    color: #444;
    text-decoration: none;
}

.producto-link:hover {
    color: #000;
}
