@font-face {
    font-family:"Aviny";
    src: url(./fonts/Aviny.eot),
         url(./fonts/aviny.ttf),
         url(./fonts/Aviny.svg),
         url(./fonts/Aviny.woff),
         url(./fonts/Aviny.woff2);
}

.maintittle{
margin-top: 1%;
color: rgb(255, 255, 255);
text-align: center;
 font-family:"Aviny";
 font-size: 3em;
}

body{
background-color: rgb(224, 226, 224);
margin: 0;

}
.topsection{

 background-color:  rgb(4, 158, 4);
 width: 100%;
 height:25vh;
 border-radius: 0 0 20px 20px;
 

}
.topsection {
    background-color: rgb(4, 158, 4);
    width: 100%;
    height: 30vh;
    border-radius: 0 0 20px 20px;

    position: relative;
}



                        /* دکمه های هدر */
.topsection button {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgb(224, 226, 224);
    font-size: 1.25em;
    font-family: "Aviny";
    

    width: 10%;
    height: 6vh;

    border-radius: 15px;
    position: absolute;
    top: 50%;

    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.topsection button:hover {
    border: 3px solid rgb(9, 107, 7);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* دکمه اول */
.topsection button:nth-of-type(1) {
    left: 2%;
}

/* دکمه دوم */
.topsection button:nth-of-type(2) {
    left:13%;
}

/* دکمه سوم */
.topsection button:nth-of-type(3) {
    left: 24%;
}

/* ظاهر سبد خرید */
.cart-button {
    gap: 5px;
}
.cart-button span {
    background-color: red;
    color: white;
    border-radius: 50%;
    min-width: 20%;
    height: 3.5vh;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial;
    font-size: 0.5em;
    font-weight: bold;
    padding: 1.5%;
}

.topsection button:hover{
    
  border: 3px solid َrgb(9, 107, 7);
  transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;


}
.basketbutton{
position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgb(224, 226, 224);
    font-size: 1.25em;
    font-family: "Aviny";

    width: 1%;
    height: 6vh; 

}


.firstnav{
  
     font-size: 1.5em;
    margin-right:6%;
     text-align: right;

}

/* .firstnav a {
      
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 1%;
  background-color: rgb(224, 226, 224) ;
  border-radius: 15px;
    text-decoration: none;
    font-family:"Aviny";
    padding-right: 1.5%;


} */
 .firstnav a {
    display: inline-block;

    background: rgb(224, 226, 224);
    

    text-decoration: none;
    font-family: "Aviny";

    padding: 5px 18px;
    margin: 0 3px;

    border-radius: 12px;
    border: 1px solid #c5e6c5;

    box-shadow: 0 3px 8px rgba(0,0,0,0.12);

    transition: all 0.3s ease;
}

.firstnav a:hover {
    background: linear-gradient(135deg, #087a18, #04a832);
    color: white;

    border-color: white;

    transform: translateY(-3px);

    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
/* .cart-icon{

    

} */
.products {
   
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    direction: rtl;
    width: 90%;
    margin: 1% auto;
}

.products {
    
    display: flex;
    flex-direction: row;
    direction: rtl;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    width: 90%;
    margin: 5% auto;

}

.product {
      /* border: 1px solid  rgb(4, 158, 4)  !important; */

      transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding:3%;
    text-align: center;
    transition: 0.3s;
        margin-top: 1%;
        cursor: pointer;
}
.product:hover {
         border: 3px solid rgb(4, 158, 4); 
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
 }

.product img {
    width: 100%;
    height: 30vh;
    object-fit: contain;
}

.product h3 {
    font-family: "Aviny";
    color: #31583A;
    font-size: 1.5em;
}

.product p {
    font-size:1.5em;
    color: #444;
    font-family: "Aviny";
}

.product button {
    background-color: rgb(3, 139, 14);
    color: white;
    border: none;
    width: 100%;
    min-height: 50px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Aviny";
    font-size: 1.3em;
}

hr{
margin: 0% auto;
margin-bottom: 0%;
width: 65%;


}


.floating-box {
    position: fixed;
    bottom: 5%;
    right: 3%;

    width: 5%;
    height: 10%;

    background-color: #e66c09;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1000;
}

.floating-box.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}



                                            /* login page */


.firstdivloginpage{
    position: relative;
    left: 1%;
    top: 5%;
border-radius: 35px 35px 35px 35px;
background-color: rgb(4, 158, 4) ;
width: 45%;
height: 110vh;
margin: 2% auto;

}

.seconddivloginpage{
    
position: absolute;
left:5%;
top: 4.5%;
border-radius: 35px 35px 35px 35px;
background-color:rgb(224, 226, 224) ;
width: 90%;
height: 100vh;
/* /* margin: 1% auto;  */
}

.seconddivloginpage h1{
    font-family:"Aviny";
    text-align: center;
    font-size: 2.5;
}
.seconddivloginpage h3{
    margin-top: 2%;
text-align: right;

}

.loginform{
    text-align: center;
    margin-top: 15%;

}
.loginform input{
    padding: 1%;
    font-size: 1.5em;
    font-family: "Aviny";
    border-radius: 50px;
    width: 80%;
    height: 10vh;
    text-align: center;
    margin-top: 5%;

}
.loginform input[type="submit"]{
    cursor: pointer;
    background-color: rgb(4, 158, 4);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 2em;
    width: 40%;
    height: 10vh;
    text-align: center;
    margin-top: 5%;

}
.loginform input[type="submit"]:hover {
    cursor: pointer;
     border: 3px solid rgb(6, 66, 6); 
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-size: 2em;
    width: 42%;
    height: 12vh;
    text-align: center;
    margin-top: 5%;

}


                                            /* register page */

.firstdivregisterpage{
 position: relative;
left: 1%;
 top: 5%;
border-radius: 35px 35px 35px 35px;
background-color: rgb(4, 158, 4) ;
width: 45%;
height: 150vh;
margin: 2% auto;

}

.seconddivregisterpage{
    
position: absolute;
left:5%;
top: 4%;
border-radius: 35px 35px 35px 35px;
background-color:rgb(224, 226, 224) ;
width: 90%;
height: 140vh;
/* /* margin: 1% auto;  */
}

.seconddivregisterpage h1{
    font-family:"Aviny";
    text-align: center;
    font-size: 2.5em;
}
.registerform {
    text-align: center;
    margin-top: 10%;

}
.registerform  input{
    padding: 1%;
    font-size: 1.5em;
    font-family: "Aviny";
    border-radius: 50px;
    width: 80%;
    height: 10vh;
    text-align: center;
    margin-top: 3.5%;

}
.registerform  input[type="submit"]{
    cursor: pointer;
    background-color: rgb(4, 158, 4);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 2em;
    width: 40%;
    height: 10vh;
    text-align: center;
    margin-top: 5%;

}
.registerform input[type="submit"]:hover {
    cursor: pointer;
     border: 3px solid rgb(6, 66, 6); 
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-size: 2em;
    width: 42%;
    height: 12vh;
    text-align: center;
    margin-top: 5%;

}
                                        /* hide eye */
.password-box {
    position: relative;
    width: 80%;
    margin: 3.5% auto;
}

.password-box input {
    width: 100%;
    box-sizing: border-box;
}

.password-box span {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
}
.registerform span{

cursor: pointer;
}
.loginform span{

cursor: pointer;
}

                                    /* checkout page */


.firstdivcheckoutpage {
    position: relative;
    left: 1%;
    top: 5%;
    border-radius: 35px;
    background-color: rgb(4, 158, 4);
    width: 45%;
    height: 130vh;
    margin: 2% auto;
}

.seconddivcheckoutpage {
    position: absolute;
    left: 5%;
    top: 4.5%;
    border-radius: 35px;
    background-color: rgb(224, 226, 224);
    width: 90%;
    height: 115vh;
}

.seconddivcheckoutpage h1 {
    font-family: "Aviny";
    text-align: center;
    font-size: 2.5em;
}

.seconddivcheckoutpage h3 {
    margin-top: 2%;
    text-align: right;
}

.checkoutform {
    text-align: center;
    margin-top: 15%;
}

.checkoutform input {
    padding: 1%;
    font-size: 1.5em;
    font-family: "Aviny";
    border-radius: 50px;
    width: 80%;
    height: 10vh;
    text-align: center;
    margin-top: 5%;
}

.checkoutform input[type="submit"] {
    cursor: pointer;
    background-color: rgb(4, 158, 4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 2em;
    width: 40%;
    height: 10vh;
    text-align: center;
    margin-top: 5%;
}

.checkoutform input[type="submit"]:hover {
    cursor: pointer;
    border: 3px solid rgb(6, 66, 6);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-size: 2em;
    width: 42%;
    height: 12vh;
    text-align: center;
    margin-top: 5%;
}

.checkoutform textarea {
    padding: 1%;
    font-size: 1.5em;
    font-family: "Aviny";
    border-radius: 35px;
    width: 80%;
    height: 12vh;
    text-align: center;
    margin-top: 5%;
    resize: vertical;
}

                                    /* secondchecked */

/* طراحی صفحه پرداخت نهایی */

.firstdivcheckoutpage {
    position: relative;
    width: 45%;
    min-height: 100vh;
    height: auto;
    margin: 2% auto;
    padding: 2% 0;
    box-sizing: border-box;
    border-radius: 35px;
    background-color: rgb(4, 158, 4);
}

.seconddivcheckoutpage {
    position: relative;
    left: auto;
    top: auto;
    width: 90%;
    min-height: 95vh;
    height: auto;
    margin: 0 auto;
    padding: 3% 2%;
    box-sizing: border-box;
    border-radius: 35px;
    background-color: rgb(224, 226, 224);
    text-align: center;
    font-family: "Aviny";
}

.seconddivcheckoutpage h1 {
    font-family: "Aviny";
    text-align: center;
    font-size: 2.5em;
}

.seconddivcheckoutpage h3 {
    font-family: "Aviny";
    text-align: center;
    font-size: 1.7em;
    color: #333;
    margin: 4% 0;
}

.seconddivcheckoutpage p {
    font-family: "Aviny";
    font-size: 1.4em;
    text-align: center;
}

/* شماره کارت */

.cardnumber {
    width: 90%;
    margin: 3% auto;
    padding: 4%;
    box-sizing: border-box;
    background: #f3f8ff;
    border: 1px solid #d6e6fa;
    border-radius: 15px;
    text-align: center;
}

.cardnumber h2 {
    text-align: center;
    direction: ltr;
    color: #1769aa;
    font-family: Arial;
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: 2px;
}

/* اطلاعات خریدار */

.buyerinfo {
    width: 90%;
    margin: 3% auto;
    padding: 4%;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 15px;
    text-align: center;
}

.buyerinfo p {
    text-align: center;
    line-height: 2.2;
    overflow-wrap: anywhere;
}

/* مبلغ کل */

.totalbox {
    width: 90%;
    margin: 4% auto;
    padding: 4%;
    box-sizing: border-box;
    background: #edfaf1;
    border: 1px solid #ccebd5;
    border-radius: 15px;
    text-align: center;
}

.totalbox h2 {
    color: #168343;
    text-align: center;
    font-size: 1.8em;
}

/* فرم آپلود فیش */

.receiptform {
    width: 90%;
    margin: 5% auto;
    text-align: center;
}

.receiptform label {
    display: block;
    text-align: center;
    font-family: "Aviny";
    font-size: 1.5em;
    margin-bottom: 4%;
}

.receiptform input[type="file"] {
    display: block;
    width: 100%;
    padding: 3%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    font-family: "Aviny";
}

.receiptform button {
    width: 80%;
    padding: 3%;
    margin-top: 5%;
    border: none;
    border-radius: 15px;
    background: rgb(4, 158, 4);
    color: white;
    font-family: "Aviny";
    font-size: 1.7em;
    cursor: pointer;
    transition: 0.3s;
}

.receiptform button:hover {
    background: #106b35;
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .firstdivcheckoutpage {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .firstdivcheckoutpage {
        width: 95%;
    }

    .seconddivcheckoutpage {
        width: 92%;
    }

    .cardnumber,
    .buyerinfo,
    .totalbox,
    .receiptform {
        width: 100%;
    }

    .cardnumber h2 {
        letter-spacing: 1px;
    }
}   
.totalbox .total-price {
    text-align: center;
    font-family: "Aviny";
    font-size: 2em;
    font-weight: bold;
    color: #168343;
    direction: rtl;
    margin: 2% auto;
}


                                            /* adminpage */

    table{

        margin: 10% auto;
        width: 60%;


    }

    table td{

        text-align: center;
        font-family: "Aviny";

    }
    

    
/* =================================
   ریسپانسیو کردن تبلت
================================= */

@media screen and (max-width: 900px) {

    /* تنظیم نوار بالای سایت */

    .topsection {
        height: auto;
        min-height: 150px;
        padding: 12px 3%;
        box-sizing: border-box;

        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    /* تنظیم عنوان سایت */

    .maintittle {
        width: 100%;
        text-align: right;
        margin: 0;
        font-size: 2.5em;
    }

    /* تنظیم منوی بالای سایت */

    .firstnav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        font-size: 1.1em;
    }

    .firstnav a {
        width: auto;
        padding: 5px 12px;
    }

    /* کوچک کردن دکمه های هدر */

    .topsection button {
        position: static;
        width: auto;
        min-width: 85px;
        height: 38px;
        padding: 5px 10px;
        font-size: 1em;
    }

    /* حذف موقعیت دهی قبلی دکمه ها */

    .topsection button:nth-of-type(1),
    .topsection button:nth-of-type(2),
    .topsection button:nth-of-type(3) {
        left: auto;
    }

    /* نمایش دو محصول در هر ردیف */

    .products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 94%;
        gap: 15px;
        margin: 30px auto;
    }

    /* تنظیم اندازه تصاویر محصولات */

    .product img {
        height: 170px;
    }

    /* تنظیم دکمه مشاهده محصول */

    .product button {
        width: 100%;
        padding: 8px 5px;
    }
}


/* =================================
   ریسپانسیو کردن موبایل
================================= */

@media screen and (max-width: 600px) {

    /* تنظیم نوار بالای سایت */

    .topsection {
        min-height: auto;
        height: auto;
        padding: 10px 4% 15px;
        gap: 10px;
        justify-content: flex-start;
        align-items: center;
    }

    /* کوچک کردن عنوان سایت */

    .maintittle {
        font-size: 2em;
        text-align: right;
    }

    /* تنظیم منوی بالای سایت */

    .firstnav {
        width: 100%;
        gap: 6px;
        font-size: 0.95em;
    }

    /* کوچک کردن دکمه های منو */

    .firstnav a {
        padding: 4px 9px;
        border-radius: 8px;
    }

    /* تنظیم دکمه های ورود و سبد خرید */

    .topsection button {
        min-width: 0;
        width: auto;
        height: 34px;
        padding: 4px 9px;
        font-size: 0.9em;
        border-radius: 8px;
    }

    /* حذف افکت بزرگ شدن دکمه ها در موبایل */

    .topsection button:hover {
        transform: none;
    }

    /* تنظیم شمارنده سبد خرید */

    .cart-button span {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* نمایش دو محصول در هر ردیف */

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 94%;
        gap: 10px;
        margin: 20px auto;
    }

    /* تنظیم فاصله داخلی کارت محصولات */

    .product {
        padding: 9px;
        margin: 0;
    }

    /* حذف بزرگ شدن کارت ها در موبایل */

    .product:hover {
        transform: none;
    }

    /* کوچک کردن تصاویر محصولات */

    .product img {
        height: 120px;
    }

    /* تنظیم عنوان محصولات */

    .product h3 {
        font-size: 1.2em;
    }

    /* تنظیم توضیحات و قیمت محصولات */

    .product p {
        font-size: 1.05em;
    }

    /* عریض کردن دکمه مشاهده محصول */

    .product button {
        width: 100%;
        min-height: 42px;
        padding: 7px 3px;
        font-size: 1.15em;
        border-radius: 8px;
    }

    /* کوچک کردن دکمه پشتیبانی */

    .floating-box {
        width: 55px;
        height: 55px;
        right: 3%;
        bottom: 3%;
    }

    /* تنظیم خط جداکننده محصولات */

    hr {
        width: 80%;
    }
}


/* =================================
   ریسپانسیو کردن موبایل های کوچک
================================= */

@media screen and (max-width: 360px) {

    /* کوچک کردن دکمه های منو */

    .firstnav a {
        padding: 3px 6px;
        font-size: 0.85em;
    }

    /* کوچک کردن دکمه های هدر */

    .topsection button {
        padding: 3px 6px;
        font-size: 0.82em;
    }

    /* کوچک کردن تصاویر محصولات */

    .product img {
        height: 100px;
    }

    /* کاهش فاصله داخلی کارت محصولات */

    .product {
        padding: 7px;
    }
}

                                                                                /*لاتتاااا*/
                                                                                
                                                                                /* =====================================
   ریسپانسیو صفحه ورود و ثبت نام - تبلت
===================================== */

@media screen and (max-width: 900px) {

    /* تنظیم ظرف بیرونی صفحه ورود */
    .firstdivloginpage {
        position: relative;
        left: auto;
        top: auto;
        width: 85%;
        height: auto;
        min-height: 0;
        margin: 25px auto;
        padding: 18px 0;
        box-sizing: border-box;
    }

    /* تنظیم ظرف داخلی صفحه ورود */
    .seconddivloginpage {
        position: relative;
        left: auto;
        top: auto;
        width: 90%;
        height: auto;
        margin: 0 auto;
        padding: 20px 3%;
        box-sizing: border-box;
    }

    /* تنظیم ظرف بیرونی صفحه ثبت نام */
    .firstdivregisterpage {
        position: relative;
        left: auto;
        top: auto;
        width: 85%;
        height: auto;
        min-height: 0;
        margin: 25px auto;
        padding: 18px 0;
        box-sizing: border-box;
    }

    /* تنظیم ظرف داخلی صفحه ثبت نام */
    .seconddivregisterpage {
        position: relative;
        left: auto;
        top: auto;
        width: 90%;
        height: auto;
        margin: 0 auto;
        padding: 20px 3%;
        box-sizing: border-box;
    }

    /* تنظیم عنوان فرم ها */
    .seconddivloginpage h1,
    .seconddivregisterpage h1 {
        font-size: 2em;
        overflow-wrap: anywhere;
    }

    /* تنظیم فاصله فرم ها از عنوان */
    .loginform,
    .registerform {
        margin-top: 6%;
    }

    /* تنظیم ورودی های فرم */
    .loginform input,
    .registerform input {
        width: 90%;
        height: auto;
        min-height: 48px;
        padding: 8px 12px;
        margin-top: 4%;
        box-sizing: border-box;
    }

    /* تنظیم دکمه ورود و ثبت نام */
    .loginform input[type="submit"],
    .registerform input[type="submit"] {
        width: 45%;
        height: auto;
        min-height: 48px;
        padding: 8px;
        box-sizing: border-box;
    }

    /* جلوگیری از بزرگ شدن دکمه هنگام هاور */
    .loginform input[type="submit"]:hover,
    .registerform input[type="submit"]:hover {
        width: 45%;
        height: auto;
        min-height: 48px;
    }

    /* جلوگیری از بیرون زدن متن پایین فرم */
    .seconddivloginpage h3,
    .seconddivregisterpage h3 {
        overflow-wrap: anywhere;
        line-height: 1.8;
    }
}


/* =====================================
   ریسپانسیو صفحه ورود و ثبت نام - گوشی
===================================== */

@media screen and (max-width: 600px) {

    /* ظرف بیرونی ورود */
    .firstdivloginpage {
        width: 94%;
        margin: 15px auto;
        padding: 12px 0;
        border-radius: 22px;
    }

    /* ظرف داخلی ورود */
    .seconddivloginpage {
        width: 92%;
        padding: 15px 4%;
        border-radius: 22px;
    }

    /* ظرف بیرونی ثبت نام */
    .firstdivregisterpage {
        width: 94%;
        margin: 15px auto;
        padding: 12px 0;
        border-radius: 22px;
    }

    /* ظرف داخلی ثبت نام */
    .seconddivregisterpage {
        width: 92%;
        padding: 15px 4%;
        border-radius: 22px;
    }

    /* عنوان فرم ها */
    .seconddivloginpage h1,
    .seconddivregisterpage h1 {
        font-size: 1.7em;
        line-height: 1.7;
    }

    /* فاصله فرم از عنوان */
    .loginform,
    .registerform {
        margin-top: 5%;
    }

    /* ورودی های فرم */
    .loginform input,
    .registerform input {
        width: 100%;
        min-height: 45px;
        height: auto;
        padding: 7px 10px;
        margin-top: 4%;
        font-size: 1.2em;
        box-sizing: border-box;
    }

    /* ورودی رمز عبور کنار آیکون نمایش رمز */
    .loginform input#password,
    .registerform input#password,
    .registerform input#confirmPassword {
        width: calc(100% - 40px);
    }

    /* آیکون نمایش رمز عبور */
    .loginform span,
    .registerform span {
        display: inline-block;
        width: 30px;
        font-size: 18px;
        vertical-align: middle;
    }

    /* دکمه ورود و ثبت نام */
    .loginform input[type="submit"],
    .registerform input[type="submit"] {
        width: 65%;
        min-height: 45px;
        height: auto;
        margin-top: 6%;
        font-size: 1.5em;
    }

    /* ثابت نگه داشتن اندازه دکمه هنگام هاور */
    .loginform input[type="submit"]:hover,
    .registerform input[type="submit"]:hover {
        width: 65%;
        min-height: 45px;
        height: auto;
        font-size: 1.5em;
        transform: none;
    }

    /* متن ایجاد حساب یا ورود */
    .seconddivloginpage h3,
    .seconddivregisterpage h3 {
        font-size: 1.1em;
        text-align: center;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }
}

/* ریسپانسیو صفحه اطلاعات خریدار */
@media screen and (max-width: 900px) {
    .firstdivcheckoutpage {
        width: 90%;
        height: auto;
        min-height: 100vh;
        margin: 3% auto;
        left: 0;
        top: 0;
        box-sizing: border-box;
    }

    .seconddivcheckoutpage {
        position: relative;
        left: 0;
        top: 0;
        width: 90%;
        height: auto;
        min-height: 95vh;
        margin: 0 auto;
        padding: 20px 0;
        box-sizing: border-box;
    }

    .checkoutform {
        width: 100%;
        margin-top: 5%;
        text-align: center;
    }

    .checkoutform input:not([type="submit"]),
    .checkoutform textarea {
        width: 85%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 1.2em;
        margin-top: 4%;
    }

    .checkoutform textarea {
        min-height: 150px;
        resize: vertical;
    }

    .checkoutform input[type="submit"] {
        width: 60%;
        max-width: 100%;
        box-sizing: border-box;
        height: auto;
        min-height: 55px;
        font-size: 1.5em;
    }
}

/* تنظیمات مخصوص گوشی */
@media screen and (max-width: 600px) {
    .firstdivcheckoutpage {
        width: 96%;
        border-radius: 25px;
    }

    .seconddivcheckoutpage {
        width: 92%;
        border-radius: 25px;
        padding: 15px 0;
    }

    .seconddivcheckoutpage h1 {
        font-size: 1.8em;
        padding: 0 8px;
    }

    .checkoutform input:not([type="submit"]),
    .checkoutform textarea {
        width: 90%;
        font-size: 1.1em;
        padding: 12px;
    }

    .checkoutform input[type="submit"] {
        width: 75%;
        font-size: 1.3em;
    }
}


/* ریسپانسیو صفحه پرداخت نهایی */
@media screen and (max-width: 900px) {
    .firstdivcheckoutpage {
        width: 90%;
        height: auto;
        min-height: 100vh;
        margin: 3% auto;
        left: 0;
        top: 0;
        box-sizing: border-box;
    }

    .seconddivcheckoutpage {
        position: relative;
        left: 0;
        top: 0;
        width: 90%;
        height: auto;
        min-height: 95vh;
        margin: 0 auto;
        padding: 20px 0;
        box-sizing: border-box;
    }

    .cardnumber,
    .buyerinfo,
    .totalbox,
    .receiptform {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    .cardnumber h2 {
        font-size: clamp(1.1em, 3vw, 1.8em);
        text-align: center;
    }

    .receiptform {
        width: 90%;
        margin: 5% auto;
        text-align: center;
    }

    .receiptform input[type="file"] {
        max-width: 100%;
        box-sizing: border-box;
    }

    .receiptform button {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* تنظیمات مخصوص گوشی */
@media screen and (max-width: 600px) {
    .firstdivcheckoutpage {
        width: 96%;
        border-radius: 25px;
    }

    .seconddivcheckoutpage {
        width: 92%;
        border-radius: 25px;
        padding: 15px 10px;
    }

    .seconddivcheckoutpage h1 {
        font-size: 1.8em;
        text-align: center;
    }

    .seconddivcheckoutpage h3 {
        font-size: 1.3em;
        text-align: center;
    }

    .cardnumber h2 {
        font-size: 1.05em;
        letter-spacing: 0;
    }

    .buyerinfo p {
        font-size: 1.1em;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .totalbox h2 {
        font-size: 1.4em;
        text-align: center;
    }

    .total-price {
        font-size: 1.4em;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .receiptform {
        width: 100%;
        margin: 5% auto;
    }

    .receiptform label {
        display: block;
        margin-bottom: 15px;
        font-size: 1.1em;
    }

    .receiptform input[type="file"] {
        width: 100%;
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .receiptform button {
        width: 90%;
        min-height: 50px;
        font-size: 1.1em;
        white-space: normal;
    }
}

           
