/* Mobilde tablo için sticky stil */
@media only screen and (max-width: 767px) {
  table.sticky-header {
    overflow-x: auto;
    display: block;
  }

  table.sticky-header thead {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 999;
  }

  table.sticky-header th {
    white-space: nowrap;
  }

  table.sticky-header td,
  table.sticky-header th {
    min-width: 80px;
    box-sizing: border-box;
  }
}

table.sticky-header thead th {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 999;
}

.sortable-header {
  cursor: pointer;
}

.break-text {
  max-width: 100px;
}

.image-container {
  display: inline-block;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.image-container img {
  width: 100%;
  height: auto;
}

.image-container:hover {
  transform: scale(3.1);
}

.pagination .page-item .page-link {
  color: #3c3c3b;
}

@font-face {
  font-family: "futura-pt-book";
  src: url("fonts/futura-pt-book-x589a6dec272c3.ttf") format("truetype");
}

body {
  font-family: "futura-pt-book", sans-serif;
  font-size: 16px;
}

/* .button-container {
            position: relative;
            display: inline-block;
        } */

.mobile-gif {
  display: none;
  /* Varsayılan olarak gizli */
  width: 55px;
  /* İstediğiniz boyutta ayarlayın */
  height: 47px;
  /* İstediğiniz boyutta ayarlayın */
  margin-top: 10px;
  /* Buton ile gif arasında biraz boşluk bırakın */
}

.button-container.green {
  background-color: green;
}

.circle {
  width: 30px;
  height: 30px;
  background-color: white;
  border: 2px solid green;
  border-radius: 80%;
  cursor: pointer;
  transition: background-color 0.3s;
}

#sortStockButton {
  /* background-color: #eef2f4; */
  border: none;
  border-radius: 70px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

#sortStockButton:focus {
  border: none;
}

#circle.green {
  background-color: green;
}

#circle:active {
  background-color: green;
}

@media only screen and (max-width: 767px) {
  .desktop-only {
    display: none;
  }
}

.button-container {
  position: relative;
  display: inline-block;
  justify-content: space-between;
  margin-right: 20px;
  /* Önceki kodlarda margin değeri belirtilmemişti, ekleyerek ayarlayabilirsiniz */
}

@media only screen and (max-width: 767px) {
  .button-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-gif {
    display: block;
    /* Sadece mobilde göster */
    margin-top: 10px;
    /* Buton ile gif arasında boşluk bırak */
  }

  .button-container {
    margin-right: 0;
    /* Mobilde margin'ı sıfırla */
    margin-top: 10px;
    /* Mobilde butonu biraz aşağı kaydır */
    display: flex;
    align-items: center;
  }

  #sortStockButton {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

@media only screen and (max-width: 767px) {
  .sticky-section {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 999;
    padding: 10px;
    /* Gerekirse padding değerini ayarlayabilirsiniz */
  }

  .break-text {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .discount-text {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .media-table-res {
    padding-left: 15px !important;
  }

  .ozelnavbar {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

.scroll-buttons {
  width: 100%;
  display: flex;
  pointer-events: none;
}

.scroll-buttons button {
  pointer-events: all;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0 10px;
  cursor: pointer;
  font-size: 18px;
  color: #333;
}

.table td,
.table th {
  padding: 0.2rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

.btn-custom-dark {
  background-color: #343a40;
  /* btn-dark arka plan rengi */
  color: #fff;
  /* Metin rengi */
  border: none;
  /* Kenarlık yok */
}

@media (max-width: 576px) {
  .btn-custom {
    min-width: 72px;
    padding: 0.25rem 0.5rem;
    /* btn-sm padding */
    font-size: 0.875rem;
    /* btn-sm font size */
    border-radius: 0.2rem;
    /* btn-sm border radius */
  }

  .btn-custom-dark {
    padding: 7px 15px;
    /* Özel padding */
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 0.875rem;
    /* btn-sm font size */
    border-radius: 0.2rem;
    /* btn-sm border radius */
  }
}

@media (min-width: 577px) {
  .btn-custom {
    padding: 0.3rem 0.7rem;
    /* Varsayılan btn padding */
    font-size: 0.8rem;
    /* Varsayılan btn font size */
    border-radius: 0.25rem;
    /* Varsayılan btn border radius */
  }

  .btn-custom-dark {
    padding: 10px;
    /* Özel padding */
    font-size: 1rem;
    /* Varsayılan btn font size */
    border-radius: 0.25rem;
    /* Varsayılan btn border radius */
  }
}

@media (min-width: 768px) {
  .scroll-buttons {
    display: none;
  }

  .scroll-buttons button {
    display: none;
  }
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.product-info h3 {
  margin-top: 20px;
}

.product-info p {
  margin: 5px 0;
}

.product-info button {
  margin-top: 10px;
  background-color: #59a95f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.product-info button.request-button {
  background-color: black;
}

.product-info button:disabled {
  background-color: lightgray;
  cursor: not-allowed;
}

.technical-form {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 800px;
}

.technical-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.technical-form label {
  font-weight: bold;
}

.technical-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

#productAddedModal {
  z-index: 1055; /* Bootstrap modallar için varsayılan z-index değerinden yüksek bir değer */
}

#productDetailModal {
  z-index: 1050; /* Bu modal, bildirim modalının altında kalacak */
}

#loading-animation {
  display: none; /* Başlangıçta gizli */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
  color: #333;
  font-family: Arial, sans-serif;
}

#loading-animation .spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-animation .loading-text {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #3498db; /* Blue */
}

#active-filters {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Filtreler arasında boşluk */
}

#active-filters .badge {
  font-size: 0.8rem; /* Yazı boyutunu büyütür */
  padding: 5px 6px; /* Filtrenin iç dolgusu */
  border-radius: 5px; /* Köşeleri yuvarlaklaştırır */
}

#active-filters .badge a {
  margin-left: 10px; /* X butonuna mesafe */
  font-weight: bold; /* X butonunu kalın yapar */
  color: red; /* X butonunu kırmızı yapar */
  text-decoration: none; /* X butonundaki alt çizgiyi kaldırır */
}

#active-filters .badge a:hover {
  text-decoration: underline; /* Üzerine gelindiğinde X butonuna alt çizgi ekler */
}

#active-filters .remove-all-filters {
  font-size: 1rem; /* "Clear All Filters" yazısını büyütür */
  font-weight: bold; /* "Clear All Filters" yazısını kalın yapar */
  color: blue; /* "Clear All Filters" yazısını mavi yapar */
  text-decoration: none; /* "Clear All Filters" alt çizgiyi kaldırır */
}

#active-filters .remove-all-filters:hover {
  text-decoration: underline; /* Üzerine gelindiğinde alt çizgi ekler */
}
