/* ========================================= */
/*  Tüm Ürünler Sayfası - Senin Halın        */
/* ========================================= */

.tum-urunler-layout {
    max-width: 1350px;
    margin: 30px auto 60px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* ===================== SOL FİLTRE ===================== */
.filtre-sidebar {
    width: 260px;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-left: 0 !important;
    position: sticky;
    top: 90px;
    height: fit-content;
    flex-shrink: 0;
}

.filtre-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    color: #3c2a1e;
    margin-bottom: 18px;
}

.filtre-grup {
    margin-bottom: 18px;
}

.filtre-grup p {
    font-size: 14px;
    font-weight: 600;
    color: #5a4a3d;
    margin-bottom: 8px;
}

.filtre-grup label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #faf7f3;
    margin-bottom: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.filtre-grup label:hover {
    background: #f1ebe4;
    transform: translateX(2px);
}

.filtre-grup input[type="radio"] {
    transform: scale(1.05);
}

/* ===================== ÜRÜN LİSTE ALANI ===================== */
.urunler-main {
    flex: 1;
}

.kategori-baslik {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.kategori-baslik h1 {
    font-size: 32px;
    font-weight: 800;
    color: #3c2a1e;
}

.kategori-baslik p {
    font-size: 14px;
    color: #7a6b5a;
}

/* Kategori başlıkları */
.kategori-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #3c2a1e;
    margin: 35px 0 18px;
}

.kategori-title::after {
    content: "";
    width: 90px;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, #b79d83, #e8d8c7, #b79d83);
    border-radius: 4px;
    display: block;
}

/* Ürün listesi */
.urunler-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 50px;
}

/* ===================== ÜRÜN KARTI ===================== */
.urun {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 16px 18px;
    width: 260px;
    min-height: 360px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    text-align: center;
    transition: 0.22s ease;
    position: relative;   /* ← ROZET İÇİN ZORUNLU */
    display: flex;
    flex-direction: column;
    
}

.urun:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.urun img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.urun h3 {
    font-size: 15px;
    font-weight: 600;
    color: #3c2a1e;
    margin: 6px 0 4px;
}

/* ===================== YEŞİL İNDİRİM ROZETİ ===================== */
.indirimde-rozet {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #42a673, #2e8056);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

.indirimde-rozet i {
    font-size: 14px;
}
.urun {
    position: relative;   /* ✔ Rozet için gerekli */
}


/* ===================== PREMIUM FİYAT ===================== */
.kart-fiyat-kutu {
    margin: 10px 0 15px;
    text-align: center;
}

.kart-fiyat-ust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.kart-eski-fiyat {
    text-decoration: line-through;
    color: #b7a99a;
    font-size: 14px;
}

.kart-yeni-fiyat {
    color: #b79d83;
    font-size: 22px;
    font-weight: 800;
}

.kart-indirim-badge {
    background: #b79d83;
    color: white;
    padding: 2px 7px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 700;
}

/* ===================== BUTONLAR ===================== */
.add-to-cart {
    width: 100%;
    border: none;
    padding: 10px 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #b79d83, #a58b71);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    transition: 0.25s ease;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #a48c77, #8f7660);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.urun-detay {
    width: 100%;
    border: none;
    padding: 10px 0;
    border-radius: 999px;
    margin-top: 10px;
    background-color: #815e30;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
     margin-top: auto;
}

.urun-detay:hover {
    background: #e9dfd3;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* 📱 MOBİLDE 2'Lİ ÜRÜN DÜZENİ */
@media (max-width: 768px) {

  .urunler-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 10px 8px 30px;
  }

  .urun {
    width: 100%;        /* ❗ Sabit 260px'i ez */
    min-height: auto;
    padding: 14px 12px;
  }

  .urun img {
    height: 180px;     /* ❗ Mobil için daha kısa */
  }

  .urun h3 {
    font-size: 13px;
  }

  .kart-yeni-fiyat {
    font-size: 18px;
  }

  .kart-eski-fiyat {
    font-size: 12px;
  }

  .urun-detay {
    font-size: 13px;
    padding: 9px 0;
  }
}



/* 🖥️ MASAÜSTÜNDE GİZLE */
@media (min-width: 900px) {
  .mobil-filtre-btn {
    display: none !important;
  }
}
/* 📱 MOBİLDE FİLTRE – SADE AÇ / KAPA SİSTEMİ */
@media (max-width: 900px) {
  .filtre-sidebar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 10px;
    position: static;
    height: auto;
    display: none;   /* ✅ Başlangıçta kapalı */
  }

  .filtre-sidebar.active {
    display: block; /* ✅ toggleFiltre ile açılır */
  }
}

/* ============================================
   🔥 GLOBAL FİYAT SIRALAMA DURUMU – ZORUNLU GRID
   JS ilk container'a ürün atınca flex olmasın!
============================================ */
.urunler-container.global-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 5px !important;
}

@media (max-width: 768px) {
  .urunler-container.global-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

/*FİLTREBUTTON*/

/* 🔘 MOBİL FİLTRE BUTONU – NAVBAR ALTINA STİCKY */
.mobil-filtre-btn {
  position: sticky;       /* navbarın altında sabit */
  top: 95px;              /* navbar + arama barına göre ayarla */
  z-index: 200;

  margin: 10px auto 12px; /* ortala */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 11px 16px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #3c2a1e, #b79d83);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;

  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

/* 🖥️ MASAÜSTÜNDE FİLTRE BUTONUNU GİZLE */
@media (min-width: 900px) {
  .mobil-filtre-btn {
    display: none !important;
  }
}

/* 📱 MOBİLDE LAYOUT’U KOLON YAP + FİLTRE PANELİ */
@media (max-width: 900px) {

  .tum-urunler-layout {
    max-width: 100%;
    margin: 20px auto 40px;
    padding: 0 10px;
    display: block;              /* ❗ flex değil, blok/kolon */
  }

  .filtre-sidebar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 10px;
    position: static;
    height: auto;
    display: none;               /* başlangıçta kapalı */
  }

  .filtre-sidebar.active {
    display: block;              /* toggleFiltre ile aç */
  }
}
/* ✅ FİLTRE SEÇİLİNCE OLUŞAN FAZLADAN BOŞLUĞU ÖLDÜR */
.kategori-title[style*="display: none"] {
  margin: 0 !important;
  padding: 0 !important;
}

.kategori-baslik {
  margin-bottom: 10px !important;
}
.urunler-container:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.stok-text::before{
  content:"";
}
/* ===============================
   🟢 Ürün Kartı Stok Bilgisi
   =============================== */

.stok-text{
    margin: 6px 0 8px;
    padding: 6px 14px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .25px;

    border-radius: 999px;
    line-height: 1;

    background: rgba(0,0,0,0.03);
}

/* ❌ ELDE YOK – KIRMIZI PREMIUM */
.stok-yok-text{
    color: #b22222;
    background: linear-gradient(
        135deg,
        rgba(178,34,34,0.10),
        rgba(178,34,34,0.05)
    );
    border: 1px solid rgba(178,34,34,0.18);
}

/* ⚠️ TÜKENDİ – GOLD / GRİ */
.stok-tukendi-text{
    color: #7a6b5a;
    background: linear-gradient(
        135deg,
        rgba(183,157,131,0.18),
        rgba(183,157,131,0.08)
    );
    border: 1px solid rgba(183,157,131,0.30);
}








/* Kart referansı */
.urun {
  position: relative;
}

/* Sağ üst alan */
.urun .product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 6;
}

/* ORTAK BADGE – OPTİMUM BOYUT */
.urun .product-badges .badge {
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 8px;
  white-space: nowrap;

 background: rgba(52, 72, 92, 0.90);
  color: #ffffff;


  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* Ücretsiz kargo – farklı ama sakin */
.urun .product-badges .shipping {
  background: rgba(52, 72, 92, 0.90);
}

/* Kapıda ödeme – hafif ayrışma */
.urun .product-badges .cod {
 background: rgba(74, 89, 65, 0.92);
}

/* Hover – sadece his */
.urun:hover .product-badges .badge {
  transform: translateY(-1px);
}

/* ============================
   📱 MOBİL ROZET DÜZENİ FIX
============================ */

@media (max-width: 768px) {

  /* İndirim rozeti biraz yukarıda kalsın */
  .urun .indirimde-rozet {
    top: 8px;
    left: 8px;
    z-index: 7;
  }

  /* Sağ üst rozetleri aşağı indir */
  .urun .product-badges {
    top: 28px;   /* 👈 kritik satır */
    right: 8px;
    flex-direction: column;
    gap: 5px;
  }


}
@media (max-width: 768px) {

  .urun .indirimde-rozet {
    font-size: 11px;          /* küçültüldü */
    padding: 3px 8px;         /* daha kompakt */
    border-radius: 7px;
    letter-spacing: 0.3px;
  }

  .urun .indirimde-rozet i {
    font-size: 11px;          /* ikon da uyumlu küçülsün */
  }

}





