.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-kapat {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

main {
    padding: 2rem; /* Üst-alt ve sağ-sol boşluk */
    max-width: 1200px; /* Taşmaması için maksimum genişlik */
    margin: 0 auto; /* Ortalamak için */
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #111;
    color: #f0f0f0;
}

header {
    background-color: #222;
    padding: 0.5rem;
    text-align: center;
    border-bottom: 4px solid #00bfff;
}

header h1 {
    margin: 0;
    font-size: 4rem;
    color: #00bfff;
}

header p {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-top: 0.5rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.25rem 0;
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00bfff;
  transition: width 0.3s;
}

nav a:hover {
  color: #00bfff;
}

nav a:hover::after {
  width: 100%;
}

.panel {
  display: none;
}
/* aktif panel için block (metin panelleri için) */
.panel.active {
  display: block;
}

/* Galeri Grid */
.galeri-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.galeri {
    display: flex;
    gap: 1rem;
    position: relative;
}

/* Görünümü güzel olsun diye scrollbar'ı gizleyebiliriz */
.galeri::-webkit-scrollbar {
  height: 8px; /* Yüksekliği azalt */
}
.galeri::-webkit-scrollbar-thumb {
  background: #00bfff;
  border-radius: 4px;
}

.galeri img {
    flex-shrink: 0;
    width: 200px; /* ya da istediğin sabit genişlik */
    height: 150px; /* oranlı belirlemek için */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}
.galeri img:hover {
    transform: scale(1.03);
}

/* aktif ürün paneli için grid kullan */
#urunler.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

/* Tablet boyutları için 2 sütun */
@media (max-width: 900px) {
  #urunler.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Telefon boyutları için 1 sütun */
@media (max-width: 600px) {
  #urunler.active {
    grid-template-columns: 1fr;
  }
}

.urun {
  position: relative;
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  padding-bottom: 3rem; /* buton için yer aç */
  box-sizing: border-box;
  
  display: flex;
  flex-direction: column; 
  align-items: center;
}

/* Yazı kısmı genişleyebilsin */
.urun-aciklama {
  flex: 1; /* Boşluğu kaplasın */
  width: 100%;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.detay-butonu {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  background: #00bfff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.urun img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.urun h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.urun p, .urun-aciklama {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.25rem;
}

footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #00bfff;
    margin-top: 2rem;
}