/* Nivah category carousel — full-bleed, live centre-level wave motion.
   Position is determined from each card's actual horizontal coordinate by JS;
   no fixed odd/even vertical rows. */
.section.nivah-categories-section{
  width:100%;
  overflow:hidden;
}
.nivah-category-stage{
  --nv-wave-amplitude:52px;
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  height:calc(var(--category-card-height) + 2 * var(--nv-wave-amplitude) + 16px) !important;
  overflow:hidden;
}
.nivah-category-slide,
.nivah-category-slide:nth-child(odd),
.nivah-category-slide:nth-child(even){
  padding-top:var(--nv-wave-amplitude) !important;
  transform:translate3d(0,var(--nv-wave-y,0px),0);
  transition:none !important;
  will-change:transform;
}
@media(min-width:801px) and (max-width:1199px){
  .nivah-category-stage{
    --nv-wave-amplitude:42px;
    width:100% !important;
    max-width:none !important;
  }
}
@media(max-width:800px){
  .nivah-category-stage{
    --nv-wave-amplitude:29px;
    width:100% !important;
    max-width:none !important;
  }
}
@media(max-width:370px){
  .nivah-category-stage{--nv-wave-amplitude:25px}
}
@media(prefers-reduced-motion:reduce){
  .nivah-category-slide{
    --nv-wave-y:0px !important;
    transform:none !important;
    will-change:auto;
  }
}

/* Six cards across large desktops, four at tablet widths, two on phones.
   All six categories are unique in a full visible desktop set. */
@media (min-width:1200px){
  .nivah-category-stage{
    --category-visible:6 !important;
  }
}
@media (min-width:768px) and (max-width:1199px){
  .nivah-category-stage{
    --category-visible:4 !important;
  }
}
@media (min-width:768px) and (max-width:800px){
  .nivah-category-stage{
    --category-card-height:242px;
    --nv-wave-amplitude:32px;
  }
  .nivah-category-label,
  .nivah-category-tile:hover .nivah-category-label{
    font-size:11px;
    padding-inline:5px !important;
  }
}
