/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sayfa genel arka planı */
body {
  background-color: #2d4533; /* Koyu gri arka plan rengi */
  color: #ecf0f1; /* Yazı rengini açık yaparak kontrastı artırır */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease-in-out;
}


main {
  min-height: calc(100vh - 150px);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-color: #7be1ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
}

.scroll-to-top img {
  width: 15px;
  height: 15px;
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  padding: 15px;
  margin: 0 auto;
}

/* Header */


.admin-btn {
  background-color: #e8f5ff;
  color: #000;
  font-size: 17px;
  padding: 0 10px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  text-decoration: none;
}

/* Kategoriler */
.categories {
  margin-bottom: -50px;
  margin-top: 30px;
  width: 100%;
}

.category-title {
  font-weight: 600;
  font-size: 17px;
  margin-top: -20px;
}

/* Kategori görselleri */
.category-item {
  position: relative;
  width: calc(25% - 10px); /* Kategori genişliğini daraltarak daha derli toplu hale getirdik */
  box-sizing: border-box;
  margin-bottom: 15px; /* Aralarındaki boşluğu arttırdık */
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Hafif gölge */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Kategori görselinin içeriği */
.category-item__image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3); /* Görselle arka plan arasında ince bir beyaz ışık */
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.4); /* Aydınlık gölge efekti */
  border-radius: 15px;
  transition: box-shadow 0.3s ease-in-out;
}

/* Resim stili */
.category-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  border-radius: 15px;
}

/* Karartma efekti */
.category-item__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Yarı saydam karartma */
  border-radius: 15px;
  transition: background 0.4s ease-in-out;
}

/* Kategori başlıkları */
.category-item__title {
  font-size: 14px; /* Yazı boyutunu küçülttük */
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Ortada yer alacak şekilde hizalama */
  z-index: 10; /* Resmin üstünde yer alacak şekilde */
  opacity: 1; /* Başlangıçta görünür olmalı */
  transition: opacity 0.3s ease-in-out;
  width: 90%; /* Başlığın genişliği %90, böylece taşma yapmaz */
  max-width: 90%; /* Başlığın genişliği ekran boyutlarına göre %90 ile sınırlandırılır */
  line-height: 1.2; /* Satır yüksekliği */
  word-wrap: break-word; /* Yazının taşmaması için kelime kırılması */
  white-space: normal; /* Uzun kelimeler birden fazla satıra yayılabilir */
}

/* Hover efektleri */
.category-item:hover {
  transform: scale(1.05); /* Hover'da büyütme */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* Hover'da gölgeyi artır */
}

.category-item:hover .category-item__image img {
  transform: scale(1.1); /* Resmin hover'da büyümesi */
}

.category-item:hover .category-item__title {
  opacity: 1; /* Başlık görünür hale gelir */
}

.category-item__image:hover::before {
  background: rgba(0, 0, 0, 0.6); /* Karartma yoğunlaşır */
}

/* Container içindeki boşluğu düzenle */
.category-items {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Aradaki boşluğu artırdık */
  padding-bottom: 15px;
  justify-content: space-between;
}

/* Masaüstü için özel optimizasyonlar */
@media (min-width: 1024px) {
  .category-item {
    width: calc(25% - 10px); /* 4 sütun düzeni */
  }
  .category-item__title {
    font-size: 14px; /* Başlık boyutunu optimize ettik */
  }
}

/* Mobil için optimizasyon */
@media (max-width: 768px) {
  .category-item {
    width: calc(50% - 10px); /* Mobilde daha geniş bir alan */
  }
  .category-item__title {
    font-size: 5vw; /* Mobilde başlık boyutu daha küçük */
  }
}





h1 {
  font-family: 'Roboto', sans-serif;
  /* Yazı tipi */
  font-weight: 400;
  /* En kalın yazı */
  font-size: 1.5em;
  /* Büyük boyut */
}



/* Genel Ürün Listeleme Düzeni */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0; /* Üst ve alt boşluk azaltıldı */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box; /* Kenar boşlukları hesaba katılsın */
}

/* Ürün Öğesi Düzeni */
.product-item {
  position: relative; /* Fiyat butonunun bağlamı için gerekli */
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Ürün Resmi Stili */
.product-item__image img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-item__image img:hover {
  transform: scale(1.1);
}

/* İçerik Düzenlemesi */
.product-item__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  position: relative; /* Konumlandırma için gerekli */
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  transition: color 0.3s ease;
}

.product-name:hover {
  color: #2ecc71; /* Hover durumunda yeşil renk */
}

.product-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Fiyat Etiketi */
/* Fiyat Butonunun Yeni Pozisyonu */
.product-price {
  position: absolute;
  top: -20px; /* Üst kenardan uzaklık */
  right: -20px; /* Sağ kenardan uzaklık */
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background-color: #2ecc71;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.product-price:hover {
  background-color: #27ae60;
  transform: scale(1.05);
}

/* Alerjen İkonları ve Yazı Arasındaki Boşluklar */
/* Genel İkon Düzenlemesi */
.product-allergen-section {
  display: inline-flex;  /* İkonları aynı satırda hizala */
  flex-wrap: nowrap;  /* Sarmasını engeller */
  justify-content: flex-start;  /* Sol hizalama */
  align-items: center;  /* Dikey hizalama */
  gap: 0px;  /* İkonlar arasındaki boşluğu tamamen kaldır */
  margin-top: 5px;  /* Başlık ile daha yakın */
}

.allergen-item {
  display: inline-block;
  margin: 0; /* Sol ve sağ boşlukları tamamen kaldır */
}

.allergen-item img {
  width: 18px;  /* İkon boyutu */
  height: 18px;
  object-fit: contain;
  margin: 0;  /* Her türlü margin'i sıfırlıyoruz */
  padding: 0;  /* Padding'i sıfırlıyoruz */
  transition: transform 0.3s ease;
}
.allergen-title {
    color: black; /* Yazıyı siyah yapar */
}
/* Mobil Görünüm (Mobile friendly düzenlemeler) */
@media (max-width: 767px) {
  .products-list {
    padding: 0 5px; /* Kenar boşluklarını azalt */
  }

  .product-item {
    flex-direction: column;
    gap: 15px;
    padding: 15px;

  }

.product-title{
padding: 10px 5px;
    
}

  .product-item__image img {
    width: 80px;
    height: 80px;
  }

  .product-name {
    font-size: 16px;
  }

  .product-desc {
    font-size: 14px;
  }

  .product-price {
    font-size: 16px;
    margin-top: 15px;
     top: -30px; /* Üst kenardan uzaklık */
  right: -15px; /* Sağ kenardan uzaklık */
  }

  .product-allergen-section {
    gap: 3px; /* İkonlar arasındaki boşluk mobilde daha yakın */
    margin-top: 3px;
  }
}

/* iPhone ve Retina Ekranlar için küçük ikonlar ve yakınlık */
@media (max-width: 768px) and (max-device-width: 812px) {
  .product-allergen-section {
    gap: 2px;  /* İkonlar arasındaki boşluğu biraz daha küçük yapıyoruz */
  }

  .allergen-item img {
    width: 16px;  /* Daha küçük ikon boyutu */
    height: 16px;
  }
}


/* Çerez bildirimi stil */
#cookie-notice {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    background-color: #ffebcd;
    color: #5f4b3d;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    z-index: 1000;
    border-top: 2px solid #5f4b3d;
    transition: bottom 0.5s ease-in-out;
}

/* Görünür olma durumu */
#cookie-notice.show {
    bottom: 10px;
}

/* Buton Tasarımı */
#cookie-notice button {
    background-color: #5f4b3d;
    color: #ffebcd;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

#cookie-notice button:hover {
    background-color: #a67c52;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    #cookie-notice {
        font-size: 14px;
        padding: 12px;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        font-size: 22px;
    }

    #cookie-notice button {
        padding: 8px 18px;
        margin-top: 10px;
    }
}

/* Masaüstü görünümü için kutunun doğru şekilde yerleşmesi */
@media (min-width: 1024px) {
    #cookie-notice {
        bottom: 0;
        font-size: 16px;
        padding: 15px;
    }
}




.language-dropdown {
  position: relative;
}

.language-dropdown button {
  font-size: 16px;
  display: flex;
  align-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
}

.language-dropdown button img {
  width: 25px;
  height: 25px;
  margin-right: 7px;
  border-radius: 99999px;
  object-fit: cover;
}

.language-dropdown .language-dropdown__list {
  position: absolute;
  top: 90%;
  left: 0;
  width: 100%;
  font-size: 17px;
  padding: 7px 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s all;
  background-color: #fff;
  width: 75px;
  padding: 6px;
}

.language-dropdown .language-dropdown__list.active {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.language-dropdown .language-dropdown__list ul {
  padding: 0;
}

.language-dropdown .language-dropdown__list ul li {
  border-radius: 3px;
  transition: 0.2s all;
}

.language-dropdown .language-dropdown__list ul li:not(:last-child) {
  margin-bottom: 5px;
}

.language-dropdown .language-dropdown__list ul li.active {
  background-color: #476e8d;
}

.language-dropdown .language-dropdown__list ul li:hover {
  background-color: #476e8d;
}

.language-dropdown .language-dropdown__list ul li:hover a {
  color: #7be1ff;
}

.language-dropdown .language-dropdown__list ul li a {
  display: block;
  padding: 6px;

  text-decoration: none;
}

.language-dropdown .language-dropdown__list ul li.active a {
  color: #7be1ff;
}

.info-alert {
  background: #fbfac6;
  padding: 14px;
  border-radius: 4px;
  width: 100%;
  color: #000;
  margin-top: 30px;
}

.footer {
  background-color: #E86A33; /* Turuncu arka plan */
  color: #fff;
  padding: 15px 0;
  text-align: center;
  margin-top: 40px;
  /* border-top: 1px solid #fff; Bu satırı kaldırarak çizgiyi tamamen kaldırabilirsiniz */
}


@media (min-width: 576px) {
  .container {
    width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    width: 720px;
  }
}

@media (max-width: 800px) {
  .products-list {
    /* gap: 20px; */
    /* grid-template-columns: repeat(1, 1fr); */
    display: block;
  }

  .products-list .product-item:not(:last-child) {
    margin-bottom: 20px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    width: 1320px;
  }
}

@media (max-width: 680px) {
  .language-dropdown .language-dropdown__list {
    width: 100%;
    right: 0;
  }
}

@media (max-width: 992px) {
  .products-list {
    /* gap: 20px; */
    /* grid-template-columns: repeat(2, 1fr); */
    width: 100%;
    max-width: 100%;
  }

  .products-list .product-item {
    max-width: 100% !important;
  }

  .products-list .product-item img {
    width: 100%;
  }
}

@media (max-width: 550px) {
  .products-list {
    /* gap: 20px; */
    /* grid-template-columns: repeat(1, 1fr); */
    width: 100%;
    max-width: 100%;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 360px) {
  .product-item .product-item__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .product-item .product-item__top .product-price {
    margin-top: 10px;
  }
}

.skeleton:empty {
  position: relative;
  height: 290px;
  background-color: #ffffff;
  border-radius: 8px 8px 8px 8px;
  background-image: linear-gradient(#cccccc 10px, transparent 0),
    linear-gradient(#cccccc 30px, transparent 0),
    linear-gradient(#e0e0e0 10px, transparent 0),
    linear-gradient(#e0e0e0 200px, transparent 0);
  background-repeat: repeat-y;
  background-size: 120px 290px, 80px 290px, 200px 290px, 360px 290px;
  background-position: left 20px top 247px, left 300px top 233px,
    left 20px top 233px, left 20px top 20px;
}

.skeleton:empty:before {
  content: " ";
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 290px;
  -webkit-mask-image: linear-gradient(100deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%);
  -webkit-mask-repeat: repeat-y;
  -webkit-mask-size: 50px 290px;
  -webkit-mask-position: -20% 0;
  background-image: linear-gradient(rgba(102, 102, 102, 1) 10px, transparent 0),
    linear-gradient(rgba(102, 102, 102, 1) 30px, transparent 0),
    linear-gradient(rgba(102, 102, 102, 1) 10px, transparent 0),
    linear-gradient(rgba(102, 102, 102, 1) 200px, transparent 0);
  background-repeat: repeat-y;
  background-size: 120px 290px, 80px 290px, 200px 290px, 360px 290px;
  background-position: left 20px top 247px, left 300px top 233px,
    left 20px top 233px, left 20px top 20px;
  animation: shineForSkeleton 2s infinite;
}

@keyframes shineForSkeleton {
  to {
    -webkit-mask-position: 120% 0;
  }
}