.vb-categories-carousel,
.vb-categories-carousel *,
.vb-categories-carousel *::before,
.vb-categories-carousel *::after {
  box-sizing: border-box;
}

.vb-categories-carousel {
  padding: 96px 14px;
  background: #fff;
  overflow-x: clip;
}

.vb-categories-carousel__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.vb-categories-carousel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 58px;
}

.vb-categories-carousel__header-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.vb-categories-carousel__title {
  margin: 0;
  color: #4b3f3b;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vb-categories-carousel__title-main,
.vb-categories-carousel__title-highlight {
  display: inline;
}

.vb-categories-carousel__title-highlight {
  color: #cdaea2;
}

.vb-categories-carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  border: 0;
  border-radius: 0;
  color: #4b3f3b;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

.vb-categories-carousel__link:hover {
  opacity: 0.72;
}

.vb-categories-carousel__link svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.vb-categories-carousel__controls {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.vb-categories-carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(75, 63, 59, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #d2b2a5ad;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.vb-categories-carousel__nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(210, 178, 165, 0.37);
}

.vb-categories-carousel__nav:disabled {
  cursor: default;
  background: rgba(210, 178, 165, 0.37);
}

.vb-categories-carousel__nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.vb-categories-carousel__viewport-wrap {
  position: relative;
  /* padding-inline: 48px; */
}

.vb-categories-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.vb-categories-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.vb-categories-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 80px) / 5);
  gap: 20px;
}

.vb-categories-carousel__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 284px;
  padding: 32px 22px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(184deg, rgba(127, 98, 82, 0.3) 14.87%, #4b3f3b 90.15%),
    linear-gradient(135deg, #cdaea2 0%, #7f6252 100%);
  text-decoration: none;
  scroll-snap-align: start;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  min-width: 0;
}

.vb-categories-carousel__card:hover {
  transform: translateY(-2px);
}

.vb-categories-carousel__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(75, 63, 59, 0.02) 0%,
    rgba(75, 63, 59, 0.8) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

.vb-categories-carousel__card-label {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.vb-categories-carousel__nav--side {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(210, 178, 165, 0.68);
  color: #fff;
}

.vb-categories-carousel__nav--side:hover:not(:disabled) {
  transform: translateY(-50%);
  border-color: transparent;
}

.vb-categories-carousel__nav--prev {
  left: -4%;
}

.vb-categories-carousel__nav--next {
  right: -4%;
}
@media (max-width: 1359px) {
  .vb-categories-carousel__nav--prev {
  display: none;
}

.vb-categories-carousel__nav--next {
  display: none;
}
}

.vb-categories-carousel__controls--mobile {
  display: none;
  justify-content: center;
  margin-top: 16px;
}
@media (max-width: 1359px) {
  .vb-categories-carousel__controls--mobile {
    display: inline-flex;
    width: 100%;
  }

  .vb-categories-carousel__controls--mobile .vb-categories-carousel__nav {
    width: 32px;
    height: 32px;
    background: #d2b2a5ad;
    color: #fff;
    border: 0;
  }
}

@media (max-width: 1100px) {
  .vb-categories-carousel__title {
    font-size: 32px;
  }

  .vb-categories-carousel__viewport-wrap {
    /* padding-inline: 36px; */
  }

  .vb-categories-carousel__track {
    grid-auto-columns: calc((100% - 48px) / 3);
  }

  .vb-categories-carousel__card {
    min-height: 250px;
    padding: 24px 18px;
  }

  .vb-categories-carousel__nav--side {
    width: 28px;
    height: 28px;
  }
  .vb-categories-carousel__nav--prev {
    left: -5%;
  }

  .vb-categories-carousel__nav--next {
    right: -5%;
  }
}

@media (max-width: 920px) {
  .vb-categories-carousel__track {
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
  }

  .vb-categories-carousel__card {
    min-height: 220px;
    padding: 20px 16px;
  }

  .vb-categories-carousel__card-label {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .vb-categories-carousel {
    padding: 32px 20px;
  }

  .vb-categories-carousel__inner {
    padding: 0;
  }

  .vb-categories-carousel__header {
    gap: 10px;
    margin-bottom: 18px;
  }

  .vb-categories-carousel__header-main {
    align-items: flex-end;
    width: 100%;
  }

  .vb-categories-carousel__title {
    font-size: 28px;
    max-width: 160px;
  }

  .vb-categories-carousel__link {
    padding-top: 4px;
    font-size: 16px;
  }

  .vb-categories-carousel__viewport-wrap {
    padding-inline: 0;
  }

  .vb-categories-carousel__controls {
    display: none;
  }

  .vb-categories-carousel__track {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
  }

  .vb-categories-carousel__card {
    min-height: 180px;
    padding: 10px;
    border-radius: 16px;
  }

  .vb-categories-carousel__card-label {
    font-size: 22px;
  }

  .vb-categories-carousel__nav--side {
    display: none;
  }

  .vb-categories-carousel__controls--mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  .vb-categories-carousel__controls--mobile[hidden] {
    display: none;
  }
}
