:root {
    --bg: #101010;
    --surface: #1b1b1b;
    --surface-light: #242424;
    --orange: #ff9f1c;
    --text: #ffffff;
    --muted: #aaa;
    --border: #303030;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 76px;
    padding: 16px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(16, 16, 16, .95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    color: var(--orange);
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: var(--muted);
    transition: .25s;
}

.navbar nav a:hover {
    color: var(--orange);
}

.cart-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    white-space: nowrap;
}

#cartCount {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    background: var(--orange);
    color: #171717;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.hero {
    padding: 80px 7%;
    min-height: 570px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
    background:
        radial-gradient(ellipse at 10% 10%, #33200c 0%, transparent 38%);
}

.eyebrow {
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.15;
    margin: 18px 0;
    letter-spacing: -2px;
}

.hero h1 span,
.section-heading h2 span,
.about-section h2 span {
    color: var(--orange);
}

.hero-content > p {
    color: var(--muted);
    max-width: 450px;
    margin-bottom: 28px;
}

.primary-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 13px 22px;
    background: var(--orange);
    color: #171717;
    font-weight: 700;
    transition: transform .25s, box-shadow .25s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #ff9f1c35;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 42px;
}

.hero-stats div {
    display: grid;
    gap: 2px;
}

.hero-stats strong {
    font-size: 19px;
}

.hero-stats small {
    color: var(--muted);
    font-size: 11px;
}

.hero-image {
    position: relative;
}

.hero-image > img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #ffffff12;
    box-shadow: 0 25px 70px #0008;
}

.floating-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    padding: 14px 20px;
    background: #222;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 0 10px 30px #0006;
}

.floating-card strong {
    font-size: 15px;
}

.menu-section {
    padding: 80px 7%;
    background: #151515;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2,
.about-section h2 {
    font-size: clamp(29px, 4vw, 42px);
    margin: 10px 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

.menu-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category {
    background: var(--surface);
    color: #ddd;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 16px;
    font-size: 12px;
    transition: .25s;
}

.category:hover,
.category.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #171717;
}

#searchInput {
    width: 270px;
    max-width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: white;
    outline: none;
}

#searchInput:focus {
    border-color: var(--orange);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.food-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.food-card:hover {
    transform: translateY(-7px);
    border-color: #ff9f1c88;
    box-shadow: 0 15px 35px #0004;
}

.food-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--surface-light);
}

.food-info {
    padding: 16px;
}

.food-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.food-info p {
    color: var(--muted);
    font-size: 11px;
    min-height: 36px;
}

.food-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.price {
    color: var(--orange);
    font-weight: 700;
}

.add-btn {
    width: 37px;
    height: 37px;
    border: none;
    border-radius: 10px;
    background: var(--orange);
    color: #171717;
    font-size: 22px;
    transition: .25s;
}

.add-btn:hover {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 4px 18px #ff9f1c44;
}

.empty-message {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.about-section {
    padding: 65px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    border-top: 1px solid var(--border);
}

.about-section > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

footer {
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: #0b0b0b;
    border-top: 1px solid var(--border);
}

footer p,
footer small {
    color: var(--muted);
    font-size: 11px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    justify-content: flex-end;
    background: #0009;
}

.cart-overlay.open {
    display: flex;
}

.cart-panel {
    width: min(420px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: #191919;
    border-left: 1px solid var(--border);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cart-header h2 {
    font-size: 21px;
}

.close-btn {
    background: var(--surface-light);
    color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item p {
    color: var(--orange);
    font-size: 13px;
    margin-top: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 27px;
    height: 27px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-light);
    color: white;
}

.cart-footer {
    margin-top: auto;
    padding-top: 25px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
}

.total-row strong {
    color: var(--orange);
}

.checkout-btn {
    width: 100%;
    margin-bottom: 12px;
}

.cart-footer > small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

#cartItems:empty::after {
    content: "Your cart is empty. Add something delicious!";
    display: block;
    padding: 30px 0;
    color: var(--muted);
    font-size: 13px;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    z-index: 30;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 12px 20px;
    background: var(--orange);
    color: #171717;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 1000px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        gap: 30px;
    }

    .hero-image > img {
        height: 320px;
    }
}

@media (max-width: 650px) {
    .navbar {
        padding: 14px 5%;
        flex-wrap: wrap;
    }

    .navbar nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 24px;
        font-size: 13px;
    }

    .logo {
        font-size: 20px;
    }

    .cart-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .hero {
        padding: 55px 6%;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-image > img {
        height: 290px;
    }

    .floating-card {
        left: 10px;
    }

    .hero-stats {
        gap: 20px;
    }

    .menu-section {
        padding: 55px 5%;
    }

    .menu-tools {
        align-items: stretch;
    }

    #searchInput {
        width: 100%;
    }

    .menu-grid {
        gap: 12px;
    }

    .food-image {
        height: 135px;
    }

    .food-info {
        padding: 11px;
    }

    .food-info h3 {
        font-size: 13px;
    }

    .food-info p {
        font-size: 10px;
    }

    .food-bottom {
        margin-top: 10px;
    }

    .about-section {
        padding: 50px 6%;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    footer {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}