
@font-face {
    font-family: "Aviny";
    src: url("../fonts/aviny.ttf");
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Aviny";
}

body {
    background-color: rgb(224, 226, 224);
    margin: 0;
    padding: 3vh 3%;
    direction: rtl;
    min-height: 100vh;
}

/* عنوان محصول */
.first {
    width: 100%;
    text-align: center;
    font-size: 5vh;
    margin: 2vh auto 4vh;
}

/* تصویر محصول */
.productpageimg {
    display: block;
    width: 28%;
    height: 38vh;
    object-fit: cover;
    border: 0.5vw solid rgb(4, 158, 4);
    border-radius: 2vw;
    margin: 3vh auto;
}

/* عنوان معرفی */
h2 {
    width: 100%;
    text-align: center;
    font-size: 3.5vh;
    margin: 4vh auto 2vh;
}

/* توضیحات محصول */
.product-description {
    width: 75%;
    margin: 3vh auto;
    text-align: center;
    font-size: 2.8vh;
    line-height: 2;
}

/* مشخصات محصول */
.product-details {
    width: 55%;
    margin: 4vh auto;
    padding: 2vh 3%;
    background-color: white;
    border-radius: 2vw;
    font-size: 2.8vh;
    text-align: right;
    box-shadow: 0 0.5vh 1.5vh rgba(0,0,0,0.08);
}

/* انتخاب تعداد */
.numberofproduct {
    width: 55%;
    margin: 3vh auto;
    text-align: center;
    font-size: 2.8vh;
}

.numberofproduct input {
    width: 15%;
    height: 7vh;
    border-radius: 1vw;
    border: 0.2vw solid #ccc;
    font-family: "Aviny";
    font-size: 2.5vh;
    text-align: center;
}

/* دکمه افزودن به سبد */
.add-to-basket {
    display: block;
    width: 25%;
    height: 10vh;
    margin: 4vh auto;
    border: none;
    border-radius: 2vw;
    font-family: "Aviny";
    font-size: 3vh;
    background-color: rgb(4, 158, 4);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-basket:hover {
    transform: scale(1.04);
    box-shadow: 0 1vh 2vh rgba(0,0,0,0.15);
}

/* دکمه مشاهده سبد خرید */
button:not(.add-to-basket) {
    display: block;
    width: 20%;
    height: 7vh;
    margin: 2vh auto;
    border: none;
    border-radius: 1.5vw;
    background-color: #555;
    color: white;
    font-family: "Aviny";
    font-size: 2.5vh;
    cursor: pointer;
}

/* تبلت */
@media (max-width: 900px) {

    .productpageimg {
        width: 40%;
        height: 32vh;
    }

    .product-details,
    .numberofproduct {
        width: 75%;
    }

    .add-to-basket {
        width: 40%;
    }

    button:not(.add-to-basket) {
        width: 35%;
    }

}

/* موبایل */
@media (max-width: 600px) {

    body {
        padding: 2vh 3%;
    }

    .first {
        font-size: 4vh;
        margin: 2vh auto;
    }

    .productpageimg {
        width: 65%;
        height: 28vh;
        border-radius: 4vw;
    }

    h2 {
        font-size: 3vh;
    }

    .product-description {
        width: 95%;
        font-size: 2.4vh;
    }

    .product-details {
        width: 90%;
        padding: 2vh 5%;
        font-size: 2.5vh;
        border-radius: 3vw;
    }

    .numberofproduct {
        width: 90%;
        font-size: 2.5vh;
    }

    .numberofproduct input {
        width: 20%;
        height: 6vh;
        font-size: 2.5vh;
    }

    .add-to-basket {
        width: 65%;
        height: 8vh;
        font-size: 2.7vh;
        border-radius: 3vw;
    }

    button:not(.add-to-basket) {
        width: 55%;
        height: 7vh;
        font-size: 2.5vh;
    }

}
