* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    background: linear-gradient(to bottom, #201371, #75777c, #a8a5a5) no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}
header {
    width: 100vw;
    background: linear-gradient(to bottom, #5d49e1, #201371);
    height: 100px;
    display: flex;
    justify-content: flex-start;
    gap: 400px;
    align-items: center;
    padding: 0 200px;
}

#Zarebin_Icon, #Home_Icon {
    font-size: 40px;
    color: #d8d8d8;
}
header input {
    border-radius: 20px;
    width: 400px;
    height: 40px;
    text-align: center;
    background-color: #d8d8d8;
}

#Header_Down img{
    position:relative;
    width:100%;
    height:200px;
    margin-top:-10px;
    z-index:1;

}
#Leftside {
    display: flex;
    width: 200px;
    height: 100vh;
    margin-left: 10px;
    margin-top: -60px;
    align-self: stretch;
    background: linear-gradient(to bottom, #201371, #9b91d7, #bfb6faff);
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 0;
    /*overflow-y: auto;*/
}
#Container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #5d49e1,#5d49e1,#bababa,#ebe7e7);
    margin-left: 210px;
    margin-top: -770px;
    z-index: 0;
    overflow-y:auto;
    overflow-x:auto;
}


h1{
    font-size:20px;
    text-align:left;
    margin-top:20px;
    margin-left:-15px;
}

#Signup_Icon a, #Product_Icon a, #AboutUs_Icon a {
    color: #d8d8d8;
    font-size:40px;
}

.content {
    display:flex;
    width: 1300px;
    height: 470px;
    margin: 80px 40px;
    background-color: #e6e6e6;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  
}

.layer_img {
    width: 27%;
    height: 70%;
    background-color: #e0dfdf;
    margin: 5px 5px;
    border-radius: 20px;
}

.Names_container{
    flex:1;
    height:70%;
    margin:5px 5px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;

}

.Name {
    background-color: #e0dfdf;
    border-radius:10px;
    height: 35px;
    width: 90%;
    margin: 5px 5px;
    text-align: right;
}
.text{
    color:black;
    font-size:20px;

}
.return {
    position:absolute;
    background-color: #190b72;
    border-radius: 10px;
    height: 35px;
    width: 10%;
    margin: 25% 30%;
    text-align: center;
    align-content:center;
}
.text_return {
    display: inline-block;
    color: white;
    text-decoration: none;
}
#footer {
    display: flex;
    width: 100vw;
    height: 110px;
    background: linear-gradient(to bottom, #5d49e1, #201371);
}

#layer_image {
    width: 200px;
    height: 100px;
    margin-left: 10px;
}

img {
    border-radius: 20px;
    margin-top: 5px;
}

#footerexp {
    /*display: inline-block;*/
    text-align: center;
    margin: 40px auto;
    color: white;
}

@media (max-width: 1290px) {

    /* سایدبار رو کلاً مخفی کن */
    #Header_Down {
        display: none;
    }

    #footer {
        display: none;
    }

    #Leftside {
        display: none !important;
    }

    /* 🆕 Container رو ریست کن (این مهم‌ترین بخشه) */
    #Container {
        margin-left: 0 !important; /* فاصله از چپ رو صفر کن */
        margin-top: 0 !important; /* کشیدگی بالا رو صفر کن */
        width: 100%; /* تمام عرض */
        min-height: auto; /* ارتفاع خودکار */
        padding: 15px; /* فاصله داخلی */
    }

    /* ۴. کارت محصول (عکس بالا، متن پایین) */
    .content {
        display: flex !important;
        flex-direction: column !important; /* این خط عکس و متن رو زیر هم میاره */
        width: 100% !important;
        max-width: 400px;
        height: auto !important;
        margin: 0 auto !important;
        padding: 15px;
    }

    /* ۵. عکس محصول */
    .layer_img {
        width: 100% !important;
        height: auto !important;
        margin: 0 auto 15px auto !important;
    }

        .layer_img img {
            width: 100% !important;
            height: auto !important;
            max-height: 250px;
            object-fit: cover;
            display: block;
        }

    /* ۶. محفظه متن‌ها */
    .Names_container {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align:right;
        direction:rtl;
    }

    /* ۷. خطوط متن */
    .Name {
        width: 100% !important;
        height: auto !important;
        min-height: 35px;
        margin: 5px 0 !important;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .text {
        font-size: 14px !important;
        margin: 0;
    }

    /* ۸. دکمه برگشت */
    .return {
        position: relative !important; /* از حالت absolute در میاد */
        margin: 20px auto 0 auto !important;
        width: 100% !important;
        max-width: 200px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .text_return {
        font-size: 16px;
    }
    header {
        position: relative; /* برای اینکه بتونیم input رو دقیق وسط بذاریم */
        justify-content: space-between; /* آیکون‌ها چپ و راست */
        padding: 10px 15px;
    }

        /* 🆕 نوار جستجو دقیقاً وسط */
        header input {
        display:none;
        }

    /* آیکون‌ها یکم کوچیک‌تر بشن تا جا باز بشه */
    #Home_Icon {
        font-size: 40px;
        z-index: 10; /* بالاتر از input باشن که کلیک‌پذیر باشن */
    }

 }
    