/*=============== GOOGLE FONTS ===============*/

@import url("https://fonts.googleapis.com/css2?family=Carter+One&family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/

:root {
    --header-height: 3.5rem;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(353, 93%, 50%);
    --first-color-alt: hsl(353, 93%, 46%);
    --first-color-dark: hsl(353, 50%, 15%);
    --title-color: hsl(353, 48%, 12%);
    --text-color: hsl(353, 16%, 32%);
    --text-color-light: hsl(353, 16%, 48%);
    --white-color: hsl(24, 86%, 90%);
    --yellow-color: 52;
    --green-color: 116;
    --pink-color: 300;
    /* --white-color: hsl(0, 0%, 100%); */
    --black-color: hsl(0, 0%, 0%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(24, 86%, 92%);
    --shadow-small-img: drop-shadow(0 4px 16px hsla(353, 100%, 8%, .2));
    --shadow-big-img: drop-shadow(0 8px 24px hsla(353, 100%, 8%, .2));
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --second-font: "Carter One", system-ui;
    --biggest-font-size: 2.5rem;
    --bigger-font-size: 1.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}


/*========== Responsive typography ==========*/

@media screen and (min-width: 1150px) {
     :root {
        --biggest-font-size: 4.25rem;
        --bigger-font-size: 2.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}


/*=============== BASE ===============*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

input,
button,
body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

input,
button {
    outline: none;
    border: none;
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-regular);
    font-family: var(--second-font);
    line-height: 120%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/*=============== REUSABLE CSS CLASSES ===============*/

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 1rem;
}

.section__title {
    text-align: center;
    font-size: var(--bigger-font-size);
    margin-bottom: 2rem;
}

.main {
    overflow: hidden;
}

.nn1 {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 70%), rgba(0, 0, 0, 0.7)), url(../img/back2.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nn2 {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 38%), rgb(0 0 0 / 58%)), url(../img/back1.jpg);
    /* background-size: cover; */
    background-position: center;
    background-repeat: repeat;
}

.nn3 {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 46%), rgb(0 0 0 / 47%)), url(../img/back5.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nn4 {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 48%), rgba(0, 0, 0, 0.7)), url(../img/back2.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nn5 {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 48%), rgba(0, 0, 0, 0.7)), url(../img/back3.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nn6 {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 48%), rgba(0, 0, 0, 0.7)), url(../img/back3.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/*=============== HEADER & NAV ===============*/

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shadow .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-family: var(--second-font);
    color: var(--title-color);
}

.nav__logo img {
    width: 70px;
}

.nav__toggle,
.nav__close {
    display: flex;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}


/* Navigation for mobile devices */

@media screen and (max-width:1150px) {
    .nav__menu {
        position: fixed;
        top: -120%;
        left: 0;
        background-color: hsl(24, 86%, 88%);
        width: 100%;
        padding-block: 4.5rem 3.5rem;
        box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
        transition: top .4s;
    }
}

.nav__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav__link {
    position: relative;
    color: var(--title-color);
    font-family: var(--second-font);
}

.nav__link::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--first-color);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .4;
}

.nav__link:hover::after {
    width: 60%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}


/* Show menu */

.show-menu {
    top: 0;
}


/* Add shadow header */

.shadow-header {
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
    background: hsl(24, 86%, 88%);
}


/* Active link */

.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav__cart i {
    font-size: 1.3rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color 0.3s;
}

.nav__cart i:hover {
    color: var(--first-color);
}


/*=============== HOME ===============*/

.home__container {
    padding-block: 2rem 3rem;
    row-gap: 7rem;
}

.home__data {
    position: relative;
    text-align: center;
}

.home__title {
    font-size: var(--biggest-font-size);
}

.home__description {
    margin-block: 1rem 2rem;
}

.home__sticker-1,
.home__sticker-2 {
    width: 40px;
    position: absolute;
    opacity: .7;
}

.home__sticker-1 {
    right: .75rem;
    bottom: 2rem;
    rotate: 30deg;
}

.home__sticker-2 {
    left: 2.5rem;
    bottom: -4.5rem;
}

.home__images {
    position: relative;
    display: grid;
    justify-items: center;
    justify-self: center;
}

.home__ingredient {
    width: 60px;
    filter: var(--shadow-small-img);
    z-index: 2;
    position: absolute;
}

.home__board,
.home__pizza {
    filter: var(--shadow-big-img);
}

.home__pizza {
    width: 300px;
    z-index: 2;
}

.home__board {
    width: 300px;
    position: absolute;
    bottom: -.5rem;
    left: -.15rem;
}

.home__leaf-1 {
    top: -1rem;
}

.home__pepperoni {
    top: 2rem;
    right: -.5rem;
}

.home__mushroom {
    bottom: 2rem;
    right: -.5rem;
}

.home__olive {
    bottom: -1rem;
}

.home__leaf-2 {
    left: -.5rem;
    bottom: 2rem;
}

.home__tomato {
    top: 2rem;
    left: -.5rem;
}


/*=============== BUTTON ===============*/

.button {
    display: inline-flex;
    justify-content: center;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 1rem 1.5rem;
    font-weight: var(--font-semi-bold);
    border-radius: 4rem;
    box-shadow: 0 8px 24px hsla(353, 100%, 40%, .4);
    transition: background-color .4;
}

.button:hover {
    background-color: var(--first-color-alt);
}


/*=============== ABOUT ===============*/

.about {
    background-color: var(--container-color);
}

.about__container {
    row-gap: 2rem;
    padding-bottom: 2rem;
}

.about__data {
    position: relative;
    text-align: center;
}

.about__data .section__title {
    margin-bottom: 1rem;
}

.about__description {
    margin-bottom: 2rem;
}

.about__sticker {
    width: 40px;
    position: absolute;
    right: 0;
    bottom: -2rem;
}

.about__img {
    width: 320px;
    justify-self: center;
    filter: var(--shadow-big-img);
}


/*===================== Services ========== */

.services {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 70%), rgba(0, 0, 0, 0.7)), url(../img/back1.jpg) no-repeat;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.services__container {
    row-gap: 2rem;
    padding-block: 1rem;
}

.services__card {
    text-align: center;
    /* background-color: var(--container-color); */
    padding: 3rem 1.25rem;
    border-radius: 1rem;
    border: 2px solid var(--container-color);
    transition: border .4s;
}

.sercices__icon {
    display: block;
    font-size: 4rem;
    color: var(--first-color);
    margin-bottom: .75rem;
}

.services__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.5rem;
}

.services__card:hover {
    border: 2px solid var(--first-color);
}

.services1 {
    background-image: linear-gradient(rgb(255 255 255 / 16%), rgb(251 219 198 / 80%)), url(../img/pizza/pizza.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services2 {
    background-image: linear-gradient(rgb(255 255 255 / 16%), rgb(251 219 198 / 80%)), url(../img/manakish/manoushzaatar.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services3 {
    background-image: linear-gradient(rgb(255 255 255 / 16%), rgb(251 219 198 / 80%)), url(../img/Appetizers/appetizersphoto.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services4 {
    background-image: linear-gradient(rgb(255 255 255 / 16%), rgb(251 219 198 / 80%)), url(../img/Pide/pide.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services5 {
    background-image: linear-gradient(rgb(255 255 255 / 16%), rgb(251 219 198 / 80%)), url(../img/kaak/extra.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services6 {
    background-image: linear-gradient(rgb(255 255 255 / 16%), rgb(251 219 198 / 80%)), url(../img/Breakfast/Sujuk\ egg\ breakfast.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services__description {
    color: var(--first-color);
}


/*=============== POPULAR ===============*/

.popular__container {
    grid-template-columns: 100%;
    row-gap: 3rem;
    padding-bottom: 2rem;
}

.popular__data .section__title {
    margin-bottom: 1rem;
}

.popular__description {
    text-align: center;
}

.popular__swiper {
    position: relative;
}

.popular__dish {
    width: 220px;
    filter: var(--shadow-big-img);
    position: absolute;
    inset: 0;
    top: -.85rem;
    margin-inline: auto;
}

.popular__card,
.popular__img {
    width: 200px;
}

.popular__img {
    transform: scale(.8) rotate(-90deg);
    transition: transform .4s;
}

.popular__title {
    font-size: var(--h3-font-size);
    color: var(--first-color);
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity .4s;
}


/* Swiper class */

.swiper {
    margin-inline: initial;
    overflow: visible;
}

:is(.swiper-slide-active,
.swiper-slide-duplicate-active) .popular__img {
    transform: scale(1) rotate(0);
}

:is(.swiper-slide-active,
.swiper-slide-duplicate-active) .popular__title {
    opacity: 1;
}


/*=============== RECIPE ===============*/

.recipe {
    background-color: var(--container-color);
}

.recipe__container {
    row-gap: 2rem;
    padding-bottom: 2rem;
}

.recipe__image {
    width: 60px;
    filter: var(--shadow-small-img);
}

.recipe__name {
    font-size: var(--normal-font-size);
    margin-bottom: .25rem;
}

.recipe__description {
    font-size: var(--small-font-size);
}

.recipe__ingredient {
    display: flex;
    align-items: center;
    column-gap: .75rem;
}

.recipe__img {
    width: 320px;
    justify-self: center;
    filter: var(--shadow-big-img);
}


/*=============== PRODUCTS ===============*/

.products__container {
    padding-top: 3.5rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 1.5rem;
}

.products__card {
    position: relative;
    background-color: var(--container-color);
    padding: 5rem .75rem 1.25rem .75rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px hsla(353, 100%, 8%, .1);
}

.products__img {
    width: 120px;
    position: absolute;
    top: -3.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__imgtesto {
    width: 175px;
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img223n {
    width: 250px;
    position: absolute;
    top: -3.5rem;
    left: -2rem;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__imgextra2 {
    width: 90px;
    position: absolute;
    top: -4rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img2y {
    width: 180px;
    position: absolute;
    top: -.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__imgg {
    width: 130px;
    position: absolute;
    top: -3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s
}

.products__imgbreak {
    width: 1770px;
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__imgoreo {
    width: 127px;
    position: absolute;
    top: -2.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img5 {
    /* width: 120px; */
    position: absolute;
    /* top: -3.5rem; */
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
    transform: rotate(90deg);
    top: -4rem;
    width: 83px;
    border-radius: 1rem;
}

.products__img6 {
    width: 165px;
    position: absolute;
    top: -3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img2 {
    width: 120px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img2197 {
    width: 120px;
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img3 {
    width: 90px;
    position: absolute;
    top: -3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__img31 {
    width: 190px;
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    filter: var(--shadow-small-img);
    transition: transform .4s;
}

.products__name {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

.products__price {
    font-family: var(--second-font);
    font-size: var(--h1-font-size);
    line-height: 120%;
    color: var(--first-color);
}

.products__button {
    position: absolute;
    right: .75rem;
    bottom: 1.25rem;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 4px;
    border-radius: .5rem;
    font-size: 1.5rem;
    display: inline-flex;
    box-shadow: 0 4px 16px hsla(353, 100%, 40%, .4);
    cursor: pointer;
    transition: background-color .4s;
}

.products__button:hover {
    background-color: var(--first-color-alt);
}

.products__price p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #444;
}

.products__price small {
    color: #777;
    font-size: 0.8rem;
}

.products__card:hover .products__img {
    transform: translateY(-.5rem);
}

.products__card:hover .products__img2 {
    transform: translateY(-.5rem);
}

.size-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-btn {
    background-color: var(--first-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.size-btn.active,
.size-btn:hover {
    background-color: var(--first-color-alt);
}


/* ============= Services _ Modal ========== */

.vertical {
    background-image: linear-gradient(rgb(0 0 0 / 45%), rgb(0 0 0 / 64%)), url(../img/bar4.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}


/* MODAL */


/* ==================== MODAL STYLING ==================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    /* <-- هذا يجعل المودال في وسط الصفحة تمامًا */
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff4b2b;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
}

.order-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* gap: 1.5rem; */
}

.order-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f7f7;
    padding: 1.2rem;
    border-radius: 1rem;
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.order-card img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.order-card a {
    text-decoration: none;
    background-color: #ff4b2b;
    color: #fff;
    padding: 0.55rem 1.2rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.order-card a:hover {
    background-color: #ff6b4d;
    transform: scale(1.05);
}


/* Responsive adjustments */

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }
    .order-card {
        width: 140px;
        padding: 1rem;
    }
    .order-card img {
        width: 80px;
    }
    .modal h2 {
        font-size: 1.5rem;
    }
}


/* ==================== FIRST MODAL (DELIVERY OR PICKUP) ==================== */

.choice-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.choice-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.choice-buttons button {
    background-color: #ff4b2b;
    color: #fff;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.choice-buttons button:hover {
    background-color: #ff6b4d;
    transform: scale(1.05);
}


/*=============== CONTACT ===============*/

.contact__container {
    position: relative;
    background-color: var(--first-color-dark);
    padding-top: 3.5rem;
    border-radius: 3rem;
    overflow: hidden;
    row-gap: 3rem;
}

.contact__container .section__title,
.contact__title,
.contact__address {
    color: var(--white-color);
}

.contact__info {
    text-align: center;
    row-gap: 2rem;
    margin-bottom: 3rem;
}

.contact__title {
    margin-bottom: 1rem;
}

.contact__social {
    display: flex;
    justify-content: center;
    column-gap: 1rem;
}

.contact__social-link {
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .4s;
}

.contact__social-link:hover {
    transform: translateY(-.25rem);
}

.contact__address {
    font-style: normal;
}

.contact__map {
    color: var(--first-color);
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    margin-top: .5rem;
    font-size: 1rem;
}

.contact__map span {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
}

.contact__image {
    justify-self: center;
}

.contact__img {
    width: 300px;
}

.contact__sticker-1,
.contact__sticker-2,
.contact__sticker-3 {
    width: 40px;
    position: absolute;
    opacity: .7;
}

.contact__sticker-1 {
    top: 8rem;
    left: 1.5rem;
}

.contact__sticker-2 {
    right: 1.5rem;
    bottom: 23rem;
}

.contact__sticker-3 {
    left: 2rem;
    bottom: 6rem;
}


/*=============== FOOTER ===============*/

.footer {
    padding-block: 4rem 2rem;
    background-color: var(--container-color);
}

.footer__container,
.footer__contact {
    row-gap: 3rem;
}

.footer__logo {
    justify-self: center;
    font-size: var(--h1-font-size);
    font-family: var(--second-font);
    color: var(--first-color);
}

.footer__titile {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.footer__social,
.footer__pay,
.footer__form {
    display: flex;
    column-gap: 1rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .4s;
}

.footer__social-link:hover {
    transform: translateY(-.25rem);
}

.footer__pay-img {
    width: 30;
    filter: var(--shadow-small-img);
}

.footer__form {
    padding: .5rem;
    background-color: var(--container-color);
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
    border-radius: 4rem;
}

.footer__input {
    width: 100%;
    background: transparent;
    padding-left: .75rem;
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.footer__input::placeholder {
    color: var(--text-color);
}

.footer__button {
    padding-block: .75rem;
    cursor: pointer;
}

.footer__policy {
    display: flex;
    column-gap: 2rem;
    justify-content: center;
    margin-top: 5rem;
}

.footer__link {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.footer__copy {
    display: block;
    margin-top: 2rem;
    text-align: center;
    font-size: var(--small-font-size);
}


/*=============== Card =============== */

.new {
    background-attachment: fixed;
    background: linear-gradient(rgb(255 255 255 / 70%), rgba(0, 0, 0, 0.7)), url(../img/back2.jpg) no-repeat;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.new__container {
    row-gap: 2.5rem;
    padding-bottom: 1.5rem;
    cursor: pointer;
}

.new__card {
    justify-self: center;
}

.new__img {
    width: 270px;
    margin-bottom: 1rem;
}

.new__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--first-color);
    padding-right: .75rem;
}

.new__link i {
    font-size: 1.25rem;
    transition: .3s;
}

.new__title {
    font-size: var(--h2-font-size);
    margin-bottom: .5rem;
    color: var(--first-color);
}

.new__link:hover i {
    transform: translateX(.25rem);
}


/*=============== MENU SECTION ===============*/

.menu {
    background-image: linear-gradient(rgb(0 0 0 / 50%), rgb(251 219 198 / 54%)), url(../img/pizzabackground.jpg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.menu__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
}

.menu__img {
    cursor: pointer;
    border-radius: 1rem;
    transition: transform .3s;
    box-shadow: var(--shadow-big-img);
}

.menu__img:hover {
    transform: scale(1.05);
}

.menu__btn {
    text-align: center;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--first-color);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    border-radius: 2rem;
    transition: background .3s;
}

.button:hover {
    background-color: var(--first-color-alt);
}


/*=============== MODAL ===============*/

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-fixed);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}


/* ===== محتوى المودال ===== */

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 1rem;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease-in-out;
}


/* ===== زر الإغلاق ===== */

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--first-color);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--first-color-alt, #fff);
}


/*=============== RESPONSIVE DESIGN ===============*/

@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 75vh;
        border-radius: 0.75rem;
    }
    .close {
        top: 5px;
        right: 15px;
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .modal {
        padding: 0.5rem;
    }
    .modal-content {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 0.5rem;
    }
    .close {
        top: 0;
        right: 10px;
        font-size: 1.8rem;
    }
}


/*=============== Responsive ===============*/

@media screen and (max-width: 768px) {
    .menu__container {
        grid-template-columns: 1fr;
    }
}


/*=============== SCROLL BAR ===============*/

::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(24, 32%, 75%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(24, 32%, 65%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(24, 32%, 55%);
}


/*=============== SCROLL UP ===============*/

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: 3rem;
    background-color: var(--body-color);
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, .2);
    color: var(--title-color);
    display: inline-flex;
    padding: 6px;
    font-size: 1.25rem;
    border-radius: .5rem;
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}


/* Show Scroll Up */

.show-scroll {
    bottom: 3rem;
}


/*=============== BREAKPOINTS ===============*/


/* For small devices */

@media screen and (max-width:320px) {
    .container {
        margin-inline: 1rem;
    }
    .services__card {
        padding-block: 1.5rem;
    }
    .products__container {
        grid-template-columns: 150px;
        justify-content: center;
    }
    .footer__form {
        background-color: transparent;
        box-shadow: none;
        flex-direction: column;
        row-gap: 1rem;
        padding: 0;
    }
    .footer__input {
        background-color: var(--container-color);
        box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
        padding: .75rem 1rem;
        border-radius: 4rem;
    }
    .new__img {
        width: 230px;
    }
    .new__link {
        padding-right: 0;
    }
}


/* For medium devices */

@media screen and (min-width:576px) {
    .home__container,
    .about__container,
    .popular__container,
    .recipe__container {
        grid-template-columns: 380px;
        justify-content: center;
    }
    .services__container {
        grid-template-columns: 360px;
        justify-content: center;
    }
    .products__container {
        grid-template-columns: repeat(2, 160px);
        justify-content: center;
    }
    .contact__container {
        width: 450px;
        margin-inline: auto;
    }
    .footer__form {
        width: 360px;
    }
}

@media screen and (min-width:768px) {
    .popular__swiper {
        width: 600px;
        overflow-x: clip;
        justify-self: center;
    }
    .products__container {
        grid-template-columns: repeat(3, 160px);
    }
    .services__container {
        grid-template-columns: repeat(2, 352px);
    }
    .footer__contact {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
    .footer__contact div:nth-child(3) {
        grid-column: 1 / 3;
    }
    .footer__titile {
        text-align: center;
    }
    .footer__social,
    .footer__pay {
        column-gap: 1.5rem;
    }
    .new__container {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
    }
}


/* For large devices */

@media screen and (min-width:1150px) {
    .container {
        margin-inline: auto;
    }
    .section {
        padding-block: 7rem 2rem;
    }
    .section__title {
        margin-bottom: 4rem;
    }
    .nav {
        height: calc(var(--header-height) + 2rem);
    }
    .nav__toggle,
    .nav__close {
        display: none;
    }
    .nav__list {
        flex-direction: row;
        column-gap: 4rem;
    }
    .home__container {
        grid-template-columns: 515px 555px;
        column-gap: 3rem;
        align-items: start;
        padding-block: 10rem 4rem;
    }
    .home__data {
        text-align: initial;
        margin-top: 2rem;
    }
    .home__description {
        margin-bottom: 3.5rem;
        padding-right: 6rem;
    }
    .home__sticker-1,
    .home__sticker-2 {
        width: 50px;
    }
    .home__sticker-1 {
        right: 3rem;
        top: 1rem;
        bottom: 0;
    }
    .home__sticker-2 {
        left: 16rem;
        bottom: 3rem;
    }
    .home__board,
    .home__pizza {
        width: 520px;
    }
    .home__board {
        bottom: -1rem;
    }
    .home__ingredient {
        width: 100px;
    }
    .home__leaf-1 {
        top: -2rem;
    }
    .home__pepperoni {
        right: -1rem;
        top: 3.5rem;
    }
    .home__mushroom {
        right: -1rem;
        bottom: 3.5rem;
    }
    .home__olive {
        bottom: -2rem;
    }
    .home__leaf-2 {
        left: -1rem;
        bottom: 3.5rem;
    }
    .home__tomato {
        left: -1rem;
        top: 3.5rem;
    }
    .about__container {
        grid-template-columns: 450px 440px;
        align-items: center;
        column-gap: 6rem;
    }
    .about__img {
        order: -1;
        width: 450px;
    }
    .about__data {
        text-align: initial;
    }
    .about__data .section__title {
        margin-bottom: 1.5rem;
        text-align: initial;
    }
    .about__description {
        margin-bottom: 3.5rem;
    }
    .about__sticker {
        width: 50px;
        right: 6rem;
        bottom: 0rem;
    }
    .services__container {
        grid-template-columns: repeat(3, 352px);
        padding-block: 2.5rem 4rem;
    }
    .services__card {
        padding: 3.5rem 2rem;
    }
    .popular__container {
        grid-template-columns: 470px;
        row-gap: 5rem;
        padding-bottom: 3rem;
    }
    .popular__data .section__title {
        margin-bottom: 1.5rem;
    }
    .popular__swiper {
        width: 1000px;
    }
    .popular__card,
    .popular__img {
        width: 350px;
    }
    .popular__dish {
        width: 390px;
        top: -1.5rem;
    }
    .popular__title {
        margin-top: 3rem;
        font-size: var(--h2-font-size);
    }
    .recipe__container {
        grid-template-columns: 360px 550px;
        align-items: center;
        column-gap: 6rem;
        padding-bottom: 3rem;
    }
    .recipe__ingredient {
        column-gap: 1.5rem;
    }
    .recipe__image {
        width: 80px;
    }
    .recipe__name {
        font-size: var(--h3-font-size);
    }
    .recipe__description {
        font-size: var(--normal-font-size);
    }
    .recipe__img {
        width: 550px;
    }
    .products__container {
        grid-template-columns: repeat(3, 250px);
        gap: 7.5rem 4rem;
    }
    .products__card {
        padding: 10rem 1.5rem 1.5rem;
        border-radius: 2rem;
    }
    .products__img {
        width: 200px;
        top: -4rem;
    }
    .products__imgtesto {
        width: 256px;
        top: 0;
    }
    .products__img223n {
        width: 200px;
        top: 0;
    }
    .products__imgbreak {
        width: 256px;
        top: 0;
    }
    .products__img2y {
        width: 250px;
        top: 0rem;
    }
    .products__imgoreo {
        width: 210px;
        top: -3rem;
    }
    .products__img3 {
        width: 150px;
        top: -4rem;
    }
    .products__img31 {
        width: 250px;
        top: -4rem;
    }
    .products__img5 {
        /* width: 120px; */
        position: absolute;
        /* top: -3.5rem; */
        left: 0;
        right: 0;
        margin: 0 auto;
        filter: var(--shadow-small-img);
        transition: transform .4s;
        /* transform: rotate(90deg); */
        top: -3rem;
        width: 112px;
        border-radius: 1rem
    }
    .products__imgextra2 {
        width: 145px;
        top: -4rem;
    }
    .products__img2 {
        width: 200px;
        top: 0;
    }
    .products__img2197 {
        width: 200px;
        top: 0;
    }
    .products__img6 {
        width: 280px;
        top: -.5rem;
    }
    .products__name {
        font-size: var(--h2-font-size);
    }
    .products__button {
        right: 1.5rem;
        bottom: 1.5rem;
        padding: 6px;
    }
    .contact__container {
        width: initial;
        grid-template-columns: 370px 350px;
        justify-content: center;
        column-gap: 6rem;
        border-radius: 4rem;
    }
    .contact__img {
        width: 350px;
    }
    .contact__image {
        order: -1;
    }
    .contact__info,
    .contact__data .section__title {
        text-align: initial;
    }
    .contact__data {
        margin-top: 2rem;
    }
    .contact__info {
        grid-template-columns: repeat(2, max-content);
    }
    .contact__title {
        font-size: var(--h2-font-size);
    }
    .contact__social {
        justify-content: initial;
    }
    .contact__sticker-1,
    .contact__sticker-2,
    .contact__sticker-3 {
        width: 50px;
    }
    .contact__sticker-1 {
        left: 4rem;
    }
    .contact__sticker-2 {
        right: 4rem;
        top: 8rem;
        bottom: 0;
    }
    .contact__sticker-3 {
        left: 10rem;
        bottom: 4rem;
    }
    .footer {
        padding-bottom: 3rem;
    }
    .footer__contact {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer__contact div:nth-child(3) {
        grid-column: initial;
    }
    .footer__contact div:nth-child(2) {
        order: 1;
        justify-self: end;
    }
    .footer__contact div:nth-child(1) {
        justify-self: start;
    }
    .scrollup {
        right: 3rem;
    }
    .new__container {
        grid-template-columns: repeat(2, max-content);
        padding-bottom: 4.5rem;
        gap: 4.5rem;
    }
    .new__img {
        width: 450px;
        margin-bottom: 1.25rem;
    }
    .new__title {
        font-size: var(--h3-font-size);
    }
}


/* cart */

.cart__container {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.cart__items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.cart__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.cart__img {
    width: 50px;
    border-radius: 8px;
}

.cart__details {
    flex: 1;
    margin-left: 10px;
}

.cart__remove {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: red;
}

.cart__total {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
}

.modal__qty button {
    padding: 5px 10px;
    font-size: 18px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.modal__qty input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    padding: 5px;
}

.contact__delivery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    /* يخلي الصور تنزل تحت بعض */
    max-width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    /* يمنع أي عنصر يطلع برا */
}

.contact__delivery img {
    flex: 1 1 80px;
    /* يخلي الصورة تتقلص تلقائي لو المساحة ضيقة */
    max-width: 100px;
    width: 100%;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.contact__delivery img:hover {
    transform: scale(1.05);
}


/* تحكم إضافي للشاشات الصغيرة */

@media screen and (max-width: 600px) {
    .contact__delivery {
        gap: 0.5rem;
    }
    .contact__delivery img {
        max-width: 70px;
    }
}


/*=============== Home =============  */

.home2 {
    position: relative;
}

.home__bg2,
.home__blur2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home__bg2 {
    object-fit: cover;
    object-position: center;
}

.home__blur2 {
    background-color: var(--opacity-color-20);
    backdrop-filter: blur(40px);
    transition: background-color .4s;
}

.home__container2 {
    position: relative;
    padding-block: 2rem 3rem;
    row-gap: 3rem;
}

.home__data2 {
    text-align: center;
    color: var(--white-color);
}

.home__title2 {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-semi-bold);
    line-height: 110%;
    margin-bottom: 1rem;
}

.home__description2 {
    margin-bottom: 2rem;
}

.home__swiper2 {
    max-width: 320px;
    border-radius: 1.5rem;
}

.home__swiper2 .swiper-button-prev::after,
.home__swiper2 .swiper-button-next::after {
    content: '';
}

.home__swiper2 :is(.swiper-button-prev,
.swiper-button-next) {
    color: var(--white-color);
    font-size: 1.5rem;
    background-color: var(--opacity-color-30);
    backdrop-filter: blur(24px);
    width: 2rem;
    height: 2rem;
    border-radius: .25rem;
    top: initial;
    bottom: 1.25rem;
    transition: background-color .4s;
}

.home__swiper2 .swiper-button-prev {
    left: initial;
    right: 4rem;
}

.home__swiper2 .swiper-button-next {
    right: 1.25rem;
}

@media screen and (max-width:320px) {
    .container {
        margin-inline: 1rem;
    }
    .home__title2 {
        font-size: 2.5rem;
    }
}

@media screen and (min-width:576px) {
    .home__container2 {
        grid-template-columns: 400px;
        justify-content: center;
    }
    .home__swiper2 {
        max-width: 400px;
    }
}

@media screen and (min-width:1150px) {
    .container {
        margin-inline: auto;
    }
    .section {
        padding-block: 7rem 2rem;
    }
    .section__title {
        margin-bottom: 4rem;
    }
    .home__container2 {
        grid-template-columns: 520px 700px;
        align-items: center;
        padding-block: 6rem 9rem;
        gap: 0;
    }
    .home__data2 {
        text-align: initial;
        transform: translateX(3rem);
        z-index: 5;
    }
    .home__description2 {
        padding-right: 6rem;
        margin-bottom: 4rem;
    }
    .home__swiper2 {
        max-width: 700px;
        transform: translateX(-3rem);
    }
    .home2 .swiper-button-prev,
    .home2 .swiper-button-next {
        bottom: 2rem;
    }
    .home2 .swiper-button-prev {
        right: 4.5rem;
    }
    .home2 .swiper-button-next {
        right: 2rem;
    }
}