/* =====================================================================
   ncwebshop — style.css
   Eén frame voor alle webshops. Kop en voet komen per webshop uit de
   database (webshop.headerhtml / footerhtml); dit bestand verzorgt de
   subheader (zoeken, verzendland, winkelwagen) en de body daartussen.
   De kleur van de subheader komt uit webshop.subheaderbackgroundcolour
   (--ws-sub).
   ===================================================================== */

:root {
  --ws-sub: #ab9a45;            /* subheader; per webshop overschreven */
  --ws-gold: #9b8420;
  --ws-gold-dark: #7d6a15;
  --ws-btn: #7f7c00;
  --ws-btn-dark: #626000;
  --ws-text: #9b8420;
  --ws-line: #e7dfbf;
  --ws-width: 980px;
  --ws-font: Verdana, Geneva, Tahoma, sans-serif;
  --ws-title: "Great Vibes", "Lucida Calligraphy", "Apple Chancery", cursive;
  --auth-accent: var(--ws-gold);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ws-font); color: var(--ws-text); background: #fff;
  font-size: 15px; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; }
main.ws-main { flex: 1 0 auto; width: 100%; max-width: var(--ws-width); margin: 0 auto; padding: 28px 16px 60px; }
.ws-seo { display: none; }
html.no-js .ws-seo { display: block; }

/* ── Subheader ─────────────────────────────────────────────────────── */
.ws-sub { background: var(--ws-sub); color: #fff; }
.ws-sub-inner {
  max-width: var(--ws-width); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ws-shopname { font-size: 19px; color: #fff; text-decoration: none; white-space: nowrap; margin-right: auto; }
.ws-search { display: grid; grid-template-columns: auto 230px auto; column-gap: 8px; row-gap: 3px; align-items: center; font-size: 14px; }
.ws-search label { color: #fff; }
.ws-search input[type=search], .ws-search select {
  width: 230px; font: inherit; font-size: 14px; padding: 4px 8px; border: 0; border-radius: 4px;
  background: #f1ecdc; color: #555;
}
.ws-search .ws-keep { grid-column: 2; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.ws-search .ws-keep input { margin: 0; }
.ws-iconbtn { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; color: #fff; }
.ws-iconbtn svg { width: 30px; height: 30px; }
.ws-icons { display: flex; align-items: center; gap: 18px; }
.ws-count { position: relative; display: inline-flex; color: #fff; text-decoration: none; }
.ws-count svg { width: 46px; height: 41px; }
.ws-count span { position: absolute; top: 5px; left: 0; right: 0; text-align: center; font-size: 12px; }
.ws-sub .nav-inner { display: flex; align-items: center; }
.ws-sub .nav-inner .nav-login { padding: 0 !important; margin: 0 !important; }
.ws-sub .nav-login-name { color: #fff !important; font-size: 14px !important; }

/* ── Titels, knoppen ──────────────────────────────────────────────── */
.ws-title { font-family: var(--ws-title); font-weight: normal; color: var(--ws-gold); font-size: 46px; margin: 22px 0 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ws-title a { text-decoration: inherit; }
.ws-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-btn {
  display: inline-block; background: var(--ws-btn); color: #fff; border: 0; border-radius: 999px;
  padding: 7px 24px; min-width: 130px; font: inherit; font-size: 14px; font-weight: bold; text-align: center;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ws-btn:hover { background: var(--ws-btn-dark); }
.ws-btn:disabled { opacity: .55; cursor: default; }
.ws-btn.wide { padding: 10px 30px; font-size: 15px; }
.ws-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ws-msg { padding: 10px 14px; border-radius: 6px; font-size: 14px; margin: 10px 0; }
.ws-msg.error { background: #fdecec; color: #8a1c1c; }
.ws-msg.ok { background: #ecf6ee; color: #1c5a2c; }
.ws-empty { font-style: italic; padding: 14px 0; }
.ws-center { text-align: center; }

/* ── Tegels ───────────────────────────────────────────────────────── */
.ws-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 18px; }
.ws-row { position: relative; }
.ws-row .ws-grid { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; gap: 18px; }
.ws-row .ws-grid::-webkit-scrollbar { display: none; }
.ws-row .ws-tile { flex: 0 0 calc((100% - 72px) / 5); }
.ws-row-next, .ws-row-prev {
  position: absolute; top: 75px; background: none; border: 0; cursor: pointer; color: var(--ws-gold);
  font-size: 48px; line-height: 1; padding: 0 4px;
}
.ws-row-next { right: -34px; } .ws-row-prev { left: -34px; }
.ws-tile { text-align: center; text-decoration: none; color: var(--ws-gold); display: block; min-width: 0; }
.ws-tile .ws-img { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f7f5ee; }
.ws-avail { font-size: 12px; font-style: italic; color: #7a3fbf; margin-top: 2px; }
.ws-avail-big { font-size: 15px; display: inline-block; margin-top: 6px; }
.ws-tile .ws-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-tile .ws-name { font-weight: bold; font-size: 15px; margin-top: 14px; line-height: 1.2; min-height: 2.4em;
  display: flex; align-items: center; justify-content: center; }
.ws-price { font-size: 16px; margin-top: 8px; }
.ws-net { font-size: 11px; margin-top: 2px; }
.ws-free { font-weight: bold; letter-spacing: .03em; }
.ws-tile.partner .ws-img { background: #fff; }
.ws-tile.partner .ws-img img { object-fit: contain; }
.ws-section { margin-bottom: 44px; }

/* ── Detailpagina's ───────────────────────────────────────────────── */
.ws-detail { display: grid; grid-template-columns: 30px 1fr 300px 150px 30px; gap: 22px; align-items: start; }
.ws-arrow { font-size: 46px; line-height: .9; color: var(--ws-gold); text-decoration: none; }
.ws-arrow.off { visibility: hidden; }
.ws-detail h1 { font-weight: normal; font-size: 26px; margin: 0 0 12px; }
/* Tekst van een partner: standaardkleur; een eigen tekstkleur (affiliate.textcolour) gaat voor. */
.ws-dtext { color: #3d0070; }
.ws-text { font-size: 15px; overflow-wrap: anywhere; }
.ws-text img { max-width: 100%; height: auto; }
.ws-detail .ws-btns { padding-top: 2px; }
.ws-detail .ws-btns .ws-btn { min-width: 0; padding: 7px 10px; }
.ws-partnerlink { margin-top: 120px; }
.ws-note { margin: 34px 0; text-align: center; font-size: 15px; }

/* Lopende presentatie van de afbeeldingen */
.ws-show { position: relative; width: 300px; }
.ws-show .ws-frame { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #fff; position: relative; }
.ws-show .ws-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .7s ease; cursor: zoom-in; }
.ws-show .ws-frame img.on { opacity: 1; }
.ws-show .ws-tag { font-size: 12px; text-align: center; min-height: 1.3em; margin-top: 4px; }
.ws-dots { display: flex; justify-content: center; gap: 5px; margin-top: 4px; }
.ws-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ws-gold); background: #fff; padding: 0; cursor: pointer; }
.ws-dots button.on { background: var(--ws-gold); }
.ws-show .ws-sprev, .ws-show .ws-snext {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.75); border: 0;
  border-radius: 50%; width: 30px; height: 30px; line-height: 28px; font-size: 20px; cursor: pointer; color: var(--ws-gold); padding: 0;
}
.ws-show .ws-sprev { left: 3px; } .ws-show .ws-snext { right: 3px; }
.ws-zoom { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.8); display: flex;
  align-items: center; justify-content: center; cursor: zoom-out; }
.ws-zoom img { max-width: 94vw; max-height: 94vh; border-radius: 8px; background: #fff; }

/* Varianten */
.ws-variants { margin: 34px 0 14px 52px; max-width: 640px; }
.ws-variant { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 16px; }
.ws-variant .ws-pr { text-align: center; }
.ws-variant .ws-pr .ws-btn { margin-top: 4px; }
/* Opties in een raster: namen in de eerste kolom, keuzes in de tweede, alle
   keuzelijsten even breed. */
.ws-opts { display: grid; grid-template-columns: max-content minmax(0, 260px); gap: 8px 12px; align-items: center; }
.ws-opts select { width: 100%; font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--ws-gold); border-radius: 4px; color: var(--ws-gold); background: #fff; }
.ws-optchecks { display: flex; flex-direction: column; gap: 4px; }
.ws-bottomtext { font-size: 14px; margin: 12px 52px; }

/* Contactformulier */
.ws-contact { max-width: 520px; margin: 44px auto 0; }
.ws-contact h2 { text-align: center; font-size: 19px; }
.ws-contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.ws-contact input, .ws-contact textarea { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--ws-btn); color: #555; }
.ws-contact .wide { grid-column: 1 / -1; }
.ws-hp { position: absolute; left: -9999px; }

/* ── Winkelwagen ──────────────────────────────────────────────────── */
.ws-cart-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
.ws-cart-head h1 { font-weight: normal; font-size: 22px; margin: 30px 0 10px; line-height: 1.2; }
.ws-cart-head label { font-size: 13px; color: #7a3fbf; }
.ws-cart-head textarea { width: 100%; height: 130px; font: inherit; font-size: 14px; }
.ws-cart-head input, .ws-cart-head select {
  font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #c9b6e8; border-radius: 4px; color: #7a3fbf; min-width: 0;
}
.ws-fields { display: grid; grid-template-columns: 30px 1fr 1fr; gap: 7px 8px; align-items: center; font-size: 13px; color: #7a3fbf; }
.ws-fields .full { grid-column: 2 / -1; }
.ws-fields .ico { font-size: 19px; text-align: center; }
.ws-phone { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 7px; grid-column: 2 / -1; }
.ws-addr { grid-column: 2 / -1; display: flex; gap: 6px; align-items: center; }
.ws-addr .line { flex: 1; border: 1px solid #c9b6e8; border-radius: 4px; padding: 5px 8px; min-height: 28px; font-size: 13px; color: #7a3fbf; }
.ws-vat { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ws-vatcheck { font-size: 13px; margin-top: 4px; }
.ws-vathint { font-size: 13px; display: block; }
.ws-vat select { font: inherit; font-size: 13px; padding: 4px 6px; max-width: 100%; }
.ws-vatcheck.ok { color: #2e7d32; }
.ws-vatcheck.warn { color: #b26a00; }
.ws-totals .ws-rc { font-size: 13px; }
.ws-save { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.ws-hint { border: 1px solid var(--ws-gold); border-radius: 8px; padding: 7px; text-align: center; font-size: 13px; margin: 12px 0 22px; }
table.ws-lines { width: 100%; border-collapse: collapse; font-size: 13px; color: #138a8a; }
table.ws-lines th { background: var(--ws-gold); color: #fff; font-weight: normal; padding: 5px 8px; text-align: left; }
table.ws-lines td { padding: 6px 8px; vertical-align: middle; }
table.ws-lines td.num, table.ws-lines th.num { text-align: right; white-space: nowrap; }
table.ws-lines td a { font-weight: bold; color: #138a8a; }
table.ws-lines input.qty { width: 56px; font: inherit; font-size: 13px; text-align: right; padding: 2px 4px; }
table.ws-lines .rm { background: none; border: 0; color: #b33; cursor: pointer; font-size: 14px; }
table.ws-lines tr.extra td { color: #4b8d8d; }
.ws-cart-mid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; margin: 18px 0; align-items: start; }
.ws-cart-mid input, .ws-cart-mid select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #c9b6e8; border-radius: 4px; color: #7a3fbf; width: 100%; }
.ws-totals { font-size: 13px; color: #138a8a; display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; }
.ws-totals .big { font-weight: bold; }
.ws-cart-foot { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; align-items: start; }
.ws-status { font-size: 15px; margin: 12px 0; }

/* Overzicht van de wagens */
.ws-carts { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-carts td { padding: 14px 6px; vertical-align: top; }
.ws-carts td.nr { font-weight: bold; white-space: nowrap; }
.ws-carts td.st i { display: block; }
.ws-carts td.eye a { color: var(--ws-gold); }
.ws-carts td.eye svg { width: 42px; height: 28px; }

/* Toast */
.ws-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ws-btn);
  color: #fff; padding: 9px 18px; border-radius: 18px; font-size: 13px; z-index: 950; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* ── Auth-pagina's (overgenomen van veganin) ──────────────────────── */
.auth-page > main { flex: 1 0 auto; }
.auth-card { width: 100%; max-width: 420px; margin: 20px auto 40px; padding: 26px 28px;
  border: 1.5px solid var(--ws-gold); border-radius: 12px; background: #fff; }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: normal; }
.auth-card p.auth-lede { margin: 0 0 22px; font-size: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.auth-field label { font-size: 12px; font-weight: bold; }
.auth-field input, .auth-field select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--ws-gold); border-radius: 6px; color: #333; }
.auth-field input:focus { outline: none; box-shadow: 0 0 0 3px rgba(155,132,32,.2); }
.auth-field .auth-hint, .auth-hint { font-size: 11px; font-style: italic; }
.auth-button { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 999px;
  background: var(--ws-gold); color: #fff; font: inherit; font-size: 14px; cursor: pointer; text-align: center; }
.auth-button:hover { background: var(--ws-gold-dark); }
.auth-button:disabled { opacity: .6; cursor: progress; }
.auth-message { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
.auth-message.error { background: #fdecec; color: #8a1c1c; }
.auth-message.success { background: #ecf6ee; color: #1c5a2c; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; }
.auth-footer a { color: var(--ws-gold); font-weight: bold; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.container { max-width: 840px; margin: 0 auto; padding: 0 16px; }
.container .auth-button { width: auto; display: inline-block; }

/* ── Smalle schermen ──────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .ws-row-next { right: -6px; } .ws-row-prev { left: -6px; }
  .ws-detail { grid-template-columns: 30px 1fr 240px 140px 30px; gap: 16px; }
  .ws-show { width: 240px; }
}

@media (max-width: 760px) {
  .ws-row-next, .ws-row-prev { display: none; }
  .ws-grid { grid-template-columns: repeat(3, 1fr); }
  .ws-row .ws-tile { flex-basis: calc((100% - 20px) / 3); }
  .ws-detail { grid-template-columns: 22px 1fr 22px; }
  .ws-detail .ws-show { grid-column: 2; justify-self: center; width: 70vw; max-width: 340px; }
  .ws-detail .ws-btns { grid-column: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ws-detail .ws-arrow.next { grid-row: 1; grid-column: 3; }
  .ws-partnerlink { margin-top: 0; }
  .ws-variants { margin-left: 0; }
  .ws-cart-head, .ws-cart-mid, .ws-cart-foot { grid-template-columns: 1fr; }
  table.ws-lines { font-size: 11px; display: block; overflow-x: auto; }
  table.ws-lines input.qty { width: 44px; }
  .ws-btn.wide { white-space: normal; max-width: 100%; }
  .ws-totals { font-size: 12px; column-gap: 10px; }
  .ws-title { font-size: 34px; }
  .ws-tile .ws-name { font-size: 13px; }
  .ws-detail h1 { font-size: 21px; }
  .ws-text { font-size: 14px; }
  .ws-variants, .ws-bottomtext { margin-left: 0; }
  .ws-search { grid-template-columns: auto 1fr auto; }
  .ws-search input[type=search], .ws-search select { width: 100%; }
}
.ws-landing { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ws-staffel { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 14px; margin: -6px 0 18px; }
.ws-staffel-t { font-style: italic; }
