/* تنسيق فخم يعتمد على ألوان شعار مطعم روشن الحديث بدقة */
:root {
    --luxury-red: #D3131A;       /* الأحمر الملكي المأخوذ من جسم الشعار السائد */
    --luxury-gold: #E5A922;      /* الذهبي الفخم المأخوذ من قبعة الطاهي والملعقة والنجوم */
    --deep-charcoal: #14171C;    /* الرمادي الداكن جداً ليعطي خلفية فخمة ورسمية للموقع */
    --pure-white: #FFFFFF;
    --light-gray: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.7;
}

/* شريط التنقل العلوي الفخم */
.main-header {
    background-color: var(--deep-charcoal);
    color: var(--pure-white);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--luxury-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 25px;
}

.right-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle-btn {
    background: linear-gradient(135deg, var(--luxury-red), #A80E13);
    color: var(--pure-white);
    border: 1px solid var(--luxury-gold);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
    background: var(--luxury-gold);
    color: var(--deep-charcoal);
    transform: scale(1.03);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid var(--luxury-gold);
}

.brand-titles h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--luxury-gold);
}

.brand-titles span {
    font-size: 0.78rem;
    color: #94A3B8;
    display: block;
}

/* زر حقيبة المشتريات الفخم */
.header-cart-trigger {
    background-color: rgba(229, 169, 34, 0.1);
    border: 1px solid var(--luxury-gold);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.header-cart-trigger:hover {
    background-color: var(--luxury-gold);
}

.header-cart-trigger:hover .cart-text-label,
.header-cart-trigger:hover .cart-icon-wrapper {
    color: var(--deep-charcoal);
}

.cart-text-label {
    color: var(--luxury-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-badge-num {
    background-color: var(--luxury-red);
    color: var(--pure-white);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 20px;
}

/* القائمة الجانبية التنفيذية الراقة المميزة */
.main-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--deep-charcoal);
    color: var(--pure-white);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    border-left: 3px solid var(--luxury-gold);
}

.main-sidebar.open {
    right: 0;
}

.sidebar-header {
    text-align: center;
    position: relative;
    padding-bottom: 25px;
    border-bottom: 1px solid #2A2F38;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--luxury-gold);
    margin-bottom: 12px;
}

.sidebar-header h3 {
    color: var(--luxury-gold);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 0.78rem;
    color: #94A3B8;
}

.close-sidebar-btn {
    position: absolute;
    top: -10px;
    left: 0;
    background: none;
    border: none;
    color: var(--luxury-gold);
    font-size: 2rem;
    cursor: pointer;
}

.sidebar-nav-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.sidebar-nav-links a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    display: block;
}

.sidebar-nav-links a:hover {
    background-color: rgba(211, 19, 26, 0.15);
    color: var(--luxury-gold);
    padding-right: 22px;
}

.sidebar-nav-links .sidebar-delete-link {
    margin-top: auto;
    background-color: rgba(211, 19, 26, 0.1);
    border: 1px dashed var(--luxury-red);
    color: #FDA4AF;
    font-size: 0.88rem;
}

.sidebar-nav-links .sidebar-delete-link:hover {
    background-color: var(--luxury-red);
    color: white;
}

.sidebar-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #64748B;
    border-top: 1px solid #2A2F38;
    padding-top: 15px;
}

/* البانر الترحيبي الفخم Hero */
.hero-section {
    position: relative;
    background-image: url('t5.jpg');
    background-size: cover;
    background-position: center;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(20, 23, 28, 0.9), rgba(20, 23, 28, 0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.gold-badge {
    border: 1px solid var(--luxury-gold);
    color: var(--luxury-gold);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h2 {
    color: var(--pure-white);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    color: #CBD5E1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-cta-btn {
    background-color: var(--luxury-red);
    color: var(--pure-white);
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    border: 1px solid var(--luxury-gold);
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(211, 19, 26, 0.4);
    display: inline-block;
}

.hero-cta-btn:hover {
    background-color: var(--luxury-gold);
    color: var(--deep-charcoal);
    transform: translateY(-2px);
}

/* تنسيق العناوين والأقسام العامة */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-tag {
    display: block;
    text-align: center;
    color: var(--luxury-red);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* قسم من نحن عن فلسفة روشن */
.about-section {
    background-color: var(--pure-white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.about-section h2 {
    color: var(--deep-charcoal);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-p {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* شبكة المنتجات والوجبات الفخمة */
.menu-section {
    padding: 70px 0;
}

.menu-main-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--deep-charcoal);
    font-weight: 800;
}

.menu-main-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 50px;
}

.category-block {
    margin-bottom: 60px;
}

.category-header-title {
    font-size: 1.4rem;
    color: var(--deep-charcoal);
    margin-bottom: 25px;
    border-right: 5px solid var(--luxury-red);
    padding-right: 12px;
}

.products-luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.luxury-card {
    background-color: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.luxury-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(20, 23, 28, 0.08);
}

.card-img-holder {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #F1F5F9;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-details h4 {
    font-size: 1.2rem;
    color: var(--deep-charcoal);
    margin-bottom: 12px;
    font-weight: 700;
}

.product-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    height: 72px;
    overflow: hidden;
}

.card-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #F1F5F9;
}

.luxury-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--luxury-red);
}

.add-to-cart-action {
    background-color: var(--deep-charcoal);
    color: var(--pure-white);
    border: 1px solid var(--luxury-gold);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.add-to-cart-action:hover {
    background-color: var(--luxury-red);
    border-color: var(--luxury-red);
}

/* السلة الجانبية التفاعلية */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background-color: var(--pure-white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 1060;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-left: 4px solid var(--luxury-red);
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.cart-sidebar-header h3 {
    color: var(--deep-charcoal);
    font-size: 1.25rem;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 20px;
}

.cart-luxury-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #F1F5F9;
}

.cart-luxury-item h5 {
    font-size: 0.95rem;
    color: var(--deep-charcoal);
    margin-bottom: 4px;
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: var(--luxury-red);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
}

.cart-sidebar-footer {
    border-top: 2px solid var(--border-color);
    padding-top: 25px;
}

.total-price-box {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--deep-charcoal);
    margin-bottom: 15px;
}

#cart-total-amount {
    color: var(--luxury-red);
}

.official-notice {
    background-color: var(--light-gray);
    padding: 12px;
    border-radius: 8px;
    border-right: 3px solid var(--luxury-gold);
    margin-bottom: 20px;
}

.official-notice p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkout-submit-btn {
    background-color: #22C55E;
    color: var(--pure-white);
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.checkout-submit-btn:hover {
    background-color: #16A34A;
}

/* التذييل الفخم الرسمي */
.main-footer {
    background-color: var(--deep-charcoal);
    color: #94A3B8;
    text-align: center;
    padding: 40px 20px;
    border-top: 4px solid var(--luxury-gold);
}

.footer-logo {
    width: 70px;
    background: white;
    border-radius: 50%;
    padding: 3px;
    margin-bottom: 15px;
}

.footer-legal {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .header-container { padding: 15px; }
    .brand-titles { display: none; }
    .hero-content h2 { font-size: 2rem; }
    .cart-sidebar { width: 100%; right: -100%; }
}