/* ==========================================================================
   IMMAGINI: ritaglio del marchio nelle foto prodotto e segnaposto neutro
   ========================================================================== */

/* Compatibilità: nessun ritaglio forzato, le immagini prodotto usano le proporzioni naturali */
.img-crop-brand {
    transform: none;
}

.img-fallback {
    object-fit: contain !important;
    background: var(--bg-subtle);
    padding: 18%;
    transform: none;
}

/* Stepper tracking spedizione */
.tracking-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* Vista rapida prodotto */
.quick-view-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r-md);
    margin-bottom: 12px;
}

.quick-view-frame .quick-view-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--r-md);
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Riquadro miniatura per carrello e cassetta personalizzata */
.cart-item-row .thumb-frame {
    width: 72px;
    height: 72px;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    line-height: 0;
}

.box-ingredient-card .thumb-frame {
    width: 44px;
    height: 44px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    line-height: 0;
}

.thumb-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.box-ingredient-thumb {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.thumb-frame .cart-item-thumb,
.thumb-frame .box-ingredient-thumb {
    border-radius: 0;
}
