/* ======================================================
    1. GENEL DEĞİŞKENLER VE TEMEL AYARLAR
====================================================== */
:root {
    --clemix-lacivert: #0F2A6B;
    --clemix-accent: #F57C22;
    --clemix-accent-dark: #D9651A;
    --clemix-accent-red: #E53935;
    --clemix-blue: #1E88E5;
    --text-slate: #475569;
    --bg-light: #E8F6FF;
    --shadow-soft: 0 10px 30px rgba(15, 42, 107, 0.05);
    --shadow-premium: 0 20px 50px rgba(245, 124, 34, 0.15);
}

.clemix-urunler-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.clemix-urunler-section::before {
    content: "CLEMIX";
    position: absolute;
    bottom: -5%;
    right: -2%;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(15, 42, 107, 0.02);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

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

/* ======================================================
    2. FİLTRELEME VE ARAMA
====================================================== */
.clemix-filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 2;
    position: relative;
    min-width: 300px;
}

.search-wrapper input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 15px;
    border: 2px solid #edf2f7;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.search-wrapper input:focus {
    border-color: var(--clemix-accent);
    box-shadow: 0 0 0 4px rgba(245, 124, 34, 0.1);
}

/* ======================================================
    3. ÜRÜN KARTI
====================================================== */
.clemix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.clemix-urun-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.clemix-urun-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: var(--clemix-accent);
}

/* Ürün Kodu Badge */
.urun-kodu-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--clemix-accent) 0%, var(--clemix-lacivert) 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Görsel Alanı */
.clemix-urun-thumb {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clemix-urun-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

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

/* Metin Alanları */
.clemix-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--clemix-lacivert);
    margin-bottom: 10px;
    line-height: 1.3;
}

.clemix-card-excerpt {
    font-size: 14px;
    color: var(--text-slate);
    margin-bottom: 25px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ======================================================
    4. FOOTER (BUTON & BARKOD)
====================================================== */
.clemix-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.incele-btn {
    background: linear-gradient(90deg, var(--clemix-accent) 0%, var(--clemix-accent-dark) 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 10px 10px 25px 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.4s ease;
    border: none;
    white-space: nowrap;
}

.incele-btn:hover {
    background: linear-gradient(90deg, var(--clemix-accent-red) 0%, var(--clemix-accent) 100%);
    box-shadow: 0 5px 15px rgba(245, 124, 34, 0.35);
}

/* Barkod Alanı */
.urun-barcode-wrapper {
    flex: 0 0 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.urun-barkod-img {
    width: 120px !important;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: contrast(1.5) grayscale(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

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

body.rtl .urun-barcode-wrapper {
    direction: ltr !important;
}
















/* ================================================================
   CLEMIX MOBİL KATALOG - KESİN REVİZYON (TEKLİ DİZİLİM)
   ================================================================ */
@media screen and (max-width: 768px) {

    /* 1. Menü Altından Kurtarma */
    .clemix-urunler-section {
        padding-top: 180px !important; /* Menü yüksekliğine göre ayarlandı */
    }

    /* 2. Tekli Sıra Düzeni */
    .clemix-grid {
        grid-template-columns: 1fr !important; /* Kartları tek tek alt alta dizer */
        gap: 25px !important;
        padding: 0 15px !important;
    }

    /* 3. Kart Tasarımı */
    .clemix-urun-card {
        padding: 20px !important;
        border-radius: 25px !important;
        transform: none !important; /* Mobilde hover efektini basitleştirir */
    }

    /* 4. Görsel Alanı */
    .clemix-urun-thumb {
        height: 200px !important; /* Ürünü daha net gösterir */
        margin-bottom: 15px !important;
    }

    /* 5. Metinler ve Başlık */
    .clemix-card-title {
        font-size: 18px !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }

    .clemix-card-excerpt {
        font-size: 13px !important;
        text-align: center !important;
        -webkit-line-clamp: 3 !important; /* Mobilde biraz daha fazla yazı görünebilir */
    }

    /* 6. Alt Bölüm (Buton ve Barkod) */
    .clemix-card-footer {
        flex-direction: column !important; /* Buton ve Barkodu alt alta koyar */
        gap: 15px !important;
        padding-top: 15px !important;
        align-items: center !important;
    }

    /* İncele Butonu */
    .incele-btn {
        width: 100% !important; /* Mobilde basması kolay tam genişlik buton */
        text-align: center !important;
        padding: 14px !important;
        font-size: 14px !important;
    }

    /* Barkod Alanı */
    .urun-barcode-wrapper {
        flex: none !important;
        width: 100px !important; /* Mobilde barkodu biraz daha kibarlaştırdık */
        margin: 0 auto !important;
    }

    .urun-barkod-img {
        width: 90px !important;
    }

    /* Ürün Kodu Badge */
    .urun-kodu-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
        top: 15px !important;
        left: 15px !important;
    }
}