:root {
    --bfd-bg: #f3f0ea;
    --bfd-surface: #fffcfa;
    --bfd-ink: #1f1814;
    --bfd-muted: #6f6258;
    --bfd-line: rgba(31, 24, 20, 0.09);
    --bfd-accent: #d4624d;
    --bfd-accent-dark: #b84a38;
    --bfd-teal: #3e6f6a;
    --bfd-shadow: rgba(31, 24, 20, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bfd-bg);
    color: var(--bfd-ink);
    font-family: "Outfit", system-ui, sans-serif;
}

.breakfast-detail-body {
    min-height: 100vh;
}

.detail-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 60px;
    padding: 8px 12px;
    background: rgba(255, 252, 250, 0.95);
    border-bottom: 1px solid var(--bfd-line);
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px var(--bfd-shadow);
}

.detail-topbar p {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--bfd-line);
    background: var(--bfd-surface);
    color: var(--bfd-ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--bfd-shadow);
}

.lang-mini {
    display: flex;
    gap: 4px;
    border: 1px solid var(--bfd-line);
    border-radius: 999px;
    padding: 3px;
    background: var(--bfd-surface);
}

.lang-mini a {
    text-decoration: none;
    color: var(--bfd-muted);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 10px;
}

.lang-mini a.is-active {
    background: var(--bfd-teal);
    color: #fff;
}

.detail-main {
    padding-bottom: 32px;
}

.detail-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-content {
    margin-top: -18px;
    background: var(--bfd-surface);
    border-top: 1px solid var(--bfd-line);
    border-radius: 22px 22px 0 0;
    padding: 22px 16px 14px;
    box-shadow: 0 -4px 24px var(--bfd-shadow);
}

.detail-main.no-image .detail-content {
    margin-top: 0;
    border-radius: 0;
    border-top: 0;
    padding-top: 16px;
    box-shadow: none;
}

.title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.title-price-row h1 {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 26px;
    line-height: 1.15;
}

.short-desc {
    margin: 8px 0 0;
    color: var(--bfd-muted);
    font-size: 15px;
    line-height: 1.45;
    max-width: 96%;
}

.price-tag {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--bfd-accent), var(--bfd-accent-dark));
    color: #fff;
    border-radius: 16px;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(212, 98, 77, 0.28);
}

.discount-note {
    margin: 10px 0 0;
}

.discount-note span {
    color: #9a8b7d;
    text-decoration: line-through;
    font-size: 14px;
}

.meta-grid {
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--bfd-line);
    border-bottom: 1px solid var(--bfd-line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.meta-item > div {
    flex: 1;
    min-width: 0;
}

/* Box is on the wrapper so Material font ink cannot paint outside the rounded rect */
.meta-icon-wrap {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--bfd-line);
    background: #f0ebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.meta-icon-wrap .material-icons {
    border: none;
    background: transparent;
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--bfd-teal);
    display: block;
}

/* groups glyph metrics sit left in many Material builds */
.meta-icon-wrap--portion .material-icons {
    transform: translateX(2px);
}

.meta-item small {
    display: block;
    color: var(--bfd-muted);
    font-size: 11px;
    margin-bottom: 2px;
}

.meta-item strong {
    display: block;
    font-size: 14px;
}

.detail-content h2 {
    margin: 18px 0 12px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 18px;
}

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

.ingredient-list span {
    border: 1px solid var(--bfd-line);
    background: #f7f4ef;
    color: var(--bfd-ink);
    border-radius: 999px;
    font-size: 13px;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .detail-topbar p {
        font-size: 15px;
    }

    .title-price-row h1 {
        font-size: 22px;
    }

    .price-tag {
        font-size: 16px;
        padding: 12px 14px;
    }
}
