/* Popster v3.11.6 — slider I più amati; collezioni minimal e ispirazione statiche. */
/* La classe originale v315 usava una griglia. Il nuovo slider ha regole specifiche
   isolate per non modificare le schede della pagina Shop o Idee regalo. */
body.home .popster-v316-featured {padding:30px 0 42px !important;}
body.home .popster-v316-featured .popster-product-stage {
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 44px !important;
  gap:10px !important;align-items:center !important;min-width:0;
}
body.home .popster-v316-featured .popster-products-track {
  display:flex !important; flex-flow:row nowrap !important;
  width:100% !important;min-width:0 !important;max-width:100% !important;
  gap:14px !important;overflow-x:auto !important;overflow-y:hidden !important;
  scroll-snap-type:x mandatory !important;scrollbar-width:none;
  scroll-padding-inline:0; overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;
  padding:2px 0 14px !important;margin:0 !important;
  grid-template-columns:none !important;grid-auto-columns:auto !important;
}
body.home .popster-v316-featured .popster-products-track::-webkit-scrollbar{display:none}
body.home .popster-v316-featured .popster-products-track>.product-card {
  box-sizing:border-box !important;
  flex:0 0 calc((100% - (var(--popster-featured-desktop-visible,4) - 1)*14px)/var(--popster-featured-desktop-visible,4)) !important;
  width:auto !important; min-width:0 !important;max-width:none !important;
  scroll-snap-align:start; align-self:flex-start;
}
body.home .popster-v316-featured .product-card__img {width:100%;height:auto !important;aspect-ratio:2/3;overflow:hidden;}
body.home .popster-v316-featured .product-card__img img {width:100%;height:100%;object-fit:cover;}
body.home .popster-v316-featured .product-card__title {overflow-wrap:anywhere;}
body.home .popster-v316-featured .product-card__variant-options {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;}
body.home .popster-v316-featured .product-card__variant {min-width:0;max-width:100%;width:100%;padding:6px 3px;overflow:hidden;}
body.home .popster-v316-featured .product-card__add {width:100%;max-width:100%;white-space:normal;}
/* Immagine 1: collage minimal su sfondo totalmente trasparente, proporzioni 1400x1000. */
body.home .popster-v315-categories .popster-v315-category-image,
.popster-v315-categories-page .popster-v315-category-card--minimal .popster-v315-category-image {
  aspect-ratio:7/5 !important;background:transparent !important;border:0 !important;
  box-shadow:none !important;overflow:visible !important;display:flex;align-items:center;justify-content:center;
}
body.home .popster-v315-categories .popster-v315-category-image img,
.popster-v315-categories-page .popster-v315-category-card--minimal img {width:100% !important;height:100% !important;object-fit:contain !important;}
body.home .popster-v315-categories .popster-v315-category-name {font-weight:700;font-size:18px;margin-top:8px;}
body.home .popster-v315-categories .popster-v315-category-count {margin-top:2px;}
/* Immagine 2: Fatti ispirare, tutte le categorie visibili in griglia senza scorrimento. */
body.home .popster-v315-inspiration .popster-v316-inspiration-grid {
  display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-auto-flow:row !important;grid-auto-columns:auto !important;
  gap:24px 16px !important;overflow:visible !important;
  width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;
  scroll-snap-type:none !important;
}
body.home .popster-v315-inspiration .popster-v316-inspiration-grid>.collection-card {
  display:block !important;min-width:0 !important;max-width:none !important;width:100% !important;
  scroll-snap-align:none !important;position:relative;
}
body.home .popster-v315-inspiration .popster-v316-inspiration-grid .collection-card__img {
  display:block !important;width:100% !important;height:auto !important;
  aspect-ratio:2/3 !important;object-fit:cover !important;border-radius:16px !important;
}
body.home .popster-v315-inspiration .popster-v316-inspiration-grid .collection-card__overlay {padding:9px 0 5px !important;}
@media(max-width:900px){
 body.home .popster-v316-featured .popster-products-track>.product-card {
   flex-basis:calc((100% - (3 - 1)*12px)/3) !important;
 }
 body.home .popster-v316-featured .popster-products-track{gap:12px !important;}
}
@media(max-width:767px){
 /* Full-bleed track: la prima card parte dal bordo dello schermo;
    mezza card aggiuntiva rende evidente che la sezione scorre. */
 body.home .popster-v316-featured .popster-product-stage {
   display:block !important;position:relative;left:50%;transform:translateX(-50%);
   width:100vw !important;max-width:100vw !important;margin:0 !important;padding:0 !important;
 }
 body.home .popster-v316-featured .popster-product-stage>.popster-scroller-arrow {display:none !important;}
 body.home .popster-v316-featured .popster-products-track {
   display:flex !important;flex-flow:row nowrap !important;
   width:100% !important;max-width:100% !important;
   gap:12px !important;padding:2px 0 14px !important;
   scroll-padding-left:0 !important;
 }
 body.home .popster-v316-featured .popster-products-track>.product-card {
   flex:0 0 calc((100% - 24px)/var(--popster-featured-mobile-visible,2.5)) !important;
   scroll-snap-align:start;min-width:0 !important;
 }
 body.home .popster-v316-featured .product-card__title {font-size:12px;line-height:1.3;}
 body.home .popster-v316-featured .product-card__price {font-size:13px;}
 body.home .popster-v316-featured .product-card__variant-label {font-size:11px;}
 body.home .popster-v316-featured .product-card__variant-options {gap:4px;}
 body.home .popster-v316-featured .product-card__variant {font-size:10px;padding:5px 2px;}
 body.home .popster-v316-featured .product-card__add {font-size:11px;padding:9px 2px;}
 body.home .popster-v315-categories .popster-v315-category-name {font-size:15px;}
 body.home .popster-v315-inspiration .popster-v316-inspiration-grid {
   grid-template-columns:repeat(2,minmax(0,1fr)) !important;
   gap:16px 12px !important;
 }
 body.home .popster-v315-inspiration .popster-v316-inspiration-grid .collection-card__img {border-radius:12px !important;}
}
@media(prefers-reduced-motion:reduce){body.home .popster-v316-featured .popster-products-track {scroll-behavior:auto !important;}}
