/*
Theme Name: Ambacht en Smaak
Theme URI: https://ambachtensmaak.dustinlabs.com
Author: Codex
Description: Custom bestelwebsite voor Ambacht & Smaak met eigen accounts, producten, checkout, recepten, bezorgdata en admin.
Version: 1.0.28
License: GPL-2.0-or-later
Text Domain: ambachtensmaak
*/

:root {
  --paper: #f6efe2;
  --surface: #fefaf0;
  --surface-strong: #fffdf8;
  --ink: #1d1d30;
  --muted: #63645f;
  --line: #dfd0bd;
  --brand: #346248;
  --brand-dark: #2e5a40;
  --brand-soft: #e8f0e6;
  --gold: #c08a4b;
  --sage: #708260;
  --blue: #315b66;
  --accent: #f43e56;
  --danger: #b73a31;
  --success: #346248;
  --shadow: 0 18px 50px rgba(29, 29, 48, 0.13);
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--paper); font-family: Lato, Arial, Helvetica, sans-serif; letter-spacing: 0; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Merriweather, Georgia, serif; line-height: 1.15; margin: 0; }
p { line-height: 1.7; }

.topbar { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 9px 20px; color: var(--surface); background: var(--brand-dark); font-size: .92rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(254,250,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-main { max-width: 1180px; margin: 0 auto; min-height: 92px; padding: 12px 22px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: clamp(210px, 24vw, 330px); line-height: 0; }
.brand-logo { width: clamp(210px, 24vw, 330px); height: auto; }
.desktop-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--ink); font-size: .95rem; }
.desktop-nav a, .icon-link { min-height: 40px; display: inline-flex; align-items: center; }
.desktop-nav a:hover, .text-link:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: var(--surface-strong); }
.account-link::before, .cart-link::before { content: ""; flex: 0 0 auto; display: inline-block; width: 17px; height: 17px; color: var(--ink); }
.account-link::before { border: 2px solid currentColor; border-radius: 50%; box-shadow: 0 11px 0 -6px currentColor; transform: translateY(-4px); }
.cart-link::before { width: 18px; height: 14px; border: 2px solid currentColor; border-top: 0; border-radius: 2px 2px 5px 5px; box-shadow: 4px 15px 0 -6px currentColor, 13px 15px 0 -6px currentColor; transform: translateY(-3px); }
.cart-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; color: #fff; background: var(--accent); font-size: .78rem; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-strong); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav div { position: absolute; right: 0; top: 48px; min-width: 230px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow); }
.mobile-nav a { display: block; padding: 10px 12px; }

.hero { min-height: 640px; position: relative; display: grid; align-items: end; isolation: isolate; color: #fff; background: var(--brand-dark); }
.hero-media { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(90deg, rgba(29,29,48,.93), rgba(46,90,64,.72), rgba(52,98,72,.16)), url("https://primary.jwwb.nl/pexels/50/5014598.jpeg?enable-io=true&enable=upscale&fit=cover&width=1800"); background-size: cover; background-position: center; }
.hero-content { max-width: 780px; padding: 62px 22px 70px; margin-left: max(22px, calc((100vw - 1180px) / 2)); }
.hero-logo { width: clamp(130px, 15vw, 190px); height: auto; margin: 0 0 22px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.28)); }
.hero h1 { max-width: 760px; font-size: clamp(2.35rem, 5.6vw, 4.25rem); }
.hero p { max-width: 680px; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.hero .eyebrow { color: #ffd7cf; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.section, .page-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.section { padding: 42px 0; }
.page-shell { padding: 54px 0 76px; }
.narrow { width: min(860px, calc(100% - 44px)); }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-title { max-width: 790px; margin-bottom: 28px; }
.page-title h1, .page-title h2 { font-size: clamp(2rem, 5vw, 4rem); }
.page-title p, .lead { color: var(--muted); font-size: 1.08rem; }

.intro-grid, .product-grid, .recipe-grid, .region-grid, .metric-grid, .steps-grid, .contact-grid, .launch-grid { display: grid; gap: 18px; }
.intro-grid, .metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.product-grid, .recipe-grid, .region-grid, .steps-grid, .contact-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.launch-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 18px; }
.feature-card, .product-card, .recipe-card, .region-card, .form-panel, .summary-panel, .prose-panel, .auth-card, .metric-grid article, .launch-check, .filter-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(29,29,48,.06); }
.feature-card, .region-card, .form-panel, .summary-panel, .prose-panel, .auth-card, .metric-grid article, .launch-check, .filter-panel { padding: 24px; }
.feature-card h2 { margin-top: 14px; font-size: 1.1rem; }
.feature-card p, .product-card p, .recipe-card p, .region-card p, .muted { color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.section-heading h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.text-link { color: var(--brand); font-weight: 700; }

.button { min-height: 44px; border: 1px solid var(--brand); border-radius: var(--radius); padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--brand); font-weight: 700; text-align: center; }
.button:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.button-light { color: var(--brand); background: var(--surface-strong); }
.button-light:hover { color: #fff; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.65); background: transparent; }
.button-small { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.button-wide { width: 100%; }
.disabled { opacity: .55; pointer-events: none; }

.product-card, .recipe-card { overflow: hidden; }
.product-image, .recipe-card img { width: 100%; height: 220px; object-fit: cover; background: #ead9c4; }
.product-card-body { padding: 18px; }
.product-card h3, .recipe-card h2, .recipe-card h3 { font-size: 1.16rem; }
.product-meta, .price-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 16px 0; }
.product-meta strong, .price-line strong { color: var(--brand); font-size: 1.22rem; }
.product-meta span, .price-line span { color: var(--muted); }
.category-bands { grid-template-columns: repeat(5, minmax(0,1fr)); display: grid; gap: 14px; }
.category-bands a { min-height: 86px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; color: #fff; background: var(--brand); font-family: Merriweather, Georgia, serif; font-size: 1.2rem; }
.category-bands a:nth-child(2) { background: var(--blue); }
.category-bands a:nth-child(3) { background: var(--sage); }
.category-bands a:nth-child(4) { background: var(--accent); }
.category-bands a:nth-child(5) { background: var(--gold); }

.two-column, .cart-layout, .checkout-grid, .account-grid, .admin-split, .recipe-content, .product-detail, .recipe-detail { display: grid; gap: 24px; }
.two-column, .product-detail, .recipe-detail { grid-template-columns: 1fr 1fr; align-items: center; }
.stack-list { display: grid; gap: 12px; }
.stack-list article { border-left: 4px solid var(--gold); padding: 16px; background: var(--surface); }
.stack-list strong, .stack-list span { display: block; }
.stack-list span { color: var(--muted); margin-top: 4px; }
.filter-bar, .admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.filter-bar a, .admin-nav a { min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface-strong); color: var(--muted); }
.filter-bar a.active, .admin-nav a:hover { color: #fff; border-color: var(--brand); background: var(--brand); }
.product-detail img, .recipe-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.availability { margin: 18px 0; color: var(--success); font-weight: 700; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: .92rem; }
.breadcrumb a { color: var(--brand); font-weight: 700; }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: var(--line); }
.product-page { padding-top: 34px; }
.product-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 28px; align-items: start; }
.product-media-panel, .product-buy-panel, .product-note { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(29,29,48,.06); }
.product-media-panel { overflow: hidden; }
.product-hero-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ead9c4; }
.product-trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); background: var(--surface-strong); }
.product-trust-strip span { min-height: 48px; display: grid; place-items: center; padding: 10px; color: var(--brand); font-size: .86rem; font-weight: 700; text-align: center; }
.product-trust-strip span + span { border-left: 1px solid var(--line); }
.product-buy-panel { position: sticky; top: 122px; padding: 28px; }
.product-buy-panel h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.product-price-box { margin: 18px 0; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; background: var(--surface-strong); }
.product-price-box strong { display: block; color: var(--brand); font-family: Merriweather, Georgia, serif; font-size: 2rem; line-height: 1; }
.product-price-box span { display: block; margin-top: 7px; color: var(--muted); font-weight: 700; }
.product-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-strong); }
.product-facts div { min-height: 74px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.product-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.product-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.product-facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.product-facts dd { margin: 5px 0 0; font-weight: 700; }
.product-actions { margin-top: 0; }
.product-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.product-note { padding: 24px; }
.product-note h2 { font-size: 1.35rem; }
.product-note p:last-child { margin-bottom: 0; color: var(--muted); }
.product-section-heading { margin: 38px 0 18px; }
.product-recipe-grid { margin-bottom: 12px; }
.recipe-card { padding-bottom: 18px; }
.recipe-card span, .recipe-card h2, .recipe-card h3, .recipe-card p { margin-left: 18px; margin-right: 18px; }
.recipe-card span { display: block; margin-top: 16px; color: var(--brand); font-size: .86rem; font-weight: 700; }
.recipe-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.recipe-facts span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--surface-strong); }
.recipe-content { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); margin-top: 28px; }
.check-list, .step-list { padding-left: 22px; line-height: 1.8; }

.cart-layout { grid-template-columns: minmax(0,1fr) 340px; align-items: start; }
.cart-list, .order-list, .admin-table { display: grid; gap: 12px; }
.cart-row, .admin-table article, .order-list a { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 86px 1fr auto auto auto; align-items: center; gap: 14px; background: var(--surface-strong); }
.cart-row img { width: 86px; height: 74px; border-radius: var(--radius); object-fit: cover; }
.quantity-control { display: grid; grid-template-columns: 34px 34px 34px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-strong); }
.quantity-control button, .icon-only { border: 0; background: var(--surface-strong); height: 34px; display: grid; place-items: center; }
.quantity-control span { text-align: center; }
.icon-only { width: 34px; color: var(--danger); }
.summary-panel { position: sticky; top: 120px; }
.summary-panel dl, .region-card dl, .order-details { display: grid; gap: 10px; }
.summary-panel dl div, .region-card dl div, .order-details div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
dt { color: var(--muted); }
.summary-total { font-weight: 700; font-size: 1.08rem; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; background: var(--surface); }

.checkout-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 340px; align-items: start; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; background: var(--surface-strong); color: var(--ink); }
textarea { resize: vertical; }
.form-panel { display: grid; gap: 15px; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-items { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.checkout-items small { display: block; color: var(--muted); }
.auth-shell { width: min(520px, calc(100% - 44px)); margin: 0 auto; padding: 58px 0 80px; }
.auth-card { display: grid; gap: 16px; }
.auth-card h1 { font-size: 2.4rem; }
.auth-card a { color: var(--brand); font-weight: 700; }
.form-error, .form-success { border-radius: var(--radius); padding: 10px 12px; font-weight: 700; }
.form-error { color: var(--danger); background: #fff0ed; }
.form-success { color: var(--success); background: var(--brand-soft); }
.account-grid, .admin-split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.order-list a { grid-template-columns: 1fr auto auto; }
.order-list small { display: block; color: var(--muted); }
.metric-grid article strong { display: block; margin-top: 10px; font-size: 2rem; font-family: Merriweather, Georgia, serif; }
.metric-grid article span { color: var(--muted); }
.admin-section-heading { margin-top: 34px; }
.admin-quick-actions { margin-top: 22px; }
.launch-check { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.launch-check h3 { font-size: 1.08rem; }
.launch-check p { margin-bottom: 0; color: var(--muted); }
.status-pill { min-height: 30px; border-radius: 999px; padding: 6px 10px; display: inline-flex; align-items: center; color: #fff; background: var(--brand); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.launch-check.warn { border-color: #efc0a3; background: #fff8f3; }
.launch-check.warn .status-pill { background: var(--danger); }
.filter-panel { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.filter-actions { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
.admin-table article { grid-template-columns: 1fr auto; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-table-expanded article { grid-template-columns: 1fr; align-items: stretch; }
.admin-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 14px; }
.admin-card-head strong { color: var(--brand); font-size: 1.18rem; white-space: nowrap; }
.compact-details { margin: 12px 0; }
.compact-details div { align-items: start; }
.admin-items { margin-top: 14px; }
.status-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.status-form { align-items: end; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.status-actions .status-form { border-top: 0; padding-top: 0; }
.status-form label { min-width: 220px; }
.product-edit-card details { width: 100%; }
.product-edit-card summary { cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; list-style: none; }
.product-edit-card summary::-webkit-details-marker { display: none; }
.product-edit-card summary small { display: block; margin-top: 5px; color: var(--muted); }
.product-edit-card summary span:last-child { color: var(--brand); font-weight: 700; text-align: right; }
.product-edit-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; box-shadow: none; }
.checkbox-line { display: inline-flex; grid-template-columns: none; align-items: center; gap: 8px; }
.checkbox-line input { width: auto; }
.wide-form { margin-bottom: 22px; }
.prose-panel h2 { margin-top: 24px; }
.settings-launch-grid { margin-top: 24px; }
.credential-box { display: grid; gap: 14px; }
.credential-list { display: grid; gap: 12px; margin: 0; }
.credential-list div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface-strong); }
.credential-list dd { display: grid; gap: 7px; margin: 7px 0 0; }
.credential-list span { color: var(--muted); font-size: .9rem; }
.credential-list code, .code-hint { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); color: var(--ink); }
.credential-list code { padding: 9px 10px; overflow-wrap: anywhere; font-size: .96rem; }
.code-hint { overflow-x: auto; padding: 12px; }

.site-footer { margin-top: 44px; padding: 42px max(22px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; color: #f7eee7; background: var(--brand-dark); }
.site-footer a { display: block; margin: 8px 0; color: #f7eee7; }
.site-footer p { max-width: 480px; color: rgba(255,255,255,.78); }
.footer-logo { width: min(320px, 100%); height: auto; margin-bottom: 18px; }

@media (max-width: 980px) {
  .desktop-nav, .icon-link span:not(.cart-badge) { display: none; }
  .mobile-nav { display: block; }
  .header-main { gap: 12px; }
  .brand { min-width: 0; flex: 1; }
  .brand-logo { width: clamp(190px, 36vw, 260px); }
  .icon-link { min-width: 42px; justify-content: center; padding: 0 10px; }
  .intro-grid, .product-grid, .recipe-grid, .region-grid, .metric-grid, .steps-grid, .contact-grid, .launch-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-column, .product-detail, .recipe-detail, .recipe-content, .cart-layout, .checkout-grid, .account-grid, .admin-split { grid-template-columns: 1fr; }
  .product-hero, .product-note-grid { grid-template-columns: 1fr; }
  .product-buy-panel { position: static; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .summary-panel { position: static; }
  .category-bands { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .topbar { gap: 8px; justify-content: flex-start; font-size: .82rem; }
  .brand-logo { width: min(178px, 46vw); }
  .topbar { gap: 5px; display: grid; justify-content: start; padding: 8px 20px; }
  .hero { min-height: 520px; }
  .hero-content { padding: 34px 22px 42px; margin-left: 0; }
  .hero-logo { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .section, .page-shell, .narrow { width: min(100% - 28px, 1180px); }
  .intro-grid, .product-grid, .recipe-grid, .region-grid, .metric-grid, .steps-grid, .contact-grid, .category-bands, .launch-grid, .filter-panel { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-page { padding-top: 28px; }
  .breadcrumb { font-size: .86rem; }
  .product-buy-panel, .product-note { padding: 20px; }
  .product-trust-strip, .product-facts { grid-template-columns: 1fr; }
  .product-trust-strip span + span { border-left: 0; border-top: 1px solid var(--line); }
  .product-facts div, .product-facts div:nth-child(odd), .product-facts div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-facts div:last-child { border-bottom: 0; }
  .product-actions .button { width: 100%; }
  .cart-row, .admin-table article, .order-list a { grid-template-columns: 1fr; }
  .cart-row img { width: 100%; height: 160px; }
  .form-split { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
