/* Global Vars */
:root {
    --primary-color: #c92b27;
    --secondary-color: #f39c12;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #fdfdfd;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-main: 'Cairo', sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px; /* Space for mobile nav */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h2 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sub-text {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #a93226);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
}

/* Slider / Gallery */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

.slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }


/* Menu Section */
.menu-section {
    padding: 5rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-weight: 900;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: #f1f2f6;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.menu-item {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-img {
    transform: scale(1.05);
}

.menu-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.menu-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.add-btn {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.add-btn:hover {
    background: #e67e22;
    transform: scale(1.05);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -450px;
    width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    left: 0;
}

.cart-header {
    background: var(--text-dark);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.cart-items {
    padding: 25px;
    overflow-y: auto;
    background: #f8f9fa;
}

.cart-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f2f6;
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 5px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    font-weight: bold;
}

.checkout-section {
    padding: 25px;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
    
    .sub-text {
        font-size: 1rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .menu-item {
        margin-bottom: 20px;
    }

    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .about-content {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-img img {
        transform: none !important;
    }
}

/* Bottom Nav for Mobile */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
@media (min-width: 992px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-cart-btn {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    box-shadow: 0 5px 15px rgba(201, 43, 39, 0.4);
    position: relative;
}

.overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

@media (max-width: 991px) {
    .logo {
        margin: 0 auto;
    }
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darken image */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.sub-text {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #a93226;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

/* Menu Section */
.menu-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border-radius: 25px;
    background: white;
    box-shadow: var(--shadow);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.menu-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.menu-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.menu-info {
    padding: 20px;
}

.menu-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.menu-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-btn {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.add-btn:hover {
    background: #f39c12;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    /* Hidden by default (RTL: left side) */
    width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    left: 0;
}

.cart-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    color: white;
    font-size: 1.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.remove-btn {
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
    background: none;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.total {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.w-100 {
    width: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* Checkout & Discount */
.checkout-section {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.discount-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.discount-box input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.apply-btn {
    background: var(--text-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.radio-group label {
    cursor: pointer;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hidden {
    display: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.summary-row.total-row {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 10px;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

.discount-text {
    color: green;
}

/* Social Buttons in Footer */
.btn-social {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 20px !important;
    transition: var(--transition) !important;
    text-decoration: none;
    color: white !important;
    display: inline-block;
    text-align: center;
}

.btn-social.fb { background: #3b5998 !important; }
.btn-social.ig { background: #e1306c !important; }
.btn-social.yt { background: #ff0000 !important; }

.btn-social:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Mobile Specific Overrides and Fixes */
@media (max-width: 991px) {
    /* Hide desktop-only elements */
    .nav-links, 
    .navbar .cart-icon {
        display: none !important;
    }

    /* Stack checkout buttons for easier tapping */
    .cart-sidebar .checkout-section > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .cart-sidebar .btn {
        width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
    }
    
    /* Ensure cart sidebar fills screen on small devices */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    /* Improve spacing for mobile content */
    .section-title {
        font-size: 2rem;
        padding: 0 10px;
    }
}