:root {
    --primary-color: #c52e2e;
    --secondary-color: #f8b500;
    --dark-color: #2c2c2c;
    --light-color: #f9f9f9;
    --text-color: #333;
    --gray-color: #777;
    --light-gray: #eee;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    /* margin-bottom: 2rem; */
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
header {
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f1c40f);
    color: var(--dark-color);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    transform: rotate(-5deg);
    box-shadow: 0 4px 15px rgba(248, 181, 0, 0.4);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.1);
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    font-family: 'Outfit', sans-serif;
}

.logo-text span {
    color: var(--secondary-color);
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 20px;
    position: relative;
}

.cart-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-color);
}

.search-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.1);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    color: white;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: capitalize;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}


/* Menu Section */
.menu {
    background-color: var(--light-gray);
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -22px;
}

.menu-categories-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center for desktop */
    z-index: 900;
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

    /* Desktop Sticky Removed */
}



.cat-arrow {
    display: none;
    /* Hide arrows on big screens */
}


/* Mobile: horizontal scroll slider */
@media (max-width: 768px) {
    .menu-categories {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        /* padding: 5px 15px 5px 15px !important; */
        gap: 10px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
        margin-top: -3px;
    }

    .cat-arrow {
        display: none !important;
        /* Keep hidden on mobile too */
    }

    .menu-categories-wrapper {
        position: sticky;
        top: 60px;
        /* Match mobile header height */
    }

    .menu-categories-wrapper.is-sticky {
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .menu-categories::-webkit-scrollbar {
        display: none;
    }

    .menu-categories .category-btn,
    .menu-categories button {
        flex-shrink: 0 !important;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}


.category-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.category-btn.active {
    background: #fff;
    color: #c52e2e;
    border-color: #c52e2e;
    box-shadow: 0 2px 8px rgba(197, 46, 46, 0.15);
}

.category-btn:hover:not(.active) {
    border-color: #c52e2e;
    color: #c52e2e;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-10px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.menu-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-details,
.btn-add-cart {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-details {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.btn-details:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-cart:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Reservation Section */
.reservation-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    /* h2 {
        font-size: 3.2rem;
    } */

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    header {
        height: 60px;
    }

    .header-container {
        padding: 5px 0;
    }

    .logo-text {
        font-size: 1.5rem !important;
    }

    .hero-carousel,
    .hero {
        margin-top: 60px !important;
    }

    .hero-slide {
        height: 400px !important;
        /* Smaller hero on mobile */
    }

    .menu-categories-wrapper {
        top: 60px;
        /* Adjust for smaller mobile header */
    }



    .mobile-menu-btn {
        display: block;
    }

    .cart-btn,
    .search-btn {
        display: none;
    }

    .search-input {
        font-size: 1.2rem;
        padding: 15px 20px;
    }

    .search-result-item {
        flex-direction: column;
    }

    .search-result-item img {
        width: 100%;
        height: 150px;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: rgba(44, 44, 44, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        transition: var(--transition);
        padding: 20px 0;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    /* .section-title {
        margin-bottom: 1.5rem;
    } */

    /* .section-title h2 {
        font-size: 1.8rem;
    } */

    .category-section {
        margin-bottom: 30px !important;
        scroll-margin-top: 110px !important;
    }

    .category-title {
        font-size: 1.3rem;
        margin-bottom: 15px !important;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .menu-item-actions {
        flex-direction: column;
    }

    .btn-details,
    .btn-add-cart {
        width: 100%;
    }

    .reservation-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

}

/* Cart Modal Styling */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.cart-modal-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.cart-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.cart-modal-close:hover {
    transform: scale(1.1);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-quantity {
    font-size: 0.85rem;
    color: #777;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.cart-total span:last-child {
    color: var(--primary-color);
}

.full-width {
    width: 100%;
}

.empty-cart-message {
    text-align: center;
    color: #ddd;
    margin-top: 50px;
}

.empty-cart-message i {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Overlay background when cart is open */
.cart-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* --- Language Switcher --- */
.lang-switch:hover {
    background-color: #f1c40f !important;
    color: #2c2c2c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3);
}

[dir="rtl"] .logo {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .hero {
    text-align: right;
}

[dir="rtl"] .section-title {
    text-align: right;
}