
@font-face {
    font-family: "Aviny";
    src: url("./fonts/aviny.ttf") format("truetype");
}

body {
    font-family: "Aviny";
    direction: rtl;
    background-color: rgb(224, 226, 224);
    text-align: center;
    margin: 0;
}

h1 {
    font-size: 3em;
}

#cartItems {
    background-color: white;
    width: 80%;
    margin: 30px auto;
    padding: 20px;
    border: 3px solid rgb(4, 158, 4);
    border-radius: 20px;
    font-size: 1.5em;
}

h2 {
    color: rgb(4, 158, 4);
    font-size: 2em;
}

button {
    margin-top: 2%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 20%;
    height: 10vh;
    background-color: rgb(4, 158, 4);
    cursor: pointer;
    font-size: 1.25em;
    font-family: "Aviny";
    font-size: 1.5em;
    color: rgb(255, 255, 255);
    border-radius: 15px;
}
button:hover{
    
  border: 3px solid َrgb(9, 107, 7);
  transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
   
}

#cartItems {
    background-color: white;
    width: 80%;
    margin: 3% auto;
    padding: 2%;
    border: 0.2vw solid rgb(4, 158, 4);
    border-radius: 15px;
    font-size: 1.5em;
    box-sizing: border-box;
}

 button.delete-button {
    margin-right: 25%;
    background-color: red;
        width: 15%;
        height: 6.5vh;
        align-self: flex-start;
        font-size: 1em;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.4em;
    }

    body > button {
        width: 15%;
        height: 10vh;
        padding: 0.5%;
    }


    button.pay-button {
      margin-right: 1%;
    background-color:rgb(4, 158, 4);
     width: 15%;
     height: 6.5vh;
     align-self: flex-start;
    font-size: 1em;
    color: white;
    border: none;
    border-radius: 15px;
    font-family: "Aviny";
    font-size: 1em;
    cursor: pointer;
}





/* تنظیم دکمه‌ها در گوشی و تبلت بدون تغییر چیدمان */
@media (max-width: 900px) {

    button.delete-button,
    button.pay-button {
        width: auto;
        min-width: 65px;
        max-width: 100%;
        height: auto;
        min-height: 40px;
        padding: 4px 12px;
        white-space: nowrap;
        box-sizing: border-box;
        margin-top: 5px;
        font-size: 0.9em;
    }

    .product-info {
        overflow-wrap: anywhere;
    }
    body > button {
    width: auto;
    min-width: 150px;
    max-width: 90%;
    height: auto;
    min-height: 45px;
    padding: 5px 18px;
    white-space: nowrap;
    box-sizing: border-box;
}

}