/* v176 — correzioni schede: codice prodotto, foto dentro le card, foto mancanti */

/* 1) Codice prodotto: non più sopra il nome, ma in riga propria sopra la scheda */
body.catalog-app main #content .grid:not(.category-grid) .product>.product-code{position:static!important;top:auto!important;right:auto!important;display:inline-block;width:auto;margin:0 0 8px;padding:3px 10px;border-radius:7px;background:#f0d8a1!important;color:#051132!important;border:1px solid #cba45e!important;font:800 12px/1.4 system-ui,sans-serif!important}
body.catalog-app main #content .grid:not(.category-grid) .product .product-info h2{padding-right:0!important;-webkit-hyphens:auto;hyphens:auto}

/* 2) Foto delle schede catalogo: sempre dentro il riquadro bianco */
body.catalog-app main #content .grid:not(.category-grid) .product>img{position:static!important;max-width:100%;padding:8px;box-sizing:border-box}

/* 3) Descrizione e caratteristiche leggibile */
body.catalog-app .product details,body.catalog-app .product details summary{color:#e3c27a!important}
body.catalog-app .product details[open]{color:#ddd!important}

/* 4) Prima pagina, OFFERTA FLASH: la foto resta nel suo riquadro e non copre nome e prezzo */
body.catalog-app dialog.opening-offers .opening-offer-card{display:flex!important;flex-direction:column;overflow:hidden!important;position:relative}
body.catalog-app dialog.opening-offers .opening-offer-stage{position:relative!important;display:flex!important;align-items:center;justify-content:center;height:140px!important;margin:6px!important;padding:6px;box-sizing:border-box;overflow:hidden!important;background:#fff;border-radius:8px}
body.catalog-app dialog.opening-offers .opening-offer-stage>img{position:static!important;inset:auto!important;transform:none!important;display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body.catalog-app dialog.opening-offers .opening-offer-info{position:relative;z-index:1;display:flex;flex-direction:column;flex:1;gap:2px}
body.catalog-app dialog.opening-offers .opening-offer-info h2{margin:4px 0 0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.catalog-app dialog.opening-offers .opening-offer-add{margin-top:auto}

/* 5) Foto mancante: logo Food7prive centrato, niente "?" */
img.f7-photo-missing{object-fit:contain!important;padding:18%!important;box-sizing:border-box;background:#fff!important;opacity:.85}
