/* ============================================================
   LE TACOS - MAIN CSS (CSS Variables, Reset, Typography)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors (Updated to Logo Palette: Orange & Red) */
    --lt-green-dark: #ea580c;  /* Main Logo Orange */
    --lt-green: #f26b24;       /* Primary Orange */
    --lt-green-light: #f97316; /* Light Orange */
    --lt-yellow: #d94a26;      /* Logo Ribbon Red */
    --lt-yellow-dark: #b91c1c; /* Darker Ribbon Red */
    --lt-red: #ef4444;
    --lt-white: #FFFFFF;
    --lt-cream: #FAF7F2;

    /* UI Colors */
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 4px 20px rgba(234, 88, 12, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Spacing */
    --navbar-height: 70px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--lt-cream);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ensure old order steps hidden by default for new layout */
body.new-homepage .legacy-order-container {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.lt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.lt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--lt-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.lt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.lt-btn-primary {
    background: var(--lt-green-dark);
    color: white;
    box-shadow: var(--shadow-green);
}

.lt-btn-primary:hover {
    background: var(--lt-green-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(13, 92, 63, 0.35);
}

.lt-btn-yellow {
    background: var(--lt-yellow);
    color: white;
}

.lt-btn-yellow:hover {
    background: var(--lt-yellow-dark);
    transform: translateY(-1px);
}

.lt-btn-outline {
    background: transparent;
    color: var(--lt-green-dark);
    border: 2px solid var(--lt-green-dark);
}

.lt-btn-outline:hover {
    background: var(--lt-green-dark);
    color: white;
}

.lt-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.lt-btn-ghost:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* ============================================================
   SPINNER / LOADER
   ============================================================ */
.lt-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.lt-section {
    padding: 60px 0;
}

.lt-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lt-section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#lt-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.lt-toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: all;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid var(--lt-green-dark);
    max-width: 320px;
}

.lt-toast.success {
    border-left-color: #22C55E;
}

.lt-toast.error {
    border-left-color: var(--lt-red);
}

.lt-toast.warning {
    border-left-color: var(--lt-yellow);
}

.lt-toast.info {
    border-left-color: #3B82F6;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================================
   ORDER DETAILS MODAL (PREMIUM UX)
   ============================================================ */
.lt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.lt-details-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lt-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}

.lt-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lt-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lt-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.lt-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.details-section {
    margin-bottom: 24px;
}

.details-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.details-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.details-product-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 10px;
}

.details-product-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 4px;
}

.details-product-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* ============================================================
   MODERN NOTIFICATIONS (TOASTS & MODALS)
   ============================================================ */
#lt-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.lt-toast {
    pointer-events: auto;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.lt-toast.success {
    border-left: 4px solid #10B981;
}

.lt-toast.error {
    border-left: 4px solid #EF4444;
}

.lt-toast.warning {
    border-left: 4px solid #F59E0B;
}

.lt-toast.info {
    border-left: 4px solid #3B82F6;
}

.lt-toast-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lt-toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
}

/* Custom Modal (Confirm/Alert Replacement) */
.lt-custom-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
}

.lt-custom-modal {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lt-custom-modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lt-custom-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.lt-custom-modal-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.lt-custom-modal-actions {
    display: flex;
    gap: 12px;
}

.lt-custom-modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.lt-custom-modal-btn.confirm {
    background: var(--lt-green-dark);
    color: white;
}

.lt-custom-modal-btn.confirm:hover {
    background: var(--lt-green-light);
    transform: translateY(-1px);
}

.lt-custom-modal-btn.cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.lt-custom-modal-btn.cancel:hover {
    background: #e5e7eb;
}

/* Button Feedback States */
.lt-add-btn.success {
    background: #10B981 !important;
    color: white !important;
    pointer-events: none;
}

.lt-add-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile full-screen modal */
@media (max-width: 576px) {
    .lt-details-modal {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
        max-width: 100%;
    }
}