* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.app-container {
    max-width: 1200px; /* Changed from 480px to full desktop width */
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    padding-bottom: 50px;
}

/* Header & Search */
.app-header {
    padding: 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.search-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    margin: 0 15px;
    font-size: 1.1rem;
    color: #333;
}

.search-box .search-icon { color: #e23744; font-size: 1.2rem;}
.search-box .mic-icon { color: #e23744; cursor: pointer; font-size: 1.2rem;}

.veg-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: #e0e0e0;
    border-radius: 12px;
    margin-top: 4px;
    position: relative;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Categories Carousel */
.categories-wrapper {
    display: flex;
    gap: 25px;
    padding: 30px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #f0f0f0;
    justify-content: center;
}
.categories-wrapper::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: #e23744;
    border-radius: 2px;
}

.category-item.active span {
    font-weight: bold;
    color: #111;
}

.cat-img-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item span {
    font-size: 1rem;
    color: #666;
    text-align: center;
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}
.filters-row::-webkit-scrollbar { display: none; }

.filter-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #444;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: background 0.2s, border-color 0.2s;
}

.filter-btn:hover {
    background: #fdfdfd;
    border-color: #d0d0d0;
}

/* Recommended Section */
.section-title {
    padding: 30px 20px 20px;
    max-width: 1160px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 1.1rem;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.food-grid {
    display: grid;
    /* Responsive grid: 4 columns on desktop, 3 on tablet, 2 on mobile */
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 20px 20px;
    max-width: 1160px;
    margin: 0 auto;
}

.food-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background: #222;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 0 6px 6px 0;
}

.card-info {
    padding: 15px;
    position: relative;
}

.rating-badge {
    position: absolute;
    top: -15px;
    left: 15px;
    background: #24963f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(36, 150, 63, 0.4);
}

.rest-name {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 2px;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 1rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    background-color: #ffde00; /* Yellow background */
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 8px;
}

.delivery-time {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 500;
}

.order-now-btn {
    display: block;
    text-align: center;
    background-color: #e23744;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.order-now-btn:hover {
    background-color: #c9303c;
}

/* Mobile Responsiveness for Order Page */
@media (max-width: 1024px) {
    .food-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .food-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .categories-wrapper { justify-content: flex-start; padding: 20px; }
    .filters-row { justify-content: flex-start; }
    .card-img-wrapper { height: 140px; }
    .rest-name { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .food-grid { grid-template-columns: 1fr; }
    .card-img-wrapper { height: 180px; }
}
