.meal-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.meal-filter {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.date-filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.date-filter-form label {
    font-weight: bold;
}

.date-filter-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-button {
    padding: 8px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-button:hover {
    background: #45a049;
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.meal-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.meal-card:hover {
    transform: translateY(-5px);
}

.meal-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meal-card:hover .meal-image img {
    transform: scale(1.1);
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
}

.meal-info {
    padding: 15px;
}

.meal-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.meal-price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

/* تحديث تصميم النافذة المنبثقة */
.meal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.meal-modal.modal-show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: white;
    margin: 40px auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    min-height: auto;
    border-radius: 15px;
    overflow: hidden;
    transform: none;
    opacity: 1;
}

.modal-body {
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.modal-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 400px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.modal-details {
    flex: 1;
    padding: 30px;
    background: #fff;
    max-width: none;
    margin: 0;
    width: auto;
}

.modal-details h2 {
    font-size: 24px;
    margin: 0 0 15px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.modal-price {
    display: inline-block;
    color: white;
    background: #4CAF50;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
}

.modal-ingredients {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.modal-ingredients h4 {
    color: #333;
    margin: 0 0 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 1010;
}

.close-modal:hover {
    background: #ff0000;
    transform: scale(1.1);
}

/* تحسينات للشاشات المتوسطة والكبيرة */
@media (min-width: 768px) {
    .modal-content {
        margin: 60px auto;
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        flex: none;
        height: 250px;
        min-height: auto;
    }

    .modal-details {
        padding: 20px;
    }

    .modal-details h2 {
        font-size: 20px;
    }

    .modal-price {
        font-size: 16px;
        padding: 6px 15px;
    }

    .modal-description {
        font-size: 14px;
    }

    .modal-ingredients {
        padding: 15px;
    }

    .modal-ingredients h4 {
        font-size: 16px;
    }

    .meals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .meal-card {
        margin-bottom: 10px;
    }
    
    .meal-card .meal-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .meal-card .meal-price {
        font-size: 13px;
    }
    
    .meal-image {
        height: 120px;
    }
}

/* تحسينات إضافية للهواتف الصغيرة */
@media (max-width: 480px) {
    .meals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .meal-card {
        border-radius: 6px;
    }
    
    .meal-image {
        height: 100px;
    }
    
    .meal-card .meal-info {
        padding: 8px;
    }
    
    .meal-card .meal-info h3 {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .meal-card .meal-price {
        font-size: 12px;
    }
    
    /* تحسين النافذة المنبثقة على الهاتف */
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image, .modal-details {
        width: 100%;
    }
    
    .modal-image {
        height: 180px;
        margin-bottom: 15px;
    }
}

.no-meals-message {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    color: #856404;
    font-size: 18px;
}

/* زر السلة العائم */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5722;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 18px;
}

/* تحسين زر إضافة للسلة */
.add-to-cart-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.add-to-cart-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 16px;
}

/* نافذة السلة المنبثقة */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.cart-modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-cart:hover {
    color: #333;
}

.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart-message {
    text-align: center;
    padding: 30px 0;
    color: #777;
}

.empty-cart-message i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ddd;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    margin-left: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #4CAF50;
    font-weight: bold;
}

.remove-item {
    color: #ff5722;
    cursor: pointer;
}

/* نموذج الحجز */
.booking-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.date-range {
    display: flex;
    gap: 15px;
}

.submit-booking {
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.submit-booking:hover {
    background: #45a049;
}

/* تحسينات نموذج التوصيل */
.delivery-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.delivery-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.delivery-zone-group {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

select[name="delivery_zone"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

textarea[name="delivery_address"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 80px;
    resize: vertical;
}

input[name="room_number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

input[name="room_number"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.cart-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.cart-total > div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.cart-total .total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

/* أنماط خيارات طريقة الدفع */
.payment-method-group {
    margin-top: 20px;
}

.payment-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.payment-option i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #555;
}

.payment-option input[type="radio"]:checked + .payment-option-content i {
    color: #4CAF50;
}

.payment-option span {
    font-weight: bold;
}

/* أنماط PayPal */
.paypal-amount-info {
    margin: 15px 0;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: 4px;
}

.paypal-amount-info .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #1976d2;
}

.paypal-total-price {
    font-size: 18px;
    color: #0070ba;
}

/* تحسين زر إزالة العنصر من السلة */
.remove-item-btn {
    background: #ff5722;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
    font-size: 12px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.remove-item-btn:hover {
    background: #e64a19;
    transform: scale(1.1);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

/* تحسين مظهر Dashicons */
.dashicons {
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    font-size: 1.2em;
}

/* تحسين زر إضافة للسلة */
.add-to-cart-btn .dashicons {
    margin-left: 8px;
    font-size: 18px;
}

/* تحسين زر إزالة العنصر من السلة */
.remove-item-btn .dashicons {
    font-size: 16px;
    line-height: 1;
}

/* تحسين أيقونات طرق الدفع */
.payment-option-content .dashicons {
    font-size: 24px;
    margin-bottom: 8px;
}

/* تحسينات إضافية لتجربة المستخدم على الهاتف */
@media (max-width: 767px) {
    /* تحسين نافذة السلة */
    .cart-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
    
    /* تحسين أزرار السلة */
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    /* تحسين خيارات طريقة الدفع */
    .payment-options {
        flex-direction: row;
    }
    
    /* تحسين حقول النموذج */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    /* تحسين زر السلة العائم */
    .floating-cart {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    /* تحسين عرض التاريخ */
    .date-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-filter-form label,
    .date-filter-form input,
    .date-filter-form button {
        margin: 5px 0;
    }
    
    .filter-button {
        width: 100%;
    }
}

/* تعديل للأجهزة اللوحية */
@media (max-width: 992px) {
    .meals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* تعديل للأجهزة اللوحية الصغيرة */
@media (max-width: 768px) {
    .meals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
} 