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

:root {
    color-scheme: light;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #3d2e26;
    background: #faf4ed;
}

body {
    background: radial-gradient(circle at top, rgba(255, 236, 217, 0.9), transparent 45%), #faf4ed;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    transition: all 0.2s ease;
}

header {
    background: linear-gradient(135deg, #d76a40 0%, #8b4b2b 100%);
    color: #fff;
    padding: 32px 24px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header {
    background: linear-gradient(135deg, #d76a40 0%, #8b4b2b 100%);
    color: #fff;
    padding: 32px 24px;
}

.brand-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    opacity: 0.85;
}

header h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    max-width: 720px;
}

header p {
    margin-top: 16px;
    font-size: 1.05rem;
    max-width: 620px;
    line-height: 1.7;
}

.order-now {
    background: #fff;
    color: #8b4b2b;
    border: none;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.order-now:hover {
    transform: translateY(-2px);
}

nav {
    position: sticky;
    top: 0;
    background: rgba(71, 45, 23, 0.95);
    backdrop-filter: blur(8px);
    z-index: 20;
    padding: 14px 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

nav a {
    color: #f7e8da;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a.active {
    background: linear-gradient(135deg, #d76a40 0%, #8b4b2b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(215, 106, 64, 0.3);
}

nav a:last-child {
    margin-right: 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.section {
    display: none;
    margin-top: 36px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section.active {
    display: block;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    background: #fff;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 28px 80px rgba(116, 76, 44, 0.16);
}

.hero-copy h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 18px;
    line-height: 1.05;
}

.hero-copy p {
    max-width: 620px;
    margin-bottom: 26px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5d4337;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions button,
.secondary-link {
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: 700;
    cursor: pointer;
}

.hero-actions button {
    background: #d76a40;
    color: #fff;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 106, 64, 0.12);
    color: #8b4b2b;
}

.hero-image {
    background: linear-gradient(150deg, #f7d8bc 0%, #f2c299 50%, #e7b383 100%);
    border-radius: 28px;
    min-height: 320px;
    background-image: radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 25%),
                      radial-gradient(circle at bottom right, rgba(255,255,255,0.25), transparent 18%);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.value-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(116, 76, 44, 0.08);
}

.value-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.menu-category {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(215, 106, 64, 0.15);
}

.menu-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.menu-category h3,
.faq-card h4,
.about-card h4,
.contact-card h4 {
    margin-bottom: 14px;
}

.menu-grid,
.order-grid,
.about-grid,
.contact-grid,
.faq-grid {
    display: grid;
    gap: 22px;
}

.menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.menu-item {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 35px rgba(101, 60, 27, 0.12);
    overflow: hidden;
    display: grid;
    grid-template-rows: 180px auto;
}

.menu-image {
    min-height: 180px;
    background-size: cover;
    background-position: center;
}

.menu-salad { background-image: url('https://images.unsplash.com/photo-1541519227354-08fa5d50c44d?w=400&h=300&fit=crop'); }
.menu-wings { background-image: url('https://images.unsplash.com/photo-1567620832903-9fc6debc209f?w=400&h=300&fit=crop'); }
.menu-burger { background-image: url('https://images.unsplash.com/photo-1568901346375-23c9450c58cd?w=400&h=300&fit=crop'); }
.menu-bowl { background-image: url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=400&h=300&fit=crop'); }
.menu-smoothie { background-image: url('https://images.unsplash.com/photo-1505252585461-04db1eb84625?w=400&h=300&fit=crop'); }
.menu-cookie { background-image: url('https://images.unsplash.com/photo-1499636136210-6f4ee915583e?w=400&h=300&fit=crop'); }

.menu-copy {
    padding: 24px;
    display: grid;
    gap: 14px;
}

.menu-copy h4 {
    font-size: 1.25rem;
    color: #3d2e26;
}

.menu-copy p {
    color: #6d5347;
    line-height: 1.7;
}

.menu-copy label {
    font-size: 0.92rem;
    display: grid;
    gap: 10px;
    color: #4a3428;
}

.menu-copy input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6d4c8;
    border-radius: 14px;
    background: #fff7f0;
}

.menu-copy button {
    margin-top: 4px;
}

.add-cart-button {
    background: linear-gradient(135deg, #d76a40 0%, #b74d29 100%);
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.add-cart-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-cart-button:hover::before {
    left: 100%;
}

.add-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(215, 106, 64, 0.25);
}

.order-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.cart-panel,
.checkout-panel,
.about-card,
.contact-card,
.faq-card {
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 36px rgba(101, 60, 27, 0.09);
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #f0e4da;
    border-radius: 18px;
}

.cart-item span,
.cart-item p {
    color: #5b4337;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-item button {
    width: auto;
    margin: 0;
}

.total {
    margin-top: 20px;
    font-size: 1.35rem;
    color: #3d2e26;
    font-weight: 700;
}

.input-group {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 0.95rem;
    color: #5a4335;
}

.input-group input,
.input-group select {
    padding: 14px 16px;
    border: 1px solid #dfd0c4;
    border-radius: 16px;
    background: #fffaf5;
}

.payment-options {
    display: grid;
    gap: 10px;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e7d6ca;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fdf7f1;
}

.input-note {
    font-size: 0.95rem;
    color: #7a5b4a;
    margin-bottom: 18px;
}

button.checkout {
    background-color: #7cac6b;
    width: 100%;
    padding: 18px 18px;
    font-size: 1.05rem;
    margin-top: 12px;
    border: none;
    border-radius: 14px;
    color: #fff8f0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

button.checkout:hover {
    transform: translateY(-1px);
    background-color: #6a9c5f;
}

button.checkout.primary-button {
    background: linear-gradient(135deg, #d76a40, #b74d29);
    box-shadow: 0 16px 30px rgba(215, 106, 64, 0.22);
    font-size: 1.1rem;
}

button.checkout.primary-button:hover {
    background: linear-gradient(135deg, #b74d29, #d76a40);
}

button.checkout.primary-button.loading {
    pointer-events: none;
    position: relative;
}

button.checkout.primary-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

button.checkout + button.checkout {
    margin-top: 12px;
    background-color: #c03832;
}

button.checkout + button.checkout:hover {
    background-color: #a12f2b;
}

.floating-cart {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 100;
    background: #d76a40;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

@media (max-width: 700px) {
    .floating-cart {
        right: 14px;
        bottom: 18px;
        padding: 12px 18px;
    }
}

.confirmation-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 24px;
}

.confirmation-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(116, 76, 44, 0.12);
    max-width: 500px;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.checkmark, .crossmark {
    font-size: 4rem;
    margin-bottom: 20px;
}

.checkmark {
    color: #28a745;
}

.crossmark {
    color: #dc3545;
}

.confirmation-card h2 {
    margin-bottom: 16px;
    color: #3d2e26;
}

.confirmation-card p {
    margin-bottom: 12px;
    color: #6d5347;
    line-height: 1.6;
}

.primary-button {
    background: linear-gradient(135deg, #d76a40, #b74d29);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
}

.about-grid,
.contact-grid,
.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-card,
.contact-card,
.faq-card {
    line-height: 1.8;
}

.faq-card p {
    color: #6a5142;
}

footer {
    padding: 30px 24px;
    margin-top: 16px;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    color: #4a3429;
    display: grid;
    gap: 8px;
    text-align: center;
}

@media (max-width: 960px) {
    .hero,
    .order-grid,
    .value-grid,
    .about-grid,
    .contact-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .brand-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    nav {
        padding: 14px 16px;
    }

    nav a {
        display: inline-block;
        margin-bottom: 10px;
    }

    .hero {
        padding: 28px;
    }

    .hero-image {
        min-height: 240px;
    }
}

@media (max-width: 520px) {
    header {
        padding: 24px 18px;
    }

    .order-now,
    .hero-actions button,
    .secondary-link {
        width: 100%;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    animation: slideInUp 0.4s ease-out;
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    border-left: 4px solid #3d2e26;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    color: #15803d;
}

.toast.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    color: #991b1b;
}

.toast::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast.success::before {
    background: #22c55e;
    box-shadow: inset 0 0 0 2px #f0fdf4;
}

.toast.error::before {
    background: #ef4444;
    box-shadow: inset 0 0 0 2px #fef2f2;
}

.toast.success::after {
    content: '✓';
    position: absolute;
    left: 8px;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.toast.error::after {
    content: '✕';
    position: absolute;
    left: 8px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideOutDown 0.4s ease-in forwards;
}
