/* ==========================================================
   store.css — التنسيقات المشتركة لصفحات متاجر المطاعم (منصة سفرة)
   نفس هوية التصميم الأصلية لـ "بيت النكهة" مع إضافة شريط المطعم
   ========================================================== */

:root {
    --primary: #E67E22;
    --primary-dark: #D35400;
    --secondary: #2C3E50;
    --light: #FDFEFE;
    --gray: #EAEDED;
    --dark-text: #34495E;
    --light-text: #7F8C8D;
    --font-family: 'Cairo', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--light);
    color: var(--dark-text);
    line-height: 1.8;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
main { flex: 1; }

/* --- الهيدر --- */
.header {
    background: white;
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.navbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.store-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.store-brand-info { line-height: 1.3; }
.store-brand-name { font-size: 1.25rem; font-weight: 900; color: var(--secondary); }
.store-brand-sub { font-size: 0.72rem; color: var(--light-text); font-weight: 700; }
.store-brand-sub a { color: var(--primary); text-decoration: none; }

.nav-links { display: flex; list-style: none; gap: 2.2rem; margin: 0; padding: 0; }
.nav-links a {
    color: var(--dark-text); text-decoration: none; font-weight: 700;
    font-size: 0.98rem; position: relative; padding: 5px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 0; height: 3px; background: var(--primary); border-radius: 3px;
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.user-actions { display: flex; align-items: center; gap: 1.4rem; }
.user-actions a { text-decoration: none; }
.cart-icon { position: relative; font-size: 1.4rem; color: var(--secondary); }
.cart-count {
    position: absolute; top: -5px; left: -10px; background: var(--primary); color: white;
    font-weight: bold; font-size: 0.72rem; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid white;
}
.user-chip {
    display: inline-flex; align-items: center; gap: 8px; background: #FFF3E6;
    color: var(--secondary); font-weight: 700; padding: 6px 14px; border-radius: 50px;
    font-size: 0.88rem; transition: var(--transition);
}
.user-chip:hover { background: var(--primary); color: white; }

.btn {
    display: inline-block; background: var(--primary); color: white;
    padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 700;
    border: 2px solid var(--primary); transition: var(--transition); cursor: pointer;
    font-family: var(--font-family); font-size: 0.95rem;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background: #34495E; border-color: #34495E; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.mobile-toggle { display: none; background: none; border: none; color: var(--secondary); font-size: 1.5rem; cursor: pointer; }

/* --- شريط بيانات المطعم (الهيرو الخاص بالمتجر) --- */
.store-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
    color: white;
    padding: 2.6rem 0;
}
.store-hero-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.store-hero-text { flex: 1; min-width: 260px; }
.store-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 0.3rem; }
.store-hero .store-meta {
    display: flex; gap: 0.8rem 1.4rem; flex-wrap: wrap;
    font-size: 0.9rem; opacity: 0.92; margin-bottom: 0.6rem;
}
.store-hero .store-meta i { color: var(--primary); margin-left: 5px; }
.store-hero .store-desc { font-size: 0.95rem; opacity: 0.85; max-width: 640px; }
.store-hero-rating { display: flex; align-items: center; gap: 8px; }
.store-hero-rating .stars { font-size: 1.05rem; }

.closed-banner {
    background: #fff3cd; color: #856404; text-align: center;
    padding: 0.8rem 1rem; font-weight: 700; border-bottom: 1px solid #ffe69c;
}
.suspended-banner {
    background: #f8d7da; color: #721c24; text-align: center;
    padding: 0.8rem 1rem; font-weight: 700; border-bottom: 1px solid #f5c6cb;
}

/* --- قسم القائمة --- */
.menu-section { padding: 4.5rem 0; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.5rem; font-weight: 900; color: var(--secondary); }
.section-title p { color: var(--light-text); font-size: 1.05rem; max-width: 500px; margin: 0.5rem auto 0; }

.menu-categories {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}
.category-btn {
    background: white; border: 2px solid var(--gray); color: var(--light-text);
    padding: 10px 25px; border-radius: 50px; font-family: 'Cairo', sans-serif;
    font-weight: 700; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.category-btn.active, .category-btn:hover {
    background: var(--primary); color: white; border-color: var(--primary);
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; }

.menu-item {
    background: white; border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--transition); overflow: hidden; position: relative;
    display: flex; flex-direction: column;
}
.menu-item:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.menu-img {
    height: 210px; width: 100%; background-size: cover; background-position: center;
    background-color: var(--gray);
}
.menu-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FFF3E6, #FFE8D1);
}
.menu-img-placeholder i { font-size: 3.2rem; color: #E67E22; opacity: 0.5; }
.menu-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.menu-content h3 { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--secondary); }
.menu-content h3 a { text-decoration: none; color: inherit; }
.menu-content h3 a:hover { color: var(--primary); }
.menu-content .description {
    color: var(--light-text); font-size: 0.88rem; min-height: 48px; margin-bottom: 1rem;
}
.menu-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { color: var(--primary); font-weight: 900; font-size: 1.4rem; }
.add-to-cart-form { display: flex; align-items: center; gap: 10px; }
.quantity-input {
    width: 52px; padding: 8px; border: 2px solid var(--gray); border-radius: 8px;
    text-align: center; font-weight: bold; font-family: var(--font-family);
}
.add-to-cart-btn {
    background: var(--secondary); color: white; border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; font-size: 1rem; transition: var(--transition);
}
.add-to-cart-btn:hover { background: var(--primary); }
.add-to-cart-btn:disabled { background: #bdc3c7; cursor: not-allowed; }
.login-required-btn { background: #95a5a6; }

/* --- نظام التنبيهات --- */
.notification {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
    background: var(--secondary); color: white; padding: 12px 26px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; opacity: 0; pointer-events: none;
    transition: all 0.35s ease; z-index: 3000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-family: 'Cairo', sans-serif; max-width: 92vw; text-align: center;
}
.notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notification.success { background: #28a745; }
.notification.error { background: #dc3545; }
.notification.info { background: #3498db; }

/* --- الفوتر --- */
.footer { background: var(--secondary); color: white; padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; margin-bottom: 3rem;
}
.footer-column h3 { color: var(--primary); margin-bottom: 1.4rem; font-size: 1.35rem; }
.footer-column p, .footer-links a, .contact-info li { color: #bdc3c7; text-decoration: none; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a:hover { color: var(--primary); }
.contact-info { list-style: none; padding: 0; }
.contact-info li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-info i { color: var(--primary); }
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem;
    text-align: center; color: #95a5a6; font-size: 0.9rem;
}
.copyright a { color: #1E90FF; font-weight: bold; text-decoration: none; }

/* --- استجابة الشاشات الصغيرة --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 100%;
        right: 0; left: 0; background: white; padding: 1rem 2rem; gap: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    .store-hero h1 { font-size: 1.7rem; }
}
