        :root {
            --primary-color: #c41e3a; /* Chinese Red */
            --secondary-color: #ffd700; /* Gold */
            --accent-color: #1a1a1a; /* Black */
            --text-color: #333;
            --bg-color: #fff8e7; /* Cream/Off-white */
            --card-bg: white;
            --shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
            --transition: all 0.3s ease;
        }

        [data-theme="dark"] {
            --text-color: #f0f0f0;
            --bg-color: #1a1a1a;
            --card-bg: #2d2d2d;
            --shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
        }

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

        html, body {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: var(--transition);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-image: 
                radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 20 L30 15 L25 20 Z' fill='%23c41e3a' fill-opacity='0.03'/%3E%3C/svg%3E");
        }

        /* Header */
/* Store Closed Banner & Overlay - NEW */
.store-closed-banner {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    border-bottom: 3px solid #ffd700;
    animation: pulseBanner 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 99;
}

@keyframes pulseBanner {
    0%, 100% { box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(220, 53, 69, 0.6); }
}

.store-closed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.overlay-content {
    background: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 90%;
    animation: overlaySlideIn 0.5s ease;
    border: 3px solid #ffd700;
}

@keyframes overlaySlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-content i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.overlay-content h2 {
    color: #c41e3a;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.overlay-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

[data-theme="dark"] .overlay-content {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: white;
}

[data-theme="dark"] .overlay-content h2 {
    color: #ffd700;
}

[data-theme="dark"] .overlay-content p {
    color: #ccc;
}

/* Store Closed State */
body.store-closed #menu-container {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

body.store-closed .menu-card {
    cursor: not-allowed !important;
}

body.store-closed .order-btn,
body.store-closed .modal-btn,
body.store-closed .checkout-btn {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Responsive overlay */
@media (max-width: 480px) {
    .overlay-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .overlay-content i {
        font-size: 3rem;
    }
    
    .overlay-content h2 {
        font-size: 1.5rem;
    }
}

header {
            background: linear-gradient(135deg, #c41e3a, #8b0000);
            padding: 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow);
            border-bottom: 3px solid #ffd700;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            text-decoration: none;
        }

        .logo h1 {
            font-size: 1.5rem;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .logo i {
            font-size: 2rem;
            animation: bounce 2s infinite;
        }

        /* Chinese Lantern Decoration */
        .lantern {
            position: absolute;
            top: 10px;
            font-size: 1.5rem;
            animation: swing 3s ease-in-out infinite;
            opacity: 0.8;
        }

        .lantern-left {
            left: 20px;
        }

        .lantern-right {
            right: 20px;
            animation-delay: 1.5s;
        }

        @keyframes swing {
            0%, 100% { transform: rotate(-5deg); }
            50% { transform: rotate(5deg); }
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .header-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-shrink: 0;
        }

        .header-controls .search-container {
            flex: 1;
            min-width: 200px;
            max-width: 500px;
            display: block;
        }

        /* Search Bar */
        .search-container {
            position: relative;
            width: 100%;
            height: 45px;
            display: block;
            box-sizing: border-box;
        }

        .search-container input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 0 20px 0 20px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            background: rgba(255,255,255,0.95);
            color: #333;
            transition: var(--transition);
            box-sizing: border-box;
            line-height: 45px;
            margin: 0;
        }

        .search-container input:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
        }

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

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

        /* Theme Toggle */
        .theme-toggle {
            background: rgba(255, 215, 0, 0.3);
            border: 2px solid rgba(255, 215, 0, 0.5);
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .theme-toggle:hover {
            background: rgba(255, 215, 0, 0.3);
            transform: rotate(180deg);
        }

        .theme-toggle .theme-icon {
            position: absolute;
            transition: all 0.3s ease;
        }

        .theme-toggle .theme-icon.sun {
            display: flex;
        }

        .theme-toggle .theme-icon.moon {
            display: none;
        }

        /* Dark theme - show moon, hide sun */
        [data-theme="dark"] .theme-toggle .theme-icon.sun {
            display: none;
        }

        [data-theme="dark"] .theme-toggle .theme-icon.moon {
            display: flex;
        }

        /* Cart Button */
        .cart-btn {
            background: rgba(255, 215, 0, 0.3);
            border: 2px solid rgba(255, 215, 0, 0.5);
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .cart-btn:hover {
            background: rgba(255, 215, 0, 0.5);
            transform: scale(1.1);
        }

        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ffd700;
            color: #c41e3a;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 0.75rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: var(--card-bg);
            border-radius: 20px;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease;
        }

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

        .modal-header {
            background: linear-gradient(135deg, #c41e3a, #8b0000);
            color: white;
            padding: 20px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            margin: 0;
            color: white;
            border: none;
            padding: 0;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
        }

        .modal-body {
            padding: 20px;
        }

        .modal-menu-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .modal-menu-info h4 {
            color: #c41e3a;
            font-size: 1.3rem;
            margin-bottom: 10px;
        }

        .modal-menu-info .price {
            font-size: 1.5rem;
            font-weight: bold;
            color: #c41e3a;
            margin-bottom: 10px;
        }

        .modal-menu-info .description {
            color: var(--text-color);
            opacity: 0.8;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .quantity-control {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }

        .quantity-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            border: 2px solid #c41e3a;
            background: white;
            color: #c41e3a;
            font-size: 1.3rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quantity-btn:hover {
            background: #c41e3a;
            color: white;
        }

        .quantity-display {
            font-size: 1.5rem;
            font-weight: bold;
            min-width: 50px;
            text-align: center;
        }

        .modal-total {
            font-size: 1.3rem;
            font-weight: bold;
            text-align: center;
            padding: 15px;
            background: var(--bg-color);
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
        }

        .modal-btn {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .modal-btn.add-cart {
            background: #ffd700;
            color: #c41e3a;
        }

        .modal-btn.add-cart:hover {
            background: #ffc107;
            transform: scale(1.02);
        }

        .modal-btn.buy-now {
            background: #c41e3a;
            color: white;
        }

        .modal-btn.buy-now:hover {
            background: #8b0000;
            transform: scale(1.02);
        }

        /* Cart Modal */
        .cart-items {
            max-height: 300px;
            overflow-y: auto;
        }

        .cart-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
            gap: 15px;
        }

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

        .cart-item-image {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-name {
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 5px;
        }

        .cart-item-price {
            color: #c41e3a;
            font-weight: bold;
        }

        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-item-qty button {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1px solid #c41e3a;
            background: white;
            color: #c41e3a;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .cart-item-qty button:hover {
            background: #c41e3a;
            color: white;
        }

        .cart-item-remove {
            color: #dc3545;
            cursor: pointer;
            font-size: 1.2rem;
            padding: 5px;
        }

        .cart-item-remove:hover {
            color: #a71d2a;
        }

        .cart-empty {
            text-align: center;
            padding: 40px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .cart-empty i {
            font-size: 4rem;
            color: #c41e3a;
            margin-bottom: 15px;
        }

        .cart-footer {
            padding: 20px;
            border-top: 2px solid #ffd700;
            background: var(--bg-color);
            border-radius: 0 0 20px 20px;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .cart-total-label {
            font-size: 1.2rem;
            font-weight: 600;
        }

        .cart-total-amount {
            font-size: 1.5rem;
            font-weight: bold;
            color: #c41e3a;
        }

        .checkout-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #c41e3a, #8b0000);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .checkout-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
        }

        .checkout-btn:active {
            transform: scale(0.98);
        }

        .checkout-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Skeleton Loading */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        [data-theme="dark"] .skeleton {
            background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
            background-size: 200% 100%;
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-card {
            background: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .skeleton-image {
            width: 100%;
            height: 200px;
        }

        .skeleton-content {
            padding: 20px;
        }

        .skeleton-title {
            height: 24px;
            width: 70%;
            margin-bottom: 12px;
        }

        .skeleton-price {
            height: 28px;
            width: 40%;
            margin-bottom: 12px;
        }

        .skeleton-desc {
            height: 16px;
            width: 90%;
            margin-bottom: 8px;
        }

        .skeleton-desc-2 {
            height: 16px;
            width: 60%;
            margin-bottom: 15px;
        }

        .skeleton-btn {
            height: 44px;
            width: 100%;
        }

        /* Touch feedback for all buttons */
        .quantity-btn:active,
        .cart-item-qty button:active {
            transform: scale(0.9);
        }

        .modal-btn:active {
            transform: scale(0.98);
        }

        /* Delivery Section */
        .delivery-section {
            padding: 15px 20px;
            background: var(--bg-color);
            border-top: 2px solid #ffd700;
        }

        .delivery-option {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .delivery-option-label {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 15px;
            background: var(--card-bg);
            border: 2px solid #ddd;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        .delivery-option-label:hover {
            border-color: #c41e3a;
        }

        .delivery-option-label input[type="radio"] {
            display: none;
        }

        .delivery-option-label input[type="radio"]:checked + .delivery-option-icon {
            font-size: 1.2rem;
        }

        .delivery-option-label:has(input:checked) {
            border-color: #c41e3a;
            background: rgba(196, 30, 58, 0.1);
            color: #c41e3a;
        }

        .delivery-option-icon {
            font-size: 1.5rem;
        }

        .delivery-map-container {
            animation: slideDown 0.3s ease;
        }
        
        .delivery-map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .gps-btn {
            background: #28a745;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: var(--transition);
        }
        
        .gps-btn:hover {
            background: #218838;
            transform: scale(1.05);
        }

        .delivery-section h4 {
            color: #c41e3a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .delivery-instruction {
            font-size: 0.85rem;
            color: var(--text-color);
            opacity: 0.7;
            margin-bottom: 10px;
        }

        #delivery-map {
            width: 100%;
            height: 250px;
            border-radius: 10px;
            margin-bottom: 15px;
            z-index: 1;
            position: relative;
        }
        
        /* Ensure Leaflet map tiles load properly */
        .leaflet-container {
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }

        .delivery-info {
            display: flex;
            justify-content: space-between;
            padding: 10px 15px;
            background: var(--card-bg);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .distance-info, .ongkir-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .distance-info span:first-child,
        .ongkir-info span:first-child {
            font-size: 0.8rem;
            color: var(--text-color);
            opacity: 0.7;
        }

        .distance-info span:last-child,
        .ongkir-info span:last-child {
            font-size: 1.1rem;
            font-weight: bold;
            color: #c41e3a;
        }

        .ongkir-info span:last-child.free {
            color: #28a745;
        }

        /* Customer Info Form */
        .customer-info-form {
            background: var(--card-bg);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .customer-info-form h4 {
            color: #c41e3a;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1rem;
        }

        .customer-info-form .form-group {
            margin-bottom: 12px;
        }

        .customer-info-form .form-group:last-child {
            margin-bottom: 0;
        }

        .customer-info-form label {
            display: block;
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 5px;
            color: var(--text-color);
        }

        .customer-info-form input,
        .customer-info-form textarea {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 0.9rem;
            background: var(--bg-color);
            color: var(--text-color);
            transition: var(--transition);
            box-sizing: border-box;
        }

        .customer-info-form input:focus,
        .customer-info-form textarea:focus {
            outline: none;
            border-color: #c41e3a;
        }

        .customer-info-form textarea {
            resize: vertical;
            min-height: 60px;
        }

        /* Category Filter */
        .category-container {
            max-width: 1200px;
            margin: 15px auto;
            padding: 0 15px;
            width: 100%;
        }

        .categories {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            gap: 8px;
            padding: 10px 5px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .categories::-webkit-scrollbar {
            display: none;
        }

        .category-btn {
            flex: 0 0 auto;
            white-space: nowrap;
            padding: 10px 18px;
            border: none;
            border-radius: 20px;
            background: var(--card-bg);
            color: var(--text-color);
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            box-shadow: var(--shadow);
            transition: var(--transition);
            min-height: 44px;
            min-width: 44px;
        }

        .category-btn:hover {
            transform: translateY(-2px);
            background: #c41e3a;
            color: white;
        }

        .category-btn:active {
            transform: scale(0.95);
            background: #a01830;
        }

        .category-btn.active {
            background: #c41e3a;
            color: white;
            border: 2px solid #ffd700;
        }

        .category-btn .count {
            background: rgba(255,255,255,0.3);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            margin-left: 5px;
        }

        .category-btn:hover .count {
            background: rgba(255,255,255,0.5);
        }

        /* Main Content */
        main {
            flex: 1;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            width: 100%;
        }

        #menu-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        /* Menu Card */
        .menu-card {
            background: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
            cursor: pointer;
        }

        .menu-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

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

        .menu-card .image-container {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
            background: #eee;
        }

        .menu-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .menu-card:hover img {
            transform: scale(1.1);
        }

        .menu-card .no-image {
            width: 100%;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #ddd, #eee);
            color: #999;
            font-size: 3rem;
        }

        .menu-card .content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            min-height: 180px;
        }

        .menu-card h3 {
            color: #c41e3a;
            margin-bottom: 10px;
            font-size: 1.2rem;
            border-bottom: 2px solid #ffd700;
            padding-bottom: 8px;
            display: inline-block;
        }

        .menu-card .price {
            font-size: 1.4rem;
            font-weight: bold;
            color: #c41e3a;
            margin-bottom: 10px;
        }

        .menu-card .description {
            color: var(--text-color);
            opacity: 0.8;
            font-size: 0.9rem;
            margin-bottom: 15px;
            line-height: 1.5;
            flex: 1;
        }

        .menu-card .status {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 10px;
            align-self: flex-start;
        }

        .menu-card .status.tersedia {
            background: #d4edda;
            color: #155724;
        }

        .menu-card .status.tidak-tersedia {
            background: #f8d7da;
            color: #721c24;
        }

        .menu-card .order-btn {
            display: block;
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(135deg, #c41e3a, #8b0000);
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            text-align: center;
            /* Touch-friendly */
            min-height: 44px;
        }

        .menu-card .order-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
        }

        .menu-card .order-btn:active {
            transform: scale(0.98);
        }

        /* Loading Animation */
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 50px;
            grid-column: 1 / -1;
        }

        .loader {
            width: 60px;
            height: 60px;
            border: 5px solid #ffd700;
            border-top: 5px solid #c41e3a;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .loading-text {
            margin-top: 20px;
            color: var(--text-color);
            font-size: 1.1rem;
        }

        /* Error & Empty State */
        .state-message {
            text-align: center;
            padding: 50px;
            grid-column: 1 / -1;
        }

        .state-message i {
            font-size: 4rem;
            color: #c41e3a;
            margin-bottom: 20px;
        }

        .state-message p {
            font-size: 1.2rem;
            color: var(--text-color);
            opacity: 0.8;
        }

        .state-message.error p {
            color: #dc3545;
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #8b0000, #c41e3a);
            color: white;
            padding: 30px 20px;
            margin-top: auto;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .footer-section h3 {
            margin-bottom: 15px;
            color: #ffd700;
        }

        .footer-section p {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-section a {
            color: white;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-section a:hover {
            color: #ffd700;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            text-decoration: none;
            color: white;
        }

        .social-links a:hover {
            background: #ffd700;
            color: #c41e3a;
            transform: translateY(-3px);
        }

        .social-links a.grab-link,
        .social-links a.gojek-link {
            width: auto;
            min-width: 55px;
            height: 40px;
            padding: 0 10px;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 20px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            margin-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            opacity: 0.8;
        }

        /* Responsive */
        @media (max-width: 768px) {
            /* Header */
            header {
                padding: 12px 15px;
            }

            .header-content {
                flex-direction: column;
                gap: 10px;
            }

            .logo h1 {
                font-size: 1.2rem;
            }

            .header-controls {
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
            }

            .header-controls .search-container {
                width: 100%;
                max-width: none;
                margin-bottom: 10px;
            }

            /* Main content */
            main {
                padding: 15px 10px;
            }

            /* Menu container on tablets */
            #menu-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            /* Menu card */
            .menu-card {
                border-radius: 12px;
            }

            .menu-card .image-container {
                height: 150px;
            }

            .menu-card .content {
                padding: 12px;
                min-height: auto;
            }

            .menu-card h3 {
                font-size: 1rem;
            }

            .menu-card .price {
                font-size: 1.1rem;
            }

            .menu-card .description {
                font-size: 0.8rem;
                -webkit-line-clamp: 2;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .menu-card .order-btn {
                padding: 10px;
                font-size: 0.9rem;
                width: 100%;
            }

            /* Category buttons */
            .category-container {
                padding: 10px 8px;
            }

            .category-btn {
                padding: 8px 14px;
                font-size: 0.8rem;
            }

            /* Modal */
            .modal {
                max-width: 95%;
                margin: 10px;
            }

            .modal-menu-image {
                height: 180px;
            }

            .modal-body {
                padding: 15px;
            }

            .quantity-control {
                margin: 15px 0;
            }

            .quantity-btn {
                width: 40px;
                height: 40px;
            }

            .modal-actions {
                flex-direction: column;
            }

            .modal-btn {
                padding: 12px;
                font-size: 0.9rem;
            }

            /* Cart */
            .cart-item {
                padding: 10px;
                gap: 10px;
            }

            .cart-item-image {
                width: 50px;
                height: 50px;
            }

            .cart-item-name {
                font-size: 0.9rem;
            }

            .cart-item-price {
                font-size: 0.85rem;
            }

            /* Delivery section */
            .delivery-option {
                flex-direction: column;
                gap: 10px;
            }

            .delivery-option-label {
                padding: 10px;
            }

            #delivery-map {
                height: 200px;
            }

            .delivery-info {
                flex-direction: column;
                gap: 10px;
            }

            /* Footer */
            .footer-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .footer-section {
                text-align: center;
            }

            /* History modal */
            .history-content {
                max-height: 300px;
            }

            .history-item {
                padding: 12px;
            }
        }

        @media (max-width: 480px) {
            /* Header */
            header {
                padding: 10px 12px;
            }

            .logo h1 {
                font-size: 1rem;
            }

            .logo i {
                font-size: 1.5rem;
            }

            .cart-btn, .theme-toggle {
                width: 38px;
                height: 38px;
            }

            .cart-count {
                width: 18px;
                height: 18px;
                font-size: 0.65rem;
            }

            /* Main content */
            main {
                padding: 10px 8px;
            }

            /* Menu container - 2 columns on mobile */
            #menu-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            /* Menu card */
            .menu-card .image-container {
                height: 120px;
            }

            .menu-card .content {
                padding: 8px;
            }

            .menu-card h3 {
                font-size: 0.85rem;
                margin-bottom: 5px;
            }

            .menu-card .price {
                font-size: 0.9rem;
                margin-bottom: 5px;
            }

            .menu-card .description {
                font-size: 0.7rem;
                margin-bottom: 8px;
                -webkit-line-clamp: 2;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .menu-card .status {
                font-size: 0.6rem;
                padding: 3px 6px;
                margin-bottom: 5px;
            }

            .menu-card .order-btn {
                padding: 8px 6px;
                font-size: 0.75rem;
                min-height: 36px;
                width: 100%;
            }

            /* Category buttons */
            .categories {
                gap: 6px;
                padding: 8px 5px;
            }

            .category-btn {
                padding: 8px 12px;
                font-size: 0.75rem;
                min-height: 40px;
            }

            .category-btn .count {
                font-size: 0.65rem;
                padding: 1px 5px;
            }

            /* Modal */
            .modal {
                max-width: 100%;
                margin: 0;
                border-radius: 15px 15px 0 0;
                max-height: 85vh;
            }

            .modal-header {
                padding: 15px;
            }

            .modal-header h3 {
                font-size: 1.1rem;
            }

            .modal-menu-image {
                height: 150px;
            }

            .modal-body {
                padding: 12px;
            }

            .modal-menu-info h4 {
                font-size: 1.1rem;
            }

            .modal-menu-info .price {
                font-size: 1.2rem;
            }

            .modal-menu-info .description {
                font-size: 0.85rem;
            }

            .quantity-control {
                margin: 12px 0;
                gap: 15px;
            }

            .quantity-btn {
                width: 36px;
                height: 36px;
                font-size: 1.1rem;
            }

            .quantity-display {
                font-size: 1.2rem;
                min-width: 40px;
            }

            .modal-total {
                padding: 12px;
                font-size: 1.1rem;
            }

            .modal-btn {
                padding: 12px 10px;
                font-size: 0.85rem;
            }

            /* Cart modal */
            .cart-items {
                max-height: 250px;
            }

            .cart-item {
                padding: 8px;
                gap: 8px;
                flex-wrap: wrap;
            }

            .cart-item-image {
                width: 45px;
                height: 45px;
            }

            .cart-item-info {
                flex: 1;
                min-width: 100px;
            }

            .cart-item-name {
                font-size: 0.85rem;
            }

            .cart-item-price {
                font-size: 0.8rem;
            }

            .cart-item-qty {
                order: 3;
                width: 100%;
                justify-content: flex-start;
                margin-top: 5px;
            }

            .cart-item-remove {
                order: 4;
                margin-left: auto;
            }

            .cart-footer {
                padding: 15px;
            }

            .cart-total-label {
                font-size: 1rem;
            }

            .cart-total-amount {
                font-size: 1.2rem;
            }

            .checkout-btn {
                padding: 12px;
                font-size: 1rem;
            }

            /* Delivery section */
            .delivery-section {
                padding: 12px 15px;
            }

            .delivery-option-label {
                padding: 10px 12px;
                font-size: 0.9rem;
            }

            .delivery-option-icon {
                font-size: 1.2rem;
            }

            #delivery-map {
                height: 180px;
            }

            .delivery-instruction {
                font-size: 0.8rem;
            }

            .delivery-info {
                padding: 8px 12px;
            }

            .distance-info span:last-child,
            .ongkir-info span:last-child {
                font-size: 1rem;
            }

            .gps-btn {
                padding: 6px 10px;
                font-size: 0.75rem;
            }

            /* Customer info form */
            .customer-info-form {
                padding: 12px;
            }

            .customer-info-form h4 {
                font-size: 0.95rem;
            }

            .customer-info-form input,
            .customer-info-form textarea {
                padding: 8px 10px;
                font-size: 0.85rem;
            }

            /* Search */
            .search-container {
                height: 40px;
            }

            .search-container input {
                font-size: 0.9rem;
                line-height: 40px;
            }

            /* History modal */
            .history-content {
                max-height: 250px;
                padding: 10px;
            }

            .history-item {
                padding: 10px;
            }

            .history-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .history-date {
                font-size: 0.75rem;
            }

            .history-item-row {
                font-size: 0.8rem;
            }

            .history-total {
                font-size: 1rem;
            }

            .history-clear-btn {
                padding: 10px;
                font-size: 0.85rem;
            }

            /* Toast notifications */
            .toast {
                left: 10px;
                right: 10px;
                bottom: 10px;
                padding: 12px 15px;
                font-size: 0.9rem;
            }
        }

        /* History Modal Styles */
        .history-content {
            max-height: 400px;
            overflow-y: auto;
            padding: 15px;
        }

        .history-empty {
            text-align: center;
            padding: 40px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .history-empty i {
            font-size: 4rem;
            color: #c41e3a;
            margin-bottom: 15px;
        }

        .history-item {
            background: var(--bg-color);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .history-item:last-child {
            margin-bottom: 0;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
        }

        .history-date {
            font-size: 0.85rem;
            color: var(--text-color);
            opacity: 0.7;
        }

        .history-status {
            padding: 3px 10px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 600;
        }

.history-status.pending {
            background: #fff3cd;
            color: #856404;
        }

        .history-status.confirmed {
            background: #d4edda;
            color: #155724;
        }

        .history-status.completed {
            background: #d1ecf1;
            color: #0c5460;
        }

        .history-status.cancelled {
            background: #f8d7da;
            color: #721c24;
        }

        /* Order Status Colors - Customer History */
        .status-pending {
            background: #fff3cd !important;
            color: #856404 !important;
        }

        .status-confirmed {
            background: #d4edda !important;
            color: #155724 !important;
        }

        .status-completed {
            background: #d1ecf1 !important;
            color: #0c5460 !important;
        }

        .status-cancelled {
            background: #f8d7da !important;
            color: #721c24 !important;
        }

        /* Checkout Button Loading State */
        .checkout-btn.loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .checkout-btn.loading::after {
            content: '';
            width: 16px;
            height: 16px;
            border: 2px solid #ffffff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
        }

        .history-items {
            margin-bottom: 10px;
        }

        .history-item-row {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            font-size: 0.9rem;
        }

        .history-item-name {
            color: var(--text-color);
        }

        .history-item-qty {
            color: #c41e3a;
            font-weight: 600;
        }

        .history-item-price {
            color: var(--text-color);
        }

        .history-total {
            display: flex;
            justify-content: space-between;
            padding-top: 10px;
            border-top: 1px solid #ddd;
            font-weight: bold;
            color: #c41e3a;
            font-size: 1.1rem;
        }

        .history-delivery-info {
            margin-top: 10px;
            padding: 8px;
            background: rgba(196, 30, 58, 0.1);
            border-radius: 5px;
            font-size: 0.85rem;
        }

        .history-delivery-info span {
            color: var(--text-color);
        }

        .history-clear-btn {
            width: 100%;
            padding: 12px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 0.9rem;
            cursor: pointer;
            margin-top: 15px;
            transition: var(--transition);
        }

        .history-clear-btn:hover {
            background: #c82333;
        }

