/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Satoshi:wght@400;900&display=swap');

/* Breadcrumb ve Galeri Konteyner */
.gallery-container {
  margin-top: 36px; /* Breadcrumb ile aradaki boşluk */
  display: flex;
  align-items: flex-start;
  gap: 40px; /* Büyük resim ile metin arasındaki boşluk */
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 60px;
}

/* Galeri Alanı */
.gallery {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 14px; /* Thumbnail arası boşluk */
}

.thumbnail {
  width: 152px;
  height: 167px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border 0.3s ease;
  cursor: pointer;
}

.thumbnail.selected {
  border: 1px solid #000; /* Seçili küçük resmin çerçevesi */
}

.thumbnail:hover {
  transform: scale(1.05); /* Hover efekti */
}

.gallery-main {
  width: 444px;
  height: 530px;
  border-radius: 20px;
  overflow: hidden;
  background: lightgray no-repeat center / cover;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Metin ve Yıldızlar Alanı */
.gallery-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0; /* Fotoğrafın üst sınırıyla hizalı */
  width: auto;
}

/* Ürün İsmi */
/* Ürün İsmi */
.product-name {
    color: #000;
    font-family: 'Satoshi', sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    margin-bottom: 12px; /* Ürün ismi ve yıldızlar arası boşluk */
  }
  
  /* Yıldızlar ve Reyting */
  .product-rating {
    display: flex;
    align-items: center;
    gap: 16px; /* Yıldızlar ve reyting metni arası boşluk */
  }
  
  .stars {
    display: flex;
    align-items: center;
    gap: 7.1px; /* Yıldızlar arası boşluk */
  }
  
  .stars svg {
    fill: #FFC633; /* Yıldız rengi */
  }
  
  .stars svg:first-child,
  .stars svg:nth-child(2),
  .stars svg:nth-child(3),
  .stars svg:nth-child(4) {
    width: 24.712px;
    height: 24.712px;
  }
  
  .stars svg:last-child {
    width: 11.751px;
    height: 22.353px;
  }
  
  .rating-text {
    color: #000;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
  
  /* Fiyat ve İndirim Alanı */
  .price-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14.29px; /* Yıldızların altındaki boşluk */
  }
  
  .current-price {
    color: #000;
    font-family: 'Satoshi', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    height: 43px;
    display: flex;
    align-items: center; /* Metin dikey ortalama */
  }
  
  .old-price {
    color: rgba(0, 0, 0, 0.30);
    font-family: 'Satoshi', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    height: 43px;
    display: flex;
    align-items: center; /* Metin dikey ortalama */
    text-decoration: line-through; /* Üstü çizili */
  }
  
  .discount-icon {
    display: flex;
    padding: 6px 14px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 62px;
    background: rgba(255, 51, 51, 0.10);
  }
  
  .discount-icon span {
    color: #F33;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }
  
  /* Ürün Açıklaması */
  .product-description {
    margin-top: 20px; /* Price info ile boşluk */
    width: 590px;
    color: rgba(0, 0, 0, 0.60);
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
  }
  
  /* Çizgi */
.divider {
    margin-top: 24px; /* Ürün açıklaması ile boşluk */
    width: 590px;
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
  }

  
  /* Toggle Container */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px; /* Divider altındaki boşluk */
  }
  
  /* Checkbox */
.checkbox {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: #F0F0F0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative; /* Tik işareti için konumlandırma */
  }

  /* İkinci Checkbox için Boşluk */
.second-checkbox {
    margin-top: 20px; /* İlk checkbox ile aradaki boşluk */
  }
  
  
  .checkbox:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05); /* Hafif büyüme efekti */
  }
  
  .checkbox.active {
    background: rgba(0, 0, 0, 0.15); /* Tıklandığında arka plan değişikliği */
  }
  
  /* Tik İşareti */
  .checkbox svg {
    display: none; /* Varsayılan olarak gizlenmiş */
    position: absolute;
  }
  
  .checkbox.active svg {
    display: block; /* Aktif olduğunda görünür */
  }
  
  /* İkinci Checkbox Altındaki Çizgi */
.second-divider {
    margin-top: 24px; /* İkinci checkbox ile boşluk */
    width: 590px;
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
  }
  
  /* Ürün Adet Seçme ve Sepete Ekle Konteyner */
.quantity-selector-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Adet seçici ve sepete ekle butonu arasındaki boşluk */
    margin-top: 24px; /* Divider altındaki boşluk */
  }
  
  /* Ürün Adet Seçme */
  .quantity-selector {
    display: flex;
    width: 170px;
    height: 52px;
    padding: 16px 20px;
    justify-content: space-between;
    align-items: center;
    border-radius: 62px;
    background: #F0F0F0;
  }
  
  .quantity-button {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .quantity-value {
    color: #000;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }
  
  /* Sepete Ekle Butonu */
  .add-to-cart-button {
    display: flex;
    width: 400px;
    height: 52px;
    padding: 16px 54px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 62px;
    background: #000;
    color: #FFF;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .add-to-cart-button:hover {
    background: #333; /* Hover arka plan rengi */
  }
  
/* Base Styles (Varsayılan) */
/* Bu kısım orijinal CSS'inizde zaten mevcut, medya sorgularında değiştirmeyeceğiz */


/* Base Styles (Varsayılan) */
/* Orijinal CSS'inizde zaten mevcut, medya sorgularında değiştirmeyeceğiz */

/* Media Query 1: Max-width 1200px */
/* Büyük Tabletler ve Küçük Ekranlı Laptoplar için */
@media (max-width: 1200px) {
  .gallery-container {
    padding: 0 40px;
    gap: 30px;
    max-width: 1200px; /* İçeriğin genişliğini sınırla */
    align-items: center; /* Dikey ortalama */
    flex-direction: row;
  }

  .gallery-main {
    width: 400px;
    height: 480px;
  }

  .gallery-thumbnails {
    max-width: 400px; /* Thumbnails genişliği ana resimle uyumlu */
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbnail {
    width: calc((100% - 20px) / 3); /* 3 thumbnail ve 2 boşluk (10px) */
    height: 152;
    min-width: 100px; /* Çok küçük olmasını engelle */
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
  }
}

/* Media Query 2: Max-width 992px */
/* Tabletler için - Thumbnails Kapatılacak */
@media (max-width: 992px) {
  .gallery-container {
    flex-direction: column;
    align-items: center; /* Dikey ortalama */
    padding: 0 30px;
    gap: 25px;
  }

  .gallery-main {
    width: 100%;
    max-width: 500px; /* Daha geniş thumbnail alanı */
    height: auto;
  }

  .gallery-thumbnails {
    display: none; /* Thumbnails'ları gizle */
  }

  .product-name {
    font-size: 32px;
    text-align: center;
  }

  .gallery-details {
    align-items: center;
    width: 100%;
  }

  .price-info {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .quantity-selector-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .add-to-cart-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Media Query 3: Max-width 768px */
/* Küçük Tabletler ve Büyük Telefonlar için */
@media (max-width: 768px) {
  .gallery-container {
    padding: 0 20px;
    gap: 20px;
    align-items: center; /* Dikey ortalama */
  }

  .gallery-main {
    width: 100%;
    max-width: 444px; /* Ana resim genişliğini biraz küçült */
    height: auto;
  }

  /* Thumbnails zaten gizli, ek bir değişiklik gerekmez */

  .product-name {
    font-size: 28px;
    text-align: center;
  }

  .product-description {
    width: 100%;
    font-size: 14px;
    text-align: center;
  }

  .quantity-selector {
    width: 100%;
    max-width: 250px;
  }

  .add-to-cart-button {
    max-width: 100%;
    padding: 12px 30px;
  }
}

/* Media Query 4: Max-width 576px */
/* Büyük Telefonlar ve Küçük Ekranlar için */
@media (max-width: 576px) {
  .gallery-container {
    padding: 0 10px;
    gap: 15px;
    align-items: center; /* Dikey ortalama */
  }

  .gallery-main {
    width: 100%;
    max-width: 444px; /* Ana resim genişliğini koru */
    height: auto;
  }

  /* Thumbnails zaten gizli, ek bir değişiklik gerekmez */

  .product-name {
    font-size: 24px;
    text-align: center;
  }

  .price-info {
    gap: 6px;
    flex-direction: column;
    align-items: center;
  }

  .quantity-selector-container {
    gap: 12px;
    align-items: center;
  }

  .add-to-cart-button {
    padding: 10px 20px;
    font-size: 14px;
    max-width: 300px;
  }
}

/* Media Query 5: Max-width 400px */
/* Küçük Telefonlar için */
@media (max-width: 400px) {
  .gallery-container {
    flex-direction: column;
    padding: 0 5px;
    gap: 10px;
    align-items: center; /* Dikey ortalama */
  }

  .gallery-main {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Thumbnails zaten gizli, ek bir değişiklik gerekmez */

  .product-name {
    font-size: 20px;
    text-align: center;
  }

  .product-rating {
    gap: 12px;
    justify-content: center;
  }

  .stars svg {
    width: 20px;
    height: 20px;
  }

  .current-price,
  .old-price {
    font-size: 24px;
  }

  .product-description {
    font-size: 12px;
    line-height: 20px;
    text-align: center;
  }

  .quantity-selector {
    width: 100%;
    max-width: 200px;
    padding: 12px 16px;
  }

  .add-to-cart-button {
    padding: 8px 16px;
    font-size: 12px;
    max-width: 100%;
  }
}
