/* Slagerij Goënga – webshop. The colors of the logo: sage green and gold, on cream. Mobile first. */

:root {
    --cream: #f6f1e8;
    --paper: #fffdf9;
    --kraft: #c9a46a;
    --kraft-soft: #efe4d0;
    /* Sage of the logo (#84987c), darker where white text sits on it */
    --sage: #84987c;
    --green: #4d6246;
    --green-mid: #5f7657;
    --green-soft: #e7ede3;
    /* Gold of the logo (#c19f3a); as text a darker shade, so it stays readable */
    --gold: #c19f3a;
    --clay: #8f7119;
    --clay-soft: #f5ecd2;
    --ink: #26231f;
    --muted: #756d61;
    --line: #e6ddcd;
    --danger: #a3301b;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgb(38 35 31 / 6%), 0 8px 24px rgb(38 35 31 / 7%);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-mid); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .6rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.stack > * + * { margin-top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(246 241 232 / 88%);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar { height: var(--header); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--kraft-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 14px; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.icon-link:hover { background: var(--kraft-soft); color: var(--ink); }
.icon-link svg { width: 22px; height: 22px; }
.icon-link .label { display: none; }
.cart-link { background: var(--green); color: #fff; }
.cart-link:hover { background: var(--green-mid); color: #fff; }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.menu-toggle { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-size: 1.1rem; font-family: var(--serif); border-bottom: 1px solid var(--line); }
.menu-check:checked ~ .mobile-nav { display: block; }

@media (min-width: 900px) {
    .nav { display: flex; }
    .menu-toggle, .mobile-nav, .menu-check:checked ~ .mobile-nav { display: none; }
    .icon-link .label { display: inline; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
    transition: background .15s, transform .05s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); color: #fff; }
.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: #d1b04d; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--kraft); color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Hero */
.hero { padding: 28px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .stamp {
    position: absolute; left: 18px; bottom: 18px; background: var(--paper); border-radius: 999px;
    padding: 10px 16px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow);
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .92rem; }
.trust span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
@media (min-width: 900px) {
    .hero { padding: 56px 0 72px; }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step::before {
    counter-increment: step; content: counter(step);
    display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
    background: var(--kraft-soft); color: var(--ink); font-family: var(--serif); font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile {
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px;
    padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--kraft); transform: translateY(-2px); color: var(--ink); }
.tile .name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.tile .sub { color: var(--muted); font-size: .9rem; }
.tile-green { background: var(--green); color: #fff; border-color: var(--green); }
.tile-green:hover { color: #fff; }
.tile-green .sub { color: rgb(255 255 255 / 75%); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* Feature band (photo + text) */
.feature { display: grid; gap: 24px; align-items: center; }
.feature-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
    .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
    .feature.reverse .feature-photo { order: 2; }
}
.band { background: var(--green); color: #fff; }
.band h2, .band a { color: #fff; }
.band .muted { color: rgb(255 255 255 / 75%); }
.band-kraft { background: var(--kraft-soft); }

/* Shop: filters and product grid */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -20px 20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap;
}
.chip:hover { border-color: var(--kraft); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { padding-left: 42px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
    display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .photo { position: relative; aspect-ratio: 4 / 3; background: var(--kraft-soft); display: block; }
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card .name { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.product-card .name:hover { color: var(--green); }
.product-card .price { font-weight: 600; }
.product-card .price small { color: var(--muted); font-weight: 400; }
.product-card .add { margin-top: auto; padding-top: 8px; }
.no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--kraft); }
.no-photo svg { width: 46%; height: auto; opacity: .55; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 600; }
.badge-green { background: var(--green); color: #fff; }

/* Quantity: one form with a choice of amount and an add button */
.quick-add { display: flex; gap: 8px; }
.quick-add select { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border-radius: 999px; font-size: .9rem; }
.quick-add .btn { min-height: 42px; padding: 0 14px; }
.added { font-size: .85rem; color: var(--green); font-weight: 600; }

/* Product page */
.crumbs { font-size: .9rem; color: var(--muted); margin: 20px 0; }
.crumbs a { color: var(--muted); }
.product-layout { display: grid; gap: 28px; }
.product-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--kraft-soft); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.buy-box .price { font-size: 1.6rem; font-family: var(--serif); font-weight: 600; }
.segmented { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; gap: 4px; margin: 14px 0; }
.segmented label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .93rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.buy-box:has(.unit-kg:checked) .only-piece, .buy-box:has(.unit-piece:checked) .only-kg { display: none; }
.facts { display: grid; gap: 16px; margin-top: 8px; }
.fact h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4em; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .buy-box { position: sticky; top: calc(var(--header) + 20px); } }

/* Forms */
label.field { display: block; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea {
    width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: var(--paper); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(18 77 38 / 12%); }
.form-grid { display: grid; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.address { grid-template-columns: 2fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.validation-message, .error-text { color: var(--danger); font-size: .88rem; margin-top: 4px; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.alert-error { background: #fbe9e4; color: var(--danger); }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-info { background: var(--kraft-soft); color: var(--ink); }

/* Choice cards (delivery method, date) */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgb(18 77 38 / 12%); }
.choice .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--kraft-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.choice .icon svg { width: 22px; height: 22px; }
.choice .title { font-weight: 600; }
.choice .desc { color: var(--muted); font-size: .9rem; }
.choice .extra { margin-left: auto; font-weight: 600; white-space: nowrap; }
@media (min-width: 720px) { .choices.three { grid-template-columns: repeat(3, 1fr); } }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date { flex-shrink: 0; width: 76px; padding: 10px 6px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper); text-align: center; cursor: pointer; }
.date input { position: absolute; opacity: 0; pointer-events: none; }
.date .dow { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date .day { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.date .month { font-size: .8rem; color: var(--muted); }
.date:has(input:checked) { border-color: var(--green); background: var(--green); color: #fff; }
.date:has(input:checked) .dow, .date:has(input:checked) .month { color: rgb(255 255 255 / 80%); }
/* Address only when delivering */
.checkout:has(#method-pickup:checked) .address-block { display: none; }

/* Panels and cart */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 1.35rem; }
.checkout-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: 32px; } .summary { position: sticky; top: calc(var(--header) + 20px); } }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--kraft-soft); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .name { font-weight: 600; }
.line .meta { color: var(--muted); font-size: .88rem; }
.line .amount { text-align: right; font-weight: 600; white-space: nowrap; }
.line .controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { width: 36px; height: 34px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); border-radius: 999px; }
.stepper button:hover { background: var(--cream); }
.stepper .value { min-width: 64px; text-align: center; font-weight: 600; font-size: .92rem; }
.totals { display: grid; gap: 8px; margin: 16px 0; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; }
.totals .total { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); }
.estimate-note { background: var(--kraft-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state svg { width: 64px; height: 64px; color: var(--kraft); margin: 0 auto 12px; }

/* Sticky cart bar on phones */
.cart-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
    box-shadow: 0 10px 30px rgb(0 0 0 / 25%); text-decoration: none;
}
.cart-bar:hover { color: var(--paper); }
.cart-bar .btn { min-height: 40px; }
@media (min-width: 900px) { .cart-bar { display: none; } }
.has-cart-bar { padding-bottom: 84px; }
@media (min-width: 900px) { .has-cart-bar { padding-bottom: 0; } }

/* Account */
.account-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px 18px; }
.order-card + .order-card { margin-top: 12px; }
.order-card .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--kraft-soft); }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.open { background: var(--clay-soft); color: var(--clay); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }

/* Origin page */
.origin-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.origin-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.origin-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgb(0 0 0 / 65%)); }
.origin-hero .container { position: relative; z-index: 1; padding-bottom: 32px; }
.origin-hero h1 { color: #fff; }
.passport { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.passport div { background: var(--paper); padding: 16px; }
.passport dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.passport dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
@media (min-width: 720px) { .passport { grid-template-columns: repeat(4, 1fr); } }
.farmer { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.farmer .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; }

/* Content pages */
.page-hero { padding: 36px 0 12px; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--kraft); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.wide-photo { border-radius: 24px; overflow: hidden; margin: 24px 0; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 12px; }
.info-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 253 249 / 80%); padding: 48px 0 32px; margin-top: 48px; }
.site-footer a { color: rgb(255 253 249 / 80%); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer-logo { height: 56px; width: auto; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: .3em; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 32px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
