/* SierArt by Me: warm, light, photos first. No external fonts or scripts. */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --ink: #2d2521;
  --muted: #7b6c63;
  --line: #ebe1d7;
  --soft: #f3ebe2;
  --accent: #a2654a;
  --accent-ink: #ffffff;
  --accent-dark: #834d36;
  --danger: #b23b31;
  --ok: #3f7a52;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 32px; padding-bottom: 56px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.break { word-break: break-all; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- header and footer ---------- */
.site-header { background: rgba(250, 246, 241, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.logo em { font-weight: 400; color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); }
.cart-link { position: relative; display: inline-flex; padding: 6px; }
.cart-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.badge { position: absolute; top: -2px; right: -6px; background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: .72rem; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; background: var(--soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-name { font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink); font-size: .92rem; }
.footer-credit { margin: 20px auto 0; font-size: .82rem; color: var(--muted); }
.footer-credit a { color: inherit; }
.footer-credit a:hover { color: var(--accent); }

/* ---------- buttons and forms ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 12px 26px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn.wide { width: 100%; }
.btn.big { padding: 15px 38px; font-size: 1.08rem; }
.btn.ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--soft); }
.btn.ghost.danger { color: var(--danger); border-color: var(--danger); }
.link { background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; font: inherit; cursor: pointer; }
.link.danger { color: var(--danger); }
form.inline { display: inline; }

label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: 400 1rem var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid #d9cbbd; border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; }
.optional { font-weight: 400; color: var(--muted); }
.field-error { display: block; color: var(--danger); font-weight: 500; font-size: .88rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label.short { max-width: 220px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 10px; font-weight: 600; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { margin-top: 5px; accent-color: var(--accent); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; flex-wrap: wrap; }
.check input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; }
.check .field-error { flex-basis: 100%; }
.stack > * { margin-bottom: 14px; }
.alert { background: #fbe9e6; border: 1px solid #f0c7c0; color: #7d2a22; padding: 12px 16px; border-radius: 10px; }
.notice, .flash { background: #e8f2ea; border: 1px solid #c4dccb; color: #24563a; padding: 12px 16px; border-radius: 10px; }

/* ---------- home ---------- */
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { max-width: 760px; margin: 0 auto .4em; font-size: clamp(2rem, 5vw, 3.1rem); }
.hero .lead { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.count { font: 500 .85rem var(--sans); color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .chips { margin: 0; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; text-decoration: none;
  color: var(--ink); font-size: .9rem; }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.active { background: var(--soft); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(80, 50, 30, .10); color: var(--ink); }
.card-img { position: relative; aspect-ratio: 1; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font: 500 1rem/1.35 var(--sans); margin: 0 0 4px; }
.card .price { font-weight: 700; font-size: 1.1rem; margin: 0 0 2px; color: var(--ink); }
.meta { color: var(--muted); font-size: .82rem; margin: 0; }
.card.sold img, .card.hidden-item img { opacity: .55; filter: grayscale(.4); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; }
.tag.light { background: rgba(255, 255, 255, .9); color: var(--ink); }
.photo-admin .tag { position: static; display: inline-block; }
.no-photo { width: 100%; height: 100%; min-height: 60px; background: var(--soft) url("/static/img/geen-foto.svg") center / 34% no-repeat; display: block; }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- product ---------- */
.crumbs { padding-top: 18px; margin-top: 0; margin-bottom: 0; font-size: .92rem; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding-top: 18px; padding-bottom: 56px; }
.gallery-main { background: var(--soft); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--soft); }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-bottom: .2em; }
.price.big { font-size: 1.7rem; font-weight: 700; margin: 0 0 4px; }
.product-info .meta { margin-bottom: 18px; }
.stock { color: var(--ok); font-weight: 600; font-size: .95rem; }
.stock.out { color: var(--danger); font-size: 1.1rem; }
.description { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.perks { list-style: none; padding: 18px; margin: 26px 0 0; background: var(--soft); border-radius: 12px; font-size: .93rem; }
.perks li { padding-left: 24px; position: relative; margin: 4px 0; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose p { margin: 0 0 1em; }

/* ---------- cart and checkout ---------- */
.lines { list-style: none; padding: 0; margin: 0 0 24px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--soft); display: block; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: 2px; }
.line-title { color: var(--ink); font-weight: 600; text-decoration: none; }
.line-end { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-size: .95rem; }
.qty-form label { font-weight: 400; font-size: .88rem; margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.qty-form select { width: auto; margin: 0; padding: 4px 8px; }
.cart-total { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cart-total p { margin: 0; display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-total p.small { font-size: .9rem; }
.cart-total .link { text-align: center; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; margin-top: 24px; align-items: start; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 84px; }
.summary ul, .summary-list { list-style: none; margin: 0 0 12px; padding: 0; }
.summary li, .summary-list li, .summary .row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; margin: 0; }
.summary li { border-bottom: 1px solid var(--line); }
.summary .total, .summary-list .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 16px; }
.summary-list { margin-bottom: 26px; }
.summary-list li { border-bottom: 1px solid var(--line); }
.summary-list .total { border-bottom: 0; }
[data-address][hidden] { display: none; }

/* ---------- order page ---------- */
.pay-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 22px; margin: 22px 0; }
.pay-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.pay-details dt { color: var(--muted); }
.pay-details dd { margin: 0; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.status-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.pill.pending { background: #fdf0d8; color: #8a5a00; }
.pill.paid { background: #e4efe6; color: #2b6440; }
.pill.shipped, .pill.completed { background: #e6edf6; color: #2d4d78; }
.pill.cancelled { background: #f2e3e1; color: #8b3229; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 22px 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }

/* ---------- admin ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.actions p { margin: 0; flex-basis: 100%; }
.actions .stack { flex: 1 1 320px; }
.auth-box { max-width: 420px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.admin-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.order-rows { list-style: none; margin: 0; padding: 0; }
.order-rows a { display: grid; grid-template-columns: 1.6fr 1.2fr .7fr auto; gap: 12px; align-items: center; padding: 12px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.order-rows a:hover { background: var(--soft); }
.note { background: var(--soft); padding: 10px 12px; border-radius: 8px; }

.listing-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; max-width: 760px; }
.big-field { font-size: 1.05rem; }
.big-field input { font-size: 1.1rem !important; padding: 13px 15px !important; }
.price-field { max-width: 260px; }
.euro-input { display: flex; align-items: center; margin-top: 6px; border: 1px solid #d9cbbd; border-radius: 10px; background: var(--surface); }
.euro-input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.euro-input > span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 600; }
.euro-input input { border: 0 !important; margin: 0 !important; outline: none !important; }
.photo-field { margin-bottom: 20px; }
.photo-field .label { font-weight: 600; margin-bottom: 6px; font-size: 1.05rem; }
.dropzone { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 130px; border: 2px dashed #d3bfae;
  border-radius: 12px; background: var(--bg); cursor: pointer; position: relative; font-weight: 400; padding: 18px; margin: 0; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: var(--soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.previews img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.more { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 22px; }
.more summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.photo-admin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.photo-admin li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: .9rem; }
.photo-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.danger-zone { border-color: #f0d4cf; }
.settings-form { max-width: 820px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .product, .checkout { grid-template-columns: 1fr; gap: 26px; }
  .summary { position: static; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .main-nav { gap: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px; }
  .card-body h3 { font-size: .92rem; }
  .two { grid-template-columns: 1fr; }
  .line { grid-template-columns: 64px 1fr; }
  .line-img { width: 64px; height: 64px; }
  .line-end { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 16px; }
  .order-rows a { grid-template-columns: 1fr auto; }
  .listing-form { padding: 18px; }
  .hero { padding-top: 32px; }
}

@media print {
  .site-header, .site-footer, .pay-box form, [data-print] { display: none !important; }
  body { background: #fff; }
}
