/* ======================
   Global Styles
   ====================== */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Syne', 'Graphik Arabic', Arial, sans-serif;
    background-color: #10302b;
}

body {
    transition: opacity ease-in 0.2s;
}

body[unresolved] {
    opacity: 0;
    display: block;
    overflow: hidden;
    position: relative;
}

/* ======================
   Splash Screen
   ====================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #10302b;
    overflow: hidden;
}

.splash-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* تنسيق خاص للجوال */
@media (max-width: 768px) {
    .splash-screen img {
        object-fit: contain;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }
}

/* ======================
   Header
   ====================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    background-color: #3a7d72;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    width: 150px;
    height: auto;
}

header .menu {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

.icon {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.site-name {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    font-family: 'Graphik Arabic', Arial, sans-serif !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* تنسيق اسم الموقع للجوال */
@media (max-width: 768px) {
    .site-name {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 16px !important;
    }
}

/* ======================
   Sidebar
   ====================== */
.sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #29635a;
    padding: 20px;
    z-index: 9999;
    overflow-y: auto;
}

.sidebar a, .sidebar-link {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.sidebar a:hover, .sidebar-link:hover {
    padding-right: 10px;
    color: #ffd700;
}

.sidebar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 130px;
    height: auto;
}

.contact-button {
    background-color: #1e8b73;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 20px;
}

.scroll-up-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    font-family: 'Syne', sans-serif;
    width: 50px;
    height: 50px;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.scroll-up-button:hover {
    background-color: #f0f0f0;
}

/* ======================
   Banner
   ====================== */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 100%;
    transition: left 1s;
}

.banner img.active {
    left: 0;
}

/* ======================
   Category Buttons
   ====================== */
.button-container {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.nav-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #dbe8d9;
    color: #29635a;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin: 3px;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover, .nav-button.active {
    background-color: #29635a;
    color: #ffffff;
}
    color: #ffffff;
}

/* ======================
   Menu Items
   ====================== */
.one-food-menu {
    padding: 20px;
}

.ofm-controls {
    position: sticky;
    top: 60px;
    background-color: #10302b;
    z-index: 100;
    padding: 10px 0;
}

.ofm-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    white-space: nowrap;
}

.ofm-cat-tab {
    background-color: #1a3f38;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Syne', sans-serif;
}

.ofm-cat-tab:hover, .ofm-cat-tab.active {
    background-color: #29635a;
}

.ofm-category__title {
    color: rgb(255, 255, 255);
    font-size: 24px;
    margin: 20px 0;
    text-align: center;
}

.ofm-category__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ofm-product {
    background-color: #1a3f38;
    border-radius: 10px;
    padding: 15px;
    color: white;
    transition: transform 0.3s;
}

.ofm-product:hover {
    transform: translateY(-5px);
}

.image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.ofm-product__info {
    padding: 10px 0;
}

.ofm-product__title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.ofm-product__desc {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 10px;
}

.ofm-product__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.ofm-tag {
    display: inline-block;
    background-color: #29635a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.ofm-product__options {
    margin-top: 10px;
}

.ofm-product__options-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ofm-product__size {
    font-size: 14px;
    color: #aaa;
}

.ofm-price {
    font-size: 20px;
    font-weight: bold;
    color: #4ad504;
}

.ofm-text-sm {
    font-size: 14px;
}

.ofm-text-lg {
    font-size: 20px;
}

/* ======================
   Footer
   ====================== */
footer {
    background-color: #3a7d72;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

footer .container {
    max-width: 1000px;
    margin: 0 auto;
}

footer .footer-logo {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}

footer p {
    display: block;
    margin: 15px 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 10px;
}

footer img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.review-button {
    background-color: #f8f8f8;
    color: #29635a;
    padding: 40px 20px;
    border: none;
    border-radius: 60px;
    width: 90%;
    margin: 30px auto;
    cursor: pointer;
}

.review-button a {
    text-decoration: none;
    color: #29635a;
    font-family: 'Graphik Arabic', sans-serif;
    font-size: 24px;
    font-weight: bold;
}

footer iframe {
    width: 100%;
    height: 200px;
    border: none;
    margin-top: 20px;
    border-radius: 10px;
}

/* ======================
   Responsive Design
   ====================== */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    header .logo {
        width: 60px;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .nav-button {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ======================
   Utility Classes
   ====================== */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.ofm-line-clamp {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======================
   Product Modal (تكبير المنتج)
   ====================== */
.clickable-product {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-container {
    position: relative;
    background-color: #1a3f37;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-close:hover {
    color: #29635a;
    background-color: rgba(255, 255, 255, 0.9);
}

.modal-body {
    display: flex;
    gap: 30px;
    flex-direction: column;
}

.modal-product-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #0f2820;
    padding: 10px;
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-product-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    font-family: 'Syne', 'Graphik Arabic', Arial, sans-serif;
}

.modal-product-description {
    font-size: 18px;
    color: #dbe8d9;
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
}

.modal-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-product-tags .ofm-tag {
    background-color: #29635a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.modal-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #29635a;
}

.modal-product-size {
    font-size: 18px;
    color: #dbe8d9;
    font-weight: 500;
}

.modal-product-price {
    font-size: 28px;
    color: #29635a;
    font-weight: bold;
    background-color: rgba(41, 99, 90, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
}

/* Responsive Modal */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
    
    .modal-product-image {
        width: 45%;
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .modal-container {
        padding: 20px;
        max-height: 95vh;
    }
    
    .modal-product-title {
        font-size: 24px;
    }
    
    .modal-product-description {
        font-size: 16px;
    }
    
    .modal-product-price {
        font-size: 22px;
    }
    
    .modal-close {
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}
