/**********************************************
 * POPULAR PRODUCTS SECTION
 **********************************************/

/* Font Yükleme */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}


/**********************************************
* SITE HEADER
********************************************** */

.site-header {
  width: 100%;
  height: 119px; /* Masaüstü yüksekliği */
  background: #FFF;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25); /* Masaüstü gölgesi */
  flex-shrink: 0; /* Yükseklik sabit kalsın */
  transition: height 0.3s ease, box-shadow 0.3s ease; /* Yumuşak geçişler */
}

/* Mobil (max-width: 767px) */
@media (max-width: 767px) {
  .site-header {
      height: 61px; /* Mobil yüksekliği */
      box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); /* Mobil gölgesi */
  }
}


/**********************************************
* Ürün Kartları Bölümü
********************************************** */

/* Ürün kartları bölümü */
.popular-products {
  display: flex;
  gap: 25px; /* Kartlar arası boşluk */
  justify-content: center; /* Ortalı */
  margin: 51px auto; /* Yazı ile boşluk */
  max-width: calc(310px * 4 + 25px * 3); /* 4 kart genişliği + 3 aradaki boşluk */
  padding: 0 20px; /* Sağ ve sol boşluk */
  transition: all 0.3s ease; /* Geçiş efektleri */
}

/* Scrollbar'ı gizleme */
.popular-products::-webkit-scrollbar {
  display: none;
}

/* Ürün kartı */
.product-card {
  width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #000;
  box-sizing: border-box; /* Kenar boşlukları dahil */
  transition: transform 0.3s ease; /* Hover efektleri için geçiş */
}

.product-card:hover {
  transform: translateY(-5px); /* Hover durumunda hafif yukarı hareket */
}


/* Görsel alanı */
.product-image {
  width: 310px;
  height: 310px;
  border-radius: 20px;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px; /* Yıldızlarla arası boşluk */
}

/* Görsel */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Kalp Butonu */
.favorite-button {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease; /* Hover efektleri için geçiş */
}

/* Kalp İkonu */
.heart-icon {
  width: 30px;
  height: 30px;
}

.heart-path {
  stroke: #333333;
  fill: none;
  transition: all 0.3s ease;
}

/* Dolmuş ve kırmızı kalp */
.favorite-button.active .heart-path {
  stroke: none;
  fill: #B53A3A;
}

/* Yıldızlar ve reyting */
.product-rating {
  display: flex;
  align-items: center;
  gap: 13px; /* Yıldızlar ile reyting arası boşluk */
  margin-bottom: 10px;
}

/* Yıldızlar */
.stars {
  display: flex;
  gap: 3px; /* Yıldızlar arası boşluk */
}

.stars svg {
  width: 18.49px;
  height: 18.49px;
}

/* Reyting text */
.rating-text {
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
}

.rating-text span {
  color: rgba(0, 0, 0, 0.60);
}

/* Reklam Yazısı */
.product-discount {
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #717171;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* Ürün İsmi */
.product-names {
  font-family: "Satoshi", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 8px;
  line-height: normal;
}

/* Ürün Fiyatı */
.product-price {
  display: flex;
  gap: 8px;
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

.product-price .current-price {
  color: #B53A3A;
}

.product-price .original-price {
  color: #717171;
  text-decoration-line: line-through;
  font-size: 14px;
  font-weight: 500;
}


/**********************************************
* MOBİL VE TABLET TASARIM
********************************************** */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .popular-products {
    display: flex;
    overflow-x: auto; /* Yatay kaydırma */
    gap: 16px; /* Kartlar arası boşluk */
    padding: 0 20px; /* Sağ ve sol boşluk sabit */
    justify-content: flex-start; /* Kartları sola hizalar */
    align-items: flex-start; /* Kartları üstten hizalar */
    scroll-behavior: smooth; /* Yumuşak geçiş */
    -webkit-overflow-scrolling: touch; /* Mobil uyumluluk */
}

.product-card {
    width: calc((100% - 2 * 20px - 2 * 16px) / 3); /* 3 kart için genişlik hesaplama */
    flex-shrink: 0; /* Kartların sabit genişlikte kalmasını sağlar */
}
}

  .product-image {
      width: 100%; /* Kart genişliğine göre otomatik uyum */
      height: auto;
      aspect-ratio: 1 / 1; /* Kare oranı */
      border-radius: 15px;
  }

  .favorite-button {
      top: 16px; /* Tablet için kalp butonunun pozisyonu */
      right: 16px;
      width: 24px; /* Kalp boyutu */
      height: 24px;
  }

  .stars svg {
      width: 16px;
      height: 16px;
  }

  .product-name {
      font-size: 40px; /* Tablet için yazı boyutu */
      margin-bottom: 8px;
  }

  .product-price .current-price {
      font-size: 16px;
  }

  .product-price .original-price {
      font-size: 14px;
  }


/* Mobil (max-width: 767px) */
@media (max-width: 767px) {
  .popular-products {
      display: flex;
      overflow-x: auto; /* Yatay kaydırma */
      gap: 16px; /* Kartlar arası boşluk */
      padding: 0 20px; /* Sağ ve sol boşluk sabit */
      justify-content: flex-start; /* Kartları sola hizalar */
      scroll-behavior: smooth; /* Yumuşak geçiş */
      -webkit-overflow-scrolling: touch; /* Mobil uyumluluk */
  }

  .product-card {
      width: calc((100% - 2 * 20px - 1 * 16px) / 2); /* 2 kart için genişlik hesaplama */
      flex-shrink: 0; /* Kartların sabit genişlikte kalmasını sağlar */
  }

  .product-image {
      width: 100%; /* Kart genişliğine göre otomatik uyum */
      height: auto;
      aspect-ratio: 1 / 1; /* Kare oranı */
      border-radius: 13px;
  }

  .favorite-button {
      top: 10px; /* Mobil için kalp butonunun pozisyonu */
      right: 10px;
      width: 20px; /* Kalp boyutu */
      height: 20px;
  }

  .stars svg {
      width: 15px;
      height: 15px;
  }

  .product-name {
      font-size: 14px; /* Mobil için yazı boyutu */
      margin-bottom: 8px;
  }

  .product-price .current-price {
      font-size: 14px;
  }

  .product-price .original-price {
      font-size: 12px;
  }
}

/* Küçük Mobil Cihazlar (max-width: 480px) */
@media (max-width: 480px) {
  .popular-products {
      display: flex;
      overflow-x: auto;
      gap: 16px;
      padding: 0 16px; /* Daha küçük cihazlar için yan boşluk azaltıldı */
      justify-content: flex-start;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
  }

  .product-card {
      width: calc(100% - 32px); /* Tam ekran genişlikte tek kart */
      flex-shrink: 0;
  }

  .product-image {
      width: 100%; /* Kart genişliğine göre otomatik uyum */
      height: auto;
      aspect-ratio: 1 / 1; /* Kare oranı */
      border-radius: 10px;
  }

  .favorite-button {
      top: 8px; /* Küçük mobil için kalp butonunun pozisyonu */
      right: 8px;
      width: 18px; /* Kalp boyutu */
      height: 18px;
  }

  .stars svg {
      width: 14px;
      height: 14px;
  }

  .rating-text {
      font-size: 11px; /* Küçük mobil için yazı boyutu */
  }

  .product-name {
      font-size: 13px; /* Küçük mobil için yazı boyutu */
      margin-bottom: 6px;
  }

  .product-price .current-price {
      font-size: 13px;
  }

  .product-price .original-price {
      font-size: 11px;
  }
}
