/* ==========================================
   RESTAURANT PAGE - لیست عمودی
========================================== */

.restaurant-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ===== هدر رستوران ===== */
.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.restaurant-name-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.restaurant-name-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.restaurant-category-badge {
    background: #fff0ed;
    color: #ff5722;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.restaurant-info-section {
    flex: 1;
    min-width: 200px;
}

.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 14px;
    color: #666;
    margin: 2px 0;
}

.restaurant-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cart-btn-header {
    background: #ff5722;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
}

.cart-btn-header:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

.cart-badge {
    background: #fff;
    color: #ff5722;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.back-btn {
    background: #f0f0f0;
    color: #555;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.back-btn:hover {
    background: #e0e0e0;
}

/* ===== عنوان منو ===== */
.menu-title {
    margin-bottom: 20px;
}

.menu-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    border-right: 4px solid #ff5722;
    padding-right: 12px;
}

/* ==========================================
   MENU LIST - عمودی
========================================== */

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: 0.25s ease;
    direction: ltr;
}

.menu-item:hover {
    border-color: #ff5722;
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.08);
}

/* ===== سمت چپ: عکس + دکمه ===== */
.menu-item-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 110px;
}
.menu-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-image .no-image-placeholder {
    font-size: 40px;
    color: #ddd;
}

.add-form {
    width: 100%;
}

.add-btn-list {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-radius: 8px;
    background: #ff5722;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.add-btn-list:hover {
    background: #e64a19;
}

/* ===== سمت راست: اطلاعات ===== */
.menu-item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: right;
    direction: rtl;
}

.item-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
}

.item-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.item-price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.item-price {
    font-size: 17px;
    font-weight: 700;
    color: #ff5722;
}

.item-discount-badge {
    background: #f44336;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.item-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.item-price-new {
    font-size: 17px;
    font-weight: 700;
    color: #4caf50;
}

/* ===== نوار پایین سبد خرید ===== */
.bottom-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 999;
    border-top: 1px solid #f0f0f0;
}

.cart-summary {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cart-summary strong {
    color: #ff5722;
}

.cart-items-count {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.view-cart-btn {
    background: #ff5722;
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.view-cart-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

.bottom-spacer {
    height: 80px;
}

.empty-menu {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 16px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
    .restaurant-page {
        padding: 0 12px 80px;
    }
    
    .restaurant-header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 10px;
    }
    
    .restaurant-name-section h1 {
        font-size: 20px;
    }
    
    .restaurant-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-btn-header {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .back-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .menu-item {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .menu-item-left {
        width: 80px;
    }
    
    .menu-item-image {
        width: 70px;
        height: 70px;
    }
    
    .menu-item-image .no-image-placeholder {
        font-size: 30px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-desc {
        font-size: 12px;
    }
    
    .item-price {
        font-size: 15px;
    }
    
    .item-price-new {
        font-size: 15px;
    }
    
    .add-btn-list {
        font-size: 12px;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .menu-item {
        flex-direction: row;
        padding: 10px 12px;
        gap: 10px;
    }
    
    .menu-item-left {
        width: 70px;
    }
    
    .menu-item-image {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    
    .menu-item-image .no-image-placeholder {
        font-size: 24px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .item-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .item-price {
        font-size: 14px;
    }
    
    .item-price-new {
        font-size: 14px;
    }
    
    .item-price-old {
        font-size: 12px;
    }
    
    .item-discount-badge {
        font-size: 10px;
        padding: 1px 8px;
    }
    
    .add-btn-list {
        font-size: 11px;
        padding: 4px 0;
        border-radius: 6px;
    }
    
    .bottom-cart-bar {
        flex-direction: column;
        text-align: center;
        padding: 10px 14px;
    }
    
    .cart-summary {
        font-size: 14px;
    }
}

/* ===== پیام بسته بودن فروشگاه ===== */
.restaurant-closed-message {
    background: #fff3f3;
    border: 2px solid #f44336;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.restaurant-closed-message i {
    font-size: 48px;
    color: #f44336;
    display: block;
    margin-bottom: 12px;
}

.restaurant-closed-message h3 {
    color: #f44336;
    font-size: 20px;
    margin-bottom: 6px;
}

.restaurant-closed-message p {
    color: #888;
    font-size: 15px;
}

/* ===== دکمه غیرفعال ===== */
.add-btn-list.disabled {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-radius: 8px;
    background: #ccc;
    color: #999;
    font-size: 13px;
    cursor: not-allowed;
}

/* ===== پیک اختصاصی ===== */
.delivery-badge {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}