/* hn2-home-newprod.css — "מוצרים חדשים של הנמל" on the home page.
   Home heading style; packshots stand uncropped on a light "shelf" tile. */

.hn2h .hn2np{background:#fff;padding-block:clamp(48px,6vw,80px);border-top:1px solid #EBEDF2;}

/* heading row: titles on the start side, catalogue link on the end side */
.hn2h .hn2np-head{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-bottom:28px;}
.hn2h .hn2np-titles{display:grid;gap:6px;text-align:start;justify-items:start;flex:1 1 0;min-width:240px;}
.hn2h .hn2np-titles .hn2h-kick{margin:0;}
.hn2h .hn2np-titles .hn2h-h2{margin:0;width:auto;max-width:none;text-align:start;}
.hn2h .hn2np-all{
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;
  color:#22346A;font-weight:700;font-size:15px;text-decoration:none;
  padding:9px 16px;border:1.5px solid #DCDFE7;border-radius:10px;
  transition:border-color .2s,background .2s,color .2s;
}
.hn2h .hn2np-all:hover,.hn2h .hn2np-all:focus-visible{border-color:#22346A;background:#22346A;color:#fff;}

.hn2h .hn2np-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;}

.hn2h .hn2np-card{position:relative;display:grid;grid-template-rows:auto 1fr;gap:12px;min-width:0;}
.hn2h .hn2np-img{
  position:relative;aspect-ratio:1;border-radius:16px;overflow:hidden;
  background:#F4F5F8;display:grid;place-items:center;
  transition:background .3s ease;
}
.hn2h .hn2np-img img{
  width:74%;height:74%;object-fit:contain;display:block;margin:0;
  mix-blend-mode:multiply;                     /* white photo backgrounds melt into the tile */
  transition:transform .5s cubic-bezier(.23,1,.32,1);
}
.hn2h .hn2np-badge{
  position:absolute;top:10px;inset-inline-start:10px;
  background:#fff;color:#D71F36;border:1px solid #F0AAB3;
  font-size:11.5px;font-weight:700;line-height:1;padding:5px 9px;border-radius:999px;
}
.hn2h .hn2np-b{display:grid;gap:4px;align-content:start;padding-inline:2px;}
.hn2h .hn2np-cat{font-size:12.5px;color:#6B717D;font-weight:500;}
.hn2h .hn2np-t{margin:0;font-size:15.5px;line-height:1.35;font-weight:700;color:#22346A;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hn2h .hn2np-link{color:inherit;text-decoration:none;}
.hn2h .hn2np-link::after{content:"";position:absolute;inset:0;border-radius:16px;} /* whole card clickable */
.hn2h .hn2np-link:focus-visible{outline:none;}
.hn2h .hn2np-card:has(.hn2np-link:focus-visible) .hn2np-img{outline:2px solid #D71F36;outline-offset:3px;}

@media (hover:hover) and (pointer:fine){
  .hn2h .hn2np-card:hover .hn2np-img{background:#EBEDF2;}
  .hn2h .hn2np-card:hover .hn2np-img img{transform:translateY(-6px) scale(1.04);}
  .hn2h .hn2np-card:hover .hn2np-t{color:#D71F36;}
}

@media (max-width:1024px){
  .hn2h .hn2np-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .hn2h .hn2np-card:nth-child(n+4){display:none;}
}
/* phones: one swipeable row */
@media (max-width:767px){
  .hn2h .hn2np-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:58%;
    overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:6px;}
  .hn2h .hn2np-card:nth-child(n+4){display:grid;}
  .hn2h .hn2np-card{scroll-snap-align:start;}
  .hn2h .hn2np-head{align-items:flex-start;}
}
@media (prefers-reduced-motion: reduce){
  .hn2h .hn2np-img,.hn2h .hn2np-img img,.hn2h .hn2np-all{transition:none;}
  .hn2h .hn2np-card:hover .hn2np-img img{transform:none;}
}
