#headerimg{margin:0px 0px 20px 0px;}
.products{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
max-width:1200px;
margin:auto;
}

@media(max-width:768px){
.products{
grid-template-columns:repeat(2,1fr);
grid-template-columns:repeat(2,1fr);

}
}

.product{
background:#fff;
border-radius:18px;
padding:15px;
text-align:center;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
transition:all .3s;
position:relative;
overflow:hidden;
}

.product:hover{
transform:translateY(-8px);
box-shadow:0 15px 35px rgba(0,0,0,0.15);
background:#ddb800;
}

.product img{
width:100%;
height:130px;
object-fit:contain;
margin-bottom:10px;
transition:transform .4s;
}

.product:hover img{
transform:scale(1.08);
}

.product h3{
font-size:18px;
word-spacing: -5px;
margin:8px 0;
}

.price{
color:#2e7d32;
font-family:IRANSansFa;
font-size:18px;
font-weight:bold;
margin-bottom:10px;
}

.qty-box{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
}

.qty-btn{
width:32px;
height:32px;
border:none;
background:#2e7d32;
color:#fff;
border-radius:8px;
font-size:18px;
cursor:pointer;
transition:.2s;
}

.qty-btn:hover{
background:#1b5e20;
}

.qty{
width:80px;
color:black;
font-size:18px;
font-family:IRANSansFa;
text-align:center;
border:1px solid #ddd;
border-radius:6px;
padding:2px;
}

.total-box{
font-family:IRANSansFa;
border-radius:20px;
background:#fff;
box-shadow:0 -5px 20px rgba(0,0,0,0.1);
margin:35px;
padding:25px;
display:flex;
justify-content:space-between;
align-items:center;
font-size:24px;
}

.pay-btn{
background:#2e7d32;
color:white;
border:none;
padding:12px 25px;
border-radius:10px;
cursor:pointer;
font-size:16px;
}

.pay-btn:hover{
background:#1b5e20;

}




.product{
position:relative;
}

.info{
position:absolute;
top:10px;
left:10px;
z-index:999;
}

.icon{
width:28px;
height:28px;
background:#2e7d32;
color:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
cursor:pointer;
}

.tooltip{
font-family:IRANSans;
position:absolute;
top:30px;
left:0;
background:#333;
color:#fff;
padding:10px;
border-radius:8px;
font-size:14px;
width:180px;
/* line-height:1.7; */
opacity:0;
visibility:hidden;
transition:1s;
}

/* hover برای دسکتاپ */
.info:hover .tooltip{
opacity:1;
visibility:visible;
}

/* نمایش با js */
.tooltip.show{
opacity:1;
visibility:visible;
}
