
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; padding-bottom: 70px; }
        .container { padding: 10px; }
        .page { display: none; }
        .page.active { display: block; }
        .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
        .header h1 { font-size: 20px; }
        .cart-badge { background: #ff4757; color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; }
        .categories { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; padding: 5px 0; }
        .category-btn { padding: 8px 15px; border: 2px solid #ddd; border-radius: 20px; background: white; cursor: pointer; white-space: nowrap; font-size: 14px; }
        .category-btn.active { background: #667eea; color: white; border-color: #667eea; }
        .banners-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #f0f0f0;
}

.banners-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.banners-scroll {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner {
    min-width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}
        .products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; height: 280px; cursor: pointer; }
        .product-image { width: 100%; height: 130px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; flex-shrink: 0; }
        .product-image img { width: 100%; height: 100%; object-fit: cover; }
        .product-info { padding: 10px; display: flex; flex-direction: column; flex: 1; }
        .product-name { font-size: 13px; font-weight: bold; margin-bottom: 5px; flex: 1; }
        .product-price { color: #667eea; font-weight: bold; font-size: 14px; margin-bottom: 8px; }
        .product-controls { display: flex; gap: 5px; align-items: center; margin-top: auto; }
        .quantity-btn { width: 28px; height: 28px; border: 1px solid #ddd; background: white; border-radius: 5px; cursor: pointer; color: #667eea; font-weight: bold; }
        .add-btn { flex: 1; padding: 8px; background: #667eea; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 12px; }
        .quantity-display { flex: 1; text-align: center; font-weight: bold; }
        .search-input { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 10px; font-size: 14px; margin-bottom: 15px; }
        .category-card { background: white; padding: 15px; border-radius: 10px; display: flex; align-items: center; gap: 15px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 10px; }
        .category-icon { font-size: 32px; }
        .category-name { font-weight: bold; font-size: 16px; }
        .account-info { background: white; padding: 20px; border-radius: 10px; margin-bottom: 15px; }
        .account-field { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
        .account-label { font-size: 12px; color: #999; font-weight: bold; margin-bottom: 5px; }
        .account-value { font-size: 16px; font-weight: bold; }
        .cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: white; margin-bottom: 5px; border-radius: 10px; }
        .cart-item-info { flex: 1; }
        .cart-item-name { font-weight: bold; font-size: 14px; }
        .cart-item-price { color: #667eea; font-size: 13px; }
        .cart-summary { background: white; padding: 15px; margin-top: 15px; border-radius: 10px; margin-bottom: 15px; }
        .summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
        .summary-row.total { font-weight: bold; color: #667eea; font-size: 16px; }
        .form-group { margin-bottom: 12px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
        .form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-family: inherit; }
        .btn-primary { width: 100%; padding: 12px; background: #667eea; color: white; border: none; border-radius: 5px; font-size: 15px; font-weight: bold; cursor: pointer; margin-bottom: 10px; }
        .btn-primary:disabled { opacity: 0.5; }
        .alert { padding: 12px; border-radius: 5px; margin-bottom: 10px; font-size: 14px; }
        .alert-error { background: #ffe0e0; color: #c00; }
        .alert-success { background: #e0ffe0; color: #0a0; }
        .empty-state { text-align: center; padding: 40px 20px; color: #999; }
        .product-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 200; }
        .product-modal.active { display: flex; align-items: flex-end; }
        .product-modal-content { background: white; width: 100%; border-radius: 20px 20px 0 0; padding: 20px; max-height: 90vh; overflow-y: auto; }
        .product-modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
        .modal-close { font-size: 28px; cursor: pointer; color: #999; background: none; border: none; padding: 0; }
        .product-modal-image { width: 100%; height: 300px; background: #f0f0f0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 100px; margin-bottom: 20px; overflow: hidden; }
        .product-modal-image img { width: 100%; height: 100%; object-fit: cover; }
        .product-modal-name { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
        .product-modal-price { color: #667eea; font-size: 18px; font-weight: bold; margin-bottom: 15px; }
        .product-modal-description { color: #666; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
        .quantity-input-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; background: #f5f5f5; padding: 10px; border-radius: 10px; }
        .quantity-input-group label { font-weight: bold; min-width: 80px; }
        .quantity-input-group input { width: 70px; padding: 8px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; text-align: center; }
        .modal-btn-group { display: flex; gap: 10px; }
        .modal-btn { flex: 1; padding: 12px; border: none; border-radius: 5px; font-size: 14px; font-weight: bold; cursor: pointer; }
        .modal-btn-cancel { background: #eee; color: #333; }
        .modal-btn-add { background: #667eea; color: white; }
        .tab-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid #eee; display: flex; justify-content: space-around; z-index: 100; }
        .tab-btn { flex: 1; padding: 8px; border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; color: #999; transition: all 0.3s; position: relative; }
        .tab-btn.active { color: #667eea; }
        .tab-btn.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #667eea; }
        .tab-label { font-size: 9px; margin-top: 2px; color: inherit; }
        .cart-badge-tab {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 10px;
        }