/* Zentralia category section */
.zch-categories {
  width: min(1760px, calc(100% - 64px));
  margin: 32px auto 42px;
}

.zch-categories__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.zch-categories__head h2 {
  margin: 0;
  color: #171727;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.zch-categories__head > a {
  color: #3630ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.zch-categories__grid {
  display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
   overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.zch-category-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f6ff;
}

.zch-category-card:nth-child(3n + 2) {
  background: #fff3e8;
}

.zch-category-card:nth-child(3n + 3) {
  background: #eef8ef;
}

.zch-category-card > a {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  color: #171727;
  text-decoration: none;
}

.zch-category-card img {
  display: block;
  width: 100%;
  height: 190px;
  padding: 12px 12px 0;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.zch-category-card:hover img {
  transform: scale(1.04);
}

.zch-category-card__bottom {
  display: flex;
  min-height: 65px;
  padding: 10px 14px 14px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.zch-category-card__bottom h3 {
  max-width: 78%;
  margin: 0;
  color: inherit;
  font-size: 17px;
  line-height: 1.15;
}

.zch-category-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.zch-category-card__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Desktop i madh: 8 kategori */
@media (min-width: 1600px) {
  .zch-categories__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Desktop normal: 7 kategori */
@media (min-width: 1400px) and (max-width: 1599px) {
  .zch-categories {
    width: calc(100% - 56px);
  }

  .zch-categories__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* Laptop i madh: 6 kategori */
@media (min-width: 1200px) and (max-width: 1399px) {
  .zch-categories {
    width: calc(100% - 48px);
  }

  .zch-categories__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Laptop dhe tablet horizontal: 5 kategori */
@media (min-width: 992px) and (max-width: 1199px) {
  .zch-categories {
    width: calc(100% - 40px);
  }

  .zch-categories__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Tablet: 4 kategori */
@media (min-width: 768px) and (max-width: 991px) {
  .zch-categories {
    width: calc(100% - 32px);
  }

  .zch-categories__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Mobile: saktësisht 3 kategori */
@media (max-width: 767px) {
  .zch-categories,
  .zch-categories * {
    box-sizing: border-box;
  }

  .zch-categories {
    width: 100%;
    margin: 20px 0 28px;
    padding: 0 10px;
  }

  .zch-categories__head {
    display: flex;
    gap: 10px;
    margin-bottom: 13px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
  }

  .zch-categories__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .zch-categories__head > a {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .zch-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  /* Në mobile shfaq vetëm 3 kategoritë e para */
  .zch-category-card:nth-child(n + 4) {
    display: none;
  }

  .zch-category-card {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
  }

  .zch-category-card > a {
    display: flex;
    width: 100%;
    min-height: 120px;
    flex-direction: column;
    justify-content: space-between;
  }

  .zch-category-card img {
    display: block;
    width: 100%;
    height: 125px;
    padding: 7px 5px 0;
    object-fit: contain;
  }

  .zch-category-card__bottom {
 display: flex;
        width: 100%;
        min-height: 31px;
        padding: 7px 7px 9px;
        gap: 4px;
        align-items: center;
        justify-content: center;
        text-align: center;
  }

  .zch-category-card__bottom h3 {
    display: -webkit-box;
    max-width: calc(100% - 28px);
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: nowrap;
  }

  .zch-category-card__arrow {
    display: flex;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 0;
  }

  .zch-category-card__arrow svg {
    display: block;
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 359px) {
  .zch-categories {
    padding: 0 7px;
  }

  .zch-categories__grid {
    gap: 6px;
  }

  .zch-category-card > a {
    min-height: 166px;
  }

  .zch-category-card img {
    height: 110px;
  }

  .zch-category-card__bottom {
    min-height: 56px;
    padding: 6px 5px 8px;
  }

  .zch-category-card__bottom h3 {
    max-width: calc(100% - 25px);
    font-size: 10px;
  }

  .zch-category-card__arrow {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .zch-category-card__arrow svg {
    width: 13px;
    height: 13px;
  }
}