:root {
    --bg-dark: #0f0f11;
    --card-bg: #1a1a1d;
    --primary-orange: #ff6a00;
    --accent-red: #e62e00;
    --accent-yellow: #ffcc00;
    --text-main: #ffffff;
    --text-muted: #a0a0a0d0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.text-orange {
    color: var(--primary-orange);
}

.text-red {
    color: var(--accent-red);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--accent-red));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: white;
}

.w-100 {
    width: 100%;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-bg);
    border-left: 5px solid var(--primary-orange);
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out forwards;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auth Section */
.auth-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1200') center/cover;
}

.auth-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.auth-box h2 {
    margin: 20px 0;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.auth-box input:focus {
    border-color: var(--primary-orange);
}

.options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.options a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.toggle-link {
    color: var(--primary-orange);
    cursor: pointer;
    font-weight: bold;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(26, 26, 29, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.search-box {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 20px;
    padding: 5px 15px;
    width: 300px;
}

.search-box input {
    background: none;
    border: none;
    color: white;
    outline: none;
    margin-left: 10px;
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    transition: 0.3s;
}

.cart-icon:hover {
    color: var(--primary-orange);
}

#cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-red);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(15, 15, 17, 1)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600') center/cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

/* Menu Section */
.menu-section {
    padding: 40px 5%;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid #333;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Loader */
.loader {
    border: 4px solid #333;
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid #222;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.2);
    border-color: var(--primary-orange);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-price {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
    display: block;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 40px;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 1000;
    transition: 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.close-cart {
    cursor: pointer;
    color: var(--accent-red);
    font-size: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    background: #222;
    padding: 10px;
    border-radius: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    background: #444;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.trash-btn {
    color: var(--accent-red);
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: right;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    margin-top: 50px;
    border-top: 1px solid #222;
}

/* --- New Additions (Landing & Delivery) --- */
.restaurant-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    font-size: 1.2rem;
    font-weight: bold;
    flex-wrap: wrap;
}

.restaurant-features span {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.delivery-container {
    padding: 50px 5%;
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #333;
    z-index: -1;
}

.tracking-steps .step {
    color: #555;
    font-weight: bold;
    background: var(--bg-dark);
    padding: 0 10px;
    transition: 0.5s;
}

.tracking-steps .step i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--bg-dark);
}

.tracking-steps .step.active {
    color: var(--primary-orange);
}

.map-placeholder {
    background: #1a1a1d;
    height: 350px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 2px dashed #333;
    margin-top: 20px;
}