/* ===== CAROUSEL ANA ===== */
.carousel {
  width: 90%;
  max-width: auto;
  /*margin: 100px auto;*/
  display: flex;
  align-items: center;
  gap: 10px; /* oklar ile slider arası boşluk */
}

/* ===== GÖRÜNEN ALAN ===== */
.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

/* ===== SLIDER ALANI ===== */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
}

/* ===== RESİMLER ===== */
.carousel-track img {
  width: 90%;        /* 2 resim yan yana */
  flex-shrink: 0;
  display: block;
  padding: 10px;     /* 20px fazla ağırdı */
  box-sizing: border-box;

}

/* ===== OK NAV (IMG CONTAINER) ===== */
.carousel-nav {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ok icon */
.carousel-nav img {
  width: 35px;
  height: auto;
  transition: transform 0.2s ease;
}

/* hover efekti */
.carousel-nav:hover img {
  transform: scale(1.1);
}






/* MOBİL İÇİN UYUMU*/

@media (max-width: 768px) {

  /* =====================
     CAROUSEL ANA
  ===================== */
  .carousel {
    width: 100%;
    margin: 40px auto;
    position: relative;
  }

  /* =====================
     GÖRÜNEN ALAN
  ===================== */
  .carousel-track-container {
    width: 100%;
    overflow: hidden;
    
  }

  /* =====================
     TRACK
  ===================== */
  .carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;

    /* swipe */
    touch-action: pan-x;
  }

  /* =====================
     IMAGE
  ===================== */
  .carousel-track img {
    width: 100%;
    flex-shrink: 0;
    display: block;

    padding: 2px;        /* 🔥 boşluk azaltıldı */
    box-sizing: border-box;

    object-fit: cover;
    
  }

  /* =====================
     OVERLAY NAV (TEK KATMAN)
  ===================== */
  .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  /* SOL OK */
  .carousel-nav.prev {
    left: -15px;
  }

  /* SAĞ OK */
  .carousel-nav.next {
    right: -15px;
  }


  .carousel-nav img {
    width: 38px;
    height: auto;
    cursor: pointer;
    pointer-events: auto;

    background: rgba(0,0,0,0.35);
    padding: 6px;
    border-radius: 50%;

    transition: transform 0.2s ease;
  }

  .carousel-nav img:active {
    transform: scale(0.85);
  }
}