@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Vazirmatn', sans-serif;
}

@keyframes scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-scroll {
  display: inline-block;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
  color: #be185d;
  font-weight: 600;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: rtl;
  border-radius: 24px;
  border: 3px solid #fbcfe8;
  box-shadow: 0 20px 50px rgba(236,72,153,0.15);
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide:nth-child(1) { background-image: url('./ax/slider-men.webp'); }
.hero-slide:nth-child(2) { background-image: url('./ax/slider-shoes.jpg'); background-position: center center; }
.hero-slide:nth-child(3) { background-image: url('./ax/slider-women.jpg'); }

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 40px 80px;
  color: #fff;
  max-width: 700px;
  margin-right: 0;
  margin-left: auto;
}

.hero-slide__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(236,72,153,0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-slide__title {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.5;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-slide__text {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 2;
  color: rgba(255,255,255,0.9);
}

.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 14px;
  background: #ec4899;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(236,72,153,0.4);
}

.hero-slide__btn:hover {
  background: #db2777;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(236,72,153,0.5);
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-slider__nav:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

.hero-slider__nav--prev { right: 20px; }
.hero-slider__nav--next { left: 20px; }

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider__dot.active {
  width: 28px;
  background: #ec4899;
}

.product-card {
  border: 1px solid #fce7f3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #f9a8d4;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.add-to-cart-btn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-slider__track { height: 360px; }

  .hero-slide__content {
    padding: 24px 24px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero-slide__title { font-size: 26px; }
  .hero-slide__text  { font-size: 14px; }

  .hero-slider__nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-slider__track  { height: 280px; }
  .hero-slide__title   { font-size: 20px; }
  .hero-slide__text    { font-size: 13px; margin-bottom: 16px; }
  .hero-slide__btn     { padding: 10px 20px; font-size: 13px; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide.active .hero-slide__content {
  animation: heroFadeIn 0.8s ease both;
}

.hero-slide.active .hero-slide__badge  { animation: heroFadeIn 0.6s ease 0.1s both; }
.hero-slide.active .hero-slide__title  { animation: heroFadeIn 0.6s ease 0.25s both; }
.hero-slide.active .hero-slide__text   { animation: heroFadeIn 0.6s ease 0.4s both; }
.hero-slide.active .hero-slide__btn    { animation: heroFadeIn 0.6s ease 0.55s both; }
