﻿
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0%;
        height: 2px;
        background-color: #0d6efd; /* Primary renk */
        transition: width 0.3s ease, left 0.3s ease;
    }

    .nav-link:hover {
        color: #0d6efd;
        background-color: rgba(0,0,0,0.03);
        border-radius: 5px;
    }

        .nav-link:hover::after {
            width: 100%;
            left: 0;
        }
/* Mobil görünüm */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        border-bottom: 1px solid #e0e0e0; /* ✅ Alt çizgi efekti */
    }

    .nav-link {
        color: #333;
    }

        .nav-link:active,
        .nav-link:focus {
            background-color: rgba(13, 110, 253, 0.05); /* hafif mavi */
            color: #0d6efd;
        }

    .navbar-collapse {
        background-color: #f9f9f9;
        border-radius: 0 0 10px 10px;
        padding-bottom: 1rem;
    }
}

.slider-image {
    height: 100vh; /* ekranın tamamını kaplasın */
    background-size: cover; /* resim orantılı büyüsün */
    background-position: top;
    background-repeat: no-repeat;
}
/* Mobilde kırpmadan tam oturt, ama boşluk oluşmasını engelle */
@media (max-width: 768px) {
    .slider-image {
        height: 60vh; /* Mobilde daha az yükseklik */
        background-size: contain;
        background-position: top center;
    }
}

@media (max-width: 480px) {
    .slider-image {
        height: 32vh;
    }
}

@media (max-width: 390px) and (min-width: 376px) {
    .slider-image {
        height: 20vh;
    }
}

@media (max-width: 320px) {
    .slider-image {
        height: 24vh;
    }
}

.category-card {
    border: none;
    transition: 0.3s;
}

    .category-card:hover {
        transform: scale(1.03);
    }

.intro-section {
    background-color: #fff;
    padding: 60px 0;
}

.footer {
    background-color: #111;
    color: #ccc;
    padding: 40px 0;
}

    .footer a {
        color: #ccc;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.language-select {
    font-size: 0.9rem;
}

.product-card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

.page-header {
    background-color: #0d6efd;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.product-card img {
    border-radius: 10px 10px 0 0;
}

.product-card .card-body {
    padding: 1rem;
}


.list-group-item {
  background-color: #f9f9f9;
  border: none;
  font-size: 0.95rem;
}

h2, h4 {
  font-weight: 600;
}

.text-muted {
  font-size: 0.95rem;
}
[data-lightbox] img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

[data-lightbox] img:hover {
  transform: scale(1.03);
}

.carousel button>span {
  background-color: rgba(0,0,0,0.4);
  padding:5px;
}

.carousel button>span:hover {
  background-color: rgba(0,0,0,0.8);
}

.carousel-item img {
  height: 500px;
  object-fit: cover; /* cover da olabilir */
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.carousel-item img:hover {
  transform: scale(1.01);
}

.thumb-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: 0.3s;
}

.thumb-img:hover,
.thumb-img.active {
  border-color: #0d6efd;
  transform: scale(1.05);
}



.scroll-products {
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
}

.scroll-products::-webkit-scrollbar {
  display: none; /* Chrome */
}

.product-card-wrap {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 100%;
}

@media (min-width: 576px) {
  .product-card-wrap { width: 50%; }
}
@media (min-width: 768px) {
  .product-card-wrap { width: 33.33%; }
}
@media (min-width: 1200px) {
  .product-card-wrap { width: 25%; }
}

.scroll-wrapper {
  position: relative;
}

/* Scroll butonlar */
.scroll-btn {
  position: absolute;
  z-index: 9999;
  top: 50%; /* Artık doğrudan kaydırma alanının ortasına */
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  background-color: rgba(0,0,0,0.4);
  border-radius: 50%;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.scroll-btn.left {
  left: 10px;
  color:#f9f9f9
}

.scroll-btn.right {
  right: 10px;
  color:#f9f9f9
}


.product-card-wrap {
  flex: 0 0 auto;
  padding:5px;
  width: 100%;
  min-height: 100%;
  cursor: pointer;
}

@media (min-width: 576px) {
  .product-card-wrap {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .product-card-wrap {
    width: 33.33%;
  }
}

@media (min-width: 1200px) {
  .product-card-wrap {
    width: 25%;
  }
}
/* Kartlar dikeyde eşitlenip düzgün görünür */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Kart içeriği esnek büyüsün */
.product-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Görseller daha dengeli görünür */
.product-card img {
  height: 200px;
  object-fit: cover;
}
