@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* Willy B2B — catalogo prodotti v2.
   Solo presentazione: filtri, carrello e dati restano gestiti dagli script esistenti. */
.catalog-willy-v2{
  --wy:#f9d701;
  --wp:#ff3d8b;
  --wb:#4fb8ff;
  --wm:#7fe7c8;
  --wo:#f7f7f5;
  --wl:#e8e8e4;
  --wx:#000;
  --wg:#666;
  background:var(--wo);
}
.catalog-willy-v2 header{border:0;background:#000}
.catalog-willy-v2 header .wrap{min-height:74px}
.catalog-willy-v2 header .logo-img{height:35px;max-width:176px}
.catalog-willy-v2 header .logo .b2b{border-radius:8px;background:var(--wy);color:#000}
.catalog-willy-v2 .toolbar{border-bottom:1px solid var(--wl);background:#fff}
.catalog-willy-v2 .toolbar .wrap{min-height:70px}
.catalog-willy-v2 .search{border:1px solid var(--wl);border-radius:14px;background:var(--wo);font-size:14px}
.catalog-willy-v2 .cat-layout{grid-template-columns:238px minmax(0,1fr);gap:30px;padding-top:28px}
.catalog-willy-v2 .cat-filtri{top:92px;padding:20px;border:1px solid var(--wl);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.035)}
.catalog-willy-v2 .filtri-tit{color:#111;font-size:11px;font-weight:900;letter-spacing:.08em}
.catalog-willy-v2 .famiglie button{border-radius:9px;font-size:12.5px}
.catalog-willy-v2 .famiglie button:hover,
.catalog-willy-v2 .famiglie button.attiva,
.catalog-willy-v2 .famiglie button.on{background:#fff6bf;color:#000}
.catalog-willy-v2 .cat-strip{gap:9px}
.catalog-willy-v2 .cat-mini{border-radius:13px;background:#fff}
.catalog-willy-v2 .filtri-attivi{margin-bottom:16px}

.catalog-willy-v2 .prod-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.catalog-willy-v2 .prod-grid>.prod{
  display:flex;
  min-width:0;
  overflow:hidden;
  flex-direction:column;
  border:1px solid var(--wl);
  border-radius:19px;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.catalog-willy-v2 .prod-grid>.prod:hover{
  transform:translateY(-3px);
  border-color:#ccc;
  box-shadow:0 15px 36px rgba(0,0,0,.075);
}
.catalog-willy-v2 .prod.in-carrello{
  border-color:#000;
  outline:3px solid var(--wy);
  outline-offset:-3px;
}
.catalog-willy-v2 .prod-img{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  border-bottom:1px solid #efefec;
  background:#fff;
}
.catalog-willy-v2 .prod-img>a{
  display:block;
  width:100%;
  height:100%;
}
.catalog-willy-v2 .prod-img img{
  width:100%;
  height:100%;
  padding:14px;
  object-fit:contain;
  transition:transform .22s ease,opacity .22s ease;
}
.catalog-willy-v2 .prod:hover .prod-img>a>img:first-child{transform:scale(1.025)}
.catalog-willy-v2 .fav-btn{
  position:absolute;
  z-index:4;
  top:11px;
  right:11px;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #e4e4df;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#111;
  box-shadow:0 5px 14px rgba(0,0,0,.06);
  cursor:pointer;
  font-size:19px;
  line-height:1;
}
.catalog-willy-v2 .fav-btn.on{border-color:#ffc0d9;background:#fff0f6;color:var(--wp)}
.catalog-willy-v2 .prod-badge{
  left:11px;
  top:11px;
  padding:6px 9px;
  border-radius:8px;
  background:var(--wy);
  color:#000;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.catalog-willy-v2 .prod-badge.badge-off{background:var(--wp);color:#fff}
.catalog-willy-v2 .prod-body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:15px;
}
.catalog-willy-v2 .prod-body .prod-fam{
  display:inline-flex;
  align-self:flex-start;
  padding:4px 7px;
  border-radius:999px;
  background:#000;
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
}
.catalog-willy-v2 .prod-body h3{
  min-height:2.65em;
  margin-top:9px;
  font-size:14px;
  font-weight:800;
  line-height:1.32;
}
.catalog-willy-v2 .prod-body h3 a{text-decoration:none}
.catalog-willy-v2 .prod-body h3 a:hover{text-decoration:underline;text-decoration-color:var(--wy);text-decoration-thickness:3px;text-underline-offset:3px}
.catalog-willy-v2 .prod-sku{margin-top:5px;color:#888;font-size:10px}
.catalog-willy-v2 .gia-ordinato{color:#087c43;font-weight:800}
.catalog-willy-v2 .prod-price{
  margin-top:14px;
  color:#111;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1;
}
.catalog-willy-v2 .prod-price span{color:#777;font-size:10px;font-weight:700;letter-spacing:0}
.catalog-willy-v2 .prod-pieno{font-size:11px}
.catalog-willy-v2 .prod-moq{margin-top:8px;color:#555;font-size:11px;font-weight:700}
.catalog-willy-v2 .prod-stock{
  display:inline-flex;
  align-self:flex-start;
  align-items:center;
  gap:6px;
  min-height:28px;
  margin-top:7px;
  padding:5px 8px;
  border-radius:999px;
  background:#f7f7f5;
  font-size:10px;
  font-weight:800;
}
.catalog-willy-v2 .prod-stock.ok{color:#087c43}
.catalog-willy-v2 .prod-stock.low{background:#fff3e9;color:#9a4f00}
.catalog-willy-v2 .prod-stock.off{border-radius:9px;background:#fff0ef;color:#9b251b}
.catalog-willy-v2 .prod-ctl{
  display:grid;
  grid-template-columns:minmax(94px,.9fr) minmax(82px,1.1fr);
  align-items:center;
  gap:8px;
  margin-top:auto;
  padding-top:14px;
}
.catalog-willy-v2 .prod-ctl .stepper{
  display:grid;
  grid-template-columns:30px minmax(34px,1fr) 30px;
  width:100%;
  overflow:hidden;
  border:1.5px solid #111;
  border-radius:11px;
  background:#fff;
}
.catalog-willy-v2 .prod-ctl .stepper button,
.catalog-willy-v2 .prod-ctl .stepper input{height:38px}
.catalog-willy-v2 .prod-ctl .stepper button{background:#fff;font-weight:900}
.catalog-willy-v2 .prod-ctl .stepper button:hover{background:var(--wy)}
.catalog-willy-v2 .prod-ctl .stepper input{font-size:11px;font-weight:900}
.catalog-willy-v2 .prod-ctl .add{
  width:100%;
  min-height:40px;
  padding:8px 10px;
  border:2px solid #000;
  border-radius:11px;
  background:#000;
  color:#fff;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.catalog-willy-v2 .prod-ctl .add:hover{background:var(--wy);color:#000;box-shadow:none}
.catalog-willy-v2 .prod-off{opacity:.62}
.catalog-willy-v2 .load-more-wrap .btn{border:2px solid #000;background:#000;color:#fff}

@media(max-width:1280px){
  .catalog-willy-v2 .prod-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .catalog-willy-v2 .cat-layout{grid-template-columns:1fr;gap:20px}
  .catalog-willy-v2 .cat-filtri{position:static;max-height:none}
  .catalog-willy-v2 .prod-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .catalog-willy-v2 .prod-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .catalog-willy-v2 .prod-body{padding:11px}
  .catalog-willy-v2 .prod-img img{padding:9px}
  .catalog-willy-v2 .prod-body h3{min-height:2.8em;font-size:12.5px}
  .catalog-willy-v2 .prod-price{font-size:18px}
  .catalog-willy-v2 .prod-ctl{grid-template-columns:1fr;gap:7px;padding-top:11px}
  .catalog-willy-v2 .prod-ctl .stepper{grid-template-columns:34px 1fr 34px}
  .catalog-willy-v2 .prod-ctl .add{min-height:39px}
  .catalog-willy-v2 .fav-btn{top:8px;right:8px;width:32px;height:32px;font-size:17px}
  .catalog-willy-v2 .prod-badge{left:8px;top:8px}
}
@media(max-width:360px){
  .catalog-willy-v2 .prod-grid{grid-template-columns:1fr}
  .catalog-willy-v2 .prod-body h3{min-height:auto;font-size:14px}
}

/* [2026-08-03 Jacopo] Frecce sfoglia-foto sulla card, SOLO su touch. Sul desktop
   l'indizio resta la dissolvenza all'hover (.img-hover2); su mobile quella non
   parte, quindi sulle card con piu' viste (.has-multi, messa da catalogo.js)
   compaiono due frecce e una barretta-indizio in basso. */
.catalog-willy-v2 .prod-nav{
  position:absolute;
  z-index:5;
  top:50%;
  transform:translateY(-50%);
  display:none;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:0 1px 5px rgba(0,0,0,.16);
  color:#1a1a1a;
  font-size:19px;
  line-height:1;
  cursor:pointer;
}
.catalog-willy-v2 .prod-nav-prev{left:8px}
.catalog-willy-v2 .prod-nav-next{right:8px}
.catalog-willy-v2 .prod-img.has-multi::after{content:"";display:none}
@media (hover:none){
  .catalog-willy-v2 .prod-img.has-multi .prod-nav{display:flex}
  .catalog-willy-v2 .prod-img.has-multi::after{
    display:block;
    position:absolute;
    z-index:5;
    left:50%;
    bottom:8px;
    transform:translateX(-50%);
    width:22px;
    height:5px;
    border-radius:999px;
    background:rgba(0,0,0,.2);
  }
}
