/* ===== Hero slider — tema tasarım dili ===== */
.hero-section {
  padding: 1.25rem 0 0.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.hero-slider-wrap,
.hero-side-wrap {
  min-width: 0;
  min-height: 0;
}

@media (min-width: 1024px) {
  .hero-side-wrap {
    display: flex;
    flex-direction: column;
  }
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: hsl(var(--theme-bg-2));
  aspect-ratio: 1280 / 630;
  max-height: 420px;
  width: 100%;
}

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slider__link {
  display: block;
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-offer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(0deg, rgba(31, 12, 74, 0.95) 0%, rgba(31, 12, 74, 0.75) 60%, transparent 100%);
  flex-wrap: wrap;
}

/* Slider dışındaki kampanya şeridi — absolute DEĞİL */
.hero-offer-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: hsl(var(--theme-purple));
  border: 1px solid hsl(var(--theme-border));
}

.hero-offer-bar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.hero-offer-bar__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-offer {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
}

.hero-offer__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--theme-red));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.hero-offer__content {
  flex: 1;
  min-width: 0;
}

.hero-offer__content strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-offer__content small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  line-height: 1.3;
}

.hero-offer__timer {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  background: hsl(var(--theme-card));
  border: 1px solid hsl(var(--theme-border));
  color: hsl(var(--theme-yellow));
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.hero-offer__cta {
  flex-shrink: 0;
  padding: 0.5rem 1.125rem;
  border-radius: 0.375rem;
  background: hsl(var(--theme-yellow));
  color: hsl(var(--theme-accent-text));
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background 0.15s ease;
}

.hero-slider__link:hover .hero-offer__cta {
  background: hsl(var(--theme-yellow-hover));
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: rgba(31, 12, 74, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-nav:hover {
  background: hsl(var(--theme-purple));
  border-color: hsl(var(--theme-yellow));
}

.hero-nav--prev { left: 0.75rem; }
.hero-nav--next { right: 0.75rem; }

.hero-dots {
  position: absolute;
  bottom: 4.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

@media (max-width: 639px) {
  .hero-dots {
    bottom: 0.65rem;
  }

  .hero-slider:has(.hero-offer) .hero-dots {
    bottom: 5.5rem;
  }

  .hero-offer {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .hero-offer__content strong {
    font-size: 0.85rem;
  }

  .hero-offer__timer {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .hero-offer__cta {
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.75rem;
  }

  .hero-nav {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, width 0.15s ease;
}

.hero-dot.is-active {
  width: 1.5rem;
  background: hsl(var(--theme-yellow));
}

/* Yan bannerlar — mobilde yatay şerit, masaüstünde dikey sütun */
.hero-side-wrap {
  position: relative;
}

@media (max-width: 1023px) {
  .hero-side-wrap::before,
  .hero-side-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.25rem;
    z-index: 1;
    pointer-events: none;
  }

  .hero-side-wrap::before {
    left: 0;
    background: linear-gradient(to right, hsl(var(--theme-bg)) 20%, transparent);
  }

  .hero-side-wrap::after {
    right: 0;
    background: linear-gradient(to left, hsl(var(--theme-bg)) 20%, transparent);
  }
}

.hero-side-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}

.hero-side-scroll.is-auto-scroll {
  overflow-x: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.hero-side-scroll.is-auto-scroll:not(.is-dragging):not(:hover) {
  cursor: default;
}

.hero-side-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.hero-side-scroll.is-dragging .hero-side__banner {
  pointer-events: none;
}

.hero-side {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  width: max-content;
  padding: 0.125rem 0.25rem;
}

.hero-side-scroll.is-auto-scroll .hero-side {
  will-change: transform;
}

.hero-side__banner {
  display: block;
  flex: 0 0 auto;
  width: min(76vw, 17.5rem);
  aspect-ratio: 930 / 408;
  overflow: hidden;
  border-radius: 0.5rem;
  background: hsl(var(--theme-card));
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-side__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-side__banner {
    width: min(42vw, 20rem);
  }
}

@media (min-width: 1024px) {
  .hero-side-scroll {
    overflow: visible;
    height: 100%;
  }

  .hero-side {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.75rem;
    height: 100%;
    min-height: 100%;
    max-height: 420px;
    width: 100%;
    padding: 0;
  }

  .hero-side__banner {
    flex: 1;
    width: auto;
    aspect-ratio: auto;
    min-height: 0;
  }

  .hero-side__banner img {
    min-height: 120px;
  }

  .hero-side__banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
