html, body {
  margin: 0;
  padding: 0;
}

:root {
  --nav-h: 70px; /* approximate navbar height */
}

body {
  margin: 0;
  padding-top: 70px; /* navbar yüksekliği kadar */
}

body.no-nav {
  padding-top: 0;
}

/* Hero Bölümü */
.hero {
  color: #fff;
  height: 100vh;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-images {
  display: flex;
  height: 100%;
}

.hero-images img {
  width: 25%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 0;
}

/* Hovered parça öne çıkar, diğer parçalar kararır */

.hero-images img:hover:not(.always-front) {
  z-index: 2;
  transform: scale(1.05);
  filter: brightness(110%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-images:hover img:not(:hover):not(.always-front) {
  filter: brightness(40%);
}

/* sol.png sabit önde kalsın ve hover'da değişmesin */
.hero-images img.always-front {
  z-index: 3;
}


.hero .display-4,
.hero .lead {
  color: #000 !important;
}

/* Özellik İkonları */
.feature-icon {
  font-size: 2.5rem;
  color: #0d6efd;
}

/* Kart Hover Efekti */
.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Buton Hover Rengi */
.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Features–Login Bölümü */
#features-login {
  padding: 80px 0;
}

/* Login Kartı */
.login-card {
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form Label Güçlendirme */
.login-card .form-label {
  font-weight: 500;
}

/* Responsive Özellik  */
@media (max-width: 767px) {
  #features-login .row {
    text-align: center;
  }
  .feature-icon {
    justify-content: center;
  }
  .login-card {
    margin-top: 2rem;
  }
}

/* Big product search */
#product-search .big-search-input {
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.05);
}
#product-search .card-title {
  font-size: 1.05rem;
}
/* Navbar */
.navbar {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0.25rem 1rem;
  height: 100%;
}

.navbar-brand .brand-logo {
  height: 100%; 
  max-height: 60px; 
  width: auto; 
  object-fit: contain;
  flex-shrink: 0; 
}

.card-img-top {
  height: 180px; 
  width: 100%; 
  object-fit: contain; 
  background-color: #fff; 
  padding: 0.5rem; 
}

#features,
#featured,
#contact {
  scroll-margin-top: 70px;
}

#dashboardContent {
  padding-top: 0 !important;
}

/* Carousel içindeki tüm img etiketlerine uygula */
.carousel-item img {
  max-height: 400px !important;
  width: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Tablo içindeki ürün küçük resimleri */
#productTable img {
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: cover !important;
}

/* Öne çıkan ürünler kartları */
#featuredList .card,
.featured-list .card {
  height: 100%;
  text-align: center;
}
#featuredList .card-body,
.featured-list .card-body {
  display: flex;
  flex-direction: column;
}

#featuredList .view-feature-btn,
.featured-list .view-feature-btn {
  margin-top: auto;
}

#registerModal .modal-body { overflow: visible; }
.select2-container--open .select2-dropdown { z-index: 2055 !important; }
#registerModal .select2-container { width: 100% !important; }


/* Rating stars */
.rating .star {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ddd;
}
.rating .star.selected {
  color: #f5c518;
}

/* Technical document cards */
.doc-card {
  width: 10rem;
  cursor: pointer;
}

/* File type icons */
.bi-file-earmark-pdf {
  color: #dc3545 !important;
}

.bi-file-earmark-word {
  color: #0d6efd !important;
}

.bi-file-earmark-excel {
  color: #198754 !important;
}

.bi-file-earmark-image {
  color: #0dcaf0 !important;
}

.bi-file-earmark-play {
  color: #ffc107 !important;
}





/* Footer: center logo with text beneath */
footer .container.d-flex {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
footer .me-3 { margin-right: 0 !important; }
footer .flex-grow-1 { flex: 0 0 auto; }
footer .flex-grow-1 small { display: block; margin-top: 0.5rem; }

/* Footer logo hover cue */
footer a { cursor: pointer; }
footer a img {
  transition: transform 0.2s ease;
  will-change: transform;
}
footer a:hover img {
  transform: scale(1.08);
}

/* Mobile adjustments for hero images (side-by-side, equal columns, keep hover) */
@media (max-width: 767px) {
  /* Use base hero height on mobile */
  .hero { height: 100vh; }
  .hero-images {
    height: 100%;
    display: flex;
    flex-direction: row;
  }
  .hero-images img {
    width: 25%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
}
