html, body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  /* KRİTİK: Sayfanın tam yüksekliğini al ve ana kaydırmayı engelle */
  height: 100%; 
  overflow: hidden; 
}

/* ÜST KISIM (SABİT) */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10; 
  height: 70px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2e7d32;
  padding: 0 40px; 
}

#logo {
  height: 50px;
}

/* KAYAN DUYURU ALANI (SABİT) */
#duyuru {
  flex: 1;
  margin-left: 20px;
  height: 30px;
  background: red;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#duyuru-icerik {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}

#duyuru-label {
  color: white;
  font-weight: bold;
  padding: 0 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: red; 
}

#duyuru-text {
  display: inline-block;
  padding-left: 10px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  animation: kayanYazi 15s linear infinite;
}

@keyframes kayanYazi {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ANA İÇERİK (HEADER ve FOOTER Arasını Tam Doldurur) */
main {
  position: absolute; 
  top: 70px; 
  bottom: 30px; 
  left: 0;
  right: 0;
  
  display: flex;
  padding: 20px;
  gap: 20px;
  overflow: hidden; 
}

/* SOL BÖLÜM (SABİT) */
#sol {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  
  overflow-y: auto; 
  flex-shrink: 0;
  
  height: 100%; 
}

#tanitimVideo {
  width: 100%;
  border-radius: 10px;
  background: black;
}

/* KONTROL PANELİ (FİLTRELER İÇİN) */
#kontrolPaneli {
    /* Varsayılan olarak flex (görünür) kalır, script.js statik içerikte gizler */
    display: flex; 
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filtreleme {
  display: flex;
  gap: 10px;
  flex-grow: 1;
}

/* Input ve Select'ler için ortak stil */
.filtreleme input,
.filtreleme select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  flex-grow: 1;
  cursor: pointer; 
  -webkit-appearance: none; 
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px; 
}


/* BUTONLAR */
.butonlar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.butonlar button {
  background: #4caf50;
  color: black;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.butonlar button:hover {
  opacity: 0.9;
}

/* SAĞ TARAF (KAYDIRILACAK BÖLÜM) */
#sag {
  flex: 1;
  /* KRİTİK: SADECE BU BÖLÜM KAYDIRILACAKTIR */
  overflow-y: auto; 
  height: 100%; 
}

/* KART YAPISI (GRID GÖRÜNÜMÜ) */
#indirimListesi {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding-bottom: 20px; 
}

/* Statik sayfalar için stil */
.static-page {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 0; 
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.static-page h2 {
    color: #2e7d32;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}
.static-page p, .static-page ul {
    margin: 10px 0;
    color: #444;
}


.indirim-card {
  width: calc(25% - 15px);
  min-width: 220px;
  height: 270px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* Üst, orta ve alt elemanları dikeyde ayırır */
  justify-content: space-between; 
  text-align: center;
  cursor: pointer; 
  transition: transform 0.2s;
}

.indirim-card:hover {
  transform: translateY(-5px);
}

.indirim-card .card-images {
  display: flex;
  justify-content: space-around;
  gap: 5px;
  padding: 5px 0 10px;
}

.indirim-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

/* KART YERLEŞİM STİLLERİ */
.card-info {
  text-align: left;
  padding: 0 5px;
  font-size: 14px;
  flex-grow: 1; 
  padding-bottom: 10px; 
}

.urun-fiyat-satir {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  margin-bottom: 5px;
}

.urun-fiyat-satir .urun-adi {
  font-weight: bold;
  color: #333;
  margin-right: 10px; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  max-width: 60%; 
}

.urun-fiyat-satir .fiyat {
  color: red;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

.info-satir {
    margin: 3px 0;
    color: #444;
    display: flex;
    align-items: center;
}

.info-satir strong {
    font-weight: 600;
    color: #000;
    margin-right: 5px;
}

.konum-bilgi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #007bff;
    margin-left: 5px;
}

.konum-bilgi:hover {
  text-decoration: underline;
}

.konum-bilgi .konum-icon {
  font-size: 16px;
  color: #2e7d32;
}

/* YENİ: Mağaza İKON Buton Stili (Eski .sikayet-btn) */
.magaza-ikon-btn {
  /* Yüksekliği iki katına çıkarmak için padding artırıldı */
  background: #bbdefb; /* Açık mavi ton (ikon rengi) */
  color: #1976d2; 
  border: 1px solid #1976d2;
  padding: 10px 5px; 
  font-size: 14px; /* Metin biraz büyütüldü */
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  /* Hover için geçiş */
  transition: all 0.3s ease;
}

.magaza-ikon-btn:hover {
  background: #1976d2;
  color: white;
  /* Hover metni script.js tarafından değiştirildiği için burada ek bir değişiklik yapmaya gerek yok */
}


/* FOOTER (SABİT) */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10; 
  height: 30px; 
  width: 100%;
  text-align: center;
  background: #2e7d32;
  color: white;
  font-weight: bold;
  padding: 0; 
  line-height: 30px; 
}

/* MODAL STİLLERİ */
.modal {
  display: none; 
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-icerik {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%; 
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.kapat-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.kapat-btn:hover,
.kapat-btn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#modalDetay {
  padding-top: 20px;
  text-align: center;
}

#modalDetay .modal-image-container img {
  width: 45%;
  max-width: 200px;
  height: auto;
  margin: 10px;
  border-radius: 10px;
}
#modalDetay h3 {
  color: #2e7d32;
  margin-bottom: 5px;
}
#modalDetay p {
  color: #444;
  margin: 5px 0;
}
#modalDetay .fiyat-gosterim {
  font-size: 24px;
  color: red;
  font-weight: bold;
  margin: 10px 0 20px;
}
/* --- RESPONSIVE / MOBİL UYUMLULUK --- */
@media screen and (max-width: 768px) {
  /* Ana düzeni dikey hizaya çevir */
  main {
    flex-direction: column;
    top: 60px; /* Header yüksekliğine göre ayar */
    bottom: 0;
    overflow-y: auto; /* Tüm sayfa kaydırılsın */
  }

  /* Sol Menü (Artık Üst Menü) */
  #sol {
    width: 100%;
    height: auto;
    flex-direction: row; /* Yan yana diz */
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    overflow-y: visible; /* Kaydırmayı kapat, içeriğe göre uzasın */
  }

  /* Video mobilde çok yer kaplamasın diye gizleyebilir veya küçültebiliriz */
  #tanitimVideo {
    display: none; 
  }

  /* Butonları yan yana sığdır */
  .butonlar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .butonlar button {
    padding: 8px 15px;
    font-size: 12px;
    flex: 1 1 auto; /* Esnek genişlik */
  }

  /* Sağ İçerik Alanı */
  #sag {
    width: 100%;
    height: auto;
    overflow-y: visible;
  }

  /* Kartlar mobilde tek veya iki sütun olsun */
  .indirim-card {
    width: calc(50% - 10px); /* İki sütun */
  }
}

@media screen and (max-width: 480px) {
  .indirim-card {
    width: 100%; /* Çok küçük ekranda tek sütun */
  }
}

/* --- PROJE SAYFASI ÖZEL TASARIMI (Yeni Eklendi) --- */
.project-container {
    display: flex;
    height: 100%;
    gap: 20px;
}

.project-list {
    width: 40%;
    border-right: 2px solid #eee;
    padding-right: 15px;
    overflow-y: auto;
}

.project-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.project-item:hover, .project-item.active {
    background: #e8f5e9; /* Yeşilimsi ton */
    border-color: #2e7d32;
    transform: translateX(5px);
}

.project-item h3 {
    margin: 0 0 5px 0;
    color: #2e7d32;
    font-size: 18px;
}

.project-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.project-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

.project-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
    transition: opacity 0.5s ease-in-out;
}

.slide-caption {
    color: white;
    margin-top: 10px;
    font-weight: bold;
}