.shop-slider {
  background-color: var(--color-secondary);
  margin: -50px -55px 0 -55px;
  position: relative;
  z-index: 1;
}

.shop-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/main/news/news-background.avif");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

.shop-slider__container {
  padding: 55px;
  max-width: 1900px;
  margin: 0 auto;
}

.shop-slider__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  gap: 10px;
}

.shop-slider__nav-mobile {
  margin-top: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.shop-goods__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 7px;
  border: 1px solid var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.shop-slider__nav-mobile .shop-goods__arrow {
  display: none;
}

.shop-goods__arrow:hover {
  border-color: var(--color-primary-hover);
}

.shop-goods__arrow-icon {
  color: var(--color-white);
  width: auto;
  height: 17px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.shop-goods__arrow:hover .shop-goods__arrow-icon {
  color: var(--color-primary-hover);
}

.shop-goods__arrow-icon--rotated {
  transform: rotate(180deg);
}

.shop-goods__arrow.swiper-button-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.shop-slider__title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  text-align: center;
  text-transform: uppercase;
}

.shop-slider__swiper {
  position: relative;
  z-index: 2;
}

.shop-slider__slide {
  width: 100%;
  height: 100%;
}

.shop-slider__slide-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 22px 25px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  height: 370px;
}

.shop-slider__slide-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.shop-slider__product-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-slider__slide-link:hover .shop-slider__product-img {
  transform: scale(1.05);
}

.shop-slider__product-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  align-self: start;
  z-index: 2;
}

.shop-slider__shop-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-secondary-dark);
  color: var(--color-white);
  padding: 12px 50px;
  border-radius: 100px;
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  transition: all 0.3s ease;
  text-align: center;
  max-width: fit-content;
  border: 1px solid transparent;
}

.shop-slider__shop-link:hover {
  border: 1px solid var(--color-primary-hover);
  color: var(--color-primary-hover);
  background: var(--color-white);
}

.shop-slider__shop-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1700px) {
  .shop-slider {
    margin: -50px -40px 0 -40px;
  }

  .shop-slider__container {
    padding: 40px;
  }
}

@media (max-width: 1024px) {
  .shop-slider {
    margin: -50px -16px 0 -16px;
  }

  .shop-slider__container {
    padding: 16px 16px 40px 16px;
  }
}

@media (max-width: 768px) {
  .shop-slider {
    margin: -20px -16px 0 -16px;
  }

  .shop-slider__slide-link {
    padding: 25px;
  }

  .shop-slider__title {
    font-size: 40px;
  }

  .shop-slider__product-title {
    font-size: 32px;
  }

  .shop-slider__shop-link {
    max-width: 100%;
    justify-content: center;
    padding: 12px 25px;
  }

  .shop-slider__nav-mobile {
    justify-content: space-between;
  }

  .shop-slider__header .shop-goods__arrow {
    display: none;
  }

  .shop-slider__nav-mobile .shop-goods__arrow {
    display: flex;
  }
}
