/* =========================
   NXS Categories Carousel (v3)
========================= */

.nxs-cat, .nxs-cat *{ box-sizing:border-box; }

.nxs-cat__wrap{
  max-width:1320px;
  margin:0 auto;
  padding:28px 24px 18px;
}

.nxs-cat__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.nxs-cat__title{
  margin:0;
  font-size:34px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:-0.02em;
}

.nxs-cat__count{
  font-weight:600;
  opacity:.65;
  font-size:14px;
  vertical-align:middle;
  margin-left:6px;
}

/* Header arrows */
.nxs-cat__nav{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:6px;
}

.nxs-cat__navBtn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  transition:transform .12s ease, opacity .12s ease;
}

.nxs-cat__navBtn:hover{ transform: translateY(-1px); }
.nxs-cat__navBtn:active{ transform: translateY(0); }

.nxs-cat__navBtn.is-hidden{
  opacity:0;
  pointer-events:none;
}

/* Track */
.nxs-cat__viewport{
  overflow:hidden;
  width:100%;
  position:relative;
}

.nxs-cat__track{
  display:flex;
  gap:18px;
  will-change:transform;
  transform:translate3d(0,0,0);
  user-select:none;
  touch-action:pan-y;
  cursor:grab;
  padding-bottom:18px; /* space for dots */
}

.nxs-cat__track.is-dragging{ cursor:grabbing; }

.nxs-cat__card{
  flex:0 0 auto;
  width: 280px;
  text-decoration:none;
  color:inherit;
}

.nxs-cat__cardInner{
  background:#f3f3f3;
  border-radius:22px;
  padding:18px 18px 16px;
  height: 320px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.nxs-cat__imgWrap{
  height: 230px;
  border-radius:18px;
  overflow:hidden;
}

.nxs-cat__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.nxs-cat__label{
  margin-top:14px;
  font-weight:700;
  font-size:14px;
  color:#333;
}

/* Dots/progress (same desktop & mobile) */
.nxs-cat__dots{
  display:flex;
  gap:14px;
  padding:10px 0 0;
  overflow:hidden;
  align-items:center;
}

.nxs-cat__dot{
  height:2px;
  width:46px;
  background:#cfcfcf;
  border-radius:999px;
  opacity:.9;
}
.nxs-cat__dot.is-active{ background:#ffdd00; }

/* ===== Mobile ===== */
@media (max-width: 860px){
  .nxs-cat__wrap{ max-width:none; padding:22px 16px 14px; }
  .nxs-cat__title{ font-size:30px; }
  .nxs-cat__card{ width: 260px; }
  .nxs-cat__cardInner{ height: 300px; }
  .nxs-cat__dots{ gap:10px; padding-left:2px; }
  .nxs-cat__dot{ width:36px; }
}
