/* Elegant Template Styles */

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

body {
    background-color: #fcfbf9;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

/* RTL support */
html[dir="rtl"] {
    text-align: right;
}

/* Hero Section */
.menu-hero {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px 20px;
    color: #fff;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.restaurant-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.restaurant-name {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.restaurant-tagline {
    font-size: 14px;
    color: #e2e8f0;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Lang button */
.lang-switch-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

html[dir="rtl"] .lang-switch-container {
    right: auto;
    left: 20px;
}

.lang-btn {
    background-color: rgba(255,255,255,0.9);
    color: #1e293b;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sticky Category navigation */
.categories-nav {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    padding: 14px 20px;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-link {
    white-space: nowrap;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.category-link:hover {
    color: var(--accent-theme);
    background-color: #fff;
}

/* Container */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

.category-section {
    margin-bottom: 40px;
}

.category-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.category-title {
    font-size: 20px;
    color: var(--primary-theme);
    font-weight: 700;
}

.category-desc {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Items Grid & Cards */
.items-grid {
    display: grid;
    gap: 20px;
}

.menu-item-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.menu-item-card:hover {
    transform: translateY(-2px);
}

.item-img-wrapper {
    width: 110px;
    position: relative;
    flex-shrink: 0;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: #f1c40f;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.item-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 12px;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-theme);
}

.item-description {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
    flex-grow: 1;
}

.no-items {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    padding: 10px 0;
}

/* Out of stock details */
.unavailable-card {
    opacity: 0.65;
    background-color: #f8fafc;
}

.out-of-stock-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 2px 8px;
    background-color: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* Footer styling */
.menu-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.footer-address, .footer-phone {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.powered-by {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 12px;
}
