/* ================================
   Products Section
================================ */

.products-section {
    width: 100%;
    padding: 50px;
}

/* عنوان بخش محصولات */
.products-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

/* ================================
   Products Grid
================================ */

.products-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ================================
   Product Card
================================ */

.product-card {
    background-color: #f5f1e8;

    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

/* افکت هاور */
.product-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* ================================
   Product Image
================================ */

.product-image {
    width: 100%;
    height: 220px;

    overflow: hidden;
    background-color: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;
}

/* زوم عکس هنگام هاور */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ================================
   Product Information
================================ */

.product-info {
    padding: 20px;
}

/* نام محصول */
.product-name {
    font-size: 20px;
    font-weight: bold;

    color: #333;

    margin-bottom: 10px;
}

/* توضیحات محصول */
.product-description {
    font-size: 14px;

    color: #666;

    line-height: 1.8;

    margin-bottom: 15px;
}

/* ================================
   Price
================================ */

.product-price {
    font-size: 18px;
    font-weight: bold;

    color: #333;

    margin-bottom: 15px;
}

/* ================================
   Product Button
================================ */

.product-button {
    display: block;

    width: 100%;

    padding: 10px 15px;

    border: none;
    border-radius: 7px;

    background-color: #333;
    color: white;

    text-decoration: none;

    text-align: center;

    font-size: 15px;

    cursor: pointer;

    transition: background-color 0.3s ease;
}

.product-button:hover {
    background-color: #555;
}

/* ================================
   Empty Products
================================ */

.no-products {
    width: 100%;

    text-align: center;

    padding: 50px 20px;

    color: #666;

    font-size: 18px;
}

/* ================================
   Responsive
================================ */

/* لپ‌تاپ و تبلت */
@media (max-width: 1000px) {

    .products-container {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* تبلت */
@media (max-width: 750px) {

    .products-section {
        padding: 30px 20px;
    }

    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

/* موبایل */
@media (max-width: 500px) {

    .products-section {
        padding: 25px 15px;
    }

    .products-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }

}