:root {
    --accent-color: #b89f8a;
    --bg-top: #f3efe6;
    --bg-bottom: #ffffff;
    --text-main: #333333;
    --text-light: #7a7a7a;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-bottom);
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 400px);
    background-repeat: no-repeat;
    min-height: 100vh;
}

[dir="rtl"] {
    --text-align: right;
    font-family: 'Cairo', sans-serif;
}
[dir="ltr"] {
    --text-align: left;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-top);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.splash-logo-placeholder {
    width: 100px; height: 100px;
    background: transparent;
    color: var(--accent-color);
    font-size: 3rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadePulse 2.5s infinite;
}
@keyframes fadePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 120px;
    animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.menu-header {
    padding: 24px 24px 32px;
    position: relative;
    text-align: center;
}
.lang-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-main);
    cursor: pointer;
    text-transform: uppercase;
}
[dir="rtl"] .lang-toggle {
    right: auto;
    left: 24px;
}
.restaurant-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}
.logo-circle {
    width: 120px; height: 120px;
    color: var(--accent-color);
    font-size: 4rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}
.restaurant-name {
    display: none; /* Hide text name if logo exists, as per screenshot */
}

/* Main Nav */
.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.menu-categories {
    display: flex;
    overflow-x: auto;
    padding: 0 24px;
    gap: 32px;
    scrollbar-width: none;
}
.menu-categories::-webkit-scrollbar { display: none; }
.category-btn {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 300;
    white-space: nowrap;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.category-btn.active {
    font-weight: 500;
    border-bottom-color: var(--accent-color);
}

/* Subcategories (Chips) */
.subcategories-container {
    display: flex;
    overflow-x: auto;
    margin: 0 -24px 24px;
    padding: 0 24px;
    gap: 12px;
    scrollbar-width: none;
}
.subcategories-container::-webkit-scrollbar { display: none; }
.subcategory-chip {
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 400;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.subcategory-chip.active {
    background: var(--accent-color);
    color: #fff;
}

/* Sections */
.menu-sections {
    padding: 24px;
}
.menu-category-section {
    margin-bottom: 48px;
    scroll-margin-top: 120px;
}
.category-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-main);
}
.category-desc {
    display: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.product-card:active {
    transform: scale(0.98);
}
.product-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-top);
}
.product-image {
    width: 100%; height: 100%;
    object-fit: cover;
}
.image-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, #f5f5f5 25%, #eeeeee 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-info {
    padding: 12px;
}
.product-title {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1.3;
}
.product-short-desc {
    display: none;
}
.product-price-row {
    display: flex;
    flex-direction: column;
}
.product-price {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
}
.product-allergens {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-wrapper {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
[dir="rtl"] .modal-close { right: auto; left: 0; }
.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
}
.modal-image-section {
    background: var(--bg-top);
    padding: 16px;
    padding-bottom: 0; /* Let the image sit on the bottom of the section */
}
.modal-image-section img, .modal-image-section .image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}
.modal-details {
    padding: 24px;
}
.modal-title {
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.modal-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 24px;
}
.modal-price-row {
    font-size: 1.1rem;
    color: var(--accent-color);
}
.modal-extra-info {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}
