:root {
    /* Premium Dark Theme */
    --royal-primary: #FF9933; /* Saffron */
    --royal-secondary: #DAA520; /* Gold */
    --royal-bg: #121212; /* Deep Charcoal */
    --royal-text: #F5F5F5;
    --royal-text-light: #A0A0A0;
    --royal-accent: #E2725B;

    /* Base Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body.theme-royal, body.theme-desert {
    --primary: var(--royal-primary);
    --secondary: var(--royal-secondary);
    --bg-color: var(--royal-bg);
    --text-color: var(--royal-text);
    --text-light: var(--royal-text-light);
    --accent: var(--royal-accent);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #121212;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 153, 51, 0.1);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    max-height: 80px;
    overflow: hidden;
}

.logo-img {
    height: 45px;
    max-height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(1.2); 
}

.logo-img:hover {
    transform: scale(1.05);
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.desktop-nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 130px 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: auto;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-slider {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Menu Section */
.menu {
    padding: 40px 0 100px;
}

.menu h2 {
    margin-bottom: 2.5rem;
}

.menu-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.menu-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}

/* Hide scrollbar */
.menu-sidebar::-webkit-scrollbar {
    display: none;
}
.menu-sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tab-btn, .cat-tab {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid transparent;
    border-left: 3.5px solid transparent;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-main);
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.tab-btn:hover:not(.active), .cat-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.04);
    color: #f3f4f6;
    transform: translateX(3px);
}

.tab-btn.active, .cat-tab.active {
    background-color: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid #f59e0b;
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 153, 51, 0.15);
    border-color: rgba(255, 153, 51, 0.2);
}

.menu-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-img {
    transform: scale(1.03);
}

.menu-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 14px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.menu-card h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.menu-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: space-between;
}

.menu-notes {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

.menu-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.menu-unit {
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Delivery Section */
.delivery {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.8) 0%, rgba(18,18,18,1) 100%);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.delivery h2 {
    color: var(--primary);
    font-size: 2.8rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 153, 51, 0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #121212;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(255, 153, 51, 0.2);
    font-family: var(--font-heading);
}

.step h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 300;
}

/* Footer */
footer {
    background-color: #0A0A0A;
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .desktop-nav {
        display: none;
    }

    .menu-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-sidebar {
        position: sticky;
        top: 80px;
        z-index: 100;
        background-color: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        max-height: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 1rem;
        padding-bottom: 1rem;
        overflow-x: auto;
    }
    
    .category-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .tab-btn, .cat-tab {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 2px solid transparent;
        padding: 8px 16px;
        border-radius: 20px;
        text-align: center;
        flex-shrink: 0;
        font-size: 0.9rem;
    }
    
    .tab-btn.active, .cat-tab.active, .tab-btn:hover, .cat-tab:hover {
        background-color: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
        border-color: #f59e0b;
        transform: none;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .menu-card {
        padding: 1rem;
    }
    
    .menu-img {
        height: 120px;
        margin-bottom: 0.75rem;
    }

    .menu-card h3 {
        font-size: 1.1rem;
    }

    .menu-price {
        font-size: 1.15rem;
    }

    .menu-unit {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
}

/* Cart UI Styles */

.header-cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

@keyframes cart-bump-anim {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.35) rotate(-8deg); }
    50%  { transform: scale(1.25) rotate(8deg); }
    75%  { transform: scale(1.15) rotate(-4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.header-cart-btn.cart-bump {
    animation: cart-bump-anim 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.header-cart-btn:hover {
    background: rgba(255, 153, 51, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.cart-icon {
    font-size: 1.4rem;
}

.header-cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--royal-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-color);
}

.hero-cart-badge {
    background: rgba(18, 18, 18, 0.2);
    color: var(--bg-color);
    background-color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 8px;
}


.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--primary);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.cart-item-details {
    flex-grow: 1;
}

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

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

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary);
    color: black;
}

.qty-display {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.cart-instructions {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-instructions label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.cart-instructions textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    resize: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.cart-instructions textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-total-price {
    color: var(--primary);
}

.place-order-btn {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
}

/* Add to cart buttons in menu */
.menu-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.add-to-cart-btn {
    background: var(--primary);
    color: #121212;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    background: var(--secondary);
}

.item-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
