/**{*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*    font-family: Poppins;*/
/*    color: white;*/
/*}*/

/*body{*/
/*    background: #181c2c;*/
/*    display: flex;*/
/*}*/


html.rtl {
    --default-font: 'IRANSansWeb';
    --heading-font: 'IRANSansWeb';
    --nav-font: 'IRANSansWeb';
}

img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    /*filter: grayscale(70%);*/
    border-radius: 7px;
}

h3{
    font-weight: 500; !important;
}

p.product{
    /*font-style: italic;*/
    color: #0dcaf0;
}

button{
    display: inline-block;
    width: auto;
    padding: 0.6rem 1.5rem;
    border: 1px solid #606060;
    background: none;
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
}

/*.container{*/
/*    margin: 0 auto 50px auto;*/
/*    width: 90%;*/
/*}*/

.input{
    display: flex;
    justify-content: center;
    margin-block: 20px 50px;
}

/*.product-list{*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));*/
/*    gap: 20px;*/
/*}*/

/*.product-list:has(.product:hover) .product:not(:hover){*/
/*    filter: blur(5px);*/
/*    opacity: 0.7;*/
/*}*/

/*.product{*/
/*    !*border: 1px solid #606060;*!*/
/*    !*background: #131313;*!*/
/*    !*height: 300px;*!*/
/*    padding: 10px 10px 20px 10px;*/
/*    border-radius: 10px;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    transition: filter 0.3s ease-in-out, opacity 0.3s ease-in-out;*/
/*    text-align: center;*/
/*    margin-bottom: 100px;*/
/*    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);*/
/*}*/

/*.img{*/
/*    height: 60%;*/
/*    width: 100%;*/
/*}*/

/*.info{*/

/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    width: 100%;*/
/*}*/

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* دقیقا 4 تا در ردیف */
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-list {
        grid-template-columns: repeat(1, 1fr);
    }
}


.product-list:has(.product:hover) .product:not(:hover) {
    filter: blur(5px);
    opacity: 0.7;
}

.product {
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    align-items: center;
    transition: all 0.3s ease-in-out;
    text-align: center;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
    min-height: 450px;
}

.img {
    width: 100%;
    height: 220px; /* ارتفاع ثابت برای همه تصاویر */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 15px;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* خیلی مهم: کراپ کنه، نه کش بیاره */
    border-radius: 12px;
    filter: grayscale(40%);
    transition: 0.3s;
}

.product:hover .img img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.info {
    width: 100%;
    display: flex;
    justify-content: center;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: "IRANSansWeb" !important;
}

.text-content h3 {
    font-size: 1.0rem;
    font-weight: bold;
    color: #333;
}

.text-content h5 {
    font-size: 1.0rem !important;
    font-weight: bold;
    color: #333;
}

.text-content p {
    color: black; !important;
    font-size: 1.0rem;
    font-weight: bold;
    line-height: 1.4;
}

.text-content .price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2ca9e4;
}

.btn-buy {
    margin-top: 15px;
    background-color: #007BFF;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-buy:hover {
    background-color: #0056b3;
}
