/* Contenitore principale */
.div_riquadri {
    margin: 20px auto;
    text-align: center;
    max-width: 1200px; /* Evita che i prodotti si spalmino troppo su schermi enormi */
}

/* Singola scheda prodotto */
.box_in_bl {
    background-color: white;
    text-align: center;
    width: 230px; /* Leggermente più largo per il nuovo font */
    display: inline-block;
    vertical-align: top; /* Allinea correttamente i box di altezze diverse */
    margin: 10px;
    padding: 15px 10px;
    border: 1px solid #eee; /* Grigio chiarissimo invece di PowderBlue */
    border-radius: 12px;   /* Angoli arrotondati come il menu */
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Quicksand', sans-serif;
}

/* Effetto al passaggio del mouse */
.box_in_bl:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #d1e8ff;
}

/* Link e Titoli */
.box_in_bl a {
    text-decoration: none;
    color: #333;
}

.box_in_bl h4 {
    font-size: 1.1rem;
    margin: 10px 0;
    height: 2.4em; /* Forza l'altezza per allineare i box */
/*    overflow: hidden;	*/
    color: #222;
    font-weight: 600;
}

/* Immagine Prodotto */
.cont_img {
    height: 180px; /* Aumentato un po' lo spazio */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cont_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Mantiene le proporzioni correttamente */
}

/* Brand e icone azioni */
.brand_img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    height: 35px;
}

.brand_img img {
    max-height: 25px;
    max-width: 70px;
    filter: grayscale(20%); /* Leggermente desaturati per non distrarre troppo */
    transition: filter 0.2s;
}

.brand_img a:hover img {
    filter: grayscale(0%);
}

/* Icone Basket e Wishlist */
.add_wish_list img, .add_basket img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.add_wish_list:hover img, .add_basket:hover img {
    transform: scale(1.2);
}

/* Categoria e Abstract */
.cat_ab {
    margin: 10px 0;
}

.cat_ab .ui-btn {
    font-size: 0.85rem;
    color: #007bff;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.cat_ab p {
    font-size: 0.9rem;
    color: #666;
    height: 3em;
    line-height: 1.4;
    overflow: hidden;
    margin: 0;
}

/* Prezzo */
.prezzo {
    font-size: 1.2rem;
    color: #2ecc71; /* Verde moderno per il prezzo */
    font-weight: 700;
    margin-top: 10px;
    border-top: 1px solid #f9f9f9;
    padding-top: 10px;
}

.prezzo span {
    display: block;
}
