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

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

.food-detail {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 46px;
}

.food-detail-head {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--fd-line);
    border-radius: 24px;
    background: var(--fd-card);
    box-shadow: var(--fd-shadow);
}

.food-cover {
    height: 230px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

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

.food-cover span {
    color: var(--fd-primary);
    font-size: 64px;
    font-weight: 900;
}

.food-detail-head h1 {
    margin: 12px 0 9px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

.food-detail-head p {
    max-width: 760px;
    margin: 0;
    color: var(--fd-muted);
    line-height: 1.65;
}

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

.food-detail .food-badges em,
.food-detail .food-badges strong {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

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

.food-detail .food-badges strong {
    background: #dcfce7;
    color: #166534;
}

.food-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.food-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    background: var(--fd-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.food-actions a:hover {
    background: var(--fd-primary-dark);
}

.food-actions a:nth-child(2) {
    background: #17211d;
}

.food-actions a:nth-child(3) {
    background: var(--fd-accent);
    color: #17211d;
}

.food-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    background: #ecfeff;
    color: #155e75;
    font-weight: 700;
}

.food-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr);
    gap: 20px;
    align-items: start;
}

.food-columns > section,
.food-columns > aside {
    min-width: 0;
}

.food-columns > aside {
    position: sticky;
    top: 18px;
}

.food-panel {
    margin-bottom: 18px;
    padding: 21px;
    border: 1px solid var(--fd-line);
    border-radius: 19px;
    background: var(--fd-card);
    box-shadow: 0 8px 28px rgba(15, 35, 28, .05);
}

.food-panel h2 {
    margin: 0 0 15px;
    font-size: 23px;
}

.food-panel h3 {
    margin: 20px 0 11px;
    font-size: 18px;
    color: var(--fd-primary-dark);
}

.food-panel p {
    color: var(--fd-muted);
    line-height: 1.6;
}

.menu-cat {
    overflow: hidden;
    margin: 12px 0 18px;
    border: 1px solid var(--fd-line);
    border-radius: 14px;
}

.menu-cat h4 {
    margin: 0;
    padding: 12px 14px;
    background: #eef8f5;
    color: var(--fd-primary-dark);
    font-size: 15px;
}

.menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 14px;
    border-top: 1px solid var(--fd-line);
}

.menu-item:first-of-type {
    border-top: 0;
}

.menu-item b {
    display: block;
    font-size: 15px;
}

.menu-item p {
    margin: 5px 0 0;
    font-size: 13px;
}

.menu-item > strong {
    white-space: nowrap;
    color: var(--fd-primary);
    font-size: 14px;
}

.food-muted {
    margin-top: -5px;
    color: var(--fd-muted);
    font-size: 14px;
}

.food-review-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.food-review-form label {
    display: grid;
    gap: 7px;
    color: var(--fd-text);
    font-size: 13px;
    font-weight: 800;
}

.food-review-form label small {
    color: var(--fd-muted);
    font-weight: 500;
}

.food-review-form input,
.food-review-form select,
.food-review-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5d0;
    border-radius: 10px;
    background: #fff;
    color: var(--fd-text);
    font: inherit;
}

.food-review-form input,
.food-review-form select {
    min-height: 44px;
    padding: 0 12px;
}

.food-review-form textarea {
    min-height: 130px;
    padding: 12px;
    resize: vertical;
}

.food-review-form .wide {
    grid-column: 1 / -1;
}

.food-review-form .food-check {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
    font-weight: 600;
}

.food-review-form .food-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    min-height: 0;
    margin-top: 2px;
}

.food-review-form button {
    grid-column: 1 / -1;
    min-height: 46px;
    border: 0;
    border-radius: 11px;
    background: var(--fd-primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.food-review-form button:hover {
    background: var(--fd-primary-dark);
}

.food-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.review {
    margin-top: 12px;
    padding: 15px;
    border: 1px solid var(--fd-line);
    border-radius: 14px;
    background: var(--fd-soft);
}

.review b {
    color: var(--fd-primary-dark);
}

.review h3 {
    margin: 8px 0 4px;
    color: var(--fd-text);
}

.review p {
    margin: 0 0 8px;
}

.review small {
    color: var(--fd-muted);
}

.food-columns aside .food-panel p {
    margin: 0 0 15px;
}

.food-columns aside .food-panel p:last-child {
    margin-bottom: 0;
}

.food-columns aside a {
    color: var(--fd-primary-dark);
    text-decoration: none;
    word-break: break-word;
}

.food-columns aside a:hover {
    text-decoration: underline;
}

.hour {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--fd-line);
}

.hour:last-child {
    border-bottom: 0;
}

.hour span {
    color: var(--fd-muted);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-list span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e6f5f2;
    color: var(--fd-primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.food-panel.source {
    background: #fffbeb;
    border-color: #fde68a;
}

.food-panel.source h2 {
    color: #92400e;
}

.food-panel.source p {
    color: #7c5b12;
}

.food-panel.source > a {
    display: inline-flex;
    margin: 4px 6px 0 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .food-detail-head {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .food-cover {
        height: 190px;
    }

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

    .food-columns > aside {
        position: static;
    }
}

@media (max-width: 650px) {
    .food-detail {
        width: min(100% - 22px, 1180px);
        margin-top: 16px;
    }

    .food-detail-head {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .food-cover {
        height: 210px;
    }

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

    .food-review-form .wide,
    .food-review-form button {
        grid-column: auto;
    }

    .menu-item {
        grid-template-columns: 1fr;
    }

    .menu-item > strong {
        white-space: normal;
    }

    .food-panel {
        padding: 16px;
    }
}
