/*********************************************
 * FONT TANIMLARI
 *********************************************/
 @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;
}

/*********************************************
 * GENEL SITE HEADER STİLLERİ
 *********************************************/
.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 */
  position: fixed; /* Sabit konumlandırma */
  top: 0;
  left: 0;
  z-index: 1000; /* Üstte görünmesi için */
}

/* Header kapsayıcı */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/*********************************************
 * MASAÜSTÜ NAVİGASYON (NAV-DESKTOP)
 *********************************************/
.nav-desktop {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px; /* Öğeler arasındaki boşluğu optimize ettik */
}

/* LOGO */
.logo {
  width: 171px;
  height: 50px;
  background: url("images/logo.png") center / contain no-repeat;
  flex-shrink: 0;
   margin-right: 40px;
   display: block; 
}

/* MENÜ BAŞLIKLARI */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative; /* Dropdown için relative */
  flex-shrink: 0;
}

.site-nav a {
  color: #000;
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropdown Menü Stilleri */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFF;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: #F0F0F0;
}

/*********************************************
 * ARAMA BAR
 *********************************************/
/* Search Bar Wrapper */
.search-bar-wrapper {
  flex-grow: 1; /* Arama çubuğunun alanı doldurmasını sağladık */
  max-width: 450px; /* Maksimum genişliği belirledik */
  width: 100%; /* Esnek genişlik */
  margin-left: auto; /* Arama çubuğunu sağa itmek için */
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center; /* İçeriği ortaladık */
  gap: 12px;
  padding: 12px 16px;
  background: #F0F0F0;
  border-radius: 62px;
  width: 100%; /* Wrapper'ın genişliğini aldı */
  max-width: 450px; /* Maksimum genişlik */
   margin-left: 40px; 
}

.search-bar .search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  flex: 1;
}

/* Search Results */
.search-results {
  position: absolute;
  top: calc(100% + 8px); /* Search bar'ın hemen altına yerleşir */
  left: 0;
  width: 100%; /* Search bar'ın genişliği kadar */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Üstte görünmesi için */
  display: none; /* İlk başta gizli */
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  max-height: 300px; /* Çok fazla sonuç olduğunda kaydırma */
  overflow-y: auto;
}

/* Arama Sonuçları Görünür Olduğunda */
.search-results.active {
  display: flex;
}

/* Arama Sonucu */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease;
}

.search-result-item:hover {
  background-color: #f9f9f9;
}

/* Arama Sonucu Görseli */
.search-result-image {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

/* Arama Sonucu Başlığı */
.search-result-title {
  font-size: 16px;
  font-weight: 500;
}

/*********************************************
 * SEPET İKONU
 *********************************************/
.cart-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 128px;
}

/*********************************************
 * MOBİL NAVİGASYON (NAV-MOBILE)
 *********************************************/
.nav-mobile {
  display: none; /* Varsayılan olarak gizli */
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

/* Hamburger Menü Animasyonu */
.hamburger {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1100;
  margin-left: auto; /* Sağ tarafa yerleştirme */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Toggle - Checkbox */
#hamburger-toggle {
  display: none;
}

/* Hamburger Animasyonları */
#hamburger-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

#hamburger-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobil Menü İçeriği */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFF;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
}

.mobile-menu a {
  padding: 15px 20px;
  border-bottom: 1px solid #F0F0F0;
  text-decoration: none;
  color: #000;
  font-family: "Satoshi", sans-serif;
}

.mobile-menu a:hover {
  background: #F0F0F0;
}

/* Mobil Arama Barı */
.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F0F0F0;
  border-radius: 62px;
  margin: 10px 20px;
}

.mobile-search-bar .search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.mobile-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  flex: 1;
}

/* Mobil Sepet İkonu */
.mobile-cart-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Toggle ile Menü Açma */
#hamburger-toggle:checked ~ .mobile-menu {
  display: flex;
  max-height: 500px; /* Yeterince yüksek bir değer */
  opacity: 1;
}

/*********************************************
 * MEDYA SORGULARI
 *********************************************/

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .site-header {
      height: 90px;
  }

  .header-container {
      padding: 0 12px;
  }

  .nav-desktop {
      gap: 24px; /* Boşluğu azalttık */
  }

  .logo {
      width: 140px;
      height: 40px;
  }

  .search-bar-wrapper {
      max-width: 350px; /* Maksimum genişliği azalttık */
  }

  .search-bar {
      padding: 10px 14px;
  }

  .cart-icon {
      margin-left: 40px; /* Masaüstünde arama çubuğu ile sepet ikonu arasındaki boşluğu artırdık */
  }
}

/* Mobil (767px ve altı) */
@media (max-width: 767px) {
  .site-header {
      height: 61px;
      box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  }

  .header-container {
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .nav-desktop {
      display: none; /* Masaüstü navigasyonu gizle */
  }

  .nav-mobile {
      display: flex; /* Mobil navigasyonu göster */
      align-items: center;
      justify-content: space-between;
      height: 100%;
      position: relative;
      width: 100%;
  }

  .logo {
      width: 100px;
      height: 32px;
  }

  .search-bar {
      padding: 8px 12px;
      display: none; /* Masaüstü arama çubuğu gizlendi */
  }

  .cart-icon {
      margin-left: 10px;
  }

  .hamburger {
      width: 24px;
      height: 24px;
      margin-left: auto; /* Sağ tarafa yerleştirme */
  }

  /* Mobil Menü Animasyonu için Daha Yumuşak Geçişler */
  .mobile-menu {
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }

  .mobile-search-bar,
  .mobile-cart-icon {
    margin: 10px 20px;
  }
}

/* 480px ve altındaki cihazlar için */
@media (max-width: 480px) {
  /* Site başlığı yüksekliği ve içerik düzeni */
  .site-header {
      height: 50px; /* Daha küçük bir yükseklik */
      padding: 0 8px; /* Kenarlardan daha az boşluk */
  }

  .header-container {
      padding: 0 8px; /* İçerik boşluğu küçültüldü */
  }

  .nav-mobile .logo {
      width: 90px; /* Daha küçük logo boyutu */
      height: 30px;
  }

  /* Menü başlıkları */
  .site-nav a {
      font-size: 12px; /* Menü başlıkları küçültüldü */
  }

  /* Arama barı */
  .search-bar {
      padding: 8px 12px;
      display: none; /* Mobilde arama çubuğu gizlendi */
  }

  .search-bar input {
      font-size: 14px; /* Daha küçük font */
  }

  .cart-icon,
  .search-icon {
      width: 20px; /* Simge boyutları küçültüldü */
      height: 20px;
  }

  /* Diğer düzenlemeler... */
  /* Örneğin, hero-section ve diğer bileşenler burada daha küçük boyutlandırılabilir */
  
  /* Hero alanı */
  .hero-section {
      height: 200px; /* Daha küçük bir yükseklik */
  }

  .hero-content {
      top: 30px; /* Yazılar yukarı çekildi */
      left: 10px;
      right: 10px;
  }

  .hero-title {
      font-size: 32px; /* Daha küçük yazı boyutu */
      line-height: 40px;
  }

  .discount-text {
      font-size: 16px; /* İndirim yazısı küçültüldü */
  }

  .date-text {
      font-size: 12px; /* Tarih yazısı küçültüldü */
  }

  .percentage-text .number {
      font-size: 48px; /* % oranı küçültüldü */
  }

  .percentage-text .symbol {
      font-size: 32px; /* % sembolü küçültüldü */
  }

  /* Popüler ürünler */
  .popular-products {
      margin-top: 20px; /* Ürünler üst boşluğu küçültüldü */
  }

  .product-card {
      width: 140px; /* Kart genişliği azaltıldı */
  }

  .product-image {
      width: 140px;
      height: 140px;
      border-radius: 10px;
  }

  .favorite-button {
      top: 12px;
      right: 12px;
      width: 16px;
      height: 16px;
  }

  .heart-icon {
      width: 16px;
      height: 16px;
  }

  .product-name {
      font-size: 12px; /* Ürün ismi küçültüldü */
  }

  .stars svg {
      width: 12px;
      height: 12px;
  }

  .rating-text {
      font-size: 10px; /* Reyting küçültüldü */
  }

  .product-price .current-price {
      font-size: 14px; /* Fiyat küçültüldü */
  }

  .product-price .original-price {
      font-size: 12px; /* Eski fiyat küçültüldü */
  }

  /* Marquee alanı */
  .marquee-section {
      height: 40px; /* Marquee yüksekliği küçültüldü */
  }

  .marquee-content span {
      font-size: 24px; /* Yazı boyutu küçültüldü */
  }
}
