/* ================================
   کارت محصولات - طراحی جدید
================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* تصویر محصول */

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #fff8f1, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* وقتی عکس محصول وجود ندارد */

.product-image .no-image {
    font-size: 70px;
    opacity: 0.65;
}

/* اطلاعات محصول */

.product-info {
    padding: 18px;
}

.product-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 9px;
    line-height: 1.8;
}

.product-category {
    display: inline-block;
    background: #fff1e5;
    color: #e87518;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 19px;
    font-weight: bold;
    color: #e87518;
    margin-bottom: 10px;
}

.product-price span {
    font-size: 12px;
    color: #777;
    font-weight: normal;
}

/* موجودی */

.product-stock {
    font-size: 13px;
    margin-bottom: 14px;
}

.stock-ok {
    color: #198754;
}

.stock-low {
    color: #d97706;
}

.stock-out {
    color: #dc3545;
}

/* دکمه */

.product-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #e87518;
    color: white;
    text-decoration: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.product-button:hover {
    background: #d45f08;
}

/* ================================
   موبایل
================================ */

@media (max-width: 600px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-button {
        font-size: 12px;
        padding: 9px;
    }
}