/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root{
    --primary: #dc3545;
    --blue:#2175f5;
}
body {
    font-family: 'El Messiri', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 100px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    padding: 15px;
    position: relative;
    z-index: 2000;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

h3 {
    color: #333;
    margin: 10px 0;
    font-size: 1.2rem;
}

p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1rem;
    color: #000;
    font-weight: bold;
    margin: 10px 0;
}

.discount-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e63946;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

.sold-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.3s;
    margin-top: 10px;
}

.button:hover {
    background-color: var(--primary);
}
.products-section {
    padding: 50px 0;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    margin-top: 10px;
}

.button {
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: background 0.3s;
    margin: 5px;
}

.button:hover {
    background-color: darkred;
}

.more-btn {
    background-color: #f5e321;
}

.more-btn:hover {
    background-color: #8e862b;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 50px; /* زيادة المسافة من الأسفل */
    gap: 10px;
}

.pagination-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #e63946; /* لون زر التصفح */
    color: #fff; /* لون النص */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.pagination-button:hover {
    background-color: #771f22; /* لون أغمق عند التمرير */
    transform: scale(1.1);
}

.pagination-button.active {
    background-color: #f5e321; /* لون خاص للزر النشط */
    pointer-events: none; /* تعطيل النقر على الصفحة الحالية */
}

/* تحسين مظهر زر السابق والتالي */
.pagination-button.prev-next {
    background-color: #f5e321;
}

.pagination-button.prev-next:hover {
    background-color: #f5e321;
}
