:root {
    --wine: #7b1b2c;
    --wine-dark: #5a1220;
    --gold: #c8982f;
    --ink: #1f2328;
    --muted: #6b7280;
    --line: #e5e1dc;
    --bg: #faf8f5;
    --card: #ffffff;
    --ok: #166534;
    --ok-bg: #dcfce7;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 460px; }
.wrap.wide-page { max-width: 1400px; }

a { color: var(--wine); }

/* ---- topbar ---- */
.topbar { background: var(--wine); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px; flex: 0 0 38px;
    border: 2px solid var(--gold); border-radius: 50%;
    font-weight: 700; color: var(--gold);
}
.topbar-admin { display: flex; align-items: center; gap: 16px; }
.topbar-admin a { color: #fff; font-size: 14px; }
.btn-link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }

/* ---- hero ---- */
.hero {
    background: linear-gradient(160deg, #8d2032 0%, var(--wine) 45%, var(--wine-dark) 100%);
    color: #fff;
    padding: 40px 0 44px;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
    align-items: center;
}
.hero-kicker {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 18px;
    font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}
.hero-kicker .logo { height: 58px; background: #fff; padding: 9px 14px; border-radius: 10px; }
.hero-kicker .brand-mark { border-color: var(--gold); color: var(--gold); }
.hero-text h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    margin: 0 0 18px;
    color: #fff;
}
.hero-text p { color: rgba(255, 255, 255, .92); }
.hero-text .hero-intro { font-size: 18px; }
.hero-text .call { font-weight: 600; color: #fff; }
.hero-text .signature { font-style: italic; color: rgba(255, 255, 255, .75); }
.hero-text strong { color: #fff; }
.btn-hero { margin-top: 12px; background: var(--gold); color: #3a2a06; }
.btn-hero:hover { background: #dcaa3c; }

.hero-photo { margin: 0; }
.hero-photo img {
    display: block;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

@media (max-width: 760px) {
    .hero { padding: 28px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-photo { order: -1; }
    .hero-photo img { max-height: 320px; object-fit: cover; object-position: center 30%; }
}

/* logo in de topbar */
.topbar .logo { height: 40px; background: #fff; padding: 6px 10px; border-radius: 7px; }

.logo { display: block; width: auto; }

@media (max-width: 620px) {
    .topbar-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
    .topbar .logo { height: 32px; padding: 4px 7px; }
    .brand { gap: 9px; }
    .brand strong { font-size: 15px; }
    .brand small { display: none; }
    .topbar-admin { gap: 12px; font-size: 13px; }
    .hero-kicker { gap: 10px; font-size: 11px; }
    .hero-kicker .logo { height: 44px; padding: 7px 10px; }
}

/* ---- sections ---- */
.section-title {
    font-size: 22px; color: var(--wine);
    margin: 36px 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ---- products ---- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo {
    background: linear-gradient(180deg, #f6f2ed 0%, #ece6df 100%);
    display: grid; place-items: center;
    padding: 14px 0;
}
.product-photo .bottle {
    display: block;
    height: 300px; width: auto; max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .22));
}
.product-body { padding: 16px; }
.product-body h3 { margin: 0; font-size: 18px; color: var(--wine); }
.product-sub { margin: 2px 0 14px; color: var(--muted); font-size: 14px; }
.options { list-style: none; margin: 0; padding: 0; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.option label { display: flex; flex-direction: column; font-size: 14px; }
.option-price { color: var(--muted); font-size: 13px; }
select, input, textarea {
    font: inherit; color: inherit;
    border: 1px solid #cbc6c0; border-radius: 8px;
    padding: 8px 10px; background: #fff;
}
select.aantal { width: 72px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; }

/* ---- levering ---- */
.levering { display: grid; gap: 12px; }
.radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.radio input { margin-top: 5px; }
.radio small { color: var(--muted); }

/* ---- fields ---- */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field-error { color: #b91c1c; font-size: 13px; }

/* ---- samenvatting ---- */
.samenvatting h2 { margin-top: 0; font-size: 20px; color: var(--wine); }
.totals { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.totals td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.totals .right { text-align: right; white-space: nowrap; }
.totals .leeg td { color: var(--muted); }
.totals .grand td { font-weight: 700; font-size: 18px; border-bottom: 0; }

.btn-primary {
    display: inline-block;
    background: var(--wine); color: #fff;
    border: 0; border-radius: 999px;
    padding: 12px 26px;
    font-size: 16px; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.btn-primary:hover { background: var(--wine-dark); }
.btn-small { padding: 8px 16px; font-size: 14px; }

.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.alert-error { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.alert ul { margin: 0; padding-left: 18px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }

/* ---- bedankt ---- */
.bedankt { margin-top: 32px; }
.bedankt h1 { color: var(--wine); margin-top: 0; }
.bedankt .lead { font-size: 18px; }
.bedankt-detail { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 18px 0; }
.bedankt-detail dt { color: var(--muted); }
.bedankt-detail dd { margin: 0; font-weight: 600; }

/* ---- beheer ---- */
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
.stat-value { display: block; font-size: 22px; font-weight: 700; color: var(--wine); }
.stat-label { font-size: 13px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-label { font-size: 13px; color: var(--muted); }
.chip {
    font-size: 13px; text-decoration: none;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 4px 12px; background: #fff; color: var(--ink);
}
.chip-on { background: var(--wine); border-color: var(--wine); color: #fff; }

.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
table.orders th, table.orders td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
table.orders thead th { background: #f4f1ed; font-size: 13px; position: sticky; top: 0; }
table.orders thead a { text-decoration: none; color: var(--ink); }
table.orders tbody tr:hover { background: #fcfaf8; }
table.orders .note { color: var(--muted); font-style: italic; margin-top: 4px; }

.toggle-form { margin: 0; }
.toggle {
    width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--line); background: #f3f4f6; color: var(--muted);
    font-size: 15px; line-height: 1;
}
.toggle-on { background: var(--ok-bg); border-color: #86efac; color: var(--ok); font-weight: 700; }

.btn-delete {
    width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
    border: 1px solid #f3c6c6; background: #fff; color: #b91c1c;
    font-size: 14px; line-height: 1;
}
.btn-delete:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.alert-ok { background: var(--ok-bg); border: 1px solid #86efac; color: var(--ok); }

/* ---- footer ---- */
.site-footer { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer p { margin: 4px 0; }
