:root {
    --primary: #ff5e3a;
    --primary-hover: #e04523;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2c2c2c;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    cursor: pointer;
}

.cart-icon {
    position: relative;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform var(--transition);
}

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

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(18,18,18,0.4), var(--bg-dark)), url('assets/hero_bg.png') center/cover no-repeat;
    padding: 0 1rem;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cta-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(255, 94, 58, 0.4);
}

.cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 94, 58, 0.6);
}

/* Menu Section */
.menu-section {
    padding: 5rem 5%;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.category-btn.active, .category-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.menu-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.card-img-container {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
}

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

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.add-to-cart-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
    margin-top: auto;
}

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

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    transition: right var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition);
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
    font-size: 1.1rem;
    display: none;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255,255,255,0.03);
    padding: 0.8rem;
    border-radius: 12px;
}

.cart-item img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.item-price {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.qty-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    font-size: 1.1rem;
}

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

.remove-btn {
    color: #ff4d4d;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.3rem;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #ff1a1a;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

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

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.checkout-btn:hover {
    background: var(--primary-hover);
}

.checkout-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ab869;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast i {
    font-size: 1.2rem;
}

.toast.show {
    bottom: 30px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .menu-section {
        padding: 3rem 1rem;
    }
}
