/* ============================================================
   Condoomvergelijk.nl — "Fris & vertrouwd"
   Crème + diep zeegroen + koraal · Fraunces + Instrument Sans
   ============================================================ */

:root {
  --cream: #faf6ef;
  --cream-deep: #f3ecdf;
  --ink: #1c2b29;
  --ink-soft: #44544f;
  --green: #0e4d45;
  --green-dark: #093832;
  --green-tint: #e3efe9;
  --coral: #e4572e;
  --coral-dark: #c4431d;
  --coral-tint: #fdeae3;
  --gold: #d9a441;
  --white: #ffffff;
  --line: #e3dccd;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 43, 41, .06), 0 8px 24px -12px rgba(28, 43, 41, .18);
  --shadow-lift: 0 2px 4px rgba(28, 43, 41, .08), 0 18px 40px -16px rgba(28, 43, 41, .28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, #eef4ec 0%, transparent 60%),
    var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-dark);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
a  { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green-dark); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); }
.logo svg { flex: none; }
.logo-text { font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; letter-spacing: -.02em; }
.logo-text strong { font-weight: 700; }
.logo-tld { color: var(--coral); font-weight: 700; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft);
}
.nav-list a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav-deals { color: var(--coral-dark) !important; }
.nav-toggle, .nav-burger { display: none; }

.header-search { display: flex; align-items: center; position: relative; }
.header-search input {
  width: 185px; padding: 9px 38px 9px 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); font: inherit; font-size: .9rem; color: var(--ink);
  transition: border-color .15s, width .2s;
}
.header-search input:focus { border-color: var(--green); outline: none; width: 215px; }
.header-search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--green); color: #fff; border-radius: 999px;
  width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer;
}
.header-search button:hover { background: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 70%, #14655b 100%);
  color: #f3efe6; padding: 72px 0 86px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 20%, rgba(217,164,65,.22) 0, transparent 28%),
    radial-gradient(circle at 78% 75%, rgba(228,87,46,.25) 0, transparent 32%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14em; margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; max-width: 36em; color: #d7e4dc; }
.hero-search { display: flex; max-width: 560px; margin: 26px 0 14px; box-shadow: var(--shadow-lift); border-radius: 999px; }
.hero-search input {
  flex: 1; padding: 16px 22px; border: 0; border-radius: 999px 0 0 999px;
  font: inherit; font-size: 1.05rem;
}
.hero-search input:focus { outline: none; }
.hero-search button {
  border: 0; background: var(--coral); color: #fff; font: inherit; font-weight: 700;
  padding: 0 28px; border-radius: 0 999px 999px 0; cursor: pointer; font-size: 1rem;
}
.hero-search button:hover { background: var(--coral-dark); }
.hero-usps { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding: 0; list-style: none; font-size: .92rem; color: #cfe0d7; }
.hero-usps li { display: flex; align-items: center; gap: 7px; }
.hero-usps svg { color: var(--gold); flex: none; }

/* fade-up bij laden */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero-search, .hero-usps {
    animation: fadeUp .6s ease both;
  }
  .hero .lead { animation-delay: .08s; }
  .hero-search { animation-delay: .16s; }
  .hero-usps { animation-delay: .24s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Secties ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head .more { font-weight: 600; white-space: nowrap; }
.section-alt { background: var(--cream-deep); }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral-dark); margin-bottom: 6px;
}

/* ---------- Kaarten / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* productfoto's */
.card-img {
  display: grid; place-items: center;
  height: 150px; margin: -6px -6px 6px;
  background: #fff; border-radius: var(--radius);
}
.card-img img { max-height: 138px; max-width: 88%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.card-img-empty { color: #d8d2c3; background: var(--cream); }
.row-thumb {
  width: 42px; height: 42px; object-fit: contain; background: #fff;
  border-radius: 8px; border: 1px solid var(--line);
  vertical-align: middle; margin-right: 10px; flex: none;
}
td.cell-thumb { display: flex; align-items: center; }
.compare-img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  margin: 0; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.gallery-main img { max-width: 100%; height: auto; max-height: 340px; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs a {
  display: grid; place-items: center; width: 86px; height: 86px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; transition: border-color .15s, transform .15s;
}
.gallery-thumbs a:hover { border-color: var(--green); transform: translateY(-2px); }
.gallery-thumbs img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* product-kaart */
.product-card { display: flex; flex-direction: column; gap: 8px; position: relative; }
.product-card .brand { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.product-card h3 { margin: 0; font-size: 1.18rem; }
.product-card .specs { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.product-card .price-row { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.price-big { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--green-dark); }
.price-sub { font-size: .82rem; color: var(--ink-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; font-size: .78rem; font-weight: 600;
  background: var(--green-tint); color: var(--green-dark);
  border-radius: 999px; padding: 3px 11px; text-decoration: none;
}
.chip:hover { background: var(--green); color: #fff; }
.chip-coral { background: var(--coral-tint); color: var(--coral-dark); }

.badge-discount {
  position: absolute; top: 14px; right: 14px;
  background: var(--coral); color: #fff; font-weight: 700; font-size: .82rem;
  border-radius: 999px; padding: 4px 11px;
}

/* categorie-tegels */
.cat-tile {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.cat-tile:hover { transform: translateY(-2px); border-color: var(--green); color: inherit; }
.cat-tile strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--green-dark); }
.cat-tile span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none;
  border-radius: 999px; padding: 11px 24px; cursor: pointer; border: 0;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn-sm { padding: 7px 16px; font-size: .87rem; }

/* ---------- Merken ---------- */
.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.brand-tile {
  display: grid; place-items: center; height: 78px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .15s, border-color .15s;
}
.brand-tile:hover { transform: translateY(-2px); border-color: var(--green); }
.brand-tile img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.brand-logo-text { font-family: var(--font-display); font-weight: 700; color: var(--green-dark); font-size: 1.05rem; text-align: center; }
.brand-card .brand-logo { display: grid; place-items: center; height: 84px; background: #fff; border-radius: var(--radius); margin: -6px -6px 10px; }
.brand-card .brand-logo img { max-height: 52px; max-width: 70%; width: auto; object-fit: contain; }
.brand-hero-logo {
  display: grid; place-items: center; min-height: 170px; padding: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.brand-hero-logo img { max-height: 110px; max-width: 80%; width: auto; object-fit: contain; }

/* ---------- Vergelijkmandje ---------- */
.cmp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); padding: 5px 12px;
  transition: all .15s; margin-top: 10px; align-self: flex-start;
  position: relative; z-index: 2;
}
.cmp-btn:hover { border-color: var(--green); color: var(--green-dark); }
.cmp-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.cmp-btn.active svg { transform: rotate(45deg); }
.cmp-btn svg { transition: transform .15s; }
.cmp-btn-lg { font-size: .92rem; padding: 9px 18px; margin-top: 0; }
.cmp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--green-dark); color: #fff;
  transform: translateY(100%); transition: transform .25s ease;
  box-shadow: 0 -8px 30px rgba(9, 56, 50, .35);
}
.cmp-bar.open { transform: translateY(0); }
.cmp-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.cmp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border-radius: 999px;
  padding: 5px 7px 5px 13px; font-size: .85rem; font-weight: 600;
}
.cmp-remove {
  border: 0; background: rgba(255,255,255,.2); color: #fff; cursor: pointer;
  width: 20px; height: 20px; border-radius: 999px; font-size: .9rem; line-height: 1;
}
.cmp-remove:hover { background: var(--coral); }
.cmp-hint { font-size: .85rem; color: #b9cdc4; }
.cmp-actions { display: flex; align-items: center; gap: 10px; }
.cmp-bar .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cmp-bar .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Filters ---------- */
.filters {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 26px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
}
.filters .field { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.filters select, .filters input[type=search] {
  font: inherit; font-size: .92rem; padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  min-width: 150px;
}
.filters .checkbox { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 9px; }
.filters .checkbox label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.result-count { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
table.cv { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
table.cv th, table.cv td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cv thead th {
  background: var(--green-dark); color: #f1ece0; font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; border-bottom: 0;
}
table.cv tbody tr:last-child td { border-bottom: 0; }
table.cv tbody tr:hover { background: #f7f3ea; }
.best-deal td { background: #eef7ef !important; }
.best-deal .deal-label { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-left: 7px; vertical-align: 1px; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.cv .btn { white-space: nowrap; }
.old-price { text-decoration: line-through; color: #97a39d; font-size: .85rem; margin-right: 6px; }
.yes { color: #1d7a43; font-weight: 700; }
.no  { color: #b3422a; font-weight: 700; }

/* ---------- Productdetail ---------- */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin: 22px 0 6px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b1a995; }
.product-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; margin-bottom: 38px; }
.product-hero.has-gallery { grid-template-columns: 340px 1fr .8fr; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list li { background: #fff; padding: 12px 16px; }
.spec-list .label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.spec-list .value { font-weight: 600; color: var(--green-dark); }

/* ---------- Winkel-kaart ---------- */
.shop-meta { list-style: none; display: grid; gap: 7px; margin: 12px 0 0; padding: 0; font-size: .92rem; }
.shop-meta li { display: flex; gap: 8px; align-items: baseline; }
.shop-meta .k { color: var(--ink-soft); min-width: 130px; flex: none; font-size: .85rem; }
.rating-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}

/* ---------- Artikelen ---------- */
.article-card { display: flex; flex-direction: column; gap: 6px; }
.article-card .meta { font-size: .82rem; color: var(--ink-soft); }
.article-card h3 a { text-decoration: none; color: var(--green-dark); }
.article-card h3 a:hover { color: var(--coral-dark); }
.article-body { max-width: 720px; font-size: 1.05rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1em 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--green-tint); }
.article-header { max-width: 720px; margin: 34px auto 8px; }
.article-header .meta { color: var(--ink-soft); font-size: .9rem; }
.article-wrap { max-width: 720px; margin: 0 auto; }

/* ---------- Vergelijker ---------- */
.compare-pickers { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.compare-pickers select { font: inherit; font-size: .9rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; max-width: 250px; }
table.cv .col-head { font-family: var(--font-display); font-size: 1.02rem; color: var(--green-dark); }

/* ---------- CTA-band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg); color: #e8efe9; padding: 36px 38px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #cfdfd6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #c9d8d0; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; padding: 52px 20px 30px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: #c9d8d0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.logo-footer { color: #fff; font-size: 1.25rem; display: inline-block; margin-bottom: 10px; }
.footer-note { font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: .85rem; color: #9db4aa; }
.footer-about p { font-size: .92rem; }

/* ---------- Maatgids ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 640px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-weight: 700; font-family: var(--font-display);
}

/* ---------- 404 / leeg ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty h1, .empty h2 { color: var(--green-dark); }

/* ---------- Pagina-kop ---------- */
.page-head { padding: 46px 0 8px; }
.page-head .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 44em; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero, .product-hero.has-gallery { grid-template-columns: 1fr; }
  .gallery-main img { max-height: 240px; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding: 10px 20px; gap: 10px; }
  .header-search { order: 3; flex: 1 1 100%; }
  .header-search input { width: 100%; }
  .header-search input:focus { width: 100%; }
  .main-nav { margin-left: 0; order: 2; margin-left: auto; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--green-dark); border-radius: 2px; transition: .2s; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 20px 16px; gap: 2px; box-shadow: var(--shadow-lift);
  }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .site-header { position: relative; }
  .hero { padding: 48px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 28px 24px; }
  .spec-list { grid-template-columns: 1fr; }
}
