:root {
  --deals-navy: #071441;
  --deals-text: #1a2140;
  --deals-heart: #cf1f55;
  --deals-white: #ffffff;
  --deals-arrow-bg: #ffffff;
  --deals-arrow-hover-bg: #071441;
  --deals-arrow-hover-color: #ffffff;
  --deals-arrow-disabled-bg: rgba(255, 255, 255, 0.58);
  --deals-arrow-disabled-color: #b6bccb;
  --deals-image-arrow-bg: rgba(7, 20, 65, 0.52);
  --deals-image-arrow-hover-bg: rgba(7, 20, 65, 0.88);
  --deals-radius: 14px;
}

.deals-section {
  width: min(1180px, calc(100% - 48px));
  margin: 30px auto 56px;
}

.deals-header {
  margin-bottom: 24px;
}

.deals-title {
  margin: 0 0 4px;
  font-size: clamp(28px, 3.2vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--deals-navy);
  letter-spacing: -0.03em;
}

.deals-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--deals-navy);
}

.deals-slider-wrap {
  position: relative;
}

.deals-swiper {
  width: 100%;
  overflow: hidden;
}

.deal-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.deal-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.74;
  border-radius: var(--deals-radius);
  overflow: hidden;
  background: #f2f4f8;
}

.card-image-swiper,
.card-image-swiper .swiper-wrapper,
.card-image-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.card-image-swiper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--deals-heart);
  background: var(--deals-white);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(7, 20, 65, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.favorite-btn:hover {
  transform: scale(1.06);
  background: #fff6f9;
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.image-arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--deals-image-arrow-bg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.deal-image-wrap:hover .image-arrow,
.deal-image-wrap:focus-within .image-arrow {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.image-arrow:hover {
  background: var(--deals-image-arrow-hover-bg);
}

.image-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.image-arrow.prev {
  left: 12px;
}

.image-arrow.next {
  right: 12px;
}

.image-arrow.swiper-button-disabled,
.image-arrow.swiper-button-disabled:hover {
  cursor: not-allowed;
  pointer-events: none;
  background: var(--deals-arrow-disabled-bg);
  color: var(--deals-arrow-disabled-color);
}

.image-pagination {
  position: absolute;
  left: 50% !important;
  bottom: 10px !important;
  z-index: 7;
  width: auto !important;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.deal-image-wrap:hover .image-pagination {
  opacity: 1;
}

.image-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.image-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
}

.deal-info {
  padding-top: 16px;
}

.deal-name {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--deals-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--deals-text);
}

.deal-price {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.deal-old-price {
  font-size: 14px;
  line-height: 1.2;
  color: var(--deals-text);
  text-decoration: line-through;
}

.outer-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 36px;
  height: 36px;
  margin-top: -28px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #1a4fff;
  background: var(--deals-arrow-bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.outer-arrow:hover {
  background: var(--deals-arrow-hover-bg);
  color: var(--deals-arrow-hover-color);
  transform: scale(1.04);
}

.outer-arrow svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.6;
}

.outer-arrow.prev {
  left: -18px;
}

.outer-arrow.next {
  right: -18px;
}

.outer-arrow.swiper-button-disabled,
.outer-arrow.swiper-button-disabled:hover {
  cursor: not-allowed;
  pointer-events: none;
  color: var(--deals-arrow-disabled-color);
  background: var(--deals-arrow-disabled-bg);
  transform: none;
}

.deals-pagination {
  display: none;
}

@media (max-width: 768px) {
  .deals-section {
    width: calc(100% - 28px);
    margin: 26px auto 44px;
  }

  .deals-header {
    margin-bottom: 18px;
  }

  .deals-title {
    font-size: 27px;
  }

  .deals-subtitle {
    font-size: 13px;
  }

  .deal-image-wrap {
    aspect-ratio: 1 / 0.78;
    border-radius: 12px;
  }

  .favorite-btn {
    width: 31px;
    height: 31px;
    top: 8px;
    right: 8px;
  }

  .favorite-btn svg {
    width: 18px;
    height: 18px;
  }

  .image-arrow {
    opacity: 1;
    visibility: visible;
    width: 28px;
    height: 28px;
    transform: translateY(-50%) scale(1);
  }

  .image-arrow.prev {
    left: 8px;
  }

  .image-arrow.next {
    right: 8px;
  }

  .image-pagination {
    opacity: 1;
    bottom: 8px !important;
  }

  .deal-info {
    padding-top: 12px;
  }

  .deal-name {
    min-height: 40px;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .deal-price {
    font-size: 19px;
  }

  .deal-old-price {
    font-size: 13px;
  }

  .outer-arrow {
    display: none;
  }

  .deals-pagination {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
  }

  .deals-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    border-radius: 999px;
    background: #c8ccd8;
    opacity: 1;
    transition: width 0.22s ease, background 0.22s ease;
  }

  .deals-pagination .swiper-pagination-bullet-active {
    width: 20px;
    background: var(--deals-navy);
  }
}
