/* Tapify webshop: header-acties, winkelmandje, formulieren, account, afrekenen, factuur, juridische pagina's */

/* Header actions */
.icon-link { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 3px 16px 0; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); transition: background 200ms; }
.icon-link svg { margin-top: -3px; }
.icon-link:hover { background: var(--green-soft); }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; transition: background 200ms; }
.cart-btn:hover { background: var(--navy-3); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 3px 6px 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump 450ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Buttons */
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost-navy { background: var(--green-soft); color: var(--navy); }
.btn-ghost-navy:hover { background: #cdebd9; }
.btn-danger { background: #b3261e; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 62px; font-size: 1.15rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; justify-self: start; }
.plan-add { margin-top: 22px; width: 100%; position: relative; z-index: 1; }
.plan-pop .plan-add { box-shadow: none; }
.price-note { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }

/* Cart drawer */
.cart { position: fixed; inset: 0; z-index: 80; }
.cart[hidden] { display: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(14, 26, 43, 0.4); animation: fade 300ms both; }
.cart-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 28px; background: var(--bg); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.5); animation: slide 420ms var(--ease) both; outline: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(105%); } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 22px 10px 26px; }
.cart-head h2 { font-size: 2rem; color: var(--navy); }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--green-soft); color: var(--navy); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 18px; display: grid; gap: 10px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--paper); }
.cart-thumb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(180deg, var(--navy) 48%, var(--green) 48%); color: #fff; font-weight: 800; padding-top: 3px; }
.cart-item h3 { font-size: 1.1rem; color: var(--navy); line-height: 1.1; }
.cart-item p { color: var(--muted); font-size: 0.95rem; }
.qty { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--bg); }
.qty button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 1.2rem; }
.qty button:hover { background: var(--green-soft); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; padding-top: 3px; }
.cart-empty { padding: 8px 26px; color: var(--muted); }
.cart-empty[hidden] { display: none; }
.cart-foot { padding: 18px 22px 22px; display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; }
.cart-total small { color: var(--muted); font-size: 0.85rem; }
.cart-note { font-size: 0.88rem; color: var(--muted); }
.cart-foot .btn[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 160%); visibility: hidden; padding: 14px 22px 11px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); transition: transform 400ms var(--ease), visibility 0s 400ms; white-space: nowrap; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 400ms var(--ease); }

/* Pages */
.sub .site-header { position: sticky; }
.page { padding: 56px 0 20px; min-height: 60vh; }
.narrow { width: min(860px, 100% - 2 * var(--gutter)); }
.page-title { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--navy); margin-bottom: 28px; }
.page-title em { color: var(--green); }
.card { padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: var(--paper); box-shadow: 0 1px 0 rgba(20, 54, 90, 0.05), 0 20px 40px -32px rgba(20, 54, 90, 0.4); margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 16px; font-weight: 800; }
.step-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1rem; padding-top: 3px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.ph { color: #b45309; background: #fff7e6; border-radius: 6px; padding: 0 4px; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { min-width: 0; border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 0.98rem; color: var(--navy); padding: 0; }
.field small, .hint { color: var(--muted); font-size: 0.9rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px 11px; border: 2px solid transparent; border-radius: 14px; background: var(--bg); font: inherit; color: var(--ink); transition: border-color 200ms, background 200ms; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2314365a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); background: #fff; }
.field input:user-invalid { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: inline-flex; align-items: center; min-height: 48px; padding: 3px 20px 0; border-radius: 999px; background: var(--bg); font-weight: 600; cursor: pointer; transition: background 200ms, color 200ms; }
.choices input:checked + span { background: var(--navy); color: #fff; }
.choices input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); }
.check a { color: var(--navy); font-weight: 600; }
.form-msg { min-height: 1.4em; color: #b3261e; font-weight: 600; }
.form-msg.is-ok { color: var(--green-2); }
.notice { padding: 14px 18px 11px; border-radius: 14px; background: #fff7e6; color: #6b4300; font-size: 0.98rem; }
.notice a { color: inherit; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Auth */
.auth-card { max-width: 560px; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg); margin-bottom: 22px; }
.tabs button { flex: 1; min-height: 46px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--muted); padding-top: 3px; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 6px 14px -8px rgba(20, 54, 90, 0.4); }

/* Account */
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.acc-head .page-title { margin-bottom: 6px; }
.orders { display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px 18px; align-items: center; padding: 14px 18px 11px; border-radius: 16px; background: var(--bg); }
.order-row div { display: flex; flex-direction: column; }
.order-row div span { color: var(--muted); font-size: 0.9rem; }
.order-links a { color: var(--navy); font-weight: 600; }
.empty a { color: var(--navy); font-weight: 700; }
.status { display: inline-block; padding: 5px 12px 2px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; background: #eef1f5; color: var(--navy); }
.status-paid, .status-shipped { background: var(--green-soft); color: var(--green-2); }
.status-failed, .status-canceled, .status-expired { background: #fde8e7; color: #b3261e; }
.status-pending { background: #fff4d6; color: #8a5a00; }
.danger { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef1f5; }
.danger summary { cursor: pointer; font-weight: 700; color: #b3261e; padding: 6px 0; }
.danger form { margin-top: 12px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 16px; align-items: start; }
.summary { position: sticky; top: 100px; }
.sum-lines { display: grid; gap: 8px; margin-bottom: 14px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; }
.totals { margin: 0; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #eef1f5; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.totals dd { margin: 0; color: var(--ink); font-weight: 600; }
.totals .grand { padding-top: 10px; margin-top: 4px; border-top: 1px solid #eef1f5; color: var(--navy); font-weight: 800; font-size: 1.3rem; }
.totals .grand dd { color: var(--navy); font-weight: 800; }

/* Order + invoice */
.status-card { display: grid; gap: 10px; margin-bottom: 20px; }
.test-box { padding: 16px 18px; border-radius: 16px; background: var(--green-soft); display: grid; gap: 10px; justify-items: start; }
.lines { width: 100%; border-collapse: collapse; margin: 10px 0 6px; }
.lines th { text-align: left; font-size: 0.85rem; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid #eef1f5; }
.lines td { padding: 10px 8px 8px; border-bottom: 1px solid #f2f4f7; vertical-align: top; }
.lines td small { color: var(--muted); }
.num { text-align: right; white-space: nowrap; }
.addr { margin-top: 20px; display: grid; gap: 6px; }
.addr h3 { color: var(--navy); font-size: 1.1rem; margin-top: 10px; }
.break { overflow-wrap: anywhere; }
.inv-actions { margin: 0 0 16px; }
.invoice { display: grid; gap: 22px; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.inv-head .logo { font-size: 2.2rem; margin-bottom: 8px; }
.inv-head p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.inv-meta h1 { font-size: 2.4rem; color: var(--navy); }
.inv-meta dl { margin: 10px 0 0; display: grid; gap: 4px; }
.inv-meta dl div { display: flex; gap: 14px; justify-content: space-between; }
.inv-meta dt { color: var(--muted); }
.inv-meta dd { margin: 0; font-weight: 600; }
.inv-to h2 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.inv-note { color: var(--muted); font-size: 0.95rem; }

/* Legal prose */
.prose h2 { margin: 34px 0 10px; font-size: 1.55rem; color: var(--navy); letter-spacing: -0.02em; }
.prose p, .prose li { color: #2b3a4f; max-width: 70ch; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.3em; display: grid; gap: 8px; }
.prose ol { list-style: decimal; }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--navy); font-weight: 600; }
.draft { margin: 18px 0; padding: 14px 18px 11px; border-radius: 14px; background: #fff7e6; color: #6b4300; font-size: 0.98rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 10px 8px; border-bottom: 1px solid #e6eaf0; vertical-align: top; }
.legal-table th { color: var(--navy); }
.form-box { padding: 22px; border-radius: 18px; background: var(--paper); border: 2px dashed #d5dce6; display: grid; gap: 12px; }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 30px; }
.footer-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-links { grid-column: span 2; }
}
@media (max-width: 760px) {
  .icon-link span { display: none; }
  .icon-link { width: 46px; padding: 0; justify-content: center; }
  .icon-link svg { margin: 0; }
  .header-actions .btn-sm { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .lines th:nth-child(3), .lines td:nth-child(3) { display: none; }
  .legal-table { font-size: 0.9rem; }
  .legal-table th:nth-child(3), .legal-table td:nth-child(3) { display: none; }
}
@media print {
  .site-header, .site-footer, .concept-bar, .no-print, .cart, .toast { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; padding: 0; }
  .page { padding: 0; }
  .ph { background: none; }
}

/* Over ons */
.about-hero { max-width: 820px; }
.about-hero .page-title { margin-bottom: 18px; }
.about-lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--navy); }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 36px; align-items: start; }
.about-text p { color: #2b3a4f; font-size: 1.1rem; }
.about-text p + p { margin-top: 14px; }
.about-facts { background: var(--navy); color: #fff; }
.about-facts dl { margin: 0; display: grid; gap: 18px; }
.about-facts dt { color: #b8c7d8; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.about-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.team { margin-top: clamp(56px, 8vw, 96px); }
.team h2, .values h2 { color: var(--navy); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.team h2 em { color: var(--green); }
.team-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.team-grid li { display: grid; justify-items: center; gap: 12px; padding: 26px 12px 20px; border-radius: 24px; background: var(--paper); box-shadow: 0 20px 40px -32px rgba(20, 54, 90, 0.4); }
.team-grid strong { color: var(--navy); font-size: 1.15rem; }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 2rem; padding-top: 6px; box-shadow: 0 0 0 6px var(--green-soft); }
.avatar.a2 { background: var(--green); }
.avatar.a3 { background: var(--navy-3); }
.avatar.a4 { background: var(--green-2); }
.avatar.a5 { background: var(--black); }
.values { margin-top: clamp(48px, 7vw, 80px); }
.values h2 { margin-bottom: 22px; }
.values h2 em { color: var(--green); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.values-grid li { padding: 24px 26px 20px; border-radius: 24px; background: var(--green); color: #fff; display: grid; gap: 6px; }
.values-grid li:nth-child(2) { background: var(--navy); }
.values-grid li:nth-child(3) { background: var(--navy-3); }
.values-grid span { font-weight: 700; opacity: 0.7; }
.values-grid strong { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.about-cta { margin-top: clamp(48px, 7vw, 80px); padding: clamp(32px, 5vw, 60px); border-radius: var(--r-lg); background: var(--navy); color: #fff; text-align: center; }
.about-cta p { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; max-width: 26em; margin-inline: auto; }
.about-cta .actions { justify-content: center; margin-top: 26px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}
