/* assets/css/style.css */

/* استيراد خطوط عصرية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

body {
    background-color: #f8f4f0;
    color: #333;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* الهيدر */
.header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.header-scrolled .logo img {
    height: 50px;
    width: 50px;
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.header-scrolled .logo h1 {
    font-size: 1.5rem;
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-btn:hover {
    background-color: #b07d4c;
    transform: translateY(-2px);
}

/* الشريط الإعلاني */
.announcement-bar {
    background: var(--primary-color);
    color: white;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.announcement-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* البنر */
.banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    text-align: center;
    z-index: 2;
}

.banner-overlay h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* أقسام الوجبات */
.category-section {
    margin: 60px 0;
}

.category-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    border-right: 8px solid var(--primary-color);
    padding-right: 20px;
    margin-bottom: 35px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.meal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.meal-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.meal-card:hover img {
    transform: scale(1.1);
}

.meal-info {
    padding: 20px;
}

.meal-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.meal-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.meal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(196, 154, 108, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
}

.buy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.buy-btn:hover {
    background-color: #b07d4c;
    transform: scale(1.05);
}

/* نافذة الطلب */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.close {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 10;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    padding-left: 30px;
}

/* استمارة الطلب */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.readonly-field {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

/* المشروبات */
.form-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.form-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.drink-item {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
}

.drink-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.drink-item.selected {
    border-color: var(--primary-color);
    background: rgba(196, 154, 108, 0.05);
}

.drink-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.drink-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.drink-name {
    flex: 1;
    font-weight: 600;
}

.drink-price {
    color: var(--primary-color);
    font-weight: 700;
}

.drink-quantity {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.drink-quantity label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

.drink-quantity input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.total-price {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 25px 0;
}

.submit-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    width: 100%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.submit-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* التذييل */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-section p {
    line-height: 2;
    font-size: 1.1rem;
    opacity: 0.9;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.no-meals {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
    margin: 40px 0;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 45px;
        width: 45px;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-overlay h2 {
        font-size: 1.8rem;
    }
    
    .banner-overlay p {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .meals-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .drinks-grid {
        grid-template-columns: 1fr;
    }
    
    .total-price {
        font-size: 1.2rem;
    }
}
/* شريط التنقل */
.category-nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 900;
}

.category-nav .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-nav-item {
    padding: 8px 20px;
    background: #f8f4f0;
    border-radius: 50px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-nav-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.category-nav-item i {
    font-size: 1rem;
}

/* مربع البحث */
.search-box {
    background: white;
    padding: 15px;
    border-radius: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: -25px auto 40px;
    max-width: 500px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* بطاقات معلومات الاتصال */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(196, 154, 108, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(196, 154, 108, 0.2);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-card p {
    color: #666;
    line-height: 1.8;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .category-nav .container {
        gap: 10px;
    }
    
    .category-nav-item {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        margin: -25px 20px 40px;
    }
}
/* ==================== سلة التسوق ==================== */
.cart-icon {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
}

.cart-icon i {
    font-size: 1.5rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
}

/* القائمة المنسدلة للسلة */
.cart-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-top: 15px;
    display: none;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.cart-dropdown.active {
    display: block;
}

.cart-items {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-drinks {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cart-item-total {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-total {
    padding: 15px;
    background: #f8f9fa;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.cart-total-amount {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cart-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.cart-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-btn {
    background: #f44336;
    color: white;
}

.clear-btn:hover {
    background: #d32f2f;
}

.checkout-btn {
    background: var(--primary-color);
    color: white;
}

.checkout-btn:hover {
    background: #b07d4c;
}

.cart-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

/* نافذة الدفع */
.checkout-modal .modal-content {
    max-width: 700px;
}

.cart-modal-items {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-modal-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.cart-modal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-modal-item-header h4 {
    color: var(--secondary-color);
    margin: 0;
}

.cart-modal-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-modal-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.cart-modal-item-price input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-modal-item-drinks {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 5px 0;
}

.cart-modal-item-total {
    text-align: left;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 5px;
}

.cart-modal-total {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0;
}

.customer-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.customer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* إشعارات السلة */
.cart-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: transform 0.3s ease;
    border-right: 4px solid var(--primary-color);
}

.cart-notification.show {
    transform: translateX(-50%) translateY(0);
}

.cart-notification.success i {
    color: #4caf50;
}

.cart-notification.info i {
    color: #2196f3;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 300px;
        left: -100px;
    }
    
    .cart-modal-items {
        max-height: 300px;
    }
}