/* My Tiny Baby World: aanvullingen op style.css van het sjabloon.

   style.css blijft onaangeroerd. Hier staat (1) wat de langere naam in de
   kop nodig heeft en (2) de pagina's die het sjabloon niet had: tas,
   afrekenen, bedankt, account, inloggen, informatiepagina's en meldingen.
   Alles in de taal van het sjabloon: dezelfde variabelen, rondingen,
   knoppen en marges. */

/* Een veld met hidden (de staat buiten de VS, het factuuradres) blijft weg,
   ook als .field zelf een display heeft. */
[hidden] { display: none !important; }


/* ---------- Kop: "my tiny baby world" is langer dan de proefnaam ---------- */
.site-header .logo { font-size: 24px; }
.site-header .wrap { gap: 24px; }
@media (max-width: 1440px) {
  .main-nav ul { gap: clamp(10px, 1.2vw, 22px); }
  .main-nav a { font-size: 14.5px; }
}
@media (max-width: 1300px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid !important; }
}
@media (max-width: 860px) { .site-header .logo { font-size: 20px; } }
@media (max-width: 400px) { .site-header .logo span { font-size: 18px; } .site-header .wrap { gap: 10px; } }

/* ---------- Pagineren ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; }
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Bladen voor eigen pagina's ---------- */
.sheet { padding: 8px var(--gutter) 72px; max-width: 1240px; margin: 0 auto; }
.sheet.narrow { max-width: 560px; }
.sheet.medium { max-width: 860px; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--white); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.notice { border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 20px; background: var(--announce); color: var(--ink); }
.notice.error { background: #fde6e4; color: #8b1d16; }
.notice.success { background: var(--new-bg); color: var(--new-ink); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Formulieren ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--sale); }
.input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); font-size: 16px; transition: border-color .2s;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field.has-error .input, .field.has-error select { border-color: var(--sale); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Keuzetegels (verzending, betalen) ---------- */
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--navy); background: #f6f8fc; }
.choice input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.choice b { display: block; font-weight: 700; }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.choice .end { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ---------- Afrekenen en tas ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.summary { position: sticky; top: 104px; }
.lines { display: grid; gap: 14px; margin-bottom: 18px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--chalk); }
.line h3 { font-size: 15px; font-weight: 600; margin: 0; }
.line .opts { font-size: 13px; color: var(--muted); }
.line .price { font-weight: 700; }
.totals { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 19px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .discount { color: var(--new-ink); }
.coupon { display: flex; gap: 8px; margin-top: 16px; }
.coupon .input { height: 44px; }
.coupon .btn { height: 44px; padding: 0 18px; }
.safe-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.safe-note .icon { width: 16px; height: 16px; }
.bag-page .cart-line { padding: 18px 0; }
.bag-page .cart-line img { width: 96px; height: 96px; }

/* ---------- Bedankt en bestellingen ---------- */
.thanks { text-align: center; padding: 30px 0 10px; }
.thanks .badge-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--new-bg); color: var(--new-ink); }
.thanks .badge-ok .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.thanks h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.thanks p { margin-top: 10px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 26px 0; }
.facts div { background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.facts span { display: block; font-size: 13px; color: var(--muted); }
.facts b { font-size: 16px; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--announce); }
.status.ok { background: var(--new-bg); color: var(--new-ink); }
.status.wait { background: #fff1c7; color: #6b4a00; }
.status.no { background: #fde6e4; color: #8b1d16; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table a { font-weight: 600; }
.bank { background: var(--cream); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.6; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.account-nav { display: grid; gap: 4px; position: sticky; top: 104px; }
.account-nav a, .account-nav button { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; text-align: left; width: 100%; }
.account-nav a:hover, .account-nav button:hover { background: var(--cream); }
.account-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.address { font-size: 15px; line-height: 1.55; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 15px; }

/* ---------- Informatiepagina's ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 10px; }
.prose h3 { color: var(--ink); font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 14px; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose .placeholder { background: #fff1c7; border-radius: 4px; padding: 0 4px; }

/* ---------- Klein scherm ---------- */
@media (max-width: 980px) {
  .checkout, .account { grid-template-columns: 1fr; }
  .summary, .account-nav { position: static; }
  .account-nav { grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; }
  .account-nav a, .account-nav button { white-space: nowrap; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 0; }
}

/* Cookiebalk: de pixels laden pas na "Accept all". */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--line, #e6e6e6); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(35, 43, 59, .18); padding: 18px 20px; display: grid; gap: 14px; font-size: 14px; line-height: 1.5; }
.consent[hidden] { display: none !important; }
.consent p { margin: 0; }
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .btn { height: 42px; padding: 0 18px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) {
  .consent { left: 10px; right: 10px; bottom: 10px; }
  .consent-actions .btn { flex: 1; }
}
