/* Menu Page Styles */

/* Language Selector Animations */
.language-selector {
    animation: fadeIn 0.8s ease-out;
}

.d-none {
    display: none;
}
.language-card {
    animation: slideUp 0.6s ease-out 0.2s both;
}

.language-btn {
    animation: fadeInUp 0.5s ease-out both;
}

.language-btn:nth-child(1) {
    animation-delay: 0.4s;
}

.language-btn:nth-child(2) {
    animation-delay: 0.6s;
}

/* Menu Container Animations */
.menu-container {
    animation: fadeIn 0.5s ease-out;
}

.menu-header {
    animation: slideDown 0.5s ease-out;
}

.categories-swiper {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.meals-container {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Meal Item Animations */
.meal-item {
    animation: fadeInUp 0.4s ease-out both;
}

.meal-item:nth-child(1) { animation-delay: 0.1s; }
.meal-item:nth-child(2) { animation-delay: 0.2s; }
.meal-item:nth-child(3) { animation-delay: 0.3s; }
.meal-item:nth-child(4) { animation-delay: 0.4s; }
.meal-item:nth-child(5) { animation-delay: 0.5s; }

/* Category Slide Animations */
.category-slide {
    animation: fadeInScale 0.4s ease-out both;
}

.category-slide:nth-child(1) { animation-delay: 0.1s; }
.category-slide:nth-child(2) { animation-delay: 0.2s; }
.category-slide:nth-child(3) { animation-delay: 0.3s; }
.category-slide:nth-child(4) { animation-delay: 0.4s; }
.category-slide:nth-child(5) { animation-delay: 0.5s; }
.category-slide:nth-child(6) { animation-delay: 0.6s; }

/* Loading Animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* RTL Support */
[dir="rtl"] .meal-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .meal-price {
    /* margin-right: auto; */
    margin-left: 0;
}

[dir="ltr"] .meal-item {
    flex-direction: row;
}

[dir="ltr"] .meal-price {
    margin-left: auto;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .language-btn {
        width: 100%;
        max-width: 250px;
        height: 60px;
        font-size: 1.1rem;
    }
    
    .logoDiv {
        height: 45px;
        width: 45px;
        
    }
    
    .meal-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .meal-name {
        font-size: 1.1rem;
    }
    
    .meal-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .categories-swiper {
        padding: 1rem 0;
    }
    
    .category-slide {
        padding: 0.8rem;
        margin: 0 0.3rem;
    }
    
    .category-slide h5 {
        font-size: 0.9rem;
    }
    
    .meal-image {
        width: 100px;
        height: 100px;
    }
    
    .meal-name {
        font-size: 1rem;
    }
    
    .meal-description {
        font-size: 0.9rem;
    }
    
    .meal-price {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .language-selector,
    .menu-header,
    .categories-swiper {
        display: none !important;
    }
    
    .meal-item {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .meal-image {
        width: 80px;
        height: 80px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .category-slide {
        border: 2px solid #000;
    }
    
    .category-slide.active {
        background: #000;
        color: #fff;
    }
    
    .meal-item {
        border: 1px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

del {
    color: red;
    font-size: .9em;
    margin-right: 7px;
}
.language-selector {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/menu-bg.webp) no-repeat;
    background-size: cover;
    backdrop-filter: blur(10px);
}

.language-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.language-btn {
    width: 200px;
    height: 80px;
    margin: 1rem;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-btn.arabic {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.language-btn.english {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
}

.language-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.menu-container {
    display: none;
    min-height: 100vh;
    background-color: #f8f9fa;
}
.font-weight-bold {
    font-weight: bold;
} 
.menu-header {
    /* background: #0e6030; */
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}
.logoDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0e6030;
    background:#0e6030;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    padding: 5px;

}
.logo {
    max-width: 100%;
}
.greeting {
    color : #000;
    margin: 30px 0;
    font-size: 1.5em;
}

.backBtn {
    border-color: #fff;
    color:#fff;
}

.categories-swiper {
    padding: 2rem 0;
    background: white;
    margin-bottom: 2rem;
    width: 100%;
}

.category-slide {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin: 0 0.5rem;
    img {
        padding: 7px;
        background: #0e6030;
        border-radius: 50%;
        border: 2px solid #000;
    }
}

.category-slide:hover,
.category-slide.active {
    background: #0e6030;
    color: white;
    transform: translateY(-2px);
}

.swiper-button-next, .swiper-button-prev {
    color : #0e6030 !important;
}
.category-slide h5 {
    margin: 0;
    font-weight: 600;
}

.meals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.meal-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.image-holder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, .5);
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    img {
        max-width : 50%;
    }
    .close {
        position: absolute;
        top: 7%;
        right: 10%;
        i {
            color : red;
            font-size : 2em;
            cursor : pointer;
        }
    }
}

.meal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.meal-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
    max-width: 120px;
}

.meal-content {
    flex: 1;
    text-align: center;
}

.meal-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.meal-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.meal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    .meal-item {
        flex-direction: column;
        text-align: center;
    }
    .meal-item > div {
        width : 100%;
    }
    .logoDiv {
        height: 100px;
        width: 100px;
    }
    .meal-content {
        order : 1;
    }
    .meal-image {
        max-width: 100%;
    }
    .meal-info {
        width : 100%;
        
    }
    
    .meal-price {
        margin-left: 0;
        margin-top: 1rem;
        width : 100%;
    }
    .image-holder img {
        width : 90% !important;
        max-width: none;
    }
}
.categories-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 90px;
    .box {
        flex-basis: calc(100% / 2 - 20px);
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        background: #0e6030;
        color: #fff;
        text-align: center;
        cursor: pointer;
    }
    @media (max-width: 992px) {
        .box {
            flex-basis: calc(50% - 20px);
        }
    }
    @media (max-width: 600px) {
        .box {
            flex-basis: calc(50% - 20px);
        }
    }
}

.follow-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(90deg, #ff9800 0%, #ff5e62 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 20px 0 rgba(255, 152, 0, 0.4), 0 0 40px 0 rgba(255, 94, 98, 0.3);
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    width: 100%;
    animation: glow-up 3s infinite linear;
}
.s-btn {
    font-size: 1.2em;
    margin-top: 30px;
    display: block;
    text-decoration: none;
    color: #000;
}
.follow-btn:hover, .follow-btn:focus {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 0 40px 10px #ff9800, 0 0 80px 20px #ff5e62;
    text-decoration: none;
    color: #fff;
}
@keyframes glow-up {
    0% , 100%{
        box-shadow: 0 0 20px 0 rgba(255, 152, 0, 0.4), 0 0 40px 0 rgba(255, 94, 98, 0.3);
    }
    50% {
        box-shadow: 0 0 40px 5px #ff9800, 0 0 80px 10px #ff5e62;
    }
}

.meals-swiper , .popular-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}


.mealsSwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    position: relative;
    background-color: #0e6030;
    padding: 20px 20px 0;
    border-radius: 10px;
    .box {
        margin-top: 30px;
        padding: 20px;
        color: #000;
        width: 100%;
        h3 {
            text-align: left;
            color: #fff;
            font-size: 2em;
        }
        span {
            text-align: right;
            display: block;
            color: #fff;
            font-size: 1.7em;
            margin-top: 20px;
        }
    }
}

.mealsSwiper .swiper-slide img {
    display: block;
    width: 100%;
    object-fit: cover;
}
.mealsSwiper .swiper-pagination-bullet-active {
    background: #0e6030;
}

@media (max-width: 768px) {
    .mealsSwiper .swiper-slide {
        width: 250px;
        /* height: 800px; */
    }
}

@media (max-width: 480px) {
    .meals-swiper , .popular-swiper {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .mealsSwiper .swiper-slide {
        width: 200px;
        /* height: 800px; */
    }
}


 section.ads {
            background-color: #0e6030;
            .swiper-slide {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 20px;
                img {
                    border-radius: 6px;
                    max-width: 100%;
                    width: 90%;
                    height: auto;
                    min-width: 300px;
                    min-height: 300px;
                    object-fit: cover;
                }
            }
            .swiper-button-next , .swiper-button-prev , .swiper-pagination {
                color : #fff !important;
                span {
                    background: #fff;
                }
       
            } 
        }
        .icon {
            position: fixed;
            bottom: 50px;
            right: 50px;
            z-index: 1000;
            cursor: pointer;
            background: #000;
            color: #fff;
            padding: 13px;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            a {
                display: flex;
                gap : 5px;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                text-decoration: none;
                text-align: center;
                i , span {
                    color :#fff;
                }
                i {
                    font-size: 20px;
                }
            }

        }

        .testmionals {
            background: #f8f9fa;
            padding: 50px 0;
        }

        .testmionals h2 {
            text-align: left;
            margin-bottom: 30px;
            color: #0e6030;
            padding-left: 30px;
        }

        .testmionals .swiper-slide {
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            .user {
                .info {
                    display : flex;
                    align-items : center;
                    gap : 15px;
                    i {
                        font-size : 20px;
                    }
                }
                .stars {
                    display : flex;
                    gap : 15px;
                    margin : 20px 0 ;
                    .date {
                        padding : 5px;
                        background-color: #0e6030;
                        color: #fff;
                        border-radius: 5px;
                        font-size : 14px;
                    } 
                }


            }
        }

        .testmionals .swiper-slide img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-bottom: 10px;
            object-fit: cover;
        }

        .testmionals .swiper-slide h3 {
            font-size: 1.2em;
            color: #555;
            margin-bottom: 5px;
        }

        .testmionals .swiper-slide .stars {
            color: #ffc107;
            margin-bottom: 10px;
        }

        .testmionals .swiper-slide p {
            color: #777;
            font-style: italic;
        }

        .testmionals .swiper-pagination-bullet {
            background-color: #0e6030;
            opacity: 1;
        }

        .testmionals .swiper-pagination-bullet-active {
            background-color: #0e6030;
        }

        footer {
            position: sticky;
            bottom: 0;
            left: 0;
            background: #0e6030;
            z-index: 10000;
            ul {
                display: flex;
                justify-content: space-around;
                align-items: center;
                list-style : none;
                padding-left: 10px;
                padding-right: 10px;
                li{
                    width : 70px;
                    height : 70px;
                    border-radius: 50%;
                    a {
                        text-decoration: none;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        width: 100%;
                        height: 100%;
                        color : #fff;
                        p {
                            margin-bottom: 0 ;
                        }
                        i {
                            font-size: 2em;
                        }

                        &.home {
                            i {
                                font-size: 1.8em;
                            }
                            p {
                                font-size: 18px;
                            }
                        }
                    }


                }
            }
        }



        .menu-header {
            .main {
                display: flex;
                justify-content: space-between;
                align-items: center;
                i {
                    font-size: 2em;
                    position: relative;
                    color:#000;
                    cursor:pointer;
                    &::before {
                        content: '';
                        position: absolute;
                        right: 0;
                        top: 0;
                        width: 10px;
                        height: 10px;
                        border-radius: 50%;
                        background-color: #0e6030;
                    }
                }
            }
            .search {
                width: 100%;
                position: relative;
                padding: 0 30px;
                input {
                    width: 100%;
                    padding: 5px 20px;
                    border-radius: 30px;
                    outline: none;
                    border: 2px solid #000;
                }
                i {
                    position: absolute;
                    top: 50%;
                    right: 13%;
                    transform: translateY(-50%);
                    color: #777;  
                    cursor: pointer;                  
                }
            }
        }


        .pop-up {
            position: fixed;
            top: 50%;
            left: 50%;
            width: 90%;
            background:#6f9f6f;
            height: 95%;
            transform: translate(-50%, -50%);
            padding: 20px 40px;
            z-index: 100000000;
            border: 1px solid #000;
            border-radius: 30px;
            display: none;
            &.active {
                display: block;
            }
            .close {
                position: absolute;
                left: -4%;
                top: -1%;
                background: #065a06;
                padding: 15px;
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
                 border: 1px solid #000;
                i {
                    color : #fff;
                }
            }
            img {
                width: 100%;
            }
            .row {
                display: flex;
                justify-content: space-between;
                gap: 10px;
                flex-direction: row;
                margin: 20px 0;
                h3 , p {
                    padding: 0;
                }
                > * {
                    width : auto;
                }
            }
        }
        