* {
    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;
    /*font-family: 'Vazirmatn', sans-serif;*/
}
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;
}


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: 350px;
    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: 98%;
    height: 70%;
    background-color: #e0dfdf;
    margin: 5px auto;
    border-radius: 20px;
}
    .layer_img img {
        width: 343px;
        height: 315px;
        object-fit: cover;
    }

.Names_Porducts {
    margin:50px auto 0;
    font-size:26px;
    text-align:center;
}

.Details_Products { /*tag p*/
    display: inline-block;
    text-decoration: none;
    line-height: 40px;
    text-align: center;
    width: 100%;
    height: 40px;
    margin-top: 20px;
    border-radius: 40px;
    background-color: #190b72;
    font-size: 20px;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Acham';
}

#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 {
        width: 100%; /* کارت‌ها تمام عرض */
        margin: 10px 10px; /* فاصله بالا و پایین */
    }
    .content {
        width: 90%;
        max-width: 350px;
        height: auto; /* ← ارتفاع خودکار (نه 470px) */
        margin: 15px auto;
        padding: 10px; /* ← فاصله داخلی */
    }

    /* 🆕 محفظه عکس */
    .layer_img {
        width: 100%; /* ← تمام عرض کارت */
        height: auto; /* ← ارتفاع خودکار */
        margin: 5px auto;
    }

        /* 🆕 خود عکس */
        .layer_img img {
            width: 100%; /* ← ۱۰۰٪ (نه 343px) */
            height: auto; /* ← ارتفاع خودکار (نه 315px) */
            max-height: 250px; /* ← حداکثر ارتفاع */
            object-fit: cover;
            display: block;
        }

    /* 🆕 اسم شرکت */
    .Names_Porducts {
        font-size: 18px;
        margin: 15px auto 0;
    }

    /* 🆕 دکمه محصولات */
    .Details_Products {
        font-size: 16px;
        height: 35px;
        line-height: 35px;
        margin: 15px auto;
    }
    header {
        position: relative; /* برای اینکه بتونیم input رو دقیق وسط بذاریم */
        justify-content: space-between; /* آیکون‌ها چپ و راست */
        padding: 10px 15px;
    }

        /* 🆕 نوار جستجو دقیقاً وسط */
        header input {
            position: absolute; /* از جریان خارج میشه تا دقیق وسط بشینه */
            left: 50%;
            transform: translateX(-50%); /* دقیقاً وسط */
            width: 45%; /* عرض مناسب برای موبایل */
            max-width: 200px;
            height: 35px;
            font-size: 14px;
        }

    /* آیکون‌ها یکم کوچیک‌تر بشن تا جا باز بشه */
    #Home_Icon{
        font-size: 28px;
        z-index: 10; /* بالاتر از input باشن که کلیک‌پذیر باشن */
    }
}