@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Bootstrap ile uyumlu CSS düzenlemeleri */
*{
    font-family: "Inter", sans-serif;
}

/* Bootstrap primary rengini özelleştir */
:root {
    --bs-primary: #e30713;
    --bs-primary-rgb: 227, 7, 19;
}

/* Bootstrap navbar için body padding ayarı */
body{
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Bootstrap navbar için ayarlandı */
}

/* Bootstrap navbar özelleştirmeleri */
.navbar-brand img {
    height: 80px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #e30713 !important;
}

.navbar-nav .nav-link.active {
    color: #e30713 !important;
}

/* Bootstrap dropdown özelleştirmeleri */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 16px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #e30713;
}

.dropdown-item.active {
    background-color: #e30713;
    color: white;
}
/* Bootstrap container özelleştirmeleri */
.container {
  max-width: 1200px;
}

/* Ana sayfa container'ı için özel stil */
.acontainer {
  max-width: 1200px;
  margin: 0 auto;
}

/* Bootstrap ile uyumlu filtre ve içerik alanları */
.filters {
  width: 100%;
}

#categoryFilter, #searchInput {
    width: 100%;
}

.content {
  flex: 1 1 auto; 
  min-width: 0;
}

/* Bootstrap ile uyumlu grid sistemleri */
#products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
  gap: 20px;
}

#categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Bootstrap card özelleştirmeleri */
.product-card {
  border: 1px solid #e30713;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #333;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Bootstrap ile uyumlu filtre stilleri */
.filters { 
  position: sticky; 
  top: 120px; 
}

.filter-group { 
  margin-bottom: 20px; 
}

.filter-group h4 { 
  margin: 0 0 12px; 
  font-size: 16px; 
  font-weight: 600;
  color: #333;
}

.category-list { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.category-item { 
  display: block; 
  padding: 12px 16px; 
  border-radius: 8px; 
  color: #333; 
  text-decoration: none; 
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.category-item:hover { 
  background: #f8f9fa; 
  color: #e30713;
  border-color: #e30713;
}

.category-item.active { 
  background: #e30713; 
  color: white; 
  font-weight: 600; 
}

.checkbox-list { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  max-height: 300px; 
  overflow: auto; 
}

/* Bootstrap ile uyumlu kategori kartları - product-card ile aynı stil */
.category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #333;
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  color: #333;
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
  font-weight: 600;
  color: #333;
}

.category-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bootstrap checkbox özelleştirmeleri */
.checkbox-list input[type="checkbox"] {
  accent-color: #e30713;
  margin-right: 8px;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.checkbox-list label:hover {
  color: #e30713;
}

/* Bootstrap ile uyumlu ikon stilleri */
.iconlar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iconlar a {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.iconlar a:hover {
  color: #e30713;
  background-color: #f8f9fa;
  border-color: #e30713;
  transform: translateX(4px);
}

.iconlar i {
  color: currentColor;
  font-size: 18px;
}

/* Bootstrap ile uyumlu harita stilleri */
.map-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bootstrap modal özelleştirmeleri */
.modal[hidden] { 
  display: none; 
}

.modal { 
  position: fixed; 
  inset: 0; 
  z-index: 2000; 
}

.modal-backdrop { 
  position: absolute; 
  inset: 0; 
  background: rgba(0,0,0,0.5); 
}

.modal-content {
  position: relative; 
  z-index: 1; 
  width: min(900px, 92vw);
  max-height: 90vh; 
  overflow: auto; 
  margin: 5vh auto; 
  background: #fff;
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
  padding: 24px;
}

.modal-close {
  position: absolute; 
  top: 16px; 
  right: 16px; 
  border: 0; 
  background: transparent;
  font-size: 24px; 
  line-height: 1; 
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #e30713;
}

/* Bootstrap ile uyumlu modal içerik stilleri */
.modal-body .detail-header { 
  display: flex; 
  gap: 20px; 
  align-items: flex-start; 
  margin-bottom: 20px;
}

.modal-body .detail-image {
  width: 300px; 
  flex: 0 0 300px; 
  aspect-ratio: 4/3; 
  object-fit: cover; 
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-body .detail-meta { 
  flex: 1 1 auto; 
}

.modal-body h2 { 
  margin: 0 0 12px; 
  font-size: 24px; 
  font-weight: 600;
  color: #333;
}

.meta-row { 
  margin: 8px 0; 
  color: #666; 
  font-size: 14px; 
  line-height: 1.5;
}

.badges { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  margin-top: 12px; 
}

.badge { 
  background: #f8f9fa; 
  border: 1px solid #e9ecef;
  border-radius: 20px; 
  padding: 6px 12px; 
  font-size: 12px; 
  color: #666;
}

.detail-specs { 
  margin-top: 24px; 
  border-top: 1px solid #eee; 
  padding-top: 20px; 
}

.detail-specs h3 { 
  margin: 0 0 16px; 
  font-size: 18px; 
  font-weight: 600;
  color: #333;
}

.spec-list { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 12px; 
}

.spec-item { 
  background: #f8f9fa; 
  border: 1px solid #e9ecef; 
  border-radius: 8px; 
  padding: 12px; 
  font-size: 14px; 
  transition: all 0.2s ease;
}

.spec-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.spec-item b { 
  display: block; 
  margin-bottom: 6px; 
  color: #333; 
  font-weight: 600;
}

/* Bootstrap ile uyumlu mobil responsive stiller */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Bootstrap navbar için ayarlandı */
  }

  .filters { 
    position: static; 
    margin-bottom: 20px;
  }

  #products-grid,
  #categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card,
  .category-card {
    min-height: 200px;
    padding: 12px;
  }
  
  .product-card img,
  .category-card img {
    height: 140px;
    width: 100%;
    object-fit: cover;
  }
  
  /* Modal mobil optimizasyonu */
  .modal-content {
    width: 95vw !important;
    margin: 2vh auto !important;
    max-height: 95vh !important;
    padding: 20px !important;
  }
  
  .modal-body .detail-header {
    flex-direction: column !important;
    gap: 16px;
  }
  
  .modal-body .detail-image {
    width: 100% !important;
    max-height: 60vh !important;
    object-fit: contain;
  }
  
  .modal-close {
    width: 44px !important;
    height: 44px !important;
    font-size: 28px !important;
    top: 10px !important;
    right: 10px !important;
  }
}

@media (max-width: 600px) {
  #products-grid,
  #categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-card,
  .category-card {
    min-height: 180px;
    padding: 10px;
  }
  
  .product-card img,
  .category-card img {
    height: 120px;
    width: 100%;
    object-fit: cover;
  }
}

/* Çok küçük ekranlar için optimizasyon */
@media (max-width: 480px) {
  #products-grid,
  #categories-grid { 
    grid-template-columns: 1fr; 
    gap: 10px;
  }

  .product-card,
  .category-card {
    min-height: 160px;
    padding: 8px;
  }

  .product-card img,
  .category-card img {
    height: 100px;
    width: 100%;
    object-fit: cover;
  }

  .modal-content {
    width: 96vw !important;
    margin: 2vh auto !important;
    max-height: 96vh !important;
    padding: 16px !important;
  }
  
  .modal-body .detail-image {
    max-height: 50vh !important;
  }
  
  .modal-close {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    top: 8px !important;
    right: 8px !important;
  }
}

/* Bootstrap ile uyumlu mikro etkileşimler */
.product-card:active,
.category-card:active {
  transform: scale(0.98);
}

/* Bootstrap ile uyumlu filtre toggle */
.filters-toggle {
  display: none;
}

@media (max-width: 768px) {
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    min-height: 44px;
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.2s ease;
  }

  .filters-toggle:hover {
    background: #f8f9fa;
    border-color: #e30713;
  }

  .filters {
    display: none;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .filters.open { 
    display: block; 
  }
  
  .filters button,
  .filters .category-item {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Bootstrap ile uyumlu hero section */
.hero {
  position: relative; 
  max-width: 900px; 
  margin: 0 auto 32px;
  overflow: hidden; 
  border-radius: 12px; 
  background: #000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Bootstrap carousel item stilleri */
.carousel-item img { 
  width: 100%; 
  height: 450px; 
  object-fit: cover; 
  display: block; 
}

/* Bootstrap carousel control özelleştirmeleri */
.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(227, 7, 19, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 16px;
}

.carousel-control-next {
  right: 16px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) { 
  .hero { 
    margin: 0 auto 24px;
  } 
  
  .carousel-item img { 
    height: 300px; 
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 44px;
    height: 44px;
  }
  
  .carousel-control-prev {
    left: 12px;
  }
  
  .carousel-control-next {
    right: 12px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }
}

/* Bootstrap ile uyumlu ana sayfa stilleri */
.acontainer { 
  max-width: 1200px; 
  margin: 32px auto; 
  display: grid; 
  gap: 24px; 
}

/* About alanı */
.acontainer .about h2 { 
  margin: 0 0 16px; 
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.acontainer .about p { 
  margin: 0; 
  color: #666; 
  line-height: 1.7; 
  font-size: 16px;
}

/* Vizyon & Misyon yan yana */
.vizyon-misyon { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}

.vizyon, .misyon { 
  background: #fff; 
  border: 1px solid #e9ecef; 
  border-radius: 12px; 
  padding: 24px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.vizyon:hover, .misyon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vizyon h3, .misyon h3 { 
  margin: 0 0 12px; 
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* Kuzey logosu ortalı */
.kuzeyfoto { 
  display: flex; 
  justify-content: center; 
  margin: 20px 0;
}

.kuzeyfoto img { 
  height: 160px; 
  width: auto; 
  object-fit: contain; 
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* 3 parça bilgi (müşteri, teknik bilgi, destek) */
.triple { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

.musteri, .teknikbilgi, .destek {
  background: #fff; 
  border: 1px solid #e9ecef; 
  border-radius: 12px; 
  padding: 24px; 
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.musteri:hover, .teknikbilgi:hover, .destek:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mlogo { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  justify-content: center; 
  margin-bottom: 12px; 
}

.mlogo i { 
  font-size: 24px; 
  color: #e30713;
}

/* Bootstrap ile uyumlu mobil responsive */
@media (max-width: 768px) {
  .acontainer { 
    width: 100%; 
    padding: 0 15px;
    gap: 20px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .vizyon-misyon { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  
  .triple { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  
  .about h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .about p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  
  .vizyon h3,
  .misyon h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .vizyon p,
  .misyon p {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .kuzeyfoto img {
    height: 120px;
  }
  
  .musteri h3,
  .teknikbilgi h3,
  .destek h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .musteri p,
  .teknikbilgi p,
  .destek p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Bootstrap ile uyumlu footer stilleri */
.anasayfailetisim {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: #333;
  margin-top: 40px;
}

.anasayfailetisim p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 900px;
  text-align: center;
  color: #666;
}

.anasayfailetisim a {
  text-decoration: none;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  font-weight: 500;
}

.anasayfailetisim a:hover {
  color: #e30713;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: #e30713;
}

@media (max-width: 600px) {
  .anasayfailetisim { 
    padding: 24px 16px; 
    gap: 16px; 
  }
  
  .anasayfailetisim p { 
    order: 3; 
    width: 100%; 
    margin-bottom: 16px;
  }
  
  .anasayfailetisim a { 
    order: 1; 
    width: calc(50% - 8px); 
    justify-content: center; 
    font-size: 14px;
    padding: 10px 12px;
  }
}