@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Dancing+Script:wght@400..700&family=Miniver&family=Noto+Sans:ital,wght@0,100..900;1,100..900&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');
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Aref+Ruqaa:wght@400;700&family=Dancing+Script:wght@400..700&family=Miniver&family=Noto+Sans:ital,wght@0,100..900;1,100..900&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');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-family: 'Poppins', sans-serif;
}

:root {
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-1: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;
    --site-max-width: 1300px;
}

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 75%;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}


/* عنوان القسم */

.section-titel2 {
    display: block;
    /* لأن العنصر صورة */
    margin: 0 auto;
    /* يوسّط الصورة تمامًا */
    width: 200px;
    /* حجم الصورة — عدله حسب مقاسك */
    height: auto;
    /* يحافظ على تناسب الصورة */
    padding: 120px 0 30px;
}


/* شبكة المنتجات — 3 في الصف */


/* ===========================
      DESKTOP — 3 per row
   =========================== */

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 120px 40px;
    justify-items: center;
}


/* بطاقة المنتج */

.menu-item {
    width: 300px;
    height: 420px;
    position: relative;
    text-align: center;
    transition: 0.4s ease;
    overflow: hidden;
    border-radius: 40px;
}


/* الصورة */

.menu-image {
    width: 230px;
    position: relative;
    z-index: 2;
    transition: 0.4s ease;
}


/* اسم المنتج تحت */

.product-name {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #22824a;
    z-index: 1;
    position: relative;
}


/* المربع الوردي عند Hover */

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #b7626e68;
    /* أخضر شفاف */
    border-radius: 40px;
    opacity: 0;
    transition: 0.4s ease;
    z-index: 3;
}

.menu-item:hover::before {
    opacity: 1;
}


/* الصورة تتحرك عند hover */

.menu-item:hover .menu-image {
    transform: translateY(-20px);
}


/* اسم المنتج يظهر في وسط المربع */

.menu-item:hover .product-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 4;
    margin: 0;
}


/* ===========================
      MOBILE — 1 per row
   =========================== */

@media (max-width: 768px) {
    .menu-list {
        grid-template-columns: 1fr !important;
        justify-items: center;
        gap: 40px;
        width: 100%;
    }
    .menu-item {
        width: 95% !important;
        /* يأخذ 90% من عرض الشاشة – نفس الصورة */
        max-width: 420px;
        /* حد أقصى ممتاز للجوال */
        height: 400px;
        /* نفس النسبة في الصورة */
        background: linear-gradient(#eadcdf, #b57b87);
        /* خلفية نفس الصورة */
        border-radius: 70px;
        /* زوايا كبيرة جداً */
        position: relative;
        overflow: hidden;
        padding-top: 40px;
        margin-left: 0;
        margin-right: 0;
        /* تنزل الصورة للأسفل */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* إلغاء تأثير hover */
    .menu-item::before {
        display: none !important;
    }
    /* الصورة */
    .menu-image {
        width: 60% !important;
        /* 🔥 يملأ عرض المربع */
        max-width: none !important;
        /* 🔥 يلغي أي قيود */
        height: auto !important;
        /* يمنع التشوّه */
        z-index: 2;
        position: relative;
    }
    /* الاسم تحت */
    .product-name {
        margin-top: auto;
        /* ينزل للأسفل */
        margin-bottom: 20px;
        /* نفس المسافة في الصورة */
        color: white;
        font-size: 15px;
        font-weight: 800;
        text-align: center;
        line-height: 1.4;
        z-index: 3;
    }
    .menu-item::before {
        opacity: 1 !important;
        background: rgba(231, 183, 190, 0.45);
    }
    /* النص ثابت ولا يتحرك */
    .menu-item:hover .product-name,
    .menu-item:active .product-name {
        transform: none !important;
        top: auto !important;
        left: auto !important;
        position: static !important;
        margin-top: 15px !important;
        color: white !important;
    }
    /* الصورة تتحرك للأمام عند hover */
    .menu-item:hover .menu-image {
        transform: translateY(-25px) scale(1.05) !important;
    }
}

#backBtn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    /* الجهة اليسرى */
    background: linear-gradient(135deg, #c54d4b, #ffffff);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    /* دائمًا ظاهر */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 99;
}

#backBtn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c54d4b, #e65956);
}

.backIcon {
    width: 24px;
    height: 24px;
    fill: white;
}

@media screen and (max-width: 1024px) {
    .menu-section .menu-list {
        gap: 60px;
    }
    .menu-section .menu-list .menu-item {
        width: calc(100% / 3 - 60px);
    }
}

@media screen and (max-width: 900px) {
     :root {
        --font-size-m: 1rem;
        --font-size-1: 1.3rem;
        --font-size-xl: 1.5rem;
        --font-size-xxl: 1.8rem;
    }
    .menu-section {
        margin-bottom: 0;
    }
    .menu-section .menu-list {
        gap: 30px;
    }
    .menu-section .menu-list .menu-item {
        width: calc(100% / 2 - 30px);
    }
    .menu-section .menu-list .menu-item .menu-image {
        max-width: 200px;
    }
}

@media screen and (max-width: 640px) {
    .menu-section .menu-list {
        gap: 60px;
    }
    .menu-section .menu-list .menu-itemt,
    .gallery-section .gallery-list .gallery-item {
        width: 100%;
    }
}