/* ==========================================================================
   CLEMIX ÜRÜN SAYFASI - FULL & DÜZENLENMİŞ KOD (Hatasız Sürüm)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BÖLÜM 1: GENEL DEĞİŞKENLER
   -------------------------------------------------------------------------- */
:root {
    --primary-blue: #0F2A6B;   /* Clemix Kurumsal Lacivert */
    --ice-blue: #1E88E5;      /* Açık Mavi Detaylar */
    --accent-orange: #F57C22; /* Vurgu ve Buton Turuncusu */
    --text-slate: #475569;    /* Açıklama Yazısı Rengi */
    --border-light: #f1f5f9;  /* İnce Kenarlık Rengi */
    --shadow-main: 0 8px 20px rgba(15, 42, 107, 0.15); /* Genel Gölgelendirme */
}

/* --------------------------------------------------------------------------
   BÖLÜM 2: ANA KAPSAYICI VE ARKA PLAN (Optimize Edildi)
   -------------------------------------------------------------------------- */
.clemix-urunler {
    /* Header altında kalmaması için padding */
    padding: 220px 0 100px 0; 
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
    
    /* Arka plan katmanları: Nokta dokusu en üstte, gradyan en altta */
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px), 
        radial-gradient(at 0% 0%, rgba(30, 136, 229, 0.15) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(245, 124, 34, 0.1) 0px, transparent 50%),
        linear-gradient(135deg, #0F2A6B 0%, #2a52be 50%, #16327a 100%);

    background-size: 30px 30px, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed;
}

/* Arka Plandaki Profesyonel Yansımalar */
.clemix-urunler::before, .clemix-urunler::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
}

.clemix-urunler::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245, 124, 34, 0.12) 0%, transparent 70%);
    top: -100px; right: -200px;
}

.clemix-urunler::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
    bottom: -100px; left: -150px;
}

.clemix-container {
    max-width: 1240px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   BÖLÜM 3: BAŞLIK VE AÇIKLAMA
   -------------------------------------------------------------------------- */
.clemix-urunler-header {
    margin-bottom: 50px;
    text-align: left;
}

.clemix-urunler-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff; /* Koyu zeminde beyaz daha okunaklı */
    margin: 0;
    letter-spacing: -1.5px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.title-line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin-top: 12px;
    border-radius: 2px;
}

.clemix-urunler-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

/* --------------------------------------------------------------------------
   BÖLÜM 4: MODERN FİLTRELEME VE ARAMA BARI
   -------------------------------------------------------------------------- */
.clemix-modern-filter {
    display: flex;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 60px;
    align-items: center;
}

.custom-dropdown {
    position: relative;
    flex: 1;
    min-width: 280px;
    z-index: 1000;
}

.dropdown-header {
    background: #ffffff;
    color: var(--primary-blue);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dropdown-header i { color: var(--accent-orange); }

.dropdown-list {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    list-style: none !important; /* Nokta fix */
    padding: 10px 0; margin: 0;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-dropdown:hover .dropdown-list {
    opacity: 1; visibility: visible; transform: translateY(5px);
}

.dropdown-list li {
    padding: 12px 20px;
    color: var(--text-slate);
    transition: all 0.2s ease;
    cursor: pointer;
    list-style: none !important; /* Nokta fix */
}

.dropdown-list li:hover {
    background: rgba(245, 124, 34, 0.08);
    color: var(--accent-orange);
    padding-left: 25px;
}

.search-input-wrapper {
    background: #ffffff;
    flex: 1.5;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search-input-wrapper i { color: var(--accent-orange); margin-right: 12px; }

.search-input-wrapper input {
    border: none; background: transparent; width: 100%; height: 100%;
    font-size: 16px; color: var(--primary-blue); font-weight: 600; outline: none;
}

/* --------------------------------------------------------------------------
   BÖLÜM 5: ÜRÜNLER IZGARASI VE ÜRÜN KARTLARI (Hizalama Düzenlenmiş)
   -------------------------------------------------------------------------- */
.clemix-urunler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.clemix-urun-card {
    background: rgb(255, 255, 255) !important;
    border-radius: 20px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%; /* Kartları eşit boyda tutar */
}

/* Kartın üzerine gelince üstte beliren turuncu çizgi */
.clemix-urun-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.clemix-urun-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.clemix-urun-card:hover::after { transform: scaleX(1); }

.clemix-urun-thumb {
    width: 100%; height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; /* Görsel alanının küçülmesini engeller */
}

.clemix-urun-thumb img {
    max-width: 85%; max-height: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.clemix-urun-card:hover .clemix-urun-thumb img { transform: scale(1.1); }

.clemix-urun-card h3 {
    font-size: 19px; 
    font-weight: 650; 
    color: var(--primary-blue); 
    margin-bottom: 10px;
    min-height: 54px; /* Başlıkların aynı hizada başlamasını sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.clemix-urun-card p {
    font-size: 13px; 
    color: var(--text-slate); 
    line-height: 1.5; 
    margin: 0 0 20px 0;
    min-height: 42px; /* Açıklama alanını sabitler */
}

/* Barkod ve Butonun bulunduğu alt kısmı en dibe sabitler */
.clemix-card-footer {
    margin-top: auto; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --------------------------------------------------------------------------
   BÖLÜM 6: MOBİL UYUMLULUK
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .clemix-urunler-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .clemix-urunler { padding-top: 180px; }
    .clemix-urunler-title { font-size: 34px; }
    .clemix-modern-filter { flex-direction: column; gap: 20px; }
    .custom-dropdown, .search-input-wrapper { width: 100%; }
    .clemix-urunler-grid { grid-template-columns: 1fr; }
}