/*──────────────────────────────────────────────────────────────────────────────
  style.css – Tam Güncellenmiş ve Temiz Hâli
──────────────────────────────────────────────────────────────────────────────*/

/* 1) Root Değişkenleri */
:root {
  --menu-width:       200px;
  --gap-desktop:      32px;
  --gap-mobile:       16px;
  --item-padding:     0.75rem 1rem;
  --transition-speed: 0.3s;
  --color-primary:    #BF150F;
  --color-primary-dark:  #8F8275;
  --color-hover-bg:      #f0f0f0;
  --color-secondary:  #383E42;
  --color-bg:         #ffffff;
  --color-bg-mobile:  rgba(255,255,255,0.97);
  --color-text:       #4A4F53;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.1);
  --shadow-md:           0 4px 20px rgba(0,0,0,0.1);
  --color-muted:      #8F8275;
  --font-heading:     'Montserrat', sans-serif;
  --font-body:        'Source Sans Pro', sans-serif;
  --product-diameter: 200px;    /* Ürün görseli daire çapı */
  --navbar-height: 64px;  /* navbar yüksekliğine göre ayarlayın */
}

html {
  scroll-padding-top: var(--navbar-height);
}

input:focus, button:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* 2) Reset & Base */
*,
*::before,
*::after {
  margin:      0;
  padding:     0;
  box-sizing:  border-box;
}

body {
  font-family:  var(--font-body);
  color:        var(--color-text);
  background:   #fff;
  line-height:  1.6;
}

a {
  text-decoration: none;
  color:           inherit;
}

/* 3) Container sınıfı: maksimum genişlik, oturt ve iç boşluk */
.container {
  max-width: 1200px;     /* Sayfa içeriğinin en geniş değeri */
  margin: 0 auto;        /* Sol ve sağ otomatik boşluk = ortala */
  padding: 0 24px;       /* Kenarlardan 24px içeride kal */
  box-sizing: border-box;/* Padding’i iç genişliğe dahil et */
}

/*───────────────────────────────────────────
  1) NAVBAR
───────────────────────────────────────────*/
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-bg);
  backdrop-filter: saturate(180%) blur(10px);
  transition: box-shadow var(--transition-speed);
  z-index: 1000;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

/* 1.1) Container hizalaması */
.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 1.2) Logo */
.logo img {
  display: block;
  height: 48px;
}

/*───────────────────────────────────────────
  2) NAV LINKS — ORTAK STİLLER
───────────────────────────────────────────*/
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 2.1) Link Temelleri */
.nav-link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 0;
  font-weight: 700;
  font-size: 1,5rem;
  border-radius: 4px;
  transition:
    background var(--transition-speed),
    box-shadow var(--transition-speed),
    color var(--transition-speed);
}

/* 2.2) Hover / Focus / Active Efektleri */
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: var(--color-hover-bg);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary-dark);
}

/* 2.3) Alt çizgi animasyonu */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/*───────────────────────────────────────────
  3) HAMBURGER & OFF-CANVAS NAV (≤768px)
───────────────────────────────────────────*/
@media (max-width: 768px) {
  /* 3.1) Hamburger görünür */
  .hamburger {
    display: flex;
    position: fixed;
    top: var(--gap-mobile);
    right: var(--gap-mobile);
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
  }
  .hamburger span {
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition:
      transform var(--transition-speed) ease,
      opacity   var(--transition-speed) ease;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* 3.2) Off-canvas panel başlangıçta gizli */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: var(--menu-width);
    height: 100vh;
    padding: var(--gap-mobile);
    gap: var(--gap-mobile);
    background: var(--color-bg-mobile);
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease;
    z-index: 1000;
    overflow-y: auto;
  }
  /* 3.3) Panel açıkken */
  .nav-links.open {
    transform: translateX(0);
  }
  /* 3.4) Menü öğeleri (mobile) */
  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: var(--item-padding);
  }
  /* 3.5) Scroll kilidi */
  body.nav-open {
    overflow: hidden;
  }
}

/*───────────────────────────────────────────
  4) DESKTOP NAV (≥769px)
───────────────────────────────────────────*/
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex;
    gap: var(--gap-desktop);
    align-items: center;
    position: static;
    transform: none;
    transition: none;
    padding: 0;
    background: none;
    height: auto;
    overflow: visible;
  }
}


/* ───────────────────────────────── Hero Slider ────────────────────────── */

/* Temel Slider Ayarları */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: .5rem;
}

/* Responsive Yükseklik - Aspect Ratio Kullanımı */
.hero-slider .slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Büyük Ekranlarda Sabit Yükseklik */
@media (min-width: 768px) {
  .hero-slider .slides-wrapper {
    aspect-ratio: auto;
    height: 50vh;
  }
}

/* Slide Konumlandırma */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slideFadeZoom 15s infinite;
}

/* Delay’ler */
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 5s; }
.hero-slider .slide:nth-child(3) { animation-delay: 10s; }

/* Görsel Stil ve Zoom Efekti */
/* Burada translate yerine sadece scale kullanıyoruz. */
.hero-slider .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform .5s ease;
}

/* Hover efekti yalnızca fare ile kullanılacak cihazlarda çalışsın */
@media (hover: hover) {
  .hero-slider .slides-wrapper:hover .slide img {
    transform: scale(1);
  }
}

/* Mobilde Zoom ve Konum Değişikliğini Kaldır */
@media (max-width: 767px) {
  .hero-slider .slide img {
    transform: none;       /* Zoom’u kaldır */
  }
}

/* Animasyon Tanımı */
@keyframes slideFadeZoom {
  0%    { opacity: 0; }
  6.66% { opacity: 1; }
  33.33%{ opacity: 1; }
  40%   { opacity: 0; }
  100%  { opacity: 0; }
}

/* 7) Buttons */
.btn-primary,
.btn-secondary {
  font-family: var(--font-heading);
  border:      none;
  cursor:      pointer;
}

.btn-primary {
  background: var(--color-primary);
  color:      #fff;
  padding:    15px 30px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--color-secondary);
  color:      #fff;
  padding:    15px 30px;
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* ────────────────────────────────────────────────────────
   HAKKIMIZDA BÖLÜMÜ – GRID İLE BAŞLIK & GÖRSEL YAN YANA
──────────────────────────────────────────────────────── */

/* ————————————————————————————————————
   1. Ana Grid Konteyneri
———————————————————————————————————— */
/* 1) .about-container ile yalnızca bu düzeni kullanın, 
      önceki .about-section veya eski grid tanımlarını kaldırın */
.about-container {
  display: grid;
  grid-template-areas:
    "title image"
    "content image";
  grid-template-columns: 1fr minmax(300px, 45%);
  column-gap: 2rem;
  row-gap: 1.5rem;
  max-width: 1200px;
  margin: auto auto;
  padding: auto auto;
  align-items: start;
  position: relative; /* pseudo-element için */
}

/*──────────────────────────────────────────────────────────────
  HAKKIMIZDA – ARKAPLAN GÖRSEL + METİN KARTI
──────────────────────────────────────────────────────────────*/
.about-section {
  position: relative;
  background-color: #fafafa;
  overflow: hidden;
  padding: 4rem 2rem;
}

/* Arkaplan görseli (pseudo-element) */

/* İçerik kapsayıcısı en üstte */
.about-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-areas:
    "title title"
    "content content";
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Başlık */
.about-title {
  grid-area: title;
  font-size: 2.25rem;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

/* Metin alanı */
.about-content {
  grid-area: content;
  display: flex;
  justify-content: center;
}

/* Text kartı konteyneri */
.text-bg {
  position: relative;          /* ::before için referans */
  background: #f0f0f0;;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  line-height: 1.7;
  color: #333;
  width: 100%;
  max-width: none;
  overflow: hidden;            /* taşan pseudo-element gizlensin */
}

/* Metnin her öğesini üstte tut */
.text-bg * {
  position: relative;
  z-index: 1;
}

/* Kart içindeki tamamen yayılan arkaplan görseli */
.text-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/aboutt.svg") no-repeat center center;
  background-size: 100% auto;  /* genişliği %100 yap, yüksekliği oranda tut */
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
}

/*───────────────────────────────────────────
  MOBİL (≤768px)
───────────────────────────────────────────*/
@media (max-width: 768px) {
  /* About bölümünün yatay padding’ini koruyoruz */
  .about-section {
    padding: 2.5rem 1rem;
  }

  /* Metin kartını yatayda taşırarak genişlet */
  .text-bg {
    position: relative;
    /* container’daki 1rem padding’i kapsayacak şekilde taşma */
    margin: 0 -1rem;            
    width: calc(100% + 2rem);
    /* istediğiniz iç padding’i verin */
    padding: 2rem 1rem;        
    overflow: hidden;
  }

  /* Kart içindeki yazılar hep üstte kalsın */
  .text-bg * {
    position: relative;
    z-index: 1;
  }

  /* Arkaplan görselini mobilde de göster, tam yayın */
  .text-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/aboutt.svg") no-repeat center center;
    background-size: cover;    /* yatayı + dikeyi tam kaplar */
    opacity: 0.12;             /* istediğiniz saydamlığı ayarlayın */
    pointer-events: none;
    z-index: 0;
  }

  /* Başlık boyutunu koru/ayarla */
  .about-title {
    font-size: 1.75rem;
  }
}

/* ─────────────────────────────────────────────────────
   HİZMETLERİMİZ BÖLÜMÜ
──────────────────────────────────────────────────────── */

.services-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: #222;
}

/* 3 Sütunlu Grid (daraldığında 2–1’e iner) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Her bir hizmet kartı */
.service-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Görsel alanı (3:2 oran, kare istersen 1/1 yapabilirsiniz) */
.service-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Başlık */
.service-title {
  font-size: 1.2rem;
  color: #333;
  margin: 16px 16px 8px;
}

/* Açıklama */
.service-desc {
  flex-grow: 1;
  margin: 0 16px 16px;
  color: #555;
  line-height: 1.5;
}

/* Detay linki */
.service-link {
  display: inline-block;
  margin: 0 auto 16px;
  padding: 8px 20px;
  background-color: #bf150f;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.service-link:hover {
  background-color: #9e1111;
}

/* Responsive küçük ekran iyileştirmeleri */
@media (max-width: 768px) {
  .services-section {
    padding: 40px 12px;
  }
  .services-section h2 {
    font-size: 1.8rem;
  }
}

/* ──────────────────────────────────────────
   BLOG BÖLÜMÜ
─────────────────────────────────────────── */
.blog-section {
  padding: 60px 0;
  background-color: #f7f7f7;
}

/* Başlık: diğer bölümlerle aynı renk */
.blog-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

/* “Tüm Blog Yazıları” linki */
.blog-section .all-blogs-link {
  text-align: center;
  margin-top: 32px;
}
.blog-section .all-blogs-link a {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-secondary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}
.blog-section .all-blogs-link a:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────
   BLOG KARTLARI
─────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 24px;
  margin-top: 24px;
}

.blog-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Sabit Kare Görsel Kutusu */
.blog-item .img-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
}
.blog-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Kart İçerikleri */
.blog-date {
  text-align: end;
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  margin: 10px 10px 4px;
}

.blog-title {
  margin: 8px 10px 8px;
  font-size: 1.1rem;
  line-height: 1.1;
  text-align: left;
}
.blog-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}
.blog-title a:hover {
  color: var(--color-primary);
}

.excerpt {
  flex-grow: 1;
  margin: 0 16px 12px;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* “Devamını Oku” Butonu */
.read-more {
  margin: 0 auto 16px;
  padding: 8px 20px;
  background-color: var(--color-secondary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}
.read-more:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────
   Responsive – Mobil (≤768px)
─────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-section {
    padding: 40px 1rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}


/* Arşiv Bölümü Genel Düzen */
.archive-section {
  padding: 10px 10px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: sans-serif;
}

/* 2) Başlık */
.archive-section h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 5px;
  color: #222;
}

/* 3) Arama Kutusu */
.archive-search {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 32px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 4) Grid Düzeni: En çok 4 sütun, gap */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

/* 5) Kart Stili */
.archive-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.archive-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* 6) Görsel Oranı (3:2) */
.archive-grid .archive-item .img-wrap {
  /* Sabit kutu boyutu: 200px kare (istersen %100 genişlik + padding hack ile de yapabilirsin) */
  top: 0;
  left: 0;
  width: 300px;           
  height: 150px;          
  overflow: hidden;       
  margin: 0 auto 5px;    /* ortala ve altına boşluk bırak */
  position: relative; 
  object-fit: cover;
  display: block;    
}


/* 7) İçerik Kutusu */
.archive-item .content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 8) Başlık */
.archive-item .content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #333;
}
.archive-item .content h3 a {
  color: inherit;
  text-decoration: none;
}

/* 9) Tarih */
.archive-item .content time {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

/* 10) Excerpt (4 satırlık kesme) */
.archive-item .content .excerpt {
  flex-grow: 1;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 11) Devamını Oku Butonu */
.archive-item .content .read-more {
  align-self: flex-start;
  padding: 6px 14px;
  background: #bf150f;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.archive-item .content .read-more:hover {
  background: #9e1111;
}

/* 12) Anasayfaya Dön Linki */
.archive-back {
  text-align: center;
  margin: 32px 0;
}
.archive-back a {
  display: inline-block;
  padding: 8px 16px;
  background: #bf150f;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.archive-back a:hover {
  background: #9e1111;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-post       { flex: 0 0 50%; }
  .contact-content { flex-direction: column; }
}

@media (max-width: 576px) {
  .blog-post          { flex: 0 0 100%; }
  .product-search-wrapper {
    flex-direction:  column;
    gap:            8px;
  }
  .product-search    { width: 100%; }
  .product-grid      { grid-template-columns: 1fr; }
}

/* ========= Blog Yazısı Stilleri ========= */
.blog-detail {
  max-width: 800px;
  margin: 20px auto;
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: sans-serif;
}

/* Görsel çerçevesi */
.blog-detail .post-image {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

/* Başlık */
.blog-detail h1#postTitle {
  margin: 24px 0 8px;
  font-size: 2rem;
  line-height: 0.5;
  color: #222;
  text-align: center;
}

/* Alt başlık */
.blog-detail h2 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #333;
  text-align: left;
}

/* Meta bilgileri */
.blog-detail .post-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.blog-detail .post-meta time {
  margin-right: 16px;
}

/* İçerik metni */
.blog-detail .post-content {
  line-height: 1.7;
  color: #333;
}

/* Anasayfaya Dön butonu */
.blog-detail .back-button {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 20px;
  background-color: #bf150f;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s;
}
.blog-detail .back-button:hover {
  background-color: #9e1111;
}

/* Responsive (≤600px) */
@media (max-width: 300px) {
  .blog-detail {
    padding: 0 0.5rem;
  }
  .blog-detail h1#postTitle {
    font-size: 1.25rem;
  }
  .blog-detail h2 {
    font-size: 1rem;
  }
}

/* 13) Responsive Minor Tweaks */
@media (max-width: 800px) {
  .archive-search {
    max-width: 100%;
  }
}

/* 1) Bölüm Başlığı: Ortalanmış ve diğer başlıklarla aynı renk */
.product-section .section-title {
  text-align: center;
  color: var(--color-secondary);
}

/* ── Ortak Blog Header ── */
/* Ortak Blog Header */
.page-header {
  background-color: #f9fafb;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: center;  /* Tüm içeriği yatayda ortala */
  gap: 1rem;              /* Başlık ile logo arası boşluk */
}

.page-title {
  font-family: sans-serif;
  font-size: 1.50rem;
  color: #222;
  margin: 0;
}

.page-logo {
  height: 48px;
  width: auto;
}

/* Küçük ekranlarda dikey yerleşim */
@media (max-width: 600px) {
  .page-header .container {
    flex-direction: column;
    text-align: center;
  }

  .page-title {
    font-size: 1.25rem;
  }
}

/* ──────────────────────────────────────────
   ÜRÜN BÖLÜMÜ STİLLERİ
───────────────────────────────────────────*/
.product-section .section-title {
  text-align: center;
  color: var(--color-secondary);
  padding: 2rem 2rem;
}

/* Arama kutusu */
.product-search-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.product-search-wrapper .search-label {
  font-size: 1rem;
  color: var(--color-text);
  white-space: nowrap;
}
.product-search-wrapper .product-search {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color var(--transition-speed),
              box-shadow  var(--transition-speed);
}
.product-search-wrapper .product-search:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* Ürün kartları grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Her bir ürün kartı */
.product-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed),
              box-shadow  var(--transition-speed);
}
.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Sabit boyutlu, yuvarlak kapsayıcı */
.product-item .product-img {
  width: 190px;
  height: 190px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) ease;
}
.product-item .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-item .product-img:hover {
  transform: scale(1.05);
}

/* Başlık ve açıklama */
.product-item h4 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin: 0.5rem 0;
  flex-shrink: 0;
}
.product-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* “Detaylı Bilgi” butonu */
.product-item .btn-detail {
  margin-top: auto;
  padding: 0.6rem 1.4rem;
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background var(--transition-speed),
              transform  var(--transition-speed),
              box-shadow var(--transition-speed);
  text-decoration: none;
}
.product-item .btn-detail:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Responsive (≤768px) */
@media (max-width: 768px) {
  .product-section {
    padding: 2.5rem 1rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-search-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  .product-search-wrapper .product-search {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .product-item .product-img {
    width: 100px;
    height: 100px;
  }
}

/* ──────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────*/
.contact-section {
  background-color: #f7f7f7;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

/* Map */
.map-wrapper {
  text-align: center;
}
.map-wrapper p {
  color: #555;
  margin-bottom: 1rem;
}
.map-container {
  width: calc(100% + (2 * var(--site-gutter)));
  margin: 0 calc(-1 * var(--site-gutter));
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Address & Form Grid */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Address Block */
.contact-left {
  line-height: 1.6;
}
.contact-left .address {
  font-weight: 500;
  margin-bottom: 1rem;
}
.contact-left p {
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.contact-left a {
  color: var(--color-primary);
  text-decoration: none;
}
.contact-left a:hover {
  text-decoration: underline;
}

/* Form Block */
.contact-right .contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.contact-form button {
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.contact-form button:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Responsive (≤768px) */
@media (max-width: 768px) {
  .contact-container {
    padding: 2.5rem 1rem;
  }
  .map-container iframe {
    height: 200px;
  }
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* ───── FOOTER ───── */
.site-footer {
  background-color: #222;
  color: #eee;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-nav {
  text-align: center;
  margin-bottom: 1rem;
}
.footer-nav a {
  color: #ddd;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-nav span {
  color: #555;
}
.footer-copy {
  text-align: center;
  margin: 0.5rem 0;
}

/* Sosyal İkonlar (Footer) */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-social img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
.footer-social a:hover img {
  transform: scale(1.2);
}

/* ──────────────────────────────────────────
   Ürün Detay Modalı — Şık ve Kurumsal Stil
───────────────────────────────────────────*/

/* 1) Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal.open {
  display: flex;
}
body.modal-open {
  overflow: hidden;
}

/* 2) Dialog Konteyneri */
.modal-dialog {
  margin: 1.5rem auto;
  width: 90%;
  max-width: 600px;
}

/* 3) İçerik Kutusu */
.modal-content {
  position: relative;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-height: 80vh;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.modal.open .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* 4) Başlık ve Altbilgi */
.modal-header,
.modal-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.modal-footer {
  border-top: 1px solid #eee;
  border-bottom: none;
  text-align: right;
}

/* 5) Kayan İçerik */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

/* 6) Ürün Görseli — Sabit Boyutlu, Yuvarlak ve Şık */
.modal-body img,
.modal-content img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) ease;
}
.modal-body img:hover,
.modal-content img:hover {
  transform: scale(1.05);
}

/* 7) Kapatma Butonu */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 24px;
  color: #c41d1d;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modal-close:hover {
  background: rgba(242, 9, 9, 0.05);
}

.modal-features-title {
  margin: 1em 0 0.5em;
  text-align: left;
  font-size: auto;
  font-weight: 600;
}