* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(229 229 229);
font-family: 'Roboto','Vazir', sans-serif;

}

/* ********************************************************************************************************** */
/* header */
.header {
    height: 80px;
    display: flex;
    position: relative;
    flex-direction: row-reverse;
}

.logo {
    background-color: rgb(0, 0, 0);
    width: 150px;
    height: 80px;
    position: relative;
}

.topics {
    color: rgb(95 128 62);
    height: 80px;
    display: flex;
    justify-content: space-evenly;
    width: calc(100% - 150px);
    font-size: 15px;
    direction: rtl;
  z-index: 9998;

}

.topics div {
    color: rgb(95 128 62);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 18px;
    margin: 1vw;

}

.menu_toggle {
    display: none;
}

@media (max-width: 650px) {

    .menu_toggle {
        display: block;
        border: none;
        font-size: 30px;
        background-color: rgba(0, 0, 0, 0);
        margin: 0 30px;

    }

    .header {
        justify-content: space-between;
    }

    .topics {
        background-color: rgb(95 128 62);
        color: rgb(229 229 229);
        border: 2px solid black;

        position: absolute;
        height: auto;
        width: 190px;
        display: flex;
        flex-direction: column;
        top: 65px;
        left: 0;
        transform: translateX(-100%);
            direction: rtl;

    }

    .topics div {
        padding: 10px;
        margin: 5px;
        color: rgb(229 229 229);
    }

    .active {
        transform: translateX(0);
    }



}

/* ********************************************************************************************************** */
/* main */
.main {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
            margin-top: 50px;



}
.main>div:nth-child(2) {
        border:3px solid white;
        width: auto;
    height: auto;

}
.sardar {
    width: 35%;
    height: auto;
    text-align: right;
}

.sardar div:nth-child(1):not(.h1) {
    border-bottom: 3px solid rgb(57, 97, 18);
    color: rgb(57, 97, 18);
    font-size: 90px;

}
.h1{
        color: rgb(57, 97, 18);
}


.sardar :nth-child(2) {
    color: rgb(95 128 62);
    max-width: 300px;
    margin-left: auto;
    font-size: 20px;
    line-height: 1.5;
    direction:rtl;
}

@media (max-width: 700px) {
    .sardar {
        width: 70%;
                align-self: flex-start;
    }
    .sardar div:nth-child(1):not(.h1) {
    border-bottom: 3px solid rgb(57, 97, 18);
    color: rgb(57, 97, 18);
    font-size: 63px;

}
}

/* ********************************************************************************************************** */
/* products */
 .products {
       transition: background-color 0.3s ease;
}
 .main_page>a{
     color: rgb(95 128 62);
     text-decoration:none;
 }

.products>div {
    display: flex;
    direction: rtl;
    margin: 10px 3vw 10px 0;

}

.products>h2 {
    text-align: right;
    margin-right: 30px;
    direction: rtl;
    color: rgb(57, 97, 18);
}

.products_img {
    /* width: 200px;
    max-height: 500px; */

    position: relative;
    margin-left: 9vw;
}

.products_img img {
    /* width: 200px; */
    max-height: 500px;

}

.products_img2 {
    /* width: 200px;
    max-height: 500px; */

    position: relative;
    margin-left: 9vw;
}

.products_img2 img {
    /* width: 200px; */
    max-height: 500px;

}

/* .products_img div:nth-child(2) {
    width: 100%;
    height: 100%;
    background-color: black;


} */

.border {
    width: 3px;
    height: 70%;
    background-color: rgb(95 128 62);
    position: absolute;
    left: 0;
}

.products_text {
    color: rgb(95 128 62);
    flex-grow: 1;
    margin-bottom: 200px;
    line-height: 1.5;
}

.products_text>div:nth-child(1) {
    border-bottom: 3px solid rgb(57, 97, 18);
    color: rgb(57, 97, 18);
    font-size: 40px;
}

.products_text>div:nth-child(3) {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    line-height: 2;

}
.products_text>div>div:nth-child(1) {

        margin-left: 20px;

}

.products_text>div>div:nth-child(2) {

    display: flex;

    margin: 0 auto 0 50px;
}

.products_text>div>div:nth-child(2)>a {
    font-size: 20px;
    height: fit-content;
    padding: 3px 20px;
    margin: auto 20px auto 20px;
    line-height: 1;


    border: none;
    background-color: rgb(95 128 62);
    color: rgb(229 229 229);
    border-radius: 3px;
    text-align: center;
    text-decoration: none;

}

.footer {
    background-color: rgb(95 128 62);
    color: rgb(229 229 229);
    display: flex;
    direction: rtl;
    line-height: 1.5;

}

.footer>div {
    width: 50%;
    padding: 4vw;
        transition: background-color 0.3s ease;
                /*transition-delay: 6s; */


}

.footer>div>div {

    margin-bottom: 4vw;

}

.products_img2 {
    display: none;
}

@media (max-width: 700px) {
    .products>div {
        flex-direction: column;
        margin: 10px auto;
    }
    
    .sardar div:nth-child(1) {
    font-size: 60px;
    }
   
    .main>div:nth-child(2){
        width: auto;
        margin:0vw -1vw 0vw 1vw;   
}

    .products_img2 {
        display: inline-block;
        position: relative;
        margin: 30px auto auto 0;
        margin-right: 50%;
        transform: translateX(50%);

    }



    .products_img {
        display: none;
    }



    .products_text {
        flex-grow: 1;
        margin-right: 0;

    }

    .products_text>div:nth-child(1) {
        border-bottom: 3px solid rgb(95 128 62);
        font-size: 40px;
        margin-right: 10%;

    }

    .products_text>div:nth-child(3) {

        flex-direction: column;
        align-items: center;
    }

    .products_text>div>div:nth-child(2) {

        flex-direction: column;
        width: fit-content;
        margin: 0;
    }

    .main {
        margin-bottom: 100px;
        margin-top: 50px;
        display: flex;
        flex-direction: column-reverse;
                align-items: flex-end;

        
    }
    
    .footer {

        flex-direction: column;
        padding: 4vw;


    }

    .footer>div {
        padding: 0;
                width: 100%;


    }
    .footer>div:nth-of-type(2){
margin-top: 20px;

}

    .discription section {
        margin-left: 3%;
    }

}































* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(229 229 229);
    padding: 1vw 1vw 1vw 0;
    color: rgb(95 128 62);
}

body>div {

    width: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(57, 97, 18));
    padding: 2px 2px 2px 0;

}

body>div>div {

    background-color: rgb(229 229 229);
    padding: 1vw 1vw 1vw 0;


}

.details {
    margin-top:50px;
    direction: rtl;
    display: flex;
}

.image_details {
    width: fit-content;
    position: relative;
    height: 500px;
    margin-left: 30px;
}

.border {
    width: 3px;
    height: 70%;
    background-color: rgb(57, 97, 18);
    position: absolute;
    left: 0;
    z-index: 2;
}

.image_details img {
    height: 500px;
}

.text_details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;


}

.text_details>div:nth-child(1) {
    direction: rtl;

}

.text_details h1 {
    border-bottom: 3px solid rgb(57, 97, 18);
    color: rgb(57, 97, 18);
}

.text_details>div:nth-child(1) p {
    padding-left: 4vw;
    font-size: 20px;
    margin-top: 10px;
    line-height: 1.8;
    list-style-position: inside;
}

.text_details>div:nth-child(2) {
    padding-left: 4vw;
    font-size: 20px;
    margin-top: 20px;
}

.price_and_buy {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;


}

.price_and_buy>div {
    display: flex;
    gap: 20px;

}

.price_and_buy>div>a {
    background-color: rgb(95 128 62);
    color: rgb(229 229 229);
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    padding: 0 20px;
}

.discription {
    margin: 40px 0;
    direction: rtl;
}

.discription>h3 {
    border-bottom: 3px solid rgb(57, 97, 18);
    color: rgb(57, 97, 18);
}



.discription>section {
    max-width: 800px;
    padding: 20px;
    font-size: 20px;
    line-height: 1.8;
    margin-left: 10vw;
    list-style-position: inside;

}

.discription>section>h2,
h3 {
    color: rgb(57, 97, 18);
}



.back-button {
  position: fixed;
  top: 1vw;
  left:2vw;
  font-size: 4vw;
  color: black;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease;
}

@media (max-width: 700px) {
    .details {
        flex-direction: column;
    }

    .image_details {
        margin: 10px auto;
    }

    .text_details {
        margin: 20px 0;
    }


    .price_and_buy {

        flex-direction: column;
        padding-right: 20px;
        line-height: 1.4;

    }

    .price_and_buy>div {
        gap: 10px;
        flex-direction: column;

    }

    .price_and_buy>div>a {
        width: fit-content;
    }

    .text_details>div:nth-child(1) p {
        padding-right: 20px;
        line-height: 1.4;

    }
    .back-button {
  position: fixed;
  top: 42px;
  left:5vw;
  font-size:  21px;
  color: black;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.products_text>div>div:nth-child(1) {

        margin-left: 0;
        margin-right: 0;

}
}
@media (max-width: 350px) {
   
    .back-button {
  top: 42px;
  font-size: 21px;

}

}


.back-button:hover {
  transform: scale(1.2);
}


