/* Navbar styles - shared when navbar is embedded (e.g. MENU_CART) or standalone */
/* Prevent overflow when embedded or standalone */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; overflow-x: hidden; }

:root {
    /* Warm Red Theme */
    --primary: #8B1E1E;
    --primary-light: #A52A2A;
    --primary-dark: #6B1515;
    --secondary: #D97706;
    --secondary-light: #F59E0B;
    --background: #FDF1E5;
    --text-dark: #1F1F1F;
    --glass: rgba(139, 30, 30, 0.08);
}

/* --- Top Bar --- */
.top-bar {
    background: var(--primary);
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-item:hover {
    color: var(--secondary);
}

.top-bar-item i {
    color: var(--secondary);
    font-size: 14px;
}

.top-bar-socials {
    display: flex;
    gap: 12px;
    padding-right: 50px;
    align-items: center;
}

.top-bar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-bar-socials a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Navbar Container --- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 15px 5%;
    width: 100%;
    max-width: 100vw;
    position: fixed;
    top: 52px;
    z-index: 2000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    top: 0;
    padding: 15px 5%;
    background: rgba(139, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 30, 30, 0.85);
    padding: 0 40px;
    border-radius: 60px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(217, 119, 6, 0.25);
    position: relative;
    height: 60px;
    margin-top: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-container {
    background: rgba(139, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.nav-group {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-group a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-group a:hover { color: var(--secondary); }
.nav-group a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-group a:hover::after { width: 100%; }

.center-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 40px;
    z-index: 2200;
}

.logo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6),
                0 4px 15px rgba(217, 119, 6, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled .logo-circle {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8),
                0 6px 20px rgba(139, 30, 30, 0.5),
                0 0 30px rgba(217, 119, 6, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-contact {
    background: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-contact:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

/* Cart at right most (desktop) */
.navbar-actions {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2100;
}

.cart-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 2px solid rgba(217, 119, 6, 0.5);
    color: #fff;
    padding: 2px 6px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-toggle:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.cart-toggle-count {
    background: var(--secondary);
    color: var(--primary);
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.cart-toggle-count.empty {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

.cart-overlay { z-index: 2200 !important; }
.cart-drawer { z-index: 2300 !important; }

/* --- Desktop defaults --- */
.mobile-logo-trigger,
.hamburger {
    display: none;
}

.line {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.restaurant-name-mobile {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .top-bar {
        display: none;
    }

    .navbar {
        top: 0;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: rgba(139, 30, 30, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .navbar.scrolled {
        top: 0;
        padding: 12px 20px;
        background: rgba(139, 30, 30, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .nav-container { display: none; }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 2100;
    }

    .navbar-actions {
        position: static;
        transform: none;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2100;
        padding: 0 0 0 8px; /* small left padding so it aligns nicely next to cart */
    }

    .mobile-logo-trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 2100;
    }
    .mobile-logo-img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 2px solid var(--secondary);
        object-fit: cover;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .logo-text {
        display: none;
    }

    .restaurant-name-full {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .restaurant-main {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 14px;
        color: var(--secondary);
        letter-spacing: 1px;
    }

    .restaurant-sub {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 10px;
        color: white;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background:
        linear-gradient(rgba(139, 30, 30, 0.92), rgba(139, 30, 30, 0.95)),
        url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    overflow: hidden;
}

.mobile-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(139, 30, 30, 0.95) 70%);
    z-index: -1;
}

.mobile-links {
    list-style: none;
    text-align: center;
    z-index: 1;
    margin-top: 50px;
}

.mobile-links li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-links a {
    font-size: 28px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.mobile-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
    display: inline-block;
}

.mobile-menu-title {
    position: absolute;
    top: 120px;
    text-align: center;
    z-index: 1;
    opacity: 0;
}

.restaurant-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.restaurant-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}
