/* =====================================================================
   BYITALY 2 - base.css
   Regole di base che battono il theme.css del Classic (caricato prima:
   questo file ha priorita' piu' alta), liste prodotto e pagine legali.
   ===================================================================== */

html, body { overflow-x: clip; }

/* ---------------------------------------------------------------------
   1. LISTE PRODOTTO (categorie, ricerca, nuovi, offerte)
   Classic imposta display:flex su "#products .products": qui diventa
   una griglia: 2 colonne mobile, 3 tablet, 4 desktop.
--------------------------------------------------------------------- */
#products #js-product-list .products,
#products .products.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ff-gap, 16px);
  margin-left: 0;
  margin-right: 0;
}
#products #js-product-list .products > *,
#products .products.row > * {
  width: auto;
  max-width: none;
  min-width: 0;
}
@media (min-width: 768px) {
  #products #js-product-list .products,
  #products .products.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  #products #js-product-list .products,
  #products .products.row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 359.98px) {
  #products #js-product-list .products,
  #products .products.row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   2. PAGINE LEGALI (CMS): segnaposto da completare e tabelle scorrevoli
--------------------------------------------------------------------- */
.page-cms .ff-todo { background: #fff3a3; color: inherit; padding: 0 3px; border-radius: 3px; }
.page-cms .ff-todo-note {
  background: #fff8d6;
  border-left: 4px solid #e0a800;
  padding: 10px 14px;
  border-radius: 4px;
}
.page-cms div:has(> table.table) { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-cms table.table { min-width: 640px; }
.page-cms table.table th,
.page-cms table.table td { vertical-align: top; text-align: left; }

/* ---------------------------------------------------------------------
   3. VARIE
--------------------------------------------------------------------- */
/* Home: nessun padding extra sopra il primo blocco */
#index #wrapper { padding-top: 0; background: #fff; }
#index #content-wrapper { padding-bottom: 0; }
/* Il Classic mostra il breadcrumb anche in home: qui non serve */
#index .breadcrumb { display: none; }
