/* Food delivery */
:root {
    --accent: #f2541b;
    --accent-dark: #d9440f;
    --accent-soft: #fff1e8;
}
.accent {
    color: var(--accent);
}
.food .see-all {
    color: var(--accent);
}
.category-nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
}
.order-status.delivered {
    background: #e8f8ee;
    color: #008f40;
}

/* Hero (full-width background band, content stays in the container) */
.food-hero {
    background: linear-gradient(100deg, #fff4ec 0%, #ffe6d5 55%, #ffd9c2 100%);
    overflow: hidden;
}
.food-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.7rem;
    min-height: 330px;
}
.food-hero-text {
    padding: 2.125rem 0 3.825rem;
}
.food-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 900;
    color: #e5361b;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}
.food-hero-text > p {
    font-size: 1.05rem;
    color: #303038;
    margin-bottom: 1.6rem;
}
.hero-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    text-align: center;
    max-width: 480px;
}
.hero-perks li {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-perks span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-bottom: .55rem;
}
.hero-perks span.green {
    color: #03a94d;
}
.hero-perks strong {
    font-size: .82rem;
    line-height: 1.2;
}
.hero-perks small {
    font-size: .7rem;
    color: var(--ek-muted);
    margin-top: .15rem;
}
.food-hero-img {
    position: relative;
    align-self: stretch;
}
.food-hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-script {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 0 #e5361b, 0 4px 14px rgba(0, 0, 0, .35);
    transform: rotate(-8deg);
    text-align: center;
}

/* Search bar overlapping the hero */
.food-searchbar {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.637rem;
    background: #fff;
    border-radius: 6px;
    padding: .7rem;
    margin-top: -2.4rem;
    box-shadow: none;
}
.food-searchbar .addr {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .35rem 0.765rem;
    min-width: 230px;
}
.food-searchbar .addr > i {
    color: #e11d48;
    font-size: 1.3rem;
}
.food-searchbar .addr small {
    display: block;
    font-size: .68rem;
    color: var(--ek-muted);
}
.food-searchbar select {
    border: 0;
    outline: 0;
    font-weight: 600;
    background: transparent;
    padding: 0;
    width: 100%;
}
.food-searchbar .q {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0 0.85rem;
}
.food-searchbar .q i {
    color: var(--ek-muted);
}
.food-searchbar .q input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    height: 46px;
}
.food-searchbar .btn-accent {
    min-width: 140px;
    font-size: 1.05rem;
}

/* Category chips */
.food-cats {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1.062rem 0 1.19rem;
}
.food-cats a {
    flex: 1 0 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: .7rem .4rem;
    border-radius: 6px;
    color: var(--ek-text);
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
.food-cats a:hover,
.food-cats a.current {
    background: var(--accent-soft);
}
.food-cats span {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.food-cats span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.food-cats a.all span {
    background: var(--accent);
    color: #fff;
    font-size: 1.5rem;
}
.food-cats.compact {
    padding-top: 0;
}

/* Promo banners */
.promo {
    position: relative;
    display: flex;
    align-items: center;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
}
.promo.big {
    height: 150px;
}
.promo img {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
    transition: transform .4s;
}
.promo:hover img {
    transform: scale(1.04);
}
.promo-body {
    position: relative;
    padding: 0 1.275rem;
    max-width: 62%;
}
.promo h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .2rem;
}
.promo p {
    font-size: .8rem;
    margin-bottom: .7rem;
    opacity: .95;
}
.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    padding: .35rem 0.85rem;
    font-size: .78rem;
    font-weight: 600;
}
.promo-badge {
    position: absolute;
    top: 14px;
    right: 42%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e11d48;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-12deg);
    box-shadow: none;
}
.promo.theme-orange {
    background: linear-gradient(90deg, #f2541b 0%, #ff8a3d 100%);
}
.promo.theme-orange .promo-btn {
    background: #c2410c;
    border-color: #c2410c;
}
.promo.theme-peach {
    background: linear-gradient(90deg, #fff1e4 0%, #ffe2c9 100%);
    color: var(--ek-text);
}
.promo.theme-peach .promo-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.promo.theme-green {
    background: linear-gradient(90deg, #dff3e3 0%, #c9ecd1 100%);
    color: #14532d;
}
.promo.theme-green .promo-btn {
    background: #008f40;
    border-color: #008f40;
    color: #fff;
}

/* Restaurant cards */
.r-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}
.r-card {
    display: block;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    overflow: hidden;
    color: var(--ek-text);
    transition: box-shadow .2s, transform .2s;
}
.r-card:hover {
    box-shadow: none;
    transform: none;
}
.r-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--accent-soft);
    overflow: hidden;
}
.r-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.r-card:hover .r-cover img {
    transform: scale(1.05);
}
.r-new {
    position: absolute;
    left: 8px;
    top: 8px;
    background: #03a94d;
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 5px;
}
.r-body {
    padding: .7rem 0.68rem 0.68rem;
}
.r-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: -1.6rem;
    margin-bottom: .45rem;
}
.r-title h3 {
    font-size: .9rem;
    font-weight: 700;
    margin: 1.4rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.r-rating {
    font-size: .78rem;
}
.r-rating .bi {
    color: #f59e0b;
}
.r-rating span,
.r-cuisine {
    color: var(--ek-muted);
}
.r-cuisine {
    font-size: .76rem;
    margin: .15rem 0 .55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.r-meta {
    display: flex;
    justify-content: space-between;
    font-size: .74rem;
    color: #606060;
    border-top: 1px solid var(--ek-border);
    padding-top: .5rem;
}

/* Dish cards */
.d-grid6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}
.d-card {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.d-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.d-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.d-card:hover .d-img img {
    transform: scale(1.05);
}
.d-off {
    position: absolute;
    left: 8px;
    top: 8px;
    background: #e11d48;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 5px;
}
.d-body {
    padding: .6rem 0.637rem 0.637rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.d-name {
    font-weight: 700;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.d-rest {
    font-size: .72rem;
    color: var(--ek-muted);
}
.d-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: .4rem;
}
.d-price {
    font-weight: 800;
    font-size: .95rem;
}
.d-old {
    display: block;
    font-size: .7rem;
    color: #9ca3af;
}
.d-add {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 0;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background .2s, transform .2s;
}
.d-add:hover {
    background: var(--accent-dark);
}
.d-add.added {
    background: #03a94d;
    transform: scale(1.1);
}

/* Restaurant page */
.rest-hero {
    position: relative;
    height: 240px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--accent);
}
.rest-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rest-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 10, 5, .85) 0%, rgba(20, 10, 5, .1) 70%);
}
.rest-hero-body {
    position: absolute;
    left: 1.75rem;
    right: 1.75rem;
    bottom: 1.4rem;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 1.02rem;
    color: #fff;
}
.rest-hero h1 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
}
.rest-hero p {
    margin: .1rem 0 .45rem;
    opacity: .9;
}
.rest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 0.935rem;
    font-size: .82rem;
}
.menu-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
    padding: .6rem 0;
    margin-bottom: .5rem;
}
.menu-tabs a {
    flex-shrink: 0;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .35rem 0.807rem;
    font-size: .82rem;
    color: #303038;
}
.menu-tabs a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.menu-tabs span {
    color: var(--ek-muted);
    font-size: .72rem;
}
.menu-sec {
    scroll-margin-top: 60px;
    margin-bottom: 1.5rem;
}
.menu-sec h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .8rem;
}
.menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.722rem;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .65rem;
}
.menu-item img {
    width: 92px;
    height: 92px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.menu-item h3 {
    font-size: .9rem;
    font-weight: 700;
    margin: 0 0 .2rem;
}
.menu-item p {
    font-size: .74rem;
    color: var(--ek-muted);
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-item .d-old {
    display: inline;
    margin-left: .3rem;
}
.d-off-inline {
    font-size: .68rem;
    font-weight: 700;
    color: #e11d48;
}
.tag-healthy {
    font-size: .62rem;
    font-weight: 700;
    color: #008f40;
    background: #e8f8ee;
    border-radius: 6px;
    padding: .05rem .45rem;
    vertical-align: middle;
}
.side-sticky {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.rest-cart,
.rest-info {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.935rem 1.02rem;
}
.rest-cart h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .75rem;
}
.rc-row {
    display: flex;
    justify-content: space-between;
    gap: 0.637rem;
    font-size: .84rem;
    padding: .3rem 0;
}
.rc-row.total {
    border-top: 1px solid var(--ek-border);
    margin-top: .35rem;
    padding-top: .6rem;
    font-weight: 700;
}

/* Cart */
.cart-rest {
    display: flex;
    align-items: center;
    gap: 0.637rem;
    padding: 0.765rem 1.062rem;
    border-bottom: 1px solid var(--ek-border);
    background: #fffaf6;
    color: var(--ek-text);
    border-radius: var(--ek-radius) var(--ek-radius) 0 0;
}
.cart-rest strong {
    display: block;
}
.cart-rest small {
    color: var(--ek-muted);
}
.cart-rest .ms-auto {
    color: var(--accent);
}

@media (max-width: 1199.98px) {
    .r-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .d-grid6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .food-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .food-hero-img {
        display: none;
    }
    .r-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .menu-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767.98px) {
    .food-searchbar {
        flex-wrap: wrap;
    }
    .food-searchbar .addr,
    .food-searchbar .q,
    .food-searchbar .btn-accent {
        flex: 1 1 100%;
    }
    .hero-perks span {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    .r-grid,
    .d-grid6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }
    .promo-body {
        max-width: 75%;
    }
    .promo-badge {
        display: none;
    }
}
