.product {
    height: auto;
    margin: auto;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
    position: relative;
    transition: all .5s ease;

}


.product:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
.product a{
    text-decoration: none;
    color: black;


}
.img-product {
    width: 100%;
    height: 25vh;
    object-fit: contain;
    border-radius: 1rem;
    transition: all 0.5s ease;
}


.product button{
    border: none;
    outline: none;
    background-color: #113F67FF;
    color: white;
    padding: 10px;
    border-radius: 15px;
    display: block;
    margin: 10px auto ;
}
.prices {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.new-price {
    color: #113F67FF;
    font-weight: bold;
    font-size: 16px;
}
.product h4 {
    font-size: clamp(14px, 1.8vw, 18px);
    margin-bottom: 5px;
}
.product p {
    font-size: clamp(12px, 1.4vw, 15px);
    color: #555;
    margin-bottom: 6px;
}
.old-price {
    font-size: clamp(10px, 1.2vw, 14px);
}

.new-price {
    font-size: clamp(10px, 1.2vw, 14px);
}
.product button {
    font-size: clamp(12px, 2vw, 15px);
}
.discount {
    position: absolute; /* روی کارت ثابت شود */
    top: 15px;
    left: 15px; /* یا right:10px; برای سمت راست */
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 50%; /* گرد */
    font-size: clamp(10px, 1.4vw, 14px); /* واکنش‌گرا */
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.product-body h4,
.product-body p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .img-product {
        height: 20vh;
    }
}




.responsive-title {
    font-size: clamp(0.8rem, 2vw, 1rem); /* حداقل، واکنشگر، حداکثر */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* برای اطمینان */
}






.route-header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.header-img {
    width: 100%;
    height: auto;   /* تصویر همیشه کامل */
    display: block;
}

.route-header h5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}


