/* Temel Sıfırlama (Reset) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: padding 0.3s ease;
}
header.scrolled {
  padding: 0.9rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-width: 100px;
  transition: max-width 0.3s ease;
  margin-right: 0.7rem;
}
header.scrolled .logo img {
  max-width: 70px;
}
.logo-text {
  font-size: 1.3rem;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

/* Responsive Nav Toggle Elements */
.nav-toggle {
  /* hidden but clickable */
  position: absolute;
  top: 1rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  opacity: 0;
  z-index: 1002;
  cursor: pointer;
}
.nav-toggle-label {
  display: none;
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
}
nav ul li {
  margin-left: 1.5rem;
  font-size: 1.25rem;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #00aced;
}

/* Slider */
.slider-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.3s;
}
.slider-arrow:hover {
  background-color: rgba(0,0,0,0.6);
}
.right-arrow { right: 10px; }
.left-arrow { left: 10px; }

/* Section Titles */
.section-title,
.detail-section h2,
.contact-details h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
  padding: 4rem 2rem;
  background: #121212;
  color: #fff;
}
.products-section .section-title {
  font-size: 2.5rem;
}
.product-tabs {
  display: flex;               /* inline-flex yerine flex */
  justify-content: center;     /* yatayda ortala */
  list-style: none;
  margin: 0 auto 2rem;         /* üst boşluk 0, yanlardan otomatik, alt 2rem */
  border-bottom: 2px solid #444;
  padding-left: 0;
}
.product-tabs .tab-item {
  margin: 0 1.5rem;
  padding: 0.5rem 0;
  font-size: 1.125rem;
  color: #aaa;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}
.product-tabs .tab-item.active {
  color: #fff;
}
.product-tabs .tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
.product-card {
  padding: 10px;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}
.card-image img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  font-size: 1.45rem;
  margin: 0.5rem 0;
  color: #fff;
}
.card-content p {
  font-size: 1.1rem;
  color: #ccc;
  flex: 1;
  margin-bottom: 1rem;
}
.btn-incele {
  align-self: flex-start;
  background: transparent;
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.btn-incele:hover {
  background-color: #333;
  border-color: #777;
}

/* Contact Section */
.contact-section {
  background-color: #121212;
  color: #fff;
  padding: 4rem 2rem;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-map {
  flex: 1 1 400px;
  min-width: 300px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.contact-right {
  flex: 1 1 400px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-details p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}
.contact-details p a {
  color: #fff;
  text-decoration: none;
}
.contact-details p a:hover {
  text-decoration: underline;
}
.social-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.social-links li {
  margin-bottom: 1.75rem;
}
.social-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #00aced;
}
.social-icon {
  width: 24px;
  height: auto;
  margin-right: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: #111010;
  color: #aaa;
  padding: 2rem 1rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo img {
  width: 40px;
  margin-right: 10px;
  height: auto;
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 1.5rem;
}

.instagram-icon {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
}

/* Sadece mobilde daha da küçük yapmak isterseniz */
@media (max-width: 768px) {
  .instagram-icon {
    width: 18px;
    height: 18px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav ul li {
    margin-left: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  .nav-toggle-label {
    display: block;
  }
  nav {
    position: absolute;
    top: 100%;      /* header’ın altı */
    left: 0;
    width: 100%;
    display: none;  /* başlangıçta kapalı */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  /* hamburger işaretlenince göster */
  .nav-toggle:checked + .nav-toggle-label + nav {
    display: block;
  }

  header.scrolled {
    /* header’ın normal mobil padding’i neyse, aynısını burada da uygula */
    padding: 1rem !important;
  }
  /* Logo boyutunu orijinal mobil halde tut */
  header.scrolled .logo img {
    max-width: 100px !important;
  }

  .slider-container {
    margin-top: 4.8rem;  
    /* Eğer header yüksekliğiniz farklıysa bu değeri ona göre güncelleyin */
    height: calc(100vh - 4.8rem);
  }

  /* İçerik de tam genişlik */
  nav ul {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
  }
  .logo-text {
    font-size: 1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .slider-container {
    height: auto;
  }
  .slide img {
    height: auto;
  }
  .hero-section, .products-section, .contact-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }
  nav ul li {
    font-size: 1rem;
    margin-left: 0;
  }
  .instagram-icon {
    width: 20px;
    height: 20px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.detail-section {
  background-color: #141414;  /* tamamen siyah */
  padding: 2rem;           /* varsa mevcut padding’i koruyun */
  text-align: center;
}

/* Başlık (h2) beyaz olsun */
.detail-section h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 2rem;         /* mevcut büyüklüğünüz neyse koruyun */
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
/* Galeri resimlerini büyüt */
.gallery img {
  width: 300px;      /* eskiden 200px veya 200–250px’di, 300px yaptık */
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;             /* JS’le açacağız */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* İçindeki büyük resim */
.lightbox-image {
  max-width: 90%;
  max-height: 80%;
}

/* Kapatma butonu */
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* İleri / Geri kontrolleri */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  padding: 0 0.5rem;
  cursor: pointer;
  user-select: none;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 768px) {
  .product-tabs {
    display: grid;                      /* grid düzenine geç */
    grid-template-columns: repeat(2, 1fr); /* her satırda iki öğe */
    gap: 0.5rem 1rem;                   /* dikey ve yatay boşluk */
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    border-bottom: none;                /* opsiyonel: alt çizgiyi kaldır */
  }
  .product-tabs .tab-item {
    margin: 0;                          /* yan boşlukları sıfırla */
    padding: 0.75rem 0;                 /* üst-alt dolgu */
    text-align: center;
    border-bottom: 2px solid transparent;
  }
  .product-tabs .tab-item.active {
    border-color: #fff;                 /* aktif tab’ın alt çizgisi */
  }
  .card-image img {
    height: 200px;    /* İsterseniz 180px veya 220px ile oynayın */
    object-fit: cover;/* Kırpma ayarı korunsun */
  }
  .logo-text {
    margin-left: -10px;
    font-size: 0.8rem !important;
  }
}

#category-gallery {
  background-color: #000;
  padding: 2rem;
  text-align: center;
}
#category-gallery img {
  width: 300px;        /* istersen 250px–300px arası oyna */
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(255,255,255,0.1);
  margin: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
#category-gallery img:hover {
  transform: scale(1.05);
}

/* ÜRÜN KARTLARINDAKİ GÖRSELLER */
.product-card .card-image {
  /* Sabit bir en-boy oranı tanımlıyoruz */
  width: 100%;
  height: 250px;       /* istediğiniz yüksekliği verin */
  overflow: hidden;
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ortadan kırparak tam kutuyu kapla */
}

/* KATEGORİ GALERİSİNDEKİ GÖRSELLER */
#category-gallery {
  background: #000;
  text-align: center;
  padding: 2rem;
}
#category-gallery img {
  display: inline-block;
  width: 300px;        /* istediğiniz kutu genişliği */
  height: 200px;       /* kaymaya izin vermeyecek sabit yükseklik */
  object-fit: cover;   /* kırpma ve ortalama */
  border-radius: 4px;
  margin: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
#category-gallery img:hover {
  transform: scale(1.05);
}

/* 1) Ortak çerçeve: sabit genişlik/yükseklik, flex ile ortalama */
.image-frame {
  width: 300px;                /* sabit genişlik */
  height: 200px;               /* sabit yükseklik */
  display: flex;
  align-items: center;         /* resmin dikeyde ortalanması */
  justify-content: center;     /* resmin yatayda ortalanması */
  background-color: #f0f0f0;   /* çerçevenin iç padding alanı rengi */
  overflow: hidden;            /* taşandan kırp */
  border-radius: 4px;          /* opsiyonel estetik köşe */
  margin: 0.5rem;              /* galeride öğeler arası boşluk */
}

.image-frame img {
  /* büyük kenarı %100 e sığdır, diğer kenarı orantılı küçült */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;         /* kutuya orantılı sığdırma */
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* 768px ve altı: göster */
@media (max-width: 768px) {
  .nav-toggle,
  .nav-toggle-label {
    display: block;
  }
}

.shifted-image {
  object-fit: cover;
  object-position: center 70%; /* ya da center 20% gibi ayarlayabilirsin */
  height: 100%;
  width: 100%;
}

.shifted-image2 {
  object-fit: cover;
  object-position: center 30%; /* ya da center 20% gibi ayarlayabilirsin */
  height: 100%;
  width: 100%;
}