html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Navbar yüksekliği + biraz buffer */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  padding-top: 56px;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
  background: #f8f9fa;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e2e2e2;
}

/* ============================================
   NAVBAR & MENU STİLLERİ
   ============================================ */

/* Navbar sticky positioning */
.navbar.sticky-top {
  z-index: 1030 !important;
  position: fixed !important;
  top: 0;
  width: 100%;
  left: 0;
  right: 0;
}

/* Mobil Dropdown İyileştirmesi */
@media (max-width: 991px) {
    .dropdown-menu {
        width: 100%;
        border-radius: 0;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Mobile navbar padding adjustment */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  html {
    scroll-padding-top: 75px;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 576px) {
  body {
    padding-top: 65px;
  }
  
  html {
    scroll-padding-top: 70px;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Sepet Badge Pozisyonu - İkon Üstünde */
.navbar .nav-item.position-relative {
    position: relative !important;
}

/* Navbar Badge Stili - Sepet Sayısı Simgesi */
.navbar .nav-item.position-relative .badge {
  position: absolute !important;
  top: -15px !important;
  right: -8px !important;
  font-size: 0.7rem !important;
  padding: 0.2rem 0.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  font-weight: bold !important;
  z-index: 10 !important;
}

/* Sepet İkonu - Flash Animasyonu */
.navbar .nav-item.position-relative a[href*="/sepet"] i {
  transition: color 0.3s ease;
}

.navbar .nav-item.position-relative a[href*="/sepet"].cart-flash i {
  animation: cartFlash 0.6s ease-in-out infinite;
}

/* Flash Animasyonu - Renk Değiştirme */
@keyframes cartFlash {
  0% {
    color: inherit;
  }
  25% {
    color: #ffc107; /* Sarı */
  }
  50% {
    color: #198754; /* Yeşil */
  }
  75% {
    color: #ffc107; /* Sarı */
  }
  100% {
    color: inherit;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Dinamik oluşturulan Badge (JavaScript tarafından) */
.navbar .nav-item.position-relative .dynamic-badge {
  position: absolute !important;
  top: -15px !important;
  right: -8px !important;
  font-size: 0.7rem !important;
  padding: 0.2rem 0.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  font-weight: bold !important;
  z-index: 10 !important;
}

/* Navbar Search Form Alignment Fix */
.navbar-nav .d-flex {
  align-items: center !important;
  gap: 0 !important;
}

.navbar-nav .nav-item .d-flex .form-control-sm {
  height: auto !important;
  line-height: 1.5;
  vertical-align: middle;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.875rem;
  margin: 0 !important;
}

.navbar-nav .nav-item .d-flex .btn-sm {
  height: auto !important;
  padding: 0.25rem 0.5rem !important;
  vertical-align: middle;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

/* Navbar search item - remove extra padding */
.navbar-nav .nav-item.me-2 .d-flex {
  margin: 0;
  padding: 0;
}

/* Fix nav-item padding that causes search bar to shift */
.navbar-nav > .nav-item:has(.d-flex) {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}


/* ============================================
   İLEİŞİM SAYFASI - FORM VE KARTLAR
   ============================================ */

/* İletişim Kartı Stili */
.contact-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 25px;
}

/* İletişim Bilgileri - İkon Rengi */
.contact-info i {
  color: #0d6efd;
  width: 25px;
}

/* Harita Kutusu - Sınır Yuvarlatma */
.map-box {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

/* Gizli Alan (Honeypot) */
.hidden {
  display: none;
}

/* Sayfa Başlığı - Sol Çizgi */
h2.page-title {
  border-left: 5px solid #0d6efd;
  padding-left: 10px;
  font-weight: 700;
}

/* Sayfa Başlığı - Gradient Arka Plan */
.page-header {
  background: linear-gradient(135deg, #198754 0%, #157347 100%);
  color: #fff;
  padding: 60px 0;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-header h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1rem;
  opacity: 0.95;
}

/* Sayfanın Üstüne Dön Düğmesi */
#scrollTop {
  position: fixed;
  bottom: 25px;
  right: 100px;
  background-color: #198754;
  color: #fff;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  display: none !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 997;
}

#scrollTop:hover {
  background-color: #0d6efd;
}

#scrollTop.show {
  display: flex !important;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  transform: translate(-35px, -47px) !important;
}

#scrollTop.show:hover {
  transform: translate(-35px, -47px) scale(1.1) !important;
}



.product-card {
    border-radius: 14px;
    overflow: hidden;
    transition: .3s;
    border: none;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Ürün Görseli */
.product-card img {
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #f1f1f1;
    width: 100%;
}

@media (max-width: 768px) {
    .product-card img {
        height: 200px;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
    .product-card img {
        height: 160px;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

.mb-3.rounded {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

/* Ürün Başlığı */
.product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Ürün Açıklaması */
.product-card .card-text {
    color: #495057;
    font-size: .95rem;
    min-height: 50px;
}

/* Kart Düğmesi */
.product-card .btn {
    border-radius: 30px;
    padding: 6px 18px;
    font-size: .85rem;
}

/* Fiyat Etiketi - Modern Görünüm */
.product-card .card-footer {
    background: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    color: #0d6efd;
    border-top: none !important;
    padding: 15px 0;
}


/* Ürün Başlığı */


/* ============================================
   BLOG İÇERİĞİ - GÖRSEL STİLLERİ
   ============================================ */

/* Blog İçerik Görselleri - Otomatik Ortalama ve Sınırlama */
.content img {
    height: auto !important;
    display: block !important;
    margin: 10px auto !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
}

.content img:hover {
    transform: scale(1.02);
}

/* Blog Kapak Görseli - Optimize Stil */
.blog-thumb {
    max-width: 100%;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
}


/* Tablet Cihazları - Görsel Optimizasyonu */
@media (max-width: 768px) {
    .content img {
        max-height: 300px;
    }
    
    .blog-thumb {
        height: 200px;
        width: 100%;
        max-height: 200px;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Mobil Cihazları - Görsel Optimizasyonu */
@media (max-width: 480px) {
    .content img {
        max-height: 200px;
    }
    
    .blog-thumb {
        height: 150px;
        max-height: 150px;
        width: 100%;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   REFERANS LOGOSU
   ============================================ */




/* ============================================
   ANASAYFA - HERO & KAROUSEL STİLLERİ
   ============================================ */

/* Hero / Başlık Bölümü */
.hero {
    position: relative;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: brightness(60%);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

/* Karousel Başlığı */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 0.5rem 0.5rem;
}

.carousel-caption h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   BLOG KARTI STİLLERİ
   ============================================ */

.blog-card {
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s all ease;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.blog-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card .card-text {
    color: #495057;
    min-height: 55px;
    font-size: 0.95rem;
}

.blog-card .btn {
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.85rem;
}

/* ============================================
   DUYARLI TASARIM STİLLERİ
   ============================================ */

/* Tablet (768px ve aşağı) */
@media (max-width: 768px) {
    .hero img {
        height: 350px;
    }

    .carousel-caption {
        padding: 0.75rem;
    }

    .carousel-caption h2 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .carousel-caption .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .product-card img {
        height: 180px;
    }

    .blog-card img {
        height: 180px;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Mobil (576px ve aşağı) */
@media (max-width: 576px) {
    .hero img {
        height: 250px;
    }

    .carousel-caption {
        padding: 0.5rem;
    }

    .carousel-caption h2 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        display: none;
    }

    .carousel-caption .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .hero-text {
        padding: 20px;
    }

    .hero-text h2 {
        font-size: 1.25rem;
    }

    .product-card img,
    .blog-card img {
        height: 150px;
    }

    .ref-logo {
        width: 150px;
        height: 75px;
    }

    /* Mobile Touch Target Size - WCAG Minimum 44x44px */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px !important;
    }

    .btn-sm {
        min-height: 40px;
        min-width: 40px;
        padding: 6px 12px !important;
        font-size: 0.875rem;
    }

    /* Icon-only buttons should be at least 44x44px */
    .btn-icon,
    button[aria-label],
    a[role="button"][aria-label] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   SAYFA BAŞLIĞI - TUTARLI STİL
   ============================================ */

/* Galeri Sayfası - Farklı Renk Gradyenti */
.page-header.galeri {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Sayfa Haritası - Krumble Navigation */
.breadcrumb {
    background: none;
    font-size: 0.9rem;
    padding-left: 0;
}

.breadcrumb-item {
    text-decoration: none;
}

.breadcrumb-item a {
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

/* ============================================
   SAYFA İÇERİĞİ STİLLERİ
   ============================================ */

.page-content {
    background: #fff;
    padding: 40px 50px;
    margin-top: -30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.page-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.page-content img:hover {
    transform: scale(1.02);
}

/* ============================================
   REFERANS KARTLARI - MODERN TASARIM
   ============================================ */

.ref-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Referans Logosu */
.ref-card .ref-logo {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-bottom: 1px solid #eee;
    padding: 10px;
    background: #f9f9f9;
}

/* Referans İçeriği */
.ref-card .ref-content {
    padding: 15px;
    text-align: center;
}

.ref-card .ref-content h5 {
    font-weight: 600;
    color: #0d6efd;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ref-card .ref-content p {
    font-size: 0.95rem;
    color: #495057;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    min-height: 60px;
    margin: 0;
}

/* ============================================
   GALERİ - MODERN LIGHTBOX STİLLERİ
   ============================================ */

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Galeri Overlay - Büyütme Simgesi */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 135, 84, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FİLTRE DÜĞMELERI - ETKİLEŞİMLİ DURUMLAR
   ============================================ */

.filter-btn {
    transition: all 0.3s ease;
    border-color: #0d6efd;
    color: #0d6efd;
}

.filter-btn:hover {
    background-color: #0d6efd;
    color: #fff;
}

.filter-btn.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ============================================
   FORM ÖĞELERI - MODERN STİL
   ============================================ */

#filtreForm .form-control,
#filtreForm .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

#filtreForm .form-control:focus,
#filtreForm .form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.1);
    outline: none;
}

#filtreForm .btn-success {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-weight: 500;
}

#filtreForm .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* ============================================
   DEVAMINI YÜKLEBİL & SAYFALANDIRMA DÜĞMELERI
   ============================================ */

.load-btn {
    display: block;
    margin: 30px auto;
    border-radius: 30px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TABLET & MOBIL DUYARLI STİLLER
   ============================================ */

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .page-header .lead {
        font-size: 0.95rem;
    }

    .page-content {
        padding: 25px 35px;
        margin-top: -20px;
        border-radius: 10px;
    }

    .blog-thumb {
        height: 150px;
    }

    .product-card img {
        height: 180px;
    }

    .gallery-item img {
        height: 200px;
    }

    #filtreForm .col-md-3,
    #filtreForm .col-md-2 {
        margin-bottom: 10px;
    }

    #filtreForm .btn-success {
        width: auto;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Mobil (576px ve aşağı) */
@media (max-width: 576px) {
    .page-header {
        padding: 30px 15px;
        text-align: center;
        border-radius: 0 0 20px 20px;
    }

    .page-header h1 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .page-header .lead {
        font-size: 0.85rem;
    }

    .page-content {
        padding: 20px 18px;
        margin-top: -20px;
        border-radius: 10px;
    }

    .page-content img {
        margin: 12px 0;
        border-radius: 6px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding-left: 0;
        margin-bottom: 10px;
    }

    .breadcrumb-item {
        padding: 0 0.25rem;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-card img {
        height: 150px;
    }

    .blog-thumb {
        height: 120px;
    }

    .blog-card {
        border-radius: 8px;
    }

    .gallery-item img {
        height: 150px;
    }

    .ref-card .ref-content p {
        font-size: 0.9rem;
        min-height: auto;
    }

    #filtreForm {
        flex-direction: column;
    }

    #filtreForm .col-md-3,
    #filtreForm .col-md-2,
    #filtreForm .col-md-2.text-end {
        width: 100% !important;
        margin-bottom: 10px;
    }

    #filtreForm .btn-success {
        width: 100% !important;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* İnline stil logosu */
img[style*="object-fit:contain"] {
    max-width: 100%;
    height: auto;
}

/* ============================================
   REFERANSLAR SAYFA - KATEGORİ BUTONLARI
   ============================================ */

.filter-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.filter-buttons-wrapper .filter-btn {
    white-space: nowrap;
    flex: 0 1 auto;
}

/* Mobil (ékıcı 576px) */
@media (max-width: 576px) {
    .filter-buttons-wrapper {
        gap: 6px;
        row-gap: 10px;
    }
    
    .filter-buttons-wrapper .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        flex: 0 1 calc(50% - 3px);
        min-width: 120px;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Tablet (768px ve aşağı) */
@media (max-width: 768px) {
    .filter-buttons-wrapper .filter-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.85rem;
    }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   İNSTAGRAM GÖNDERİLERİ - MODERN TASARIM
   ============================================ */

.instagram-post {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-post-link {
    text-decoration: none;
    display: block;
}

.instagram-post-link:hover .instagram-post img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.instagram-post-link:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: #E4405F;
    margin-bottom: 10px;
}

.instagram-overlay p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   ÜRÜN DETAY SAYFASI - GÖRSEL VE KONTROLLER
   ============================================ */

/* Ürün Galeri Görselleri */
.product-gallery img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

/* Galeriye Tumsek Görselleri */
.thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.thumb img:hover {
  transform: scale(1.05);
}

/* Benzer Ürün Kartı Görselleri */
.similar-card img {
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.similar-card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Miktar Kontrol Dünmeleri */
.qty-control {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #198754;
  width: fit-content;
  height: 45px;
}

/* Küçük Quantity Kontrol (Sepete Ekle ile yan yana) */
.qty-control-small {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #198754;
  width: fit-content;
  height: 40px;
}

.qty-control button,
.qty-control-small button {
  width: 35px;
  height: 100%;
  border: none;
  background: #198754;
  color: #fff;
  border-radius: 0;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.qty-control button:first-child,
.qty-control-small button:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.qty-control button:last-child,
.qty-control-small button:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.qty-control button:hover,
.qty-control-small button:hover {
  background: #157347;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.qty-control button:active,
.qty-control-small button:active {
  background: #0f5132;
}

.qty-control input,
.qty-control-small input {
  text-align: center;
  border: none;
  border-radius: 0;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 8px;
  transition: all 0.2s ease;
  background: #fff;
  margin: 0;
  flex: 1;
  height: 100%;
}

.qty-control input {
  width: 70px;
}

.qty-control-small input {
  width: 50px;
}

.qty-control input:focus,
.qty-control-small input:focus {
  outline: none;
  background: #f8f9fa;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Remove spinner for number input */
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button,
.qty-control-small input::-webkit-outer-spin-button,
.qty-control-small input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-control input[type=number],
.qty-control-small input[type=number] {
  -moz-appearance: textfield;
}

/* Mobil uyumlu */
@media (max-width: 576px) {
  .qty-control {
    height: 40px;
    border-radius: 6px;
  }
  
  .qty-control button {
    width: 35px;
    font-size: 1.1rem;
  }
  
  .qty-control input {
    width: 50px;
    font-size: 0.9rem;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Ürün Detay Sayfası - Duyarlı Tasarim */
@media (max-width: 768px) {
  .product-gallery img {
    height: 250px;
  }
  
  .similar-card img {
    height: 150px;
  }
  
  .qty-control {
    flex-wrap: wrap;
  }
  
  .qty-control input {
    width: 100%;
    margin-top: 5px;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 576px) {
  .thumb img {
    width: 60px;
    height: 60px;
  }
  
  .similar-card {
    border-radius: 6px;
  }
  
  .similar-card img {
    height: 120px;
    border-radius: 6px;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   BLOG DETAIL SAYFASI - RESPONSIVE STİLLERİ
   ============================================ */

.blog-detail-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Meta Info Styling */
.blog-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.blog-meta-item i {
  min-width: 18px;
  text-align: center;
}

/* Navigation Buttons */
.blog-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.blog-nav-buttons .btn {
  flex: 1;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .blog-detail-img {
    max-height: 350px;
  }
  
  article h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .blog-meta-info {
    font-size: 0.85rem;
    gap: 0.75rem;
  }
  
  .content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .blog-nav-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .blog-nav-buttons .btn {
    width: 100%;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  article h1 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .blog-detail-img {
    max-height: 250px;
  }
  
  .blog-meta-info {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .blog-meta-item {
    gap: 0.35rem;
  }
  
  .blog-meta-item i {
    font-size: 0.85em;
  }
  
  .content {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1.5rem;
  }
  
  .blog-nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .blog-nav-buttons .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  .col-md-4 {
    margin-top: 2rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
  
  .btn-primary {
    width: 100%;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   WHATSAPP İLETİŞİM BUTONU - FLOATING WIDGET
   ============================================ */

/* İletişim FAB (Floating Action Button) */
.contact-fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Ana Buton */
.fab-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.fab-main-btn:active {
  transform: scale(0.95);
}

/* FAB İkonları */
.fab-icon {
  width: 28px;
  height: 28px;
  color: white;
  fill: white;
  transition: all 0.3s ease;
  background: transparent;
  stroke: none;
}

.fab-action-btn i {
  font-size: 20px;
  color: white;
}

/* WhatsApp Modal */
.whatsapp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.whatsapp-modal.show {
  display: flex !important;
}

.whatsapp-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.whatsapp-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.whatsapp-modal-close:hover {
  color: #000;
}

.whatsapp-modal-body {
  padding: 40px 20px 30px;
  text-align: center;
}

.whatsapp-status-icon {
  font-size: 60px;
  color: #25d366;
  margin-bottom: 15px;
}

.whatsapp-modal-body h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.whatsapp-modal-phone {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
}

.whatsapp-modal-status {
  margin: 5px 0 20px 0;
  color: #25d366;
  font-size: 14px;
  font-weight: 500;
}

.whatsapp-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.whatsapp-modal-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-modal-btn i {
  font-size: 18px;
}

.whatsapp-modal-offline-msg {
  color: #e74c3c;
  font-size: 14px;
  margin: 10px 0 5px 0;
  font-weight: 500;
}

.whatsapp-modal-hours {
  color: #999;
  font-size: 12px;
  margin: 5px 0 15px 0;
}

.whatsapp-modal-btn-offline {
  background: #999999;
}

.whatsapp-modal-btn-offline:hover {
  background: #777777;
}

/* Action Butonları */
.fab-action-btn {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: scale(0) translate(0, 0);
  pointer-events: none;
}

/* WhatsApp Butonu */
.fab-whatsapp {
  background: #25d366;
  bottom: 70px;
  right: 0;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Telefon Butonu */
.fab-phone {
  background: #25d366;
  bottom: 70px;
  right: 0;
}

.fab-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Active State - Butonlar Açık */
.contact-fab-container.active .fab-action-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-fab-container.active .fab-whatsapp {
  transform: scale(1) translate(20px, 10px);
}

.contact-fab-container.active .fab-phone {
  transform: scale(1) translate(-28px, -40px);
}

/* Tablet ve Mobil Uyarlamalar */
@media (max-width: 768px) {
  .contact-fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .fab-main-btn {
    width: 55px;
    height: 55px;
  }
  
  .fab-icon {
    width: 26px;
    height: 26px;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
  .contact-fab-container {
    bottom: 15px;
    right: 15px;
  }
  
  .fab-main-btn {
    width: 50px;
    height: 50px;
  }
  
  .fab-icon {
    width: 24px;
    height: 24px;
  }
  
  .fab-action-btn {
    width: 45px;
    height: 45px;
  }
  
  .contact-fab-container.active .fab-whatsapp {
    transform: scale(1) translate(12px, 8px);
  }
  
  .contact-fab-container.active .fab-phone {
    transform: scale(1) translate(-28px, -47px);
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================
   CAROUSEL / SLIDER - MOBILE RESPONSIVE
   ============================================ */

#mainCarousel {
  width: 100%;
}

.carousel-item img {
  width: 100%;
  display: block;
}

/* Mobile slider height reduction */
@media (max-width: 768px) {
  #mainCarousel .carousel-item img {
    max-height: 300px;
    object-fit: cover;
  }
  
  .carousel-caption {
    padding: 1rem 0.5rem !important;
  }
  
  .carousel-caption h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
}

/* Visually Hidden - for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Sentinel element for infinite scroll - should be hidden */
#sentinel {
  height: 1px;
  visibility: hidden;
  margin: 0;
  padding: 0;
}

@media (max-width: 576px) {
  #mainCarousel .carousel-item img {
    max-height: 200px;
    object-fit: cover;
  }
  
  .carousel-caption {
    padding: 0.75rem 0.25rem !important;
  }
  
  .carousel-caption h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .carousel-caption p {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .carousel-caption .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
}
