/* ==========================================================================
   GENEL SAYFA YAPISI VE FERAHLIK
   ========================================================================== */

.category-page-container {
  /* Header'ın altında kalmaması için */
  margin-top: 100px;
  /* Sayfanın sağdan soldan nefes alması için padding */
  padding-left: 3%;
  padding-right: 3%;
  /* Çok geniş ekranlarda kartların devasa yayılmasını engeller */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
}

/* ==========================================================================
   SOL FİLTRELEME ALANI (SIDEBAR)
   ========================================================================== */

.filter-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  top: 110px;
  z-index: 10;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  color: #0e3d6b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

/* Başlık yanına şık bir neon çizgi */
.filter-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background-color: #c5ff95;
  margin-right: 10px;
  border-radius: 2px;
}

/* Arama Çubuğu Güncellemesi */
.filter-search input {
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.filter-search input:focus {
  border-color: #0e3d6b;
  box-shadow: 0 0 0 3px rgba(14, 61, 107, 0.1);
  outline: none;
}

/* SCROLL ALANLARI (Alt Kategoriler ve Markalar için) */
.filter-scroll-list,
.filter-list {
  max-height: 200px; /* Çok uzamasını engeller */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Scrollbar Tasarımı */
.filter-scroll-list::-webkit-scrollbar,
.filter-list::-webkit-scrollbar {
  width: 5px;
}

.filter-scroll-list::-webkit-scrollbar-track,
.filter-list::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 10px;
}

.filter-scroll-list::-webkit-scrollbar-thumb,
.filter-list::-webkit-scrollbar-thumb {
  background: #0e3d6b;
  border-radius: 10px;
}

.filter-list {
  list-style: none;
  padding: 0;
}

.filter-list li a {
  text-decoration: none;
  color: #212529;
  font-size: 16px;
  padding: 5px 0;
  display: block;
  transition: 0.3s;
}

.filter-list li a:hover {
  color: #0b2e50;
  padding-left: 4px;
}

/* CHECKBOX GÜNCELLEMESİ (Default maviyi değiştiriyoruz) */
.form-check-input {
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #0e3d6b !important;
  border-color: #0e3d6b !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 255, 128, 0.4) !important;
  border-color: #0e3d6b;
}

/* ==========================================================================
   SAĞ ÜRÜN LİSTELEME ALANI
   ========================================================================== */

.product-list-section {
  padding-left: 25px;
}

.list-top-bar {
  background: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-count {
  font-size: 15px;
  color: #777;
}

/* ==========================================================================
   ÜRÜN KARTLARI (CARD)
   ========================================================================== */

.product-img-wrapper {
  background: #f9f9f9;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
}

.product-img-wrapper img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card-body {
  padding: 15px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;

  /* YÜKSEKLİK KONTROLÜ */
  height: 44px; /* 2 satır için sabit yükseklik */
  line-height: 1.4;
  text-align: center;

  /* TAŞMAYI VE UZUN KELİMELERİ ENGELLEME */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2 satırla sınırla */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Taşan kısmı gizle */
  text-overflow: ellipsis; /* Üç nokta koy */

  /* ÇOK ÖNEMLİ: Boşluksuz uzun kelimeleri (testteki gibi) zorla böl */
  word-break: break-word;
  overflow-wrap: break-word;
}
.product-mini-info .badge {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 8px;
  background-color: rgba(14, 61, 107, 0.05) !important;
  color: #0e3d6b !important;
  border: 1px solid rgba(14, 61, 107, 0.1);
}
.product-mini-info {
  display: flex;
  justify-content: center; /* Badge'leri yatayda ortalar */
  gap: 8px; /* Badge'lerin arasındaki boşluğu ayarlar */
  margin-bottom: 5px;
}

/* Besin Değerleri Butonu */
/* "btn btn-detail" şeklinde yan yana yazarak seçiciliği artırıyoruz */
.btn.btn-detail {
  background-color: #225e9b !important;
  color: #fff !important;
  border: none !important;
  border-radius: px; /* Biraz daha modern ve yuvarlak */
  padding: 12px 10px; /* Daha dolgun görünmesi için */
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex; /* İçindeki metni ortalamak için */
  align-items: center;
  justify-content: center;
  text-decoration: none !important; /* Alt çizgiyi kaldırır */
}

.btn.btn-detail:hover {
  background-color: #d4ff80 !important;
  color: #0e3d6b !important;
  box-shadow: 0 5px 15px rgba(212, 255, 128, 0.4) !important;
}

/* ==========================================================================
   SAYFALAMA (PAGINATION)
   ========================================================================== */

.custom-pagination .page-link {
  border: none;
  color: #0e3d6b;
  margin: 0 4px;
  border-radius: 8px;
  font-size: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-pagination .page-item.active .page-link {
  background-color: #0e3d6b;
  color: #fff;
}

.custom-pagination .page-link:hover:not(.active) {
  background-color: #d4ff80;
  color: #0e3d6b;
}

/* ==========================================================================
   MOBİL UYUMLULUK
   ========================================================================== */

/* 1. Dropdown Butonunun Kendisi */
.list-top-bar .dropdown .btn {
  background-color: #ffffff !important;
  color: #0e3d6b !important;
  border: 2px solid #f1f4f8 !important;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hover durumunda sınırları belirginleşsin */
.list-top-bar .dropdown .btn:hover {
  border-color: #0e3d6b !important;
  background-color: #f8fbff !important;
}

/* 2. Açılan Menü (Menu Box) */
.list-top-bar .dropdown-menu {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(14, 61, 107, 0.1);
  padding: 10px;
  margin-top: 10px !important;
  min-width: 180px;
}

/* Menü içindeki linkler */
.list-top-bar .dropdown-item {
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  text-align: left; /* Yazıları sola yasladık */
  display: block; /* Tüm satırı kaplamasını sağlar */
  width: 100%; /* Genişliği garantiye aldık */
  transition: all 0.2s ease;
}
.dropdown-menu.show {
  width: 200px;
}

/* Üzerine gelince (Hover) efekti */
.list-top-bar .dropdown-item:hover {
  background-color: #f8fbff !important;
  color: #0e3d6b !important;
}

/* Aktif olan seçenek */
.list-top-bar .dropdown-item.active {
  background-color: #0e3d6b;
  color: #fff;
}

/* 3. Ok (Chevron) İkonu Özelleştirme */
.list-top-bar .dropdown-toggle::after {
  border: none; /* Standart üçgeni kaldırıyoruz */
  content: "\f282"; /* Bootstrap Icons kullanıyorsan aşağı ok */
  font-family: "bootstrap-icons";
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

/* Menü açıkken ok dönsün */
.list-top-bar .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}
/* Buton içindeki ikonun (ok işareti) ayarı */
.btn-detail i {
  margin-left: 5px; /* Yazı ile ok arasına boşluk ekler */
  font-size: 14px; /* Okun boyutunu yazıya göre dengeler */
  transition: transform 0.3s ease; /* Hover efekti için hazırlık */
}

/* Hover durumunda okun küçük bir hareket yapması tıklanabilirliği artırır */
.btn-detail:hover i {
  transform: translateX(2px); /* Üzerine gelince ok 5px sağa kaysın */
}
@media (max-width: 991px) {
  .category-page-container {
    margin-top: 80px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .product-list-section {
    padding-left: 0;
  }

  .filter-card {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
}
/* ==========================================================================
   TAM MOBİL UYUMLULUK (2'Lİ KART DÜZENİ İÇİN)
   ========================================================================== */

@media (max-width: 576px) {
  /* Sayfa kenar boşluklarını daraltalım */
  .category-page-container {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 70px; /* Mobil header genelde daha dardır */
  }

  /* Kart içi boşlukları daraltalım */
  .card-body {
    padding: 12px 8px;
  }

  /* Resim alanını küçültelim */
  .product-img-wrapper {
    height: 120px;
    padding: 10px;
  }

  .product-img-wrapper img {
    max-height: 100px;
  }

  /* Ürün adını daha küçük yapalım ki 2 satıra sığsın */
  .product-name {
    font-size: 12px;
    height: 32px; /* 2 satır için ideal yükseklik */
    margin-bottom: 8px;
    padding: 0 4px;
  }

  /* Kalori badge'ini küçültelim */
  .product-mini-info {
    margin-bottom: 10px;
    gap: 4px;
  }

  .product-mini-info .badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  /* Butonu daha kibar yapalım */
  .btn.btn-detail {
    font-size: 11px;
    padding: 8px 5px;
    border-radius: 8px;
  }

  .btn.btn-detail i {
    margin-left: 5px;
    font-size: 10px;
  }

  /* Sol filtre alanı mobilde çok yer kaplamasın diye gizlenebilir
     veya bir "Filtrele" butonu altına alınabilir.
     Şu anki yapıda üstte kalmaya devam eder: */
  .filter-card {
    padding: 15px;
    margin-bottom: 15px;
  }
}
/* ==========================================================================
   MASAÜSTÜNÜ BOZMAYAN MOBİL TAŞMA DÜZELTMESİ
   ========================================================================== */

/* 1. Global Taşma Engelleyici (Tüm cihazlarda güvenli) */
html,
body {
  overflow-x: hidden !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 2. Sadece Mobil ve Tablet Ekranlarda (991px ve altı) */
@media (max-width: 991px) {
  /* Ana konteynerin sağa sola çarpmasını engelle */
  .category-page-container {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 80px !important;
  }

  /* Sadece mobilde row marginlerini sıfırla ki yandan kesilmesin */
  .category-page-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ürün listesinin olduğu iç row'u mobilde rahatlat */
  .product-list-section .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
    width: calc(100% + 10px) !important; /* Negatif margini telafi et */
  }

  /* Kartların arasındaki boşluğu mobilde daralt */
  .product-list-section .col {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Üst barın mobilde taşmasını engelle */
  .list-top-bar {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 10px !important;
  }
}
/* ==========================================================================
   PRODUCT CARD - PREMIUM GIDA TASARIMI
   ========================================================================== */

.product-card {
  position: relative !important;
  border-radius: 24px !important;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(14, 61, 107, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
  overflow: hidden;
  cursor: pointer; /* Kartın tamamında el imleci çıksın */
}
.product-card:hover {
  /* Büyütmek yerine 8 piksel yukarı kaldırıyoruz */
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 20px 40px rgba(14, 61, 107, 0.12) !important;
}
/* Stretched Link Katmanı (En Önemli Kısım) */
.product-card .stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5 !important; /* HER ŞEYİN ÜSTÜNDE OLMALI (Kalp hariç) */
  background-color: rgba(0, 0, 0, 0); /* Görünmez ama fiziksel bir alan */
}

/* Görsel Alanı */
.product-img-wrapper {
  background: #f8fbff;
  border-radius: 20px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  margin: 10px;
  border: 1px solid #f1f4f8;
}

.product-img-wrapper img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Yazı Hiyerarşisi */
.brand-tag {
  color: #a0aab4;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 10px;
  display: block;
  margin-bottom: 5px;
}

/* Besin Değerleri Bandı (Görseldeki kutuyu genişleten kısım) */
.nutrition-summary-row {
  display: flex;
  background: #fcfdfe;
  border: 1px solid #f1f4f8;
  border-radius: 15px;
  padding: 10px 0;
  margin: 15px 0;
  width: 100%;
}

.nutri-item {
  flex: 1;
  text-align: center;
}

.nutri-item:not(:last-child) {
  border-right: 1px solid #f1f4f8;
}

.nutri-val {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0e3d6b;
}

.nutri-label {
  display: block;
  font-size: 9px;
  color: #8c98a5;
  text-transform: uppercase;
  font-weight: 600;
}

/* Kalori Badge */
.kcal-badge {
  background: #f0f7ff !important;
  color: #0e3d6b !important;
  border: 1px solid #e0eeff !important;
  border-radius: 50px !important;
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 600;
}

/* Buton Tasarımı */
.btn.btn-detail-compact {
  background: #0e3d6b !important;
  color: #fff !important;
  width: 90% !important; /* Kartın içinde daha geniş ve dengeli */
  margin: 10px auto 0 !important; /* Tam ortalama */
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 14px !important;
  padding: 12px !important;
  font-size: 14px !important;
  font-weight: 600;
  border: none !important;
  position: relative;
  z-index: 1; /* Diğer içerikler gibi linkin altında */
}
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2; /* Görselin ve yazıların üstüne, ama favori butonunun altına */
  content: "";
}

.btn.btn-detail-compact:hover {
  background: #d4ff80 !important;
  color: #0e3d6b !important;
  transform: scale(1.03);
}

/* Favori Butonu */
.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: 0.3s ease;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: #fff5f5;
}
@media (max-width: 576px) {
  .list-top-bar {
    padding: 10px !important;
    justify-content: space-between !important;
    display: flex;
    align-items: center;
  }

  .product-count {
    font-size: 12px !important;
    line-height: 1.2;
    max-width: 80px; /* Yazının butona çarpmasını engeller */
  }

  .list-top-bar .dropdown .btn {
    padding: 6px 12px !important; /* Butonu küçültür */
    font-size: 13px !important;
    gap: 5px !important;
  }
}

/* ============================================
   BREADCRUMB + SEARCH BAR
   ============================================ */

nav.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(7, 65, 115, 0.06);
    font-family: "Poppins", sans-serif;
}

/* Breadcrumb sol kısım */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-trail .separator {
    color: #0e3d6b;
    font-size: 14px;
    font-weight: 700;
    padding: 0 6px;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.breadcrumb-trail .separator i {
    font-size: 12px;
}

.breadcrumb-trail .crumb-link {
    color: #074173;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.breadcrumb-trail .crumb-link:hover {
    background: #ebf1fc;
    color: #074173;
}

.breadcrumb-trail .crumb-current {
    color: rgba(5, 44, 77, 0.6);
    padding: 6px 10px;
    font-weight: 500;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-box {
    position: relative;
    width: 320px;
}

.search-box .form-control {
    width: 100%;
    padding: 10px 40px 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(7, 65, 115, 0.15);
    background: rgba(248, 250, 252, 0.7);
    color: #052c4d;
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
    font-family: "Poppins", sans-serif;
}

.search-box .form-control::placeholder {
    color: rgba(5, 44, 77, 0.45);
}

.search-box .form-control:focus {
    border-color: #074173;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 65, 115, 0.08);
}

/* × clear butonu */
.search-box .clear-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: #074173;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    background: rgba(7, 65, 115, 0.08);
    border-radius: 50%;
    transition: all 0.2s ease;
    user-select: none;
}

.search-box .clear-btn:hover {
    background: #c6d6f3;
    color: #074173;
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   SEARCH DROPDOWN (canlı arama sonuçları)
   ============================================ */
/* ============================================
   SEARCH DROPDOWN — gıda sözlüğü tarzı
   ============================================ */

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(7, 65, 115, 0.15),
    0 0 0 1px rgba(7, 65, 115, 0.05);
    max-height: 420px;
    overflow-y: auto;
    z-index: 9999;
    padding: 8px;
    animation: searchFadeIn 0.25s ease;
    font-family: "Poppins", sans-serif;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bölüm */
.search-section + .search-section {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(7, 65, 115, 0.06);
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #074173;
    opacity: 0.55;
    letter-spacing: 1.2px;
    padding: 8px 12px 6px;
}

.search-section-title i {
    font-size: 12px;
}

/* Sonuç item kartı */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.search-result-item:hover {
    background: #c5ff95;
    transform: translateX(4px);
}

/* Icon balonu */
.search-result-item .result-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(7, 65, 115, 0.08);
    color: #074173;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.search-result-item:hover .result-icon {
    background: #074173;
    color: #c5ff95;
}

/* İçerik */
.search-result-item .result-content {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-name {
    font-size: 14px;
    font-weight: 500;
    color: #052c4d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-meta {
    font-size: 11px;
    color: rgba(5, 44, 77, 0.5);
    margin-top: 2px;
}

/* Sağdaki ok — hover'da görünür */
.search-result-item .result-arrow {
    color: #074173;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.search-result-item:hover .result-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Boş sonuç */
.search-empty {
    padding: 30px 20px;
    text-align: center;
    color: rgba(5, 44, 77, 0.5);
}

.search-empty i {
    font-size: 32px;
    opacity: 0.4;
    margin-bottom: 8px;
    display: block;
}

.search-empty p {
    font-size: 13px;
    margin: 0;
}

.search-empty strong {
    color: #074173;
}

/* Scrollbar */
.search-dropdown::-webkit-scrollbar {
    width: 6px;
}
.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(7, 65, 115, 0.15);
    border-radius: 999px;
}
.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(7, 65, 115, 0.3);
}

/* ============================================
   MOBİL
   ============================================ */
@media (max-width: 768px) {
    nav.breadcrumb {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
        position: relative;
        z-index: 100;
    }
    .search-box {
        width: 100%;
    }
}

/* Soldaki büyüteç ikonu */
.search-box .search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: rgba(5, 44, 77, 0.45);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
}

/* Input'a sol padding ekle (ikon için yer) */
.search-box .form-control {
    width: 100%;
    padding: 10px 40px 10px 42px;   /* ← sol padding 18px → 42px */
    border-radius: 0.9rem;
    border: 1px solid rgba(7, 65, 115, 0.15);
    background: rgba(248, 250, 252, 0.7);
    color: #052c4d;
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
    font-family: "Poppins", sans-serif;
}

/* Focus'ta ikon koyu olsun */
.search-box:focus-within .search-icon {
    color: #074173;
}


/* Sıralama butonları */
.sort-controls .sort-btn {
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(7, 65, 115, 0.15);
    color: #074173;
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.sort-controls .sort-btn:hover {
    background: #c5ff95;
    border-color: #c5ff95;
    color: #074173;
    transform: translateY(-1px);
}

.sort-controls .sort-btn::after {
    margin-left: 4px;
    border-top-color: #074173;
}

/* Dropdown menü */
.sort-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 6px;
    margin-top: 6px;
    min-width: 160px;
}

.sort-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #052c4d;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sort-menu .dropdown-item:hover {
    background: #c5ff95;
    color: #074173;
}

.sort-menu .dropdown-item.active {
    background: rgba(7, 65, 115, 0.1);
    color: #074173;
    font-weight: 600;
}

.sort-menu .dropdown-item i {
    color: #074173;
    font-size: 12px;
    width: 14px;
}
.sort-menu .dropdown-item:hover {
    background: #c5ff95;
    color: #074173;
    font-weight: 600;
    transform: translateX(3px);
    box-shadow: inset 3px 0 0 #074173;
}

.sort-menu .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 8px;
}
/* Z-INDEX FIX — agresif sürüm */
nav.breadcrumb {
    position: relative !important;
    z-index: 999 !important;
}

.search-box {
    position: relative !important;
    z-index: 1000 !important;
}

.search-dropdown {
    z-index: 1001 !important;
}


/* 1 PAKET DEĞERİ — köşe kurdelesi (ribbon) */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
}
.pack-value-badge {
    position: absolute;
    bottom: 28px;
    right: -52px;
    transform: rotate(-35deg);
    transform-origin: center;
    background: linear-gradient(135deg, #c5ff95, #aef07d);
    color: #074173;
    padding: 6px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    box-shadow: 0 3px 10px rgba(7, 65, 115, 0.25);
    pointer-events: none;
}
.pack-value-badge .pvb-num {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.pack-value-badge .pvb-label {
    font-size: 7px;
    font-weight: 600;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin-top: 1px;
}

/* Mobil */
@media (max-width: 576px) {
    .pack-value-badge {
        right: -56px;
        bottom: 22px;
        padding: 5px 60px;
    }
    .pack-value-badge .pvb-num { font-size: 11px; }
    .pack-value-badge .pvb-label { font-size: 6px; }
}

/* 100 gr besin değerleri başlığı */
.nutri-section-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* SEÇİLİ NUTRIENT 100 GR DEĞERİ — küçük badge (eski kcal-badge tarzı) */
.selected-value-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7ff;
    color: #0e3d6b;
    border: 1px solid #e0eeff;
    border-radius: 50px;
    padding: 6px 14px;
    margin: 10px 0;
    width: auto;
}
.selected-value-badge .svb-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}
.selected-value-badge .svb-num {
    font-size: 13px;
    font-weight: 700;
    color: #0e3d6b;
}

/* Mobil ufaltma */
@media (max-width: 576px) {

    .selected-value-badge { padding: 8px 10px; margin: 8px 0; }
    .selected-value-badge .svb-num { font-size: 15px; }
    .nutri-section-label { font-size: 9px; }
}
