@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    font-family: "Tajawal", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; 
}

html, body {
    overflow-x: hidden; /* منع التمرير الأفقي */
}

header {
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
}

.navigation a{
    color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}

.navigation a:hover{
    color: #601cfc;
}

.ff{
    width: 70px;
}

.product_pic {
    background-color: white;
    display: flex;
    flex-wrap: wrap; /* يسمح باللف لو المساحة ضيقة */
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    gap: 20px; /* مسافة بين الصورة والنص */
}

.product_pic img{
    width: 300px; /* أقل من قبل لتوفير مساحة */
    height: auto;
    border-radius: 10px;
}

.text {
    flex: 1 1 300px; /* يسمح بالتوسع والانكماش مع حد أدنى */
    min-width: 280px;
}

.text ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    list-style-type: disc;
    max-width: 100%;
    overflow-wrap: break-word; /* لف النص داخل القائمة */
}

main {
    padding: 100px 200px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* تعويض ارتفاع الهيدر */
main {
    padding-top: 100px;
}

.ingrediant{
    margin-top: 30px;
}

.footer {
    background-color: #000016;
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span {
    color: #3a6cf4;
}

.footer .social-icons a{
    font-size: 1.3em;
    padding: 0 12px 0 0;
}

.social-icons a {
    color: #fff;
    font-size: 1.7em;
    padding-right: 30px;
}

/* ==== ميديا كويري لجعل الصفحة ريسبونسف ==== */

/* شاشات أقل من 1024 بكسل */
@media (max-width: 1023px) {
    header {
        padding: 10px 40px;
        flex-wrap: wrap;
    }

    .navigation {
        width: 100%;
        justify-content: center;
    }

    .navigation a {
        padding-left: 15px;
        font-size: 1em;
    }

    main {
        padding: 100px 40px 40px;
        margin-top: 50px;
    }

    .product_pic {
        flex-direction: column;
        align-items: center;
        padding: 20px 20px;
    }

    .product_pic img {
        width: 80%;
        max-width: 400px;
        height: auto;
        margin-bottom: 20px;
    }

    .text {
        width: 100%;
        min-width: auto;
    }
}

/* شاشات أقل من 640 بكسل */
@media (max-width: 640px) {
    header {
        padding: 10px 20px;
    }

    .navigation {
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .navigation a {
        padding-left: 10px;
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    main {
        padding: 90px 20px 30px;
    }

    .product_pic {
        padding: 15px 10px;
    }

    .product_pic img {
        width: 100%;
        max-width: none;
        margin-bottom: 15px;
    }
}

/* شاشات أقل من 400 بكسل */
@media (max-width: 400px) {
    header {
        padding: 8px 10px;
    }

    .navigation a {
        font-size: 0.9em;
        padding-left: 8px;
    }

    main {
        padding: 80px 10px 20px;
    }

    .product_pic {
        padding: 10px 5px;
    }

    .product_pic img {
        width: 100%;
    }
}
