* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(255,107,107,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.location i {
    font-size: 16px;
}

/* Main Content */
.main-content {
    padding: 20px;
    padding-bottom: 80px;
}

/* Categories */
.categories {
    margin-bottom: 30px;
}

.categories h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.category-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    padding: 8px 20px;
    background: #f1f3f5;
    border-radius: 25px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item.active {
    background: #ff6b6b;
    color: white;
}

/* Food Cards */
.items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.food-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,107,107,0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.card-content {
    padding: 12px;
}

.card-content h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 14px;
}

.add-to-cart {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #ff5252;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    border-radius: 20px 20px 0 0;
}

.bottom-nav a {
    color: #999;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    position: relative;
}

.bottom-nav a.active {
    color: #ff6b6b;
}

.bottom-nav i {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Cart Page Styles */
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
}

.empty-cart i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #666;
}

.empty-cart p {
    color: #999;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
}

.btn-secondary {
    background: #f1f3f5;
    color: #333;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.item-price {
    color: #ff6b6b;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.item-quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.item-total {
    font-weight: 600;
    margin-top: 8px;
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b6b;
    text-decoration: none;
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 15px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cart-actions .btn {
    flex: 1;
    text-align: center;
}

/* Checkout Page Styles */
.checkout-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Order Success Page */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.order-id {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    padding: 10px;
    background: #f1f3f5;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 380px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .category-slider {
        padding-bottom: 5px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: 150px;
    }
}