/* =========================================================
   FOOD DELIVERY FRONT
   assets1/css/style.css
   Mobile First + Desktop Responsive
   ========================================================= */

:root {
    --bg: #f7f7f7;
    --white: #ffffff;
    --text: #222222;
    --muted: #777777;
    --border: #e8e8e8;
    --primary: #e23744;
    --primary-dark: #c91f2c;
    --green: #168b45;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    --radius: 14px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   APP
   ========================================================= */

.app {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 70px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================================
   HEADER
   ========================================================= */

.top-header {
    width: 100%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.location {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.location-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.location small {
    display: block;

    color: var(--muted);
    font-size: 10px;

    margin-bottom: 2px;
}

.location strong {
    display: block;

    max-width: 130px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 700;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 17px;

    transition: 0.2s ease;
}

.icon-btn:active {
    transform: scale(0.94);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-section {
    background: var(--white);
    padding: 9px 0 14px;
}

.search-box {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 14px;

    background: #f6f6f6;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    transition: 0.2s ease;
}

.search-box:focus-within {
    background: #fff;
    border-color: #d7d7d7;
    box-shadow: 0 0 0 3px rgba(226, 55, 68, 0.06);
}

.search-box span {
    flex: 0 0 auto;
    font-size: 17px;
}

.search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 14px;
}

.search-box input::placeholder {
    color: #999;
}


/* =========================================================
   SECTION
   ========================================================= */

.section {
    padding: 17px 0 3px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 18px;
    line-height: 1.25;

    font-weight: 800;
}

.section-head a {
    flex: 0 0 auto;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   BANNER
   ========================================================= */

.banner-section {
    padding: 14px 0 0;
}

.banner-scroll {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    scrollbar-width: none;

    scroll-snap-type: x mandatory;
}

.banner-scroll::-webkit-scrollbar {
    display: none;
}

.banner {
    position: relative;

    flex: 0 0 88%;
    min-width: 88%;

    height: 170px;

    overflow: hidden;

    background: #dedede;

    border-radius: 16px;

    scroll-snap-align: start;

    box-shadow: var(--shadow);
}

.banner img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.banner-content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 20px;

    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.18),
            transparent
        );
}

.banner-content h2 {
    max-width: 75%;

    margin-bottom: 5px;

    font-size: 23px;
    line-height: 1.15;

    font-weight: 900;
}

.banner-content p {
    max-width: 75%;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.category-scroll {
    display: flex;

    gap: 14px;

    overflow-x: auto;

    scrollbar-width: none;

    padding-bottom: 4px;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category {
    flex: 0 0 76px;

    text-align: center;
}

.category-image {
    width: 68px;
    height: 68px;

    margin: 0 auto;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eeeeee;

    border-radius: 50%;

    border: 1px solid #eeeeee;
}

.category-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.category-name {
    margin-top: 7px;

    font-size: 11px;
    line-height: 1.25;

    font-weight: 700;

    color: #333;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   OFFERS
   ========================================================= */

.offer-grid {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    scrollbar-width: none;

    padding-bottom: 4px;
}

.offer-grid::-webkit-scrollbar {
    display: none;
}

.offer-card {
    flex: 0 0 220px;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.offer-image {
    width: 100%;
    height: 100px;

    overflow: hidden;

    background: #eeeeee;
}

.offer-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.offer-content {
    padding: 11px;
}

.offer-content strong {
    display: block;

    font-size: 14px;
    line-height: 1.3;

    font-weight: 800;
}

.offer-content p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   FOOD GRID
   ========================================================= */

.food-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.food-card {
    min-width: 0;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.food-card:active {
    transform: scale(0.985);
}

.food-image {
    width: 100%;
    height: 145px;

    position: relative;

    overflow: hidden;

    background: #eeeeee;
}

.food-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.food-card:hover .food-image img {
    transform: scale(1.04);
}

.food-content {
    padding: 10px 10px 11px;
}

.food-name {
    min-height: 34px;

    margin-bottom: 7px;

    font-size: 13px;
    line-height: 1.3;

    font-weight: 750;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.food-price {
    display: inline-block;

    color: #222;

    font-size: 14px;
    font-weight: 900;
}

.add-btn {
    float: right;

    min-width: 52px;

    padding: 6px 10px;

    color: var(--primary);

    background: #fff;

    border: 1px solid var(--primary);

    border-radius: 7px;

    font-size: 11px;
    font-weight: 800;

    transition: 0.2s ease;
}

.add-btn:hover {
    color: #fff;
    background: var(--primary);
}

.add-btn:active {
    transform: scale(0.94);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty {
    width: 100%;

    padding: 30px 15px;

    text-align: center;

    color: var(--muted);

    background: var(--white);

    border: 1px dashed #dcdcdc;

    border-radius: 14px;

    font-size: 13px;
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2000;

    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    background: rgba(255, 255, 255, 0.97);

    border-top: 1px solid #e5e5e5;

    box-shadow:
        0 -3px 15px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(10px);
}

.bottom-nav a {
    min-width: 55px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    color: #777;

    font-size: 10px;
    font-weight: 600;
}

.bottom-nav .nav-icon {
    display: block;

    height: 25px;

    font-size: 19px;
    line-height: 25px;
}

.bottom-nav a.active {
    color: var(--primary);
    font-weight: 800;
}


/* =========================================================
   PAGE SPACE
   ========================================================= */

.page-space {
    height: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 600px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .food-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .food-image {
        height: 165px;
    }

    .banner {
        flex-basis: 65%;
        min-width: 65%;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    body {
        background: #f7f7f7;
    }

    .app {
        padding-bottom: 0;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-inner {
        min-height: 70px;
    }

    .logo {
        font-size: 24px;
    }

    .search-section {
        padding: 14px 0 18px;
    }

    .search-box {
        max-width: 850px;
        margin: auto;
    }

    .banner {
        flex-basis: 48%;
        min-width: 48%;

        height: 220px;
    }

    .banner-scroll {
        overflow-x: hidden;
    }

    .category-scroll {
        overflow-x: hidden;
    }

    .category {
        flex: 0 0 82px;
    }

    .category-image {
        width: 72px;
        height: 72px;
    }

    .offer-grid {
        overflow-x: hidden;
    }

    .offer-card {
        flex: 1 1 0;
    }

    .food-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 16px;
    }

    .food-image {
        height: 190px;
    }

    .food-content {
        padding: 12px;
    }

    .food-name {
        font-size: 14px;
    }

    .section {
        padding-top: 22px;
    }

    .section-head h2 {
        font-size: 20px;
    }

    .bottom-nav {
        display: none;
    }

    .page-space {
        height: 30px;
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1100px) {

    .container {
        max-width: 1240px;
    }

    .banner {
        height: 250px;
    }

    .food-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

    .food-image {
        height: 190px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo {
        font-size: 18px;
    }

    .header-actions {
        gap: 4px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
    }

    .food-grid {
        gap: 8px;
    }

    .food-image {
        height: 125px;
    }

    .food-content {
        padding: 8px;
    }

    .food-name {
        font-size: 12px;
    }

    .food-price {
        font-size: 13px;
    }

    .add-btn {
        padding: 5px 8px;
    }
}


/* =========================================================
   TOUCH / MOBILE
   ========================================================= */

@media (hover: none) {

    .food-card:hover {
        transform: none;
    }

    .food-card:hover .food-image img {
        transform: none;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}