/* Online Ordering Styles */

/* Default CSS Variables (overridden by header.php with brand colors) */
:root {
    --brand-primary: #4e73df;
    --brand-secondary: #858796;
    --brand-accent: #1cc88a;
    --brand-text: #5a5c69;
}

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Order Type Modal */
.order-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.order-type-modal .card {
    max-width: 400px;
    width: 90%;
}

/* Menu Items */
.menu-item-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.menu-item-image {
    height: 180px;
    object-fit: cover;
}

.menu-item-placeholder {
    height: 180px;
}

.category-title {
    color: #333;
}

/* Category Navigation */
.category-nav {
    position: sticky;
    top: 61px;
    background: #fff;
    z-index: 100;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-modifiers {
    font-size: 0.875rem;
    color: #666;
}

.cart-totals {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0.25rem;
}

.cart-totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.cart-totals .grand-total {
    font-size: 1.25rem;
    font-weight: bold;
    border-top: 2px solid #333;
    margin-top: 10px;
    padding-top: 10px;
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    padding: 0;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    transition: transform 0.3s;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Order Status */
.order-status-tracker {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.order-status-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9ecef;
    z-index: 0;
}

.status-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.status-step .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    color: #6c757d;
}

.status-step.completed .step-icon {
    background: var(--brand-accent);
    color: #fff;
}

.status-step.active .step-icon {
    background: var(--brand-primary);
    color: #fff;
    animation: pulse 2s infinite;
}

.status-step .step-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.status-step.completed .step-label,
.status-step.active .step-label {
    color: #333;
    font-weight: 500;
}

/* Note: pulse animation uses brand color defined in header.php inline styles */

/* Checkout */
.checkout-section {
    background: #fff;
    border-radius: 0.25rem;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.checkout-section h5 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Payment Form */
.card-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.card-icons i {
    font-size: 2rem;
    color: #6c757d;
}

.card-icons i.active {
    color: var(--brand-primary);
}

/* Login/Register Forms */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Order History */
.order-card {
    border-left: 4px solid var(--brand-primary);
    margin-bottom: 15px;
}

.order-card.status-completed {
    border-left-color: var(--brand-accent);
}

.order-card.status-cancelled {
    border-left-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-item-image,
    .menu-item-placeholder {
        height: 150px;
    }

    .order-status-tracker {
        flex-direction: column;
        gap: 20px;
    }

    .order-status-tracker::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 4px;
        height: auto;
    }

    .status-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .status-step .step-icon {
        margin: 0;
    }
}

/* Modifier Groups */
.modifier-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0.25rem;
}

.modifier-group h6 {
    margin-bottom: 10px;
}

/* Combo Modifier Groups */
.combo-group .combo-item {
    background: #fff;
    transition: background-color 0.2s;
}

.combo-group .combo-item:hover {
    background: #f0f0f0;
}

.combo-group .combo-item-checkbox:checked + label {
    color: var(--brand-primary);
}

.combo-group .combo-options {
    padding: 5px 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.combo-group .combo-options .form-check-inline {
    margin-right: 10px;
}

.combo-group .combo-options .form-check-label {
    font-weight: 500;
}

/* Style checked combo option */
.combo-option-radio:checked + label {
    color: var(--brand-primary);
    font-weight: bold;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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