@font-face {
    font-family: "GeneralSans-Variable";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("https://www.freshfoodpoint.be/assets/fonts/general-sans/GeneralSans-Variable.woff2") format("woff2");
}

:root {
    --bg: #effbf6;
    --fg: #3d3d3f;
    --muted: #757575;
    --brand: #e6007e;
    --brand-dark: #b30062;
    --brand-soft: #fbd2e9;
    --green: #31af7f;
    --mint: #98e2c6;
    --mint-soft: #effbf6;
    --card: #fff;
    --line: #ededed;
    --line-strong: #fbd2e9;
    --warning: #f7bd5d;
    --radius: 1.5rem;
    --radius-sm: .8rem;
    --shadow: 0 4px 6px -2px rgba(16,24,40,.03), 0 12px 16px -4px rgba(16,24,40,.08);
    --space-1: .5rem;
    --space-2: .8rem;
    --space-3: 1.2rem;
    --space-4: 1.6rem;
    --space-5: 2.4rem;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 16px; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--fg);
    font-family: "GeneralSans-Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.ffp-body {
    background-color: var(--mint-soft);
    background-image:
        radial-gradient(circle at center, transparent 0 1.55rem, rgba(255,255,255,.58) 1.6rem 1.82rem, transparent 1.88rem),
        radial-gradient(circle at center, transparent 0 2.55rem, rgba(255,255,255,.46) 2.6rem 2.82rem, transparent 2.88rem);
    background-size: 10.6rem 10.6rem;
}

a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: 0; }
h2 { margin-bottom: 1rem; font-size: 1.7rem; line-height: 1.15; }
h3 { margin-bottom: .65rem; font-size: 1.25rem; }
.muted { color: var(--muted); }
.text-sm { font-size: .9rem; }
.visually-hidden,
.sr-only:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.skip { position: absolute; left: -999rem; top: .5rem; }
.skip:focus { left: .75rem; z-index: 50; background: #fff; padding: .55rem .8rem; border-radius: .6rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    border-top: 3px solid var(--brand-soft);
    border-bottom: 3px solid var(--brand-soft);
    backdrop-filter: blur(12px);
}
.header-shell {
    max-width: 1200px;
    min-height: 88px;
    margin-inline: auto;
    padding: .7rem 1.25rem;
    display: grid;
    grid-template-columns: auto minmax(18rem, 1fr) auto;
    gap: 2rem;
    align-items: center;
}
.ffp-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #7bc49d;
    text-decoration: none;
}
.ffp-logo__mark {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: .85rem;
    border: 2px solid #fff;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16,24,40,.10);
}
.ffp-logo__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ffp-logo__word {
    display: inline-grid;
    gap: 0;
    min-width: 6.2rem;
    font-size: 1.85rem;
    line-height: .85;
    font-weight: 700;
    letter-spacing: .18em;
}
.ffp-logo__word span:nth-child(2) { color: #101010; letter-spacing: .06em; }
.ffp-logo__word span:nth-child(2)::first-letter { color: #101010; }
.ffp-logo--footer .ffp-logo__word { font-size: 1.8rem; }
.header-search {
    height: 2.9rem;
    border: 3px solid var(--brand-soft);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 0 1rem;
    color: var(--muted);
    background: #fff;
}
.search-icon { font-size: 1.5rem; line-height: 1; }
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}
.header-company {
    max-width: 12rem;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-icon-link {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}
.header-icon-link:hover { color: var(--brand); }
.cart-mini {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}
.cart-mini [data-cart-count] {
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: .9rem;
}
.category-strip {
    max-width: 1020px;
    margin: -.4rem auto .75rem;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .55rem;
}
.category-strip a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    padding: .55rem .8rem;
    border-radius: 999px;
}
.category-strip a:hover,
.category-strip a:focus-visible {
    color: var(--brand);
    background: var(--mint-soft);
}

.page-shell {
    width: min(100% - 2rem, 1168px);
    margin-inline: auto;
    padding: 2.3rem 0 4rem;
}
.space-y > * + * { margin-top: var(--space-5); }
.breadcrumb {
    margin-bottom: 1.15rem;
    color: var(--muted);
    font-weight: 600;
}
.breadcrumb span { color: var(--brand); }

.card {
    background: var(--card);
    border: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-4);
}
.alert {
    padding: .85rem 1rem;
    border: 3px solid var(--brand-soft);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
}
.btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    box-shadow: inset 0 0 0 3px var(--brand-soft);
    min-height: 2.9rem;
    padding: .78rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover,
.btn:focus-visible { color: var(--brand-dark); box-shadow: inset 0 0 0 3px var(--brand); }
.btn--primary {
    background: var(--warning);
    color: #fff;
    box-shadow: none;
}
.btn--primary:hover,
.btn--primary:focus-visible { background: #eca63d; color: #fff; }
.btn--full { width: 100%; }
.btn--small { min-height: 2.25rem; padding: .45rem .8rem; font-size: .9rem; }
.btn--ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn--secondary { background: var(--mint); color: #fff; box-shadow: none; }

.form,
.login-form,
.admin-form-grid {
    display: grid;
    gap: 1rem;
}
.field { display: grid; gap: .45rem; }
label { font-weight: 700; }
input,
textarea,
select {
    width: 100%;
    min-height: 2.9rem;
    border: 0;
    border-bottom: 3px solid var(--brand-soft);
    background: rgba(255,255,255,.75);
    color: var(--fg);
    padding: .65rem 0;
    font: inherit;
    outline: 0;
}
textarea { resize: vertical; border: 3px solid var(--brand-soft); border-radius: var(--radius-sm); padding: .85rem; background: #fff; }
input:focus,
textarea:focus,
select:focus { border-color: var(--mint); box-shadow: 0 2px 0 var(--mint); }
.form-error,
.error { color: #c11353; font-weight: 700; margin: .25rem 0 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.row { display: flex; align-items: center; }
.gap { gap: .75rem; }
.row-wrap { flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.inline-form { display: inline-flex; margin: 0; }
.mt-2 { margin-top: .8rem; }
.mt-3 { margin-top: 1.2rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: .8rem; }
.mb-3 { margin-bottom: 1.2rem; }

.table { width: 100%; border-collapse: collapse; }
.table th,
.table td { padding: .95rem .75rem; border-bottom: 3px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; }
.table .num,
.num { text-align: right; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--muted);
    font-weight: 700;
    font-size: .85rem;
}
.chip--success { background: #dff7ec; color: var(--green); }
.chip--muted { background: #f4f4f4; color: var(--muted); }

.login-page { min-height: 100vh; }
.login-shell {
    min-height: 100vh;
    width: min(100% - 2rem, 1168px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(18rem, 31rem) 1fr;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
}
.login-panel h1 { margin-top: 2rem; }
.login-form { max-width: 23rem; }
.login-collage {
    min-height: 34rem;
    position: relative;
}
.login-collage img {
    position: absolute;
    width: min(17rem, 34vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #fff;
    border: 3px solid var(--brand-soft);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}
.login-collage img:nth-child(1) { right: 0; top: 0; }
.login-collage img:nth-child(2) { left: 20%; top: 17%; }
.login-collage img:nth-child(3) { right: 2%; bottom: 8%; }
.login-collage img:nth-child(4) { left: 0; bottom: 0; }

.checkout-header { margin-bottom: 2rem; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.company-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border: 3px solid var(--brand-soft);
    border-radius: var(--radius);
    background: var(--mint-soft);
}
.company-summary > div { display: grid; gap: .15rem; min-width: 0; }
.summary-label {
    color: var(--brand);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cart__empty { margin: 0; font-weight: 700; }
.price-stack { display: inline-flex; align-items: baseline; gap: .45rem; }
.price-old { color: var(--muted); text-decoration: line-through; }
.price-current { color: var(--fg); font-weight: 800; }
.qty { white-space: nowrap; }
button.q {
    width: 2.2rem;
    height: 2.2rem;
    border: 3px solid var(--brand-soft);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}
button.q:hover { border-color: var(--brand); color: var(--brand); }

.menu-header { margin-bottom: 1.4rem; }
.menu-subtitle { font-size: 1.1rem; font-weight: 700; }
.menu-nav {
    position: sticky;
    top: 145px;
    z-index: 10;
    margin-bottom: 1.4rem;
    background: rgba(239,251,246,.92);
    backdrop-filter: blur(10px);
    border-radius: 999px;
}
.menu-nav__inner {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.menu-nav__list {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
    margin: 0;
    padding: .45rem;
}
.menu-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}
.menu-nav__list a.is-active,
.menu-nav__list a:hover {
    color: var(--brand);
    background: #fff;
}
.menu-nav__select-wrapper { display: none; }
.menu-section { scroll-margin-top: 12rem; }
.menu-section + .menu-section { margin-top: 1.6rem; }
.menu-section__title { margin-bottom: .85rem; }
.menu-section__grid {
    display: grid;
    gap: 1rem;
}
.menu-card {
    min-height: 8.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease;
}
.menu-card:hover,
.menu-card:focus-within {
    transform: translateY(-1px);
    border-color: var(--brand-soft);
}
.menu-card__name { margin-bottom: .35rem; font-size: 1.2rem; }
.menu-card__desc {
    margin-bottom: .65rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-card__price { margin: 0; font-weight: 800; }
.menu-card__quick-add {
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(230,0,126,.20);
}
.menu-card__quick-add:hover,
.menu-card__quick-add:focus-visible {
    background: var(--brand-dark);
}
.menu-section__empty {
    margin: 0;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 3px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 700;
}

.footer {
    background: #fff;
    border-top: 3px solid var(--brand-soft);
    padding: 2rem 1rem;
}

.history-actions {
    display: flex;
    justify-content: flex-end;
}
.history-list {
    display: grid;
    gap: 1rem;
}
.history-card {
    display: grid;
    gap: 1rem;
}
.history-card__main {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
.history-card__main h2 {
    margin-bottom: .25rem;
    font-size: 1.2rem;
}
.history-lines {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--fg);
}
.history-line__options {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}
.footer-grid {
    width: min(100%, 1168px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 2rem;
    align-items: center;
    color: var(--muted);
}
.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    background: #fff;
    border: 3px solid var(--brand-soft);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: .8rem 1.2rem;
    z-index: 50;
    font-weight: 700;
}
.fab-cart {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    display: none;
    place-items: center;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    z-index: 30;
}

.modal-open { overflow: hidden; }
.menu-modal[hidden] { display: none; }
.menu-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7,24,17,.72);
    z-index: 60;
}
.menu-modal__dialog {
    position: fixed;
    z-index: 70;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100% - 2rem, 38rem);
    max-height: calc(100svh - 2rem);
    overflow: auto;
    background: #fff;
    border: 3px solid var(--brand-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
}
.menu-modal__close {
    float: right;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.opt-details { border-top: 3px solid var(--line); padding: .8rem 0; }
.opt-details summary { cursor: pointer; font-weight: 700; }
.opt-group { border: 0; display: grid; gap: .4rem; padding: .7rem 0 0; }
.menu-modal__actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1rem; }

@media (max-width: 900px) {
    .header-shell { grid-template-columns: auto 1fr; gap: 1rem; }
    .header-search { grid-column: 1 / -1; order: 3; }
    .header-actions { justify-content: flex-end; }
    .category-strip { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .menu-nav { top: 165px; border-radius: 1rem; }
    .menu-nav__list { display: none; }
    .menu-nav__select-wrapper { display: block; width: 100%; padding: .45rem; }
    .login-shell { grid-template-columns: 1fr; }
    .login-collage { display: none; }
    .company-summary,
    .checkout-layout,
    .footer-grid,
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-shell { width: min(100% - 1rem, 1168px); padding-top: 1.4rem; }
    .header-shell { padding-inline: .8rem; }
    .ffp-logo { gap: .5rem; }
    .ffp-logo__mark { width: 2.15rem; height: 2.15rem; border-radius: .7rem; }
    .ffp-logo__word { font-size: 1.45rem; min-width: 5rem; }
    h1 { font-size: 2.35rem; }
    .card { padding: 1rem; border-radius: 1rem; }
    .table.cart th:nth-child(2),
    .table.cart td:nth-child(2) { width: 7rem; }
    .fab-cart { display: grid; }
}
