.elitas-product-tabs-section {
  background: #fff;
  padding: 64px 0 70px;
  overflow: hidden;
}

.elitas-product-carousel-section {
  clear: both;
  width: 100%;
  padding: 54px 0 64px;
}

.elitas-product-tabs-container {
  width: calc(100% - 64px);
  max-width: 1536px;
  margin: 0 auto;
}

.elitas-product-carousel-section .elitas-product-tabs-container {
  max-width: none;
}

.elitas-product-carousel-title {
  margin: 0 0 48px;
  color: #2b2823;
  font-family: "Raleway", "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.elitas-product-tabs__tabs-wrap {
  position: relative;
  margin-bottom: 48px;
}

.elitas-product-tabs__tabs-wrap::before,
.elitas-product-tabs__tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 72px;
  height: 100%;
  pointer-events: none;
}

.elitas-product-tabs__tabs-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.elitas-product-tabs__tabs-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.elitas-product-tabs__tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(96, 105, 92, 0.24);
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

.elitas-product-tabs__tabs::-webkit-scrollbar {
  display: none;
}

.elitas-product-tabs__tabs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.elitas-product-tabs__tab {
  flex: 0 0 auto;
  min-width: 205px;
  padding: 0 22px 13px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: rgba(43, 40, 35, 0.38);
  font-family: "Raleway", "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.elitas-product-tabs__tabs.is-dragging .elitas-product-tabs__tab {
  cursor: grabbing;
}

.elitas-product-tabs__tab:hover,
.elitas-product-tabs__tab.is-active {
  color: #66735f;
}

.elitas-product-tabs__tab.is-active {
  border-bottom-color: #66735f;
}

.elitas-product-tabs__panel[hidden] {
  display: none;
}

.elitas-product-tabs__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  touch-action: auto;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.elitas-product-tabs__viewport::-webkit-scrollbar {
  display: none;
}

.elitas-product-tabs__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.elitas-product-tabs__track {
  --product-gap: 40px;
  display: flex;
  gap: var(--product-gap);
  align-items: stretch;
  min-width: 100%;
}

.elitas-product-tabs__track.is-dragging {
  pointer-events: none;
}

.elitas-product-card {
  flex: 0 0 calc((100% - (var(--product-gap) * 3)) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #2b2823;
  font-family: "Raleway", "Montserrat", sans-serif;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.elitas-product-card__image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  margin-bottom: 15px;
  overflow: hidden;
  background: #f2f0ec;
  -webkit-user-drag: none;
  user-select: none;
}

.elitas-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.elitas-product-card__image-link:hover .elitas-product-card__image {
  transform: scale(1.03);
}

.elitas-product-card--gallery .elitas-product-card__image-link {
  margin-bottom: 15px;
}

.elitas-product-card__category {
  min-height: 20px;
  margin-bottom: 10px;
  color: rgba(43, 40, 35, 0.58);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.elitas-product-card__title {
  min-height: 44px;
  color: #2b2823;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.elitas-product-card__title:hover {
  color: #66735f;
}

.elitas-product-card__price {
  margin-top: 40px;
  margin-bottom: 31px;
  color: rgba(43, 40, 35, 0.78);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
}

.elitas-product-card__order {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 14px 22px;
  border: 1px solid #66735f;
  background: #66735f;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}

.elitas-product-card__order:hover,
.elitas-product-card__order:focus {
  background: transparent;
  color: #66735f;
}

.elitas-product-tabs__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  margin-top: 72px;
}

.elitas-product-tabs__controls.is-hidden {
  display: none;
}

.elitas-product-tabs__progress {
  position: relative;
  height: 5px;
  background: rgba(96, 92, 85, 0.18);
  overflow: hidden;
}

.elitas-product-tabs__progress span {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--progress-width, 50%);
  height: 100%;
  background: #2b2823;
  transform: translateX(var(--progress-left, 0%));
  transition: width .25s ease, transform .25s ease;
}

.elitas-product-tabs__arrows {
  display: flex;
  align-items: center;
  gap: 18px;
}

.elitas-product-tabs__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66735f;
  cursor: pointer;
}

.elitas-product-tabs__arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elitas-product-tabs__arrow:hover {
  color: #2b2823;
}

.elitas-product-tabs__arrow:disabled {
  color: rgba(43, 40, 35, 0.25);
  cursor: default;
}

.elitas-product-tabs__all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 205px;
  min-height: 52px;
  margin: 76px auto 0;
  border: 1px solid #66735f;
  color: #66735f;
  font-family: "Raleway", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}

.elitas-product-tabs__all:hover,
.elitas-product-tabs__all:focus {
  background: #66735f;
  color: #fff;
}

.elitas-product-carousel-note {
  margin-top: 28px;
  color: rgba(43, 40, 35, 0.78);
  font-family: "Raleway", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.elitas-product-carousel-note a {
  color: #66735f;
}

@media (max-width: 1199px) {
  .elitas-product-tabs__track {
    --product-gap: 30px;
  }

  .elitas-product-card {
    flex-basis: calc((100% - (var(--product-gap) * 2)) / 3);
  }

  .elitas-product-tabs__tab {
    min-width: 190px;
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .elitas-product-card {
    flex-basis: calc((100% - var(--product-gap)) / 2);
  }
}

@media (max-width: 767px) {
  .elitas-product-tabs-section {
    padding: 46px 0 54px;
  }

  .elitas-product-carousel-section {
    padding: 44px 0 52px;
  }

  .elitas-product-tabs-container {
    width: calc(100% - 32px);
  }

  .elitas-product-carousel-title {
    margin-bottom: 30px;
    font-size: 22px;
  }

  .elitas-product-tabs__tabs-wrap {
    margin-bottom: 30px;
  }

  .elitas-product-tabs__tabs-wrap::before,
  .elitas-product-tabs__tabs-wrap::after {
    width: 44px;
  }

  .elitas-product-tabs__tab {
    min-width: auto;
    padding: 0 18px 11px;
    font-size: 16px;
  }

  .elitas-product-tabs__track {
    --product-gap: 18px;
  }

  .elitas-product-tabs__panel {
    position: relative;
  }

  .elitas-product-card {
    flex-basis: 100%;
  }

  .elitas-product-card__image-link {
    aspect-ratio: 1 / 0.84;
    margin-bottom: 14px;
  }

  .elitas-product-card__category {
    font-size: 14px;
  }

  .elitas-product-card__title {
    min-height: auto;
    font-size: 17px;
  }

  .elitas-product-card__price {
    margin-top: 28px;
    margin-bottom: 22px;
    font-size: 16px;
  }

  .elitas-product-card__order {
    min-height: 50px;
  }

  .elitas-product-tabs__controls {
    position: absolute;
    top: calc((100vw - 32px) * .42 - 20px);
    left: 0;
    right: 0;
    z-index: 5;
    display: block;
    margin-top: 0;
    pointer-events: none;
  }

  .elitas-product-tabs__controls.is-hidden {
    display: none;
  }

  .elitas-product-tabs__progress {
    display: none;
  }

  .elitas-product-tabs__arrows {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0 8px;
    pointer-events: none;
  }

  .elitas-product-tabs__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
  }

  .elitas-product-tabs__arrow svg {
    width: 22px;
    height: 22px;
  }

  .elitas-product-tabs__all {
    width: 190px;
    min-height: 50px;
    margin-top: 42px;
  }
}
