:root {
    --primary-color: #FF6B00;
    /* Vibrant Orange for food */
    --secondary-color: #FFF0E3;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-gray: #F3F4F6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #E5E7EB;
    /* Darker gray background for desktop view */
    color: var(--text-dark);
}

/* Mobile App Container Simulation */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding-bottom: 100px;
    /* Space for sticky button */
}

/* Header */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* --- ORDERING PAGE STYLES --- */

/* Hero Section & Slider */
.hero-slider .carousel-item {
    height: 200px;
}

.hero-slider img {
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

/* Sticky Category Nav */
.category-nav {
    position: sticky;
    top: 60px;
    /* Below header */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 99;
    padding: 10px 0;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #eee;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

/* FIX: Prevent section titles from hiding behind sticky header */
[id^="cat-"] {
    scroll-margin-top: 140px;
}

.cat-pill {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 50px;
    background: var(--bg-gray);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cat-pill.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

/* Menu Items */
.menu-item-card {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.1s;
}

.menu-img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

/* Add Button */
.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.add-btn:active {
    transform: scale(0.9);
}

/* Quantity Controls */
.qty-control {
    display: none;
    /* Hidden by default */
    background: var(--secondary-color);
    border-radius: 50px;
    height: 32px;
    align-items: center;
    padding: 0 2px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qty-text {
    width: 25px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Form Styling */
.form-section {
    background: white;
    padding: 20px;
    border-top: 10px solid var(--bg-gray);
}

.section-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-radio-group label {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: block;
    transition: all 0.2s;
    position: relative;
}

.custom-radio-group input[type="radio"] {
    display: none;
}

.custom-radio-group input[type="radio"]:checked+label {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
}

.custom-radio-group input[type="radio"]:checked+label::after {
    content: "\F272";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-color);
}

/* Map Buttons */
.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
}

.waze-btn {
    background-color: #33CCFF;
    color: white;
}

.google-btn {
    background-color: #EA4335;
    color: white;
}

.waze-btn:hover,
.waze-btn:active {
    background-color: #33CCFF;
    color: white;
    opacity: 0.85;
}

.google-btn:hover,
.google-btn:active {
    background-color: #EA4335;
    color: white;
    opacity: 0.85;
}

/* Payment */
.payment-method-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
}

.qr-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 15px auto;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: block;
}

/* Date/Time Slot Cards */
.slot-radio-group input[type="radio"] {
    display: none;
}

.slot-card-label {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible;
}

.slot-card-label:active {
    transform: scale(0.95);
}

.slot-radio-group input[type="radio"]:checked+.slot-card-label {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.1);
}

.slot-card-label small {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.slot-radio-group input[type="radio"]:checked+.slot-card-label small {
    color: var(--primary-color);
    opacity: 0.8;
}

/* Slot Status Badges */
.slot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-danger {
    background-color: #dc3545;
}

/* Disabled Slot State */
.slot-radio-group input[type="radio"]:disabled+.slot-card-label {
    background-color: #f8f9fa;
    border-color: #f0f0f0;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.slot-radio-group input[type="radio"]:disabled+.slot-card-label small {
    color: #ced4da;
}

/* Sold Out Styling */
.menu-item-card.sold-out {
    background-color: #f9fafb;
    border-color: #f0f0f0;
    user-select: none;
}

.menu-item-card.sold-out .menu-img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.menu-item-card.sold-out h6,
.menu-item-card.sold-out small,
.menu-item-card.sold-out .text-primary {
    color: #9ca3af !important;
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(31, 41, 55, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item-card.sold-out .add-btn {
    background-color: #e5e7eb;
    color: #d1d5db;
    pointer-events: none;
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
}

/* Bank Card Design */
.bank-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.bank-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.bank-logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.9;
}

.card-number-group {
    margin-bottom: 25px;
}

.card-label {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.card-number {
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.copy-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.card-holder {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bottom Sticky Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top: 1px solid #eee;
}

.main-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    width: 100%;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-btn:hover {
    background-color: #e66000;
    color: white;
}

.main-btn.loading {
    background-color: var(--text-light);
    justify-content: center;
    pointer-events: none;
}

.main-btn.success {
    background-color: #198754;
    justify-content: center;
    pointer-events: none;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(-50%);
    }

    25% {
        transform: translateX(calc(-50% - 10px));
    }

    75% {
        transform: translateX(calc(-50% + 10px));
    }
}

.shake-animation {
    animation: shake 0.4s ease-in-out;
}

/* --- THANK YOU PAGE STYLES --- */

/* Success Animation Area */
.success-hero {
    background: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    color: var(--primary-color);
    font-size: 2.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Timeline */
.order-timeline {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 10px;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 33.33%;
}

.step-icon {
    width: 30px;
    height: 30px;
    background: #e9ecef;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.9rem;
    border: 2px solid white;
}

.step.active .step-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.3);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

.step.active .step-label {
    color: var(--primary-color);
}

/* Receipt Card */
.receipt-card {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #eee;
    position: relative;
}

.receipt-header {
    border-bottom: 2px dashed #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Buttons for Thank You Page */
.bottom-action-bar-thankyou {
    display: flex;
    gap: 10px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    flex: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-home {
    background-color: #f8f9fa;
    color: var(--text-dark);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}