/* ========================================================================= */
/* --- FUSION PALLATE: PRO ORDERING SYSTEM STYLESHEET (order.css) --- */
/* ========================================================================= */

/* --- 1. VARIABLES & GLOBAL RESET --- */
:root {
    --background-dark: #0D0D0D;
    --background-light: #1A1A1A;
    --background-card: #1c1c1c;
    --text-primary: #F2F2F2;
    --text-secondary: #A6A6A6;
    --accent-primary: #00F2A9; /* Vibrant Green/Teal */
    --border-color: #262626;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
}

.cta-button {
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-main);
}
.cta-button.primary {
    background-color: var(--accent-primary);
    color: var(--background-dark);
    border-color: var(--accent-primary);
}
.cta-button.primary:hover {
    background-color: #00d998;
    border-color: #00d998;
}
.cta-button:disabled {
    background-color: #404040;
    border-color: #404040;
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none !important;
}

/* --- 2. SIMPLIFIED HEADER & PROGRESS STEPPER --- */
#header-simple #navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}
.logo img { height: 40px; border-radius: 50%; }
.nav-btn { font-weight: 600; font-size: 0.9rem; padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer; text-decoration: none; }
.reserve-btn { background-color: transparent; border: 2px solid #404040; color: var(--text-primary); }
.reserve-btn:hover { background-color: #262626; }

#progress-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #404040;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    transition: all 0.3s ease;
}
.step-line {
    width: 50px;
    height: 2px;
    background-color: #404040;
}
.progress-step.active .step-circle {
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    color: var(--background-dark);
}
.progress-step.active span {
    color: var(--text-primary);
}
.progress-step.completed .step-circle {
    border-color: var(--accent-primary);
    background-color: transparent;
    color: var(--accent-primary);
}
.progress-step.completed span {
    color: var(--text-secondary);
}

/* --- 3. PAGE LAYOUT --- */
.page-view { display: none; }
.page-view.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.order-page-layout, .checkout-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- 4. MENU VIEW --- */
.order-controls { margin-bottom: 1.5rem; }
.search-bar { position: relative; margin-bottom: 1rem; }
.search-bar i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--text-secondary); }
#search-input { width: 100%; padding: 12px 12px 12px 40px; background-color: var(--background-light); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 25px; font-size: 1rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip { background: var(--background-light); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 20px; padding: 8px 16px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease; }
.filter-chip:hover { background-color: #262626; color: var(--text-primary); }
.filter-chip.active { background: var(--accent-primary); color: var(--background-dark); font-weight: 600; border-color: var(--accent-primary); }

#order-menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.menu-item-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.menu-item-card img { width: 100%; height: 180px; object-fit: cover; }
.item-card-details { padding: 1rem; flex-grow: 1; }
.item-card-details h4 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.item-card-details p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.item-card-details .price { font-size: 1.1rem; font-weight: 600; color: var(--accent-primary); }
.item-card-actions { padding: 1rem; border-top: 1px solid var(--border-color); }
.add-btn, .quantity-selector { width: 100%; }
.add-btn { background-color: var(--accent-primary); color: var(--background-dark); border: none; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.quantity-selector { display: flex; justify-content: space-between; align-items: center; }
.quantity-selector span { font-size: 1.2rem; font-weight: 600; }
.quantity-btn { background: #262626; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--text-primary); font-size: 1.2rem;}

/* --- 5. STICKY CART --- */
#sticky-cart-container { position: sticky; top: 100px; height: calc(100vh - 120px); }
.sticky-cart { background-color: var(--background-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.sticky-cart h3 { font-size: 1.5rem; }
.delivery-info { display: flex; align-items: center; gap: 0.5rem; background-color: #262626; padding: 8px 12px; border-radius: 8px; margin: 1rem 0; }
.cart-empty-state { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--text-secondary); }
.cart-empty-state i { font-size: 3rem; margin-bottom: 1rem; }
.cart-content { flex-grow: 1; display: flex; flex-direction: column; }
#cart-items-container { flex-grow: 1; overflow-y: auto; }
.cart-item { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.cart-item:last-child { border-bottom: none; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; }
.cart-item-extras { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.instructions-input { flex-grow: 1; background-color: #262626; border: 1px solid #404040; color: var(--text-primary); border-radius: 5px; padding: 5px; font-size: 0.8rem; }
.remove-item-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; }
.cart-summary { border-top: 1px solid var(--border-color); padding-top: 1rem; }
.price-line { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.price-line.total { font-weight: 700; font-size: 1.2rem; margin-top: 0.5rem; }
#checkout-btn { width: 100%; margin-top: 1rem; padding: 15px; font-size: 1.1rem; }

/* --- 6. CHECKOUT VIEW --- */
#checkout-view .order-header { border: none; }
#checkout-view .back-btn { position: absolute; top: 2rem; left: 2rem; }
.delivery-details, .order-summary { background-color: var(--background-card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); }
#checkout-form { display: flex; flex-direction: column; gap: 1rem; }
#checkout-form label { font-weight: bold; margin-bottom: -0.5rem; font-size: 0.9rem; }
#checkout-form input, #checkout-form textarea { background-color: #262626; border: 1px solid #404040; color: var(--text-primary); padding: 12px; border-radius: 8px; font-size: 1rem; }
.address-input-container { position: relative; }
.location-btn { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); background-color: #262626; color: var(--text-secondary); border: none; border-radius: 5px; padding: 8px 12px; cursor: pointer; }
.delivery-options { display: flex; gap: 1rem; }
.radio-option { display: flex; align-items: center; gap: 0.75rem; padding: 12px; border: 2px solid #404040; background-color: #262626; border-radius: 8px; cursor: pointer; flex-grow: 1; }
.radio-option input { display: none; }
.radio-option:has(input:checked) { border-color: var(--accent-primary); }

/* --- 7. CONFIRMATION VIEW --- */
.confirmation-content { text-align: center; padding: 4rem 2rem; }
.confirmation-icon { font-size: 5rem; color: var(--accent-primary); margin-bottom: 1.5rem; }
.confirmation-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.confirmation-content p { max-width: 60ch; margin: 0 auto 2rem auto; }

/* --- 8. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .order-page-layout, .checkout-main-content { grid-template-columns: 1fr; }
    #sticky-cart-container { position: static; height: auto; margin-top: 2rem; }
}
@media (max-width: 768px) {
    #progress-stepper span { display: none; }
    .checkout-main-content { display: flex; flex-direction: column-reverse; }
}