/* ================================================================= */
/* --- YENİ: MƏHSUL KATALOQU VƏ PAGİNASİYA STİLİ --- */
/* ================================================================= */
.products-catalog-section {
    padding: 50px 0;
    background-color: #FFF; /* Light background */
}

.products-catalog-section .section-title {
    text-align: center;
    font-size: 34px;
    color: #4B3832;
    margin-bottom: 40px;
    font-weight: bold;
}

.products-catalog-section .section-title i {
    color: #B8860B; /* Qızılı rəng */
    margin-right: 10px;
}

/* DESKTOP GRID: 4 SÜTUN */
.product-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Məhsul Kartının Ümumi Stilinin Təyini */
.products-catalog-section .product-card {
    display: flex;
    flex-direction: column;
    background-color: #F8F8F4; /* Body fon rənginə uyğun yüngül fon */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #4B3832;
    position: relative;
}

.products-catalog-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.products-catalog-section .product-card img {
    width: 100%;
    height: 220px; /* Desktop üçün hündürlük */
    object-fit: cover;
    display: block;
}

.products-catalog-section .product-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.products-catalog-section .product-title {
    font-size: 17px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    color: #4B3832;
    min-height: 40px; /* İki sətr üçün yer ayırdıq */
}

.products-catalog-section .product-description {
    font-size: 13px;
    color: #6C544F;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 38px; /* İki sətr üçün yer ayırdıq */
    overflow: hidden;
}

.products-catalog-section .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #E0DED1;
    margin-top: auto;
}

.products-catalog-section .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #B8860B; /* Qızılı qiymət rəngi */
}

.products-catalog-section .product-price.price-inquiry {
    font-size: 15px;
    color: #4B3832;
}

.products-catalog-section .product-views {
    font-size: 13px;
    color: #A0908C;
    display: flex;
    align-items: center;
}

.products-catalog-section .product-views i {
    margin-right: 5px;
    color: #B8860B;
}

/* Badge Stilləri (Endirim, Yeni) */
.products-catalog-section .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    z-index: 10;
}
.products-catalog-section .product-badge.discount, .products-catalog-section .product-badge.sale {
    background-color: #d9534f; /* Qırmızı endirim */
}
.products-catalog-section .product-badge.new {
    background-color: #5cb85c; /* Yaşıl yeni */
}

/* PAGİNASİYA STİLİ */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #E0DED1;
    border-radius: 5px;
    color: #4B3832;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
}

.page-link:hover {
    background-color: #F0EAD6;
}

.page-link.active {
    background-color: #B8860B;
    color: white;
    border-color: #B8860B;
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* ================================================================= */
/* --- MOBİL RESPONSİVLİK (768px DƏYİŞİKLİKLƏRİ) --- */
/* ================================================================= */

@media (max-width: 768px) {
    
    /* ... (Mövcud Global və Header Düzəlişləri yerində qalsın) ... */

    /* YENİ: MƏHSUL GRIDİ BÖLMƏSİ (768px altında) */
    .product-grid-main {
        grid-template-columns: repeat(2, 1fr); /* 2 sütun (2x2) */
        gap: 15px;
        padding: 0 10px;
    }

    .products-catalog-section {
        padding: 30px 0;
    }
    
    .products-catalog-section .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .products-catalog-section .product-card img {
        height: 150px; /* Mobil üçün kiçik hündürlük */
    }

    .products-catalog-section .product-title {
        font-size: 15px;
        min-height: 38px;
    }
    
    .products-catalog-section .product-description {
        display: none; /* Mobil ekranda qısa məlumatı gizlətdik */
    }

    .products-catalog-section .product-footer {
        padding-top: 5px;
    }
    
    .products-catalog-section .product-price {
        font-size: 16px;
    }

    .pagination {
        margin-top: 15px;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Paginasiyanın hər iki tərəfindəki oxlar mobil üçün daha kiçik olsun */
    .page-link i {
        font-size: 12px;
    }
    
    /* *** DÜZƏLİŞ: KİÇİK EKRANLARDA DA 2 SÜTUN QALMASI ÜÇÜN ƏLAVƏ SORĞU LƏĞV EDİLİR *** */
    /* Əgər 480px altındakı kodunuz varsa, onu silin. */
    /* Məsələn, bu kodu SİLİN:
    @media (max-width: 480px) {
        .product-grid-main {
            grid-template-columns: 1fr; 
        }
        ...
    }
    */
}

/* ƏLAVƏ KİÇİK EKRAN DÜZƏLİŞİ (380px və altı üçün paddingi artıraraq kartların sıxışmasını azaltmaq olar) */
@media (max-width: 380px) {
    .product-grid-main {
        gap: 10px; /* Kartlar arasındakı boşluğu kiçiltdik */
    }
    .products-catalog-section .product-title {
        min-height: 30px; /* Başlıq hündürlüyünü kiçiltdik */
    }
    .products-catalog-section .product-card img {
        height: 130px; /* Şəkil hündürlüyünü bir az da azaltdıq */
    }
}