/* ============================================= */
/*   FIRÇAMAK - TAMAMEN YENİDEN TASARLANMIŞ CSS   */
/*   Slider sorunu %100 çözüldü, responsive mükemmel */
/* ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
/* ====================== LOADING – HARF HARF ANİMASYONLU ====================== */
#loader-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease 1.6s;
}

#loader-wrapper.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

/* FIRÇAMAK – Harf harf zıplama animasyonu */
.loader-title {
  font-size: 5.2rem;
  font-weight: 900;
  letter-spacing: 10px;
  color: #2c3e50;
  margin-bottom: 35px;
  line-height: 1;
}

.loader-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px) rotate(15deg);
  animation: letterPop 0.9s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

/* Her harfe farklı gecikme */
.loader-title span:nth-child(1) { animation-delay: 0.1s; }
.loader-title span:nth-child(2) { animation-delay: 0.2s; }
.loader-title span:nth-child(3) { animation-delay: 0.3s; }
.loader-title span:nth-child(4) { animation-delay: 0.4s; }
.loader-title span:nth-child(5) { animation-delay: 0.5s; }
.loader-title span:nth-child(6) { animation-delay: 0.6s; }
.loader-title span:nth-child(7) { animation-delay: 0.7s; }
.loader-title span:nth-child(8) { animation-delay: 0.8s; }

/* Bar */
.loader-bar {
  width: 340px;
  height: 5px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 25px;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f39c12, #f1c40f);
  border-radius: 10px;
  animation: fill 1.8s ease-out 0.9s forwards;
}

.loader-subtitle {
  font-size: 1.15rem;
  color: #95a5a6;
  letter-spacing: 6px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.8s forwards;
}

/* Animasyonlar */
@keyframes letterPop {
  0% {
    opacity: 0;
    transform: translateY(80px) rotate(15deg);
  }
  60% {
    opacity: 1;
    transform: translateY(-15px) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes fill {
  to { width: 100%; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}
/* Sayfa yüklendikten sonra loading’i kaldır */
body.loaded #loader-wrapper {
  display: none;
}
/* ==================== HEADER ==================== */
/* ================= HEADER SHOW-UPGRADE ================= */

header {
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-wrap: wrap;
}

header.scrolled {
  background: rgba(136, 133, 133, 0.75);
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  padding: 8px 0 !important;
}

/* Menü hover efektleri */
.nav-menu > ul > li > a {
  position: relative;
  padding: 8px 16px;
  transition: all 0.25s ease;
}

.nav-menu > ul > li > a:hover {
  transform: scale(1.12);
  color: #ffcc00;
}

/* Altında ışık çizgisi */
.nav-menu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffcc00;
  transition: width 0.25s ease;
}

.nav-menu > ul > li > a:hover::after {
  width: 100%;
}

/* Mobil menü açıldığında body kilitlenir */
body.lock-scroll {
  overflow: hidden;
}

/* Slider geçiş iyileştirme */
.slider-track {
  transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1);
}

.header {
  background: linear-gradient(90deg, #1a2a3a 0%, #2c3e50 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 20px;
  height: 90px; /* Sabit yükseklik */
}
@media (max-width: 768px) {
  .header .container {
    height: auto;
    min-height: auto;
    padding: 12px 16px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 700;
}

.logo img {
  width: 250px;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.4));
  
}
@media (max-width: 768px) {
  .logo img {
    width: 150px;
    height: auto;
    top: 0;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}


.nav-menu a:hover {
  background: rgba(255,255,255,0.15);
  color: #f1c40f;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 30px;
  height: 4px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
/* ==================== MEGA DROPDOWN MENÜ ==================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 800px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border-radius: 16px;
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  margin-top: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.dropdown-row {
  display: flex;
  padding: 20px;
  gap: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.dropdown-column {
  min-width: 180px;        /* Biraz daha genişlettim, daha rahat sığsın */
  padding: 0 10px;
  }
  
.dropdown-column h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 8px;
  white-space: nowrap;     /* Başlıklar da kırılmasın */
  overflow: hidden;        /* Taşıyorsa gizle */
  text-overflow: ellipsis; /* Çok uzunsa ... koy */
}

.dropdown-column a {
  display: block;
  padding: 10px 0;
  padding-left: 10px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 6px;
  white-space: nowrap;     /* BURASI ASIL ÇÖZÜM! Kelimeler kırılmıyor */
  overflow: hidden;        /* Taşan kısmı gizle */
  text-overflow: ellipsis; /* Çok uzun metin varsa sonuna ... koyar */
}

.dropdown-column a:hover {
  background: #f39c12;
  color: white;
  padding-left: 15px;      /* Hover’da hafif sağa kayma efekti (isteğe bağlı, çok hoş duruyor) */
}

/* Öne çıkan ürün kısmı */
.dropdown-column.highlight {
    min-width: 320px;
    max-width: 320px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 12px;
    padding: 30px 20px;          /* Üst ve alt padding arttırdım ki iconlar binmesin */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;         /* Yatayda tam ortala */
    justify-content: center;     /* Dikeyde ortala */
    position: relative;          /* Z-index için gerekli */
    z-index: 1000;               /* Floating iconlardan daha üstte olsun */
    margin-right: 20px;          /* En sağdaki floating butonlardan uzak dursun */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dropdown-column.highlight img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dropdown-column.highlight img:hover {
    transform: scale(1.05);    /* Üzerine gelince hafif büyüsün, canlı durur */
}

.dropdown-column.highlight p {
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 260px;            /* Yazılar çok uzun olmasın diye sınırla */
    text-align: center;          /* Kesinlikle ortala */
}

.btn-small:hover {
  background: #222;
  color: white;
}

/* Hamburger (mobilde) */
.hamburger {
  display: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background: white;
  margin: 6px 0;
  border-radius: 3px;
  transition: 0.3s;
}

/* ==================== ANA SLIDER - SORUNSUZ! ==================== */
.slider {
  position: relative;
  width: 100%;                  /* Sayfanın %90’ı kadar genişlik */
  max-width: 1100px;           /* Asla çok geniş olmasın */
  margin: 50px auto;           /* Üst-alt boşluk + ortalanmış */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  background: #000;
  aspect-ratio: 20 / 9; /* Masaüstü oran */

  /* Yeni oran: daha ince ve zarif (16:9 yerine 21:10 gibi) */
  aspect-ratio: 20 / 9;        /* Masaüstü için ideal */
}

.slider-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* contain RESİMLER ARTIK TAŞMAZ VE ORANTILI! */
  object-position: center;
  display: block;
  transition: transform 8s ease;
}

.slide:hover img {
  transform: scale(1.08);
}

/* Oklar */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.prev:hover, .next:hover {
  background: #f39c12;
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #076981;
  transform: scale(1.4);
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
}

/* ==================== ÜRÜNLER ==================== */
.product-table {
  padding: 80px 20px;
  background: white;
}

.product-table h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
  color: #2c3e50;
}

.product-filter {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  flex-direction: column; /* Mobilde alt alta diz */
  align-items: center;
}

.product-filter input,
.product-filter select {
  width: 100%; /* Tam ekran genişlik */
  max-width: 320px; /* Çok geniş telefonlarda sınırlı tut */
  padding: 14px 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1.1rem;
  min-width: 220px;
  transition: border 0.3s;
}

.product-filter input:focus,
.product-filter select:focus {
  outline: none;
  border-color: #f39c12;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-card h3 {
  padding: 20px 15px 10px;
  font-size: 1.4rem;
  color: #2c3e50;
}

.product-card p {
  padding: 0 20px 20px;
  color: #777;
  font-size: 1rem;
}

.product-buttons {
  padding: 0 20px 25px;
  display: flex;
  gap: 15px;
}

.btn-detail {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-detail {
  background: #34495e;
  color: white;
}

.btn-detail:hover {
  background: #2c3e50;
  color: #f1c40f;
}


/* ==================== DİĞER SEKSİYONLAR ==================== */
.about {
  padding: 100px 20px;
  background: #f8f9fa;
}
.contact {
  padding: 100px 20px;
  background: linear-gradient(rgba(122, 243, 98, 0.65), rgba(235, 99, 99, 0.65)), 
             url('images/contact-1.jpg') center/cover no-repeat;
  }
.about h2, .contact h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: #2c3e50;
}

.about-content, .contact-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img, .contact-img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  width: 100%;
  height: auto;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 18px;
  border: 2px solid #ddd;
  border-radius: 14px;
  font-size: 1.1rem;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f39c12;
}

.contact-form button {
  padding: 18px;
  background: #2c3e50;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #f39c12;
  transform: translateY(-3px);
}

/* ====================== VERİLERİN SAYAÇLI BÖLÜMÜ ====================== */
.stats-section {
  position: relative;
  padding: 120px 20px;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
             url('images/Verisayaci.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  margin: 100px 0 0;
}

.stats-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 70px;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.5s forwards;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.6s; }
.stat-item:nth-child(2) { animation-delay: 0.8s; }
.stat-item:nth-child(3) { animation-delay: 1.0s; }
.stat-item:nth-child(4) { animation-delay: 1.2s; }

.stat-circle {
  width: 180px;
  height: 180px;
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.stat-circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 3px solid #f39c12;
  border-radius: 50%;
  opacity: 0.6;
}

.stat-number {
  font-size: 3.8rem;
  font-weight: 900;
  color: white;
}

.stat-label {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Animasyon */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 769px) {
  .product-filter {
    flex-direction: row; /* Masaüstünde yan yana */
  }
  .product-filter input,
  .product-filter select {
    width: auto;
    max-width: none;
  }
}
/* Mobilde 2x2 olsun */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 60px; }
  .stats-title { font-size: 2.5rem; }
  .stat-circle { width: 160px; height: 160px; }
  .stat-number { font-size: 3.2rem; }
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-circle { width: 140px; height: 140px; }
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #1a2a3a;
  color: white;
  padding: 70px 20px 40px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 1.1rem;
}

.site-footer a {
  color: #f39c12;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: white;
  text-decoration: underline;
}
/* SABİT YAN İLETİŞİM MENÜSÜ */
.floating-menu {
 position: fixed;
  bottom: 50%;               /* Dikeyde tam ortaya */
  right: 15px;                 /* Soldan 15px içeri */
  transform: translateY(50%); /* Kendi yüksekliğinin yarısı kadar yukarı kaydır → gerçek orta */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.fm-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
  animation: floatIn 0.6s forwards;
  text-decoration: none !important;
  line-height: 1 !important;
}
.fm-item.whatsapp:hover,.fm-item.phone:hover , .fm-item.mail:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.fm-item:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
/* Renkler */
.fm-item.whatsapp {
  background: linear-gradient(135deg, #25D366, #1ebe5b);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.fm-item.phone {
  background: linear-gradient(135deg, #e74c3c, #ff6b4a);
  box-shadow: 0 6px 18px rgba(231, 76, 60, 0.35);
}
.fm-item.mail { background: linear-gradient(135deg, #D93025, #FCC934, #34A853, #1A73E8); } /*instagram için ise fm-item-instagram */

/* Animasyonlu giriş */
@keyframes floatIn {
  to { transform: translateY(0); opacity: 1; }
}
.fm-item:nth-child(1) { animation-delay: 0.2s; }
.fm-item:nth-child(2) { animation-delay: 0.4s; }
.fm-item:nth-child(3) { animation-delay: 0.6s; }
.fm-item:nth-child(4) { animation-delay: 0.8s; }

/* Mobilde biraz sola kaydır (parmak erişimi kolay olsun) */
@media (max-width: 768px) {
  .floating-menu {
    right: auto;
    left: 15px;
    bottom: 15px;
    transform: none;
  }
  .fm-item {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .slider {
    aspect-ratio: 4 / 3; /* Mobil oran – daha dik durur, taşmaz */
  }
  .slide img { object-fit: cover; } /* Mobilde kırp, ama taşma yok */
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a2a3a;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-menu.active {
    max-height: 500px;
  }
  .nav-menu a {
    padding: 15px;
    text-align: center;
  }
  .slider {
    width: 94%;
    margin: 40px auto;
    aspect-ratio: 4 / 3;
  }
}
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #f39c12;
  box-shadow: 0 0 5px #f39c12;
}

/* Buton Animasyonu */
.animated-btn {
  width: 100%;
  background: #f39c12;
  color: white;
  padding: 14px;
  font-size: 17px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

.animated-btn:hover {
  background: #d8870e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .slider {
    width: 96%;
    margin: 30px auto;
    aspect-ratio: 1 / 1;       /* Mobilde kareye yakın, ama hâlâ şık */
    border-radius: 16px;
  }
  .product-filter input,
  .product-filter select {
    min-width: auto;
    width: 100%;
  }
  .product-buttons {
    flex-direction: column;
  }
}
/* Pop-Up Detay Kısmı */
.btn {
  padding:not(.big) { padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
}
.btn-detay  { background: #2c3e50; color: white; }

/* Modal sistemi – tamamen CSS */
.modal-toggle { display: none; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7);
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-close {
 position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 1000 !important;
  width: 36px;
  height: 36px;
  background: rgba(22, 22, 22, 0.9);
  color: #fff8f8;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  backdrop-filter: blur(10px);          /* cam efekti */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
   background: #e74c3c;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(231,76,60,0.4);
   }

/* Checkbox işaretliyse modal açılsın */
.modal-toggle:checked + .modal {
  opacity: 1;
  pointer-events: auto;
}

.modal-toggle:checked + .modal .modal-content {
  transform: scale(1);
}

.stock { color: #27ae60; font-weight: bold; }

/* Telefon için */
@media (max-width: 600px) {
  .modal-content { padding: 20px; }
  h2 { font-size: 1.4rem; }
}
/* 2 fotoğraflı hover sistemi – hem kartta hem popup’ta çalışır */
.image-gallery {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #f8f9fa;
  margin-bottom: 16px;
  border-radius: 12px;
}

.gallery-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s ease;
}

.main-img   { opacity: 1; }
.second-img { opacity: 0; }

.image-gallery:hover .main-img   { opacity: 0; }
.image-gallery:hover .second-img { opacity: 1; }

/* Popup içindeki galeri de aynı şekilde */
.modal-gallery {
  height: 300px;
  margin-bottom: 20px;
  border-radius: 12px;
}

/* Mobilde daha küçük olsun */
@media (max-width: 768px) {
  .image-gallery { height: 220px; }
  .modal-gallery { height: 240px; }
}

/* ================= ABSOLUTE MOBILE OVERRIDE ================= */
@media (max-width: 768px) {

  /* LOGO – zorla küçült */
  .logo img {
    width: 140px !important;
    height: auto !important;
    top: 0 !important;
  }

  /* HEADER yükseklik kilidini kır */
  .header .container {
    height: auto !important;
    min-height: auto !important;
    padding: 12px 16px !important;
  }

  /* FLEX WRAP KAPAT */
  header {
    flex-wrap: nowrap !important;
  }

  /* NAV MENU – tek davranış */
  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    width: 100%;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #1a2a3a;
    flex-direction: column;
  }

  .nav-menu.active {
    max-height: 500px !important;
    padding: 20px 0 !important;
  }

  /* FLOATING ICON FIX */
  .floating-menu {
    left: 15px !important;
    right: auto !important;
    bottom: 15px !important;
    transform: none !important;
  }

  .fm-item {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.25rem !important;
  }
}
