/**
 * Styles for Restaurant Menu Display
 */

/* Layout with Sidebar for Managers/Admins */
.zs-menu-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar on the right (first in RTL) */
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

.zs-menu-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.zs-menu-content-wrapper {
    min-width: 0; /* Prevent overflow */
}

/* Responsive for menu with sidebar */
@media (max-width: 1024px) {
    .zs-menu-wrapper {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    .zs-menu-sidebar {
        position: static; /* Remove sticky on mobile */
        margin-bottom: 20px;
    }
    
    /* منوی آکاردئونی در موبایل - حذف شده چون در admin-frontend.css تعریف شده */
}

.zs-menu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

.zs-menu h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #d4a574;
    padding-bottom: 10px;
}

.zs-restaurant-description {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-right: 4px solid #d4a574;
    border-radius: 5px;
    line-height: 1.8;
    color: #555;
}

.zs-menu-category {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zs-category-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #d4a574;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.zs-category-desc {
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

.zs-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.zs-menu-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.zs-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zs-item-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #f5f5f5;
}

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

.zs-item-content {
    flex: 1;
}

.zs-item-name {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.zs-item-price {
    font-size: 1.3em;
    color: #d4a574;
    font-weight: bold;
    margin-bottom: 10px;
    direction: ltr;
    text-align: left;
}

.zs-item-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.zs-item-components {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-style: italic;
}

.zs-item-gallery {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zs-item-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.zs-item-gallery img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .zs-menu {
        padding: 10px;
    }
    
    .zs-menu-items {
        grid-template-columns: 1fr;
    }
    
    .zs-menu h2 {
        font-size: 1.5em;
    }
    
    .zs-category-title {
        font-size: 1.2em;
    }
}

