
:root {
    --food-bg: #f4f7f5;
    --food-surface: #ffffff;
    --food-surface-soft: #f8faf9;
    --food-text: #17211d;
    --food-muted: #66746d;
    --food-line: #dfe7e2;
    --food-primary: #0f766e;
    --food-primary-dark: #0b5f59;
    --food-accent: #f59e0b;
    --food-success: #15803d;
    --food-shadow: 0 14px 40px rgba(15, 35, 28, .08);
    --food-radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--food-bg);
    color: var(--food-text);
}

.food-container,
.food-wrap,
.food-discovery,
.food-stats,
.food-popular,
.food-featured-chefs-v10 {
    width: min(1220px, calc(100% - 32px));
    margin-inline: auto;
}

.food-hero {
    padding: 42px 0 28px;
    background:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, .18), transparent 28%),
        linear-gradient(135deg, #0f766e 0%, #164e63 100%);
    color: #fff;
}

.food-hero .food-container > span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.food-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
}

.food-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.65;
}

.food-search-v2 {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) repeat(4, minmax(145px, .8fr)) auto;
    gap: 10px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.food-search-v2 input,
.food-search-v2 select,
.food-search-v2 button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    font: inherit;
}

.food-search-v2 input,
.food-search-v2 select {
    padding: 0 13px;
    background: #fff;
    color: var(--food-text);
}

.food-search-v2 button {
    width: auto;
    padding: 0 22px;
    background: var(--food-accent);
    color: #17211d;
    font-weight: 900;
    cursor: pointer;
}

.food-popular {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 6px;
}

.food-popular b {
    margin-right: 3px;
}

.food-popular a {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--food-line);
    border-radius: 999px;
    background: var(--food-surface);
    color: var(--food-primary-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.food-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 0 24px;
}

.food-stats > div {
    padding: 20px;
    border: 1px solid var(--food-line);
    border-radius: 17px;
    background: var(--food-surface);
    box-shadow: var(--food-shadow);
}

.food-stats b {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.food-stats span {
    display: block;
    margin-top: 7px;
    color: var(--food-muted);
}

.food-discovery {
    padding: 8px 0 12px;
}

.food-section-head,
.food-row-title,
.food-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.food-section-head {
    margin-bottom: 17px;
}

.food-section-head small,
.food-title small {
    color: var(--food-primary);
    font-weight: 800;
}

.food-section-head h2,
.food-title h2 {
    margin: 4px 0 0;
    font-size: clamp(25px, 4vw, 34px);
}

.food-section-head p {
    max-width: 570px;
    margin: 0;
    color: var(--food-muted);
    line-height: 1.55;
}

.food-discovery-row {
    margin-bottom: 17px;
    padding: 18px;
    border: 1px solid var(--food-line);
    border-radius: var(--food-radius);
    background: var(--food-surface);
    box-shadow: 0 8px 28px rgba(15, 35, 28, .05);
}

.food-row-title {
    align-items: center;
    margin-bottom: 13px;
}

.food-row-title h3 {
    margin: 0;
    font-size: 20px;
}

.food-row-title a,
.chef-all-link {
    color: var(--food-primary);
    text-decoration: none;
    font-weight: 800;
}

.food-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.food-mini-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--food-line);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: var(--food-surface-soft);
}

.food-mini-card:hover,
.food-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .35);
    box-shadow: var(--food-shadow);
}

.food-mini-image {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ccfbf1, #cffafe);
    color: var(--food-primary);
    font-weight: 900;
}

.food-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-mini-card b,
.food-mini-card small,
.food-mini-card em {
    display: block;
    min-width: 0;
}

.food-mini-card b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.food-mini-card small {
    margin: 3px 0;
    color: var(--food-muted);
}

.food-mini-card em {
    color: var(--food-primary);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.food-discovery-empty,
.food-empty {
    padding: 22px;
    border: 1px dashed #b9c9c0;
    border-radius: 14px;
    color: var(--food-muted);
    background: var(--food-surface-soft);
    text-align: center;
}

/* Featured chefs on food homepage */
.food-featured-chefs-v10 {
    margin-top: 18px;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--food-line);
    border-radius: 24px;
    background: var(--food-surface);
    box-shadow: var(--food-shadow);
}

.food-featured-chefs-v10 .chef-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.food-featured-chefs-v10 .chef-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--food-line);
    border-radius: 17px;
    background: var(--food-surface-soft);
}

.food-featured-chefs-v10 .chef-avatar {
    height: 135px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #d1fae5, #cffafe);
}

.food-featured-chefs-v10 .chef-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-featured-chefs-v10 .chef-avatar span {
    font-size: 48px;
    color: var(--food-primary);
    font-weight: 900;
}

.food-featured-chefs-v10 .chef-card-body {
    padding: 15px;
}

.food-featured-chefs-v10 .chef-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.food-featured-chefs-v10 .chef-title-row h3 {
    margin: 0;
    font-size: 18px;
}

.food-featured-chefs-v10 .chef-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 900;
}

.food-featured-chefs-v10 .chef-specialties {
    margin: 8px 0;
    color: var(--food-primary);
    font-size: 13px;
    font-weight: 800;
}

.food-featured-chefs-v10 .chef-card-body > p:not(.chef-specialties) {
    min-height: 76px;
    margin: 0 0 13px;
    color: var(--food-muted);
    font-size: 14px;
    line-height: 1.5;
}

.food-featured-chefs-v10 .chef-button {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--food-primary);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

/* Main results */
.food-wrap {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    padding: 4px 0 38px;
}

.food-wrap aside {
    align-self: start;
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid var(--food-line);
    border-radius: 18px;
    background: var(--food-surface);
    box-shadow: 0 8px 28px rgba(15, 35, 28, .05);
}

.food-wrap aside h3 {
    margin: 0;
    padding: 15px 16px 9px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--food-muted);
}

.food-wrap aside a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid #edf2ef;
    color: var(--food-text);
    text-decoration: none;
}

.food-wrap aside a:hover {
    background: #f0fdfa;
    color: var(--food-primary-dark);
}

.food-wrap aside b {
    color: var(--food-primary);
}

.food-title {
    align-items: center;
    margin-bottom: 14px;
}

.food-title > span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e6f5f2;
    color: var(--food-primary-dark);
    font-weight: 800;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.food-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--food-line);
    border-radius: 18px;
    background: var(--food-surface);
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

.food-photo {
    height: 170px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.food-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-photo span {
    font-size: 48px;
    color: var(--food-primary);
    font-weight: 900;
}

.food-card-body {
    padding: 16px;
}

.food-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.food-badges em,
.food-badges strong {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
}

.food-badges em {
    background: #e6f5f2;
    color: var(--food-primary-dark);
}

.food-badges strong {
    background: #dcfce7;
    color: var(--food-success);
}

.food-card h3 {
    margin: 11px 0 5px;
    font-size: 20px;
}

.food-card p,
.food-card small {
    color: var(--food-muted);
}

.food-card p {
    margin: 0 0 7px;
    line-height: 1.45;
}

.food-items {
    margin-top: 10px;
    padding: 9px;
    border-radius: 10px;
    background: var(--food-surface-soft);
    color: var(--food-muted);
    font-size: 12px;
}

.food-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--food-line);
}

.food-rating b {
    color: var(--food-primary);
}

.food-rating span {
    color: var(--food-muted);
    font-size: 12px;
}

/* Keep footer readable */
footer {
    clear: both;
}

@media (max-width: 1180px) {
    .food-search-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .food-search-v2 input {
        grid-column: span 2;
    }

    .food-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .food-featured-chefs-v10 .chef-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .food-container,
    .food-wrap,
    .food-discovery,
    .food-stats,
    .food-popular,
    .food-featured-chefs-v10 {
        width: min(100% - 22px, 1220px);
    }

    .food-search-v2 {
        grid-template-columns: 1fr 1fr;
    }

    .food-search-v2 input {
        grid-column: 1 / -1;
    }

    .food-search-v2 button {
        width: 100%;
    }

    .food-stats {
        grid-template-columns: 1fr 1fr;
    }

    .food-wrap {
        grid-template-columns: 1fr;
    }

    .food-wrap aside {
        position: static;
    }

    .food-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .food-hero {
        padding-top: 28px;
    }

    .food-search-v2 {
        grid-template-columns: 1fr;
        padding: 11px;
    }

    .food-search-v2 input {
        grid-column: auto;
    }

    .food-stats,
    .food-mini-grid,
    .food-featured-chefs-v10 .chef-grid,
    .food-grid {
        grid-template-columns: 1fr;
    }

    .food-mini-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .food-mini-image {
        width: 48px;
        height: 48px;
    }

    .food-featured-chefs-v10 {
        padding: 15px;
    }

    .food-section-head,
    .food-row-title,
    .food-title {
        align-items: flex-start;
    }
}
