﻿ body {
            margin: 0;
            padding: 0;
            background: #ffffff;
            font-family: "Poppins", sans-serif;
        }

        /* =======================
            HEADER
        ======================== */
        header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: #ff4458;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            min-height: 28px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .brand .logo {
            width: 42px;
            height: 42px;
            background: white;
            color: #ff4458;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            font-weight: 700;
        }
        .title { font-size: 20px; font-weight: 700; }
        .subtitle { font-size: 12px; opacity: .85; }

        .cartIcon { position: relative; cursor: pointer; color: white; }
        .cartIcon svg { width: 30px; height: 30px; }
        .cart-count {
            position: absolute;
            top: -6px; right: -6px;
            background: white;
            color: #ff4458;
            padding: 3px 6px;
            font-size: 12px;
            border-radius: 50%;
            font-weight: bold;
        }

        /* =======================
            SEARCH BAR
        ======================== */
        .searchBar {
            margin: 18px auto;
            max-width: 850px;
            background: #ff4458;
            border-radius: 40px;
            padding: 10px 18px;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .searchBar input {
            width: 100%;
            border: none;
            background: transparent;
            color: white;
            font-size: 15px;
            outline: none;
        }

        /* =======================
            HERO CAROUSEL (Zomato-like)
        ======================== */
        .carousel-container {
            width: 100%;
            overflow: hidden;
            margin-top: 20px;
            position: relative;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.6s ease-in-out;
        }

        .carousel-slide {
            min-width: 100%;
            height: 260px;
            position: relative;
        }

        .carousel-slide img {
            width: 100%;
            height: 260px;
            object-fit: cover;
        }

        /* Dot indicators */
        .carousel-dots {
            position: absolute;
            bottom: 12px;
            width: 100%;
            text-align: center;
        }
        .carousel-dots span {
            height: 11px;
            width: 11px;
            margin: 0 4px;
            display: inline-block;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: .3s;
        }
        .carousel-dots .active {
            background: #fff;
            transform: scale(1.2);
        }

        @media(max-width: 600px) {
            .carousel-slide, .carousel-slide img {
                height: 180px;
            }
        }

        /* =======================
            CATEGORY GRID
        ======================== */
        .category-container {
            max-width: 1250px;
            margin: 30px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 28px;
        }

        .category-card {
            position: relative;
            height: 200px;
            border-radius: 18px;
            overflow: hidden;
            cursor: pointer;
            transition: .35s ease;
            box-shadow: 0 4px 18px rgba(0,0,0,0.15);
        }
        .category-card:hover { transform: translateY(-6px); }

        .category-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.82);
            transition: .5s;
        }
        .category-card:hover img {
            transform: scale(1.12);
            filter: brightness(0.6);
        }

        .category-overlay {
            position: absolute;
            bottom: 12px;
            left: 12px;
            right: 12px;
            padding: 12px;
            background: rgba(0,0,0,0.35);
            backdrop-filter: blur(4px);
            border-radius: 12px;
            color: white;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
        }

        /* =======================
   RESTAURANT LIST SECTION
======================= */
.restaurant-section {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
}

.restaurant-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.restaurant-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: .25s;
}

.restaurant-card:hover {
    transform: translateY(-6px);
}

.rest-img-container {
    position: relative;
    width: 100%;
    height: 180px;
}

.rest-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Offer badge */
.offer-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #005eff;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Rating badge */
.rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #2ecc71;
    color: #fff;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
}

/* Restaurant Details */
.rest-details {
    padding: 15px;
}

.rest-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.rest-cuisine {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    height: 36px;
    overflow: hidden;
}

.rest-meta {
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 14px;
    margin-top: 8px;
}

/* -------------------------
   Zomato Restaurant Slider
-------------------------- */
.restaurant-slider {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.restaurant-track {
    display: flex;
    gap: 22px;
    transition: transform 0.45s ease;
}

.restaurant-card-link {
    flex: 0 0 270px;
    text-decoration: none;
    color: inherit;
}

/* Responsive cards */
@media(max-width: 1024px) {
    .restaurant-card-link { flex: 0 0 45%; }
}
@media(max-width: 600px) {
    .restaurant-card-link { flex: 0 0 60%; }
}

/* Card Styling (Zomato-like) */
.restaurant-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.28s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.restaurant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 26px rgba(0,0,0,0.18);
}

/* Slider Buttons */
.slide-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    border: none;
    background: white;
    font-size: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 10;
}

.left-btn { left: 8px; }
.right-btn { right: 8px; }

@media(max-width: 768px) {
    .slide-btn { display: none; }
}


/* Full-screen loader wrapper */
#z-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #EF4F5F; /* Zomato red */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

/* Zomato Logo circle */
#z-loader .z-logo {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    color: #EF4F5F;
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite ease-in-out;
}

/* Pulse ring animation */
#z-loader .z-pulse {
    margin-top: 20px;
    width: 130px;
    height: 130px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse 1.6s infinite ease-out;
}

/* Bounce effect */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Pulse expanding ring */
@keyframes pulse {
    0% {
        transform: scale(0.7);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Fade-out hidden state */
#z-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}


/* -------------------
   SHOP HEADER
-------------------- */
.shop-header {
    position: relative;
    margin-bottom: 10px;
}

.shop-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shop-info {
    padding: 15px;
    background: #fff;
}

.shop-name {
    font-size: 24px;
    font-weight: 700;
}

.shop-meta {
    color: #777;
    margin-top: 6px;
}


/* -------------------
   CATEGORY TABS (Sticky)
-------------------- */
.category-tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 12px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tab-item {
    padding: 8px 18px;
    background: #f3f3f3;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: .25s;
}

.tab-item.active {
    background: #ff4458;
    color: #fff;
    font-weight: 600;
}


/* -------------------
   PRODUCT LIST
-------------------- */
.product-list {
    padding: 15px;
}

.product-card {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.product-info {
    width: 60%;
}

.p-name {
    font-size: 17px;
    font-weight: 700;
}

.p-desc {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
}

.p-price {
    font-weight: 600;
    color: #333;
}

/* Image + Add Button */
.product-image {
    width: 110px;
    position: relative;
}

.product-image img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}

.add-btn {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border: none;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* =======================
    TAB SWITCHER
======================= */
.tab-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px 0;
    max-width: 1250px;
    margin: 0 auto;
}
.tab-btn {
    padding: 10px 28px;
    border: 2px solid #ff4458;
    background: #fff;
    color: #ff4458;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s;
}
.tab-btn:hover {
    background: #fff0f0;
}
.tab-btn.active {
    background: #ff4458;
    color: #fff;
}
#home-content {
    transition: opacity 0.25s;
}


