:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 20px rgba(0,0,0,.05);
    --card-hover-shadow: 0 20px 40px rgba(118,75,162,.15);
    --text-main:#2d3748;
    --text-muted:#718096;
}

.product{
    width:100%;
    padding:40px 20px;
    background:#f7fafc;
    font-family:'IRAN-Rounded',sans-serif!important;
    color:var(--text-main);
    direction:rtl;
}

.product .product_header{
    text-align:center;
    margin-bottom:35px;
}

.product .product_header h1{
    font-size:32px;
    font-weight:900;
    color:#2d3748;
    position:relative;
    display:inline-block;
}

.product .product_header h1::after{
    content:"";
    position:absolute;
    bottom:-12px;
    right:50%;
    transform:translateX(50%);
    width:80px;
    height:4px;
    border-radius:20px;
    background:var(--primary-gradient);
}

.product .product_cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    max-width:1300px;
    margin:auto;
}

.product .product_cards .product_card{
    background:#fff;
    border-radius:20px;
    border:1px solid rgba(226,232,240,.6);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:var(--card-shadow);
    transition:.3s;
}

.product .product_cards .product_card:hover{
    transform:translateY(-6px);
    box-shadow:var(--card-hover-shadow);
    border-color:#764ba2;
}

.product .product_cards .product_card .product_card_header{
    height:220px;
    background:#f4f6fa;
    overflow:hidden;
}

.product .product_cards .product_card .product_card_header img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.product .product_cards .product_card .product_card_header:hover img{
    transform:scale(1.08);
}

.product .product_cards .product_card .product_card_footer{
    padding:20px;
    flex-grow:1;
    display:flex;
    flex-direction:column;
}

.product .product_cards .product_card .product_card_footer h1{
    font-size:1.1rem;
    font-weight:900;
    color:var(--text-main);
    margin-bottom:8px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.product .product_cards .product_card .product_card_footer p{
    font-size:.85rem;
    color:var(--text-muted);
    line-height:1.7;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-bottom:15px;
}

.product .product_cards .product_card .price-box{
    margin-top:auto;
    margin-bottom:15px;
}

.product .product_cards .product_card .price-box .current-price{
    font-size:1.25rem;
    font-weight:900;
    color:#667eea;
}

.product .product_cards .product_card .price-box .toman{
    font-size:.75rem;
    color:var(--text-muted);
    margin-right:5px;
}

.product .product_cards .product_card .product_actions{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.product .product_cards .product_card .product_actions .btn-detail{
    color:#4a5568;
    border:2px solid #e2e8f0;
    border-radius:20px;
    padding:10px;
    font-size:.85rem;
    font-weight:700;
    text-align:center;
    text-decoration:none;
    transition:.3s;
}

.product .product_cards .product_card .product_actions .btn-detail:hover{
    background:var(--primary-gradient);
    color:#fff;
    border-color:transparent;
}

.product .product_cards .product_card .product_actions .btn-cart{
    color:#fff;
    background:var(--primary-gradient);
    border:none;
    border-radius:20px;
    padding:10px;
    font-size:.85rem;
    font-weight:700;
    transition:.3s;
}

.product .product_cards .product_card .product_actions .btn-cart:hover{
    opacity:.85;
}

.product .product_cards .product_card .product_actions .btn-cart.in-cart{
    background:#48bb78;
}

@media (max-width:1200px){
    .product .product_cards{
        grid-template-columns:repeat(3,1fr);
    }
}

@media (max-width:768px){
    .product .product_cards{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:480px){
    .product .product_cards{
        grid-template-columns:1fr;
    }
}
