:root {
  --paper: #faf7f2;
  --card: #fffdf9;
  --ink: #2b2022;
  --muted: #695c5d;
  --wine: #532337;
  --deep: #381727;
  --line: #e6dad8;
  --soft: #f5e9ec;
  --radius: 12px;
  --hero-height: 144px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-padding-top: calc(var(--hero-height) + 196px); }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .57; }
:focus-visible { outline: 3px solid #a45b72; outline-offset: 3px; }
.wrap { width: min(1260px, calc(100% - 80px)); margin-inline: auto; }
.order-button, .primary { font-weight: 650; color: white; background: var(--wine); border: 1px solid var(--wine); padding: 10px 14px; min-height: 43px; border-radius: 8px; }
.order-button { display: flex; align-items: center; gap: 10px; }
.order-button span { min-width: 24px; padding: 2px 5px; border-radius: 30px; background: #f4e2e9; color: var(--deep); text-align: center; font-size: 12px; }
.catalog-controls {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-bottom: 5px;
  background: var(--paper);
  box-shadow: 0 2px 6px #2b202214;
}
.hero {
  --hero-fade: linear-gradient(90deg, #fff 0%, #fff 11%, #e8f4fc 24%, #d7eddded 37%, #c2e0c250 51%, transparent 64%);
  background: var(--hero-fade), #dce9dd url("/wijnen/static/onana-wijngaard.webp") right 44% / cover no-repeat;
  border-bottom: 1px solid #d5e0dc;
}
.hero-content { height: var(--hero-height); display: flex; align-items: center; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
.brand { margin: 0; }
.brand img { display: block; width: min(409px, 70.2vw); height: auto; max-height: calc(var(--hero-height) - 12px); object-fit: contain; object-position: left center; }
.download { display: inline-flex; gap: 12px; align-items: center; padding: 10px 14px; min-height: 43px; border: 1px solid #d9c9cc; border-radius: 8px; background: var(--card); color: var(--deep); font-size: 14px; font-weight: 700; text-decoration: none; }
.download:hover { background: var(--soft); }
.download span { font-size: 19px; line-height: 1; }
.catalog { padding-block: 14px 30px; }
.filter-panel { margin-top: 5px; padding: 6px 9px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }
.search-label { display: block; color: var(--deep); font-size: 16px; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.search-label strong { font-weight: 750; }
.search-box { position: relative; }
.search-box input { width: 100%; min-height: 33px; border: 1px solid #d7c7ca; border-radius: 7px; padding: 5px 10px 5px 34px; background: white; color: var(--ink); }
.search-box input::placeholder { color: #786b6f; }
.search-icon { position: absolute; left: 10px; top: 8px; width: 14px; height: 14px; border: 1.7px solid var(--wine); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; bottom: -3px; right: -5px; background: var(--wine); transform: rotate(47deg); }
.filter-rows { margin-top: 4px; display: grid; gap: 3px; min-width: 0; }
.filter-row { display: grid; grid-template-columns: repeat(5, minmax(115px, 1fr)); gap: 5px; padding: 1px; overflow-x: auto; scrollbar-color: #bf9ba6 transparent; scrollbar-width: thin; }
.filter-button { display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid #dfd2d4; border-radius: 7px; background: #fff; color: var(--deep); padding: 4px 8px; min-height: 30px; white-space: nowrap; font-size: 13px; font-weight: 650; }
.filter-button:hover, .filter-button.selected { border-color: #a77588; background: var(--soft); }
.filter-button > span { display: flex; align-items: center; gap: 7px; }
.filter-button .number { color: #fff; background: var(--wine); padding: 1px 5px; border-radius: 20px; font-size: 10px; font-weight: 650; }
.chevron { border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; width: 7px; height: 7px; transform: translateY(-2px) rotate(45deg); flex: none; }
.filter-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; margin-top: 4px; }
.active { grid-column: 1; grid-row: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.chips { display: flex; min-width: 0; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.chip { background: var(--soft); border: 1px solid #ebd7de; border-radius: 30px; padding: 3px 7px; color: var(--deep); font-size: 12px; white-space: nowrap; flex: none; }
.text-button { border: 0; padding: 7px 1px; background: transparent; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-size: 13px; }
.catalog-actions { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.catalog-actions .order-button, .catalog-actions .download, .catalog-actions .secondary { min-height: 32px; padding: 4px 8px; gap: 6px; font-size: 13px; }
.result-bar { margin: 4px 0 6px; }
.result-count { font-weight: 750; font-size: 16px; margin: 0; }
.dialog-body select { background: var(--card); border: 1px solid #d9c9cc; border-radius: 7px; padding: 7px 8px; color: var(--ink); }
.table-scroll { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--card); }
table { width: 100%; border-spacing: 0; min-width: 1000px; text-align: left; font-size: 14px; }
th { background: #f1e6e8; color: var(--deep); padding: 11px 12px; font-weight: 750; font-size: 12px; }
.sort-head { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; padding: 3px 0; color: inherit; font: inherit; white-space: nowrap; text-align: left; }
.sort-head span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: #736267; font-size: 15px; line-height: 1; }
.sort-head:hover:not(:disabled) { color: #174b73; }
th[aria-sort] .sort-head span { background: #174b73; color: #fff; font-weight: 800; }
td { border-top: 1px solid #eee6e5; padding: 12px; vertical-align: middle; }
tbody tr:hover, tbody tr.is-picked { background: #f9eef1; }
.wine-name { display: block; font-size: 14px; font-weight: 650; line-height: 1.34; }
.sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.price { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick { text-align: center; width: 128px; }
.pick input { width: 18px; height: 18px; accent-color: var(--wine); cursor: pointer; }
.empty { padding: 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 13px; font-size: 13px; color: var(--muted); }
.secondary { border: 1px solid #d9c9cc; border-radius: 7px; color: var(--wine); background: var(--card); padding: 8px 12px; font-weight: 650; font-size: 13px; min-height: 38px; }
.secondary:hover:not(:disabled) { background: var(--soft); }
dialog { width: min(505px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 22px 55px #2b14274d; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #2a1720a8; }
.order-dialog { width: min(1320px, calc(100% - 28px)); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: 30px; color: var(--deep); }
.close { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--wine); font-size: 24px; line-height: .9; }
.dialog-body { padding: 16px 20px; overflow: auto; }
.dialog-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 12px 20px; }
.dialog-search, .price-fields input, .contact-fields input { width: 100%; border: 1px solid #d7c7ca; border-radius: 7px; background: #fff; padding: 9px 11px; color: var(--ink); }
.dialog-search { margin-bottom: 9px; }
.options { display: grid; }
.option { display: flex; align-items: center; gap: 9px; min-height: 35px; border-bottom: 1px solid #f0e8e6; font-size: 14px; }
.option input { accent-color: var(--wine); width: 16px; height: 16px; margin: 0; }
.option .available { font-size: 12px; color: var(--muted); margin-left: auto; }
.price-fields, .contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.price-fields { margin-top: 10px; }
.price-fields label, .contact-fields label, .price-select { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.price-select + .price-select { margin-top: 9px; }
.summary-scroll { margin-bottom: 15px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.summary-scroll table { min-width: 925px; }
.summary-scroll .numeric { text-align: right; white-space: nowrap; }
.summary-scroll .quantity-cell { white-space: nowrap; }
.quantity-controls { display: inline-flex; align-items: center; gap: 6px; }
.quantity-controls output { min-width: 58px; text-align: center; }
.quantity-controls button, .remove-line { min-width: 32px; min-height: 32px; padding: 3px 6px; }
#selection-only[aria-pressed="true"] { background: #174b73; color: white; border-color: #174b73; }
.discount-note { margin: 0 0 14px; padding: 9px 11px; border-left: 3px solid #174b73; background: #edf5fa; color: #173c55; font-size: 14px; line-height: 1.45; }
.order-comment { display: grid; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.order-comment textarea { width: 100%; padding: 8px; border: 1px solid #d7c7ca; border-radius: 7px; background: white; color: var(--ink); font: inherit; resize: vertical; }
.summary-scroll tfoot { background: var(--soft); font-weight: 750; }
.test-note { font-size: 13px; margin: 12px 0; color: var(--muted); line-height: 1.35; }
.order-actions { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; }
.message { margin: 12px 0 0; border: 1px solid #e6d2d9; border-radius: 7px; padding: 9px 11px; background: var(--soft); font-size: 14px; color: var(--deep); }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 34px); }
  .hero { --hero-fade: linear-gradient(90deg, #fff 0%, #edf7fdf7 25%, #ddf0e2d5 45%, transparent 78%); }
  :root { --hero-height: 98px; }
  html { scroll-padding-top: calc(var(--hero-height) + 240px); }
  .hero { background-position: right 47%; background-size: auto, max(100%, 340px) auto; }
  .filter-panel { padding: 5px 6px; }
  .filter-footer { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .catalog-actions { grid-column: 1; grid-row: 2; justify-content: flex-end; }
  .active { min-height: 22px; }
  .search-label { font-size: 15px; }
  .search-box input { font-size: 16px; }
  .filter-row { grid-template-columns: repeat(5, minmax(105px, 1fr)); }
  .filter-button { padding-inline: 9px; }
  .catalog { padding-top: 12px; }
}
@media (max-width: 420px) {
  .catalog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-actions .order-button, .catalog-actions .download { justify-content: center; }
  .catalog-actions .order-button, .catalog-actions .download, .catalog-actions .secondary { font-size: 12px; padding-inline: 6px; }
  .contact-fields { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  th.pick, td.pick { position: sticky; right: 0; width: 96px; box-shadow: -2px 0 0 #e7dadb; }
  td.pick { background: var(--card); }
  tr.is-picked td.pick { background: #f9eef1; }
  .table-scroll td:first-child, .table-scroll th:first-child { min-width: 225px; }
}

@media (max-height: 520px) {
  :root { --hero-height: 78px; }
  .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.spotlight { margin: 0 0 1.5rem; }
.spotlight h2 { margin: 0 0 .4rem; }
.spotlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; align-items: start; }
.spotlight-grid details { background: #fffdfa; border: 1px solid #e6d8d9; border-radius: .65rem; }
.spotlight-grid summary { padding: .8rem; cursor: pointer; }
.spotlight-grid summary span { display: block; margin-top: .2rem; }
.spotlight-grid ul { list-style: none; margin: 0; padding: 0 .75rem .4rem; }
.spotlight-grid li { border-top: 1px solid #eee6e5; padding: .65rem 0; }
.spotlight-slot, .spotlight-price { display: block; }
.spotlight-slot { font-size: .85rem; }
.spotlight-pick { margin-top: .4rem; }
.spotlight-pick[aria-pressed="true"] { border-color: #54253a; background: #f2e7ec; }
.spotlight-admin { padding-top: 1.25rem; padding-bottom: 2rem; }
.spotlight-admin-nav { display: flex; flex-wrap: wrap; gap: .8rem; }
.spotlight-admin-pack { margin: 1rem 0; }
.spotlight-admin form { margin-top: 1.5rem; }

.package-link { display:block; padding:1rem; text-decoration:none; background:#fffdfa; border:1px solid #e6d8d9; border-radius:.65rem; }
.package-link:hover, .package-link:focus-visible { border-color:#6e3a4b; background:#f7edef; }
.package-link span, .package-link small { display:block; margin-top:.25rem; }
.package-page { max-width:76rem; padding-top:clamp(1.2rem,4vw,3.8rem); padding-bottom:3rem; }
.package-back { color:#632f46; font-weight:600; }
.package-heading { max-width:53rem; margin:2rem 0 1.5rem; }
.package-heading h1 { font-size:clamp(2.4rem,6vw,5rem); line-height:1; margin:.3em 0; color:#3e2031; }
.package-kicker { color:#6e374f; font-size:.8rem; font-weight:700; letter-spacing:.075em; text-transform:uppercase; }
.package-welcome { font-size:clamp(1.05rem,2vw,1.35rem); line-height:1.55; }
.package-media { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,1fr); gap:1rem; align-items:start; }
.package-media figure { margin:0; }
.package-media img { display:block; width:100%; border-radius:.75rem; }
.package-photo img { height:clamp(13rem,32vw,25rem); object-fit:cover; }
.package-map img { height:auto; }
.package-media figcaption { margin-top:.4rem; font-size:.78rem; color:#5f5255; }
.package-wines { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr)); gap:1rem; margin:2rem 0; }
.package-wine { background:#fffdfa; border:1px solid #e6d8d9; border-radius:.75rem; padding:1.25rem; }
.package-wine h2 { font-size:clamp(1.35rem,2vw,1.85rem); line-height:1.12; color:#3e2031; margin:.35em 0; }
.package-price { color:#315840; font-weight:700; }
.package-sources { margin-top:.5rem; font-size:.85rem; }
.package-action { background:#e9eee5; border-radius:.75rem; padding:1rem 1.25rem; }
.package-action p { margin:.5em 0 0; }
@media (max-width: 650px) {
  .package-media { grid-template-columns:1fr; }
  .package-map { max-width:13rem; }
}
