/* ============ Cherry & Co — designtokens ============ */
:root {
  --cherry:      #B91250;
  --cherry-deep: #8E0E3E;
  --blush:       #FBEDF3;
  --blush-line:  #F3D6E2;
  --ink:         #2B2228;
  --muted:       #8A7681;
  --paper:       #FFFFFF;
  --radius:      12px;
  --shadow:      0 10px 30px rgba(185, 18, 80, .10);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Karla", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 2px; }

/* ============ scroll-reveal animatie ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ 18+ poort ============ */
.agegate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 34, 40, .92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  transition: opacity .35s ease;
}
.agegate[hidden] { display: none !important; }
.agegate.closing { opacity: 0; }
.agegate-card {
  background: var(--paper); border-radius: var(--radius);
  padding: 3rem 2.5rem; max-width: 420px; text-align: center;
  border-top: 4px solid var(--cherry);
  animation: cardIn .5s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.agegate-mark { font-size: 2.2rem; margin-bottom: .75rem; animation: bob 3s ease-in-out infinite; }
.agegate-card h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin-bottom: .5rem; }
.agegate-card p { color: var(--muted); margin-bottom: 1.5rem; }
.agegate-actions { display: flex; flex-direction: column; gap: .6rem; }

/* ============ knoppen ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--cherry); color: #fff;
  border: none; border-radius: 4px; padding: .9rem 2rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--cherry-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; }
.btn-ghost:hover { background: var(--blush); color: var(--ink); box-shadow: none; }

/* ============ header ============ */
.site-header {
  border-bottom: 1px solid var(--blush-line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 1rem 3vw;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.7rem; color: var(--cherry); white-space: nowrap;
}
.logo:hover { color: var(--cherry-deep); }
.search { flex: 1; display: flex; max-width: 540px; }
.search input {
  flex: 1; border: 1.5px solid var(--blush-line); border-right: none;
  border-radius: 4px 0 0 4px; padding: .65rem 1.1rem;
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .15s ease;
}
.search input:focus { outline: none; border-color: var(--cherry); }
.search button {
  border: none; background: var(--cherry); color: #fff;
  border-radius: 0 4px 4px 0; padding: 0 1.4rem;
  font-weight: 700; cursor: pointer; transition: background .15s ease;
}
.search button:hover { background: var(--cherry-deep); }
.cart-link {
  font-weight: 700; position: relative; white-space: nowrap;
  padding: .5rem .9rem; border-radius: 999px; transition: background .15s ease;
}
.cart-link:hover { background: var(--blush); }
.cart-badge {
  background: var(--cherry); color: #fff; border-radius: 999px;
  font-size: .75rem; padding: .1rem .45rem; margin-left: .3rem;
}
.cat-nav {
  max-width: 1400px; margin: 0 auto; padding: 0 3vw .75rem;
  display: flex; gap: .4rem; overflow-x: auto; font-size: .95rem;
}
.cat-nav a {
  color: var(--muted); font-weight: 500; white-space: nowrap;
  padding: .3rem .85rem; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.cat-nav a:hover { color: var(--cherry); background: var(--blush); }

/* ============ hero: wazige foto-achtergrond met crossfade ============ */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--blush-line); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.15);              /* verbergt de wazige randen */
  transition: opacity 2.4s ease;
}
.hero-bg img.show { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.72) 55%, rgba(255,255,255,.45) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 5rem 3vw;
}
.eyebrow {
  color: var(--cherry); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; max-width: 16ch;
}
.hero-sub { color: #5C4E56; margin-top: 1rem; max-width: 46ch; }
.hero-cta { margin-top: 1.75rem; display: flex; gap: .9rem; flex-wrap: wrap; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ============ USP-balk ============ */
.usp-bar { border-bottom: 1px solid var(--blush-line); background: #fff; }
.usp-inner {
  max-width: 1400px; margin: 0 auto; padding: 1rem 3vw;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.usp { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .92rem; }
.usp svg { flex: none; }

/* ============ secties & grids ============ */
.section { max-width: 1400px; margin: 0 auto; padding: 3rem 3vw; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; }
.section-link { color: var(--cherry); font-weight: 700; font-size: .92rem; }
.section-link:hover { color: var(--cherry-deep); }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.cat-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.cat-card {
  background: var(--blush); border-radius: var(--radius);
  padding: 1rem; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: calc(var(--radius) - 4px); margin-bottom: .6rem;
}
.cat-name { display: block; font-weight: 700; }
.cat-count { display: block; color: var(--muted); font-size: .8rem; }

.product-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.product-card { display: flex; flex-direction: column; }
.card-img {
  position: relative; background: #fff;
  border: 1px solid var(--blush-line); border-radius: var(--radius);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: .65rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover .card-img { border-color: var(--cherry); box-shadow: var(--shadow); }
.card-img img { object-fit: contain; max-height: 100%; transition: transform .35s ease; }
.product-card:hover .card-img img { transform: scale(1.06); }
/* "Bekijk product"-knop die verschijnt bij hover */
.card-cta {
  position: absolute; left: 50%; bottom: .8rem; transform: translate(-50%, 12px);
  background: var(--cherry); color: #fff; border-radius: 4px;
  padding: .45rem 1.2rem; font-weight: 700; font-size: .85rem;
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; white-space: nowrap;
}
.product-card:hover .card-cta { opacity: 1; transform: translate(-50%, 0); }
.badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; color: #fff; background: var(--cherry);
}
.card-brand {
  color: var(--muted); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.card-name { font-weight: 500; margin: .1rem 0 .25rem; }
.card-price { color: var(--cherry); font-weight: 700; font-size: 1.05rem; }

/* ============ categorie & zoeken ============ */
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb a:hover { color: var(--cherry); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.75rem; }
.chip {
  background: var(--blush); border-radius: 999px;
  padding: .4rem 1rem; font-size: .85rem; font-weight: 500;
  transition: background .15s ease, transform .15s ease;
}
.chip:hover { background: var(--blush-line); transform: translateY(-1px); }
.chip-off { opacity: .45; }
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 1.5rem; margin-top: 2.5rem; font-weight: 500;
}
.pagination a {
  color: var(--cherry); font-weight: 700;
  padding: .5rem 1.1rem; border-radius: 999px; transition: background .15s ease;
}
.pagination a:hover { background: var(--blush); }
.empty { text-align: center; padding: 3rem 0; }
.empty .btn { margin-top: 1rem; }

/* ============ productdetail ============ */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  margin: 1.5rem 0 2.5rem;
}
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery img#mainimg {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  border: 1px solid var(--blush-line); border-radius: var(--radius); background: #fff;
}
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; }
.thumbs img {
  width: 64px; height: 64px; object-fit: contain; background: #fff;
  border: 1.5px solid var(--blush-line); border-radius: 8px; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.thumbs img:hover { border-color: var(--cherry); transform: translateY(-2px); }
.detail-info h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin: .2rem 0 .6rem; }

/* koopblok: prijs, voorraad en knop samen in één kaart */
.buy-box {
  background: #fff; border: 1px solid var(--blush-line); border-radius: var(--radius);
  padding: 1.4rem; margin: 1.25rem 0; box-shadow: 0 4px 18px rgba(185, 18, 80, .06);
}
.detail-price { color: var(--cherry); font-weight: 700; font-size: 1.8rem; }
.stock { font-weight: 700; margin: .6rem 0 1rem; }
.stock.ok { color: #1E7A46; }
.stock.out { color: var(--muted); }
.variants { margin-bottom: 1.1rem; }
.variants .label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.buy-row { display: flex; gap: .75rem; align-items: stretch; }
.buy-row input[type=number] {
  width: 76px; padding: .7rem .6rem; border: 1.5px solid var(--blush-line);
  border-radius: 4px; font-family: var(--font-body); font-size: 1rem; text-align: center;
}
.buy-row .btn { flex: 1; }
.ref { margin-top: 1rem; }
.description { max-width: 760px; margin-bottom: 2.5rem; }
.description-body { color: #4A3E45; }
.description-body p { margin-bottom: .8rem; }

/* ============ winkelmandje ============ */
.cart-table { margin: 1.5rem 0; border-top: 1px solid var(--blush-line); }
.cart-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--blush-line);
}
.cart-img img {
  width: 64px; height: 64px; object-fit: contain;
  border: 1px solid var(--blush-line); border-radius: 8px; background: #fff;
}
.cart-info { flex: 1; display: flex; flex-direction: column; }
.cart-info a { font-weight: 500; }
.cart-info a:hover { color: var(--cherry); }
.cart-line { font-weight: 700; color: var(--cherry); }
.remove {
  border: none; background: none; color: var(--muted);
  font-size: 1.3rem; cursor: pointer; padding: .25rem .5rem;
  transition: color .15s ease;
}
.remove:hover { color: var(--cherry); }
.cart-total {
  display: flex; justify-content: space-between; max-width: 380px;
  margin-left: auto; font-size: 1.2rem; padding: 1rem 0;
}
.cart-actions { display: flex; justify-content: flex-end; margin-top: .75rem; }

/* ============ footer ============ */
.site-footer { background: var(--blush); margin-top: 3rem; }
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 2.5rem 3vw;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  color: var(--muted); font-size: .9rem;
}
.footer-inner strong { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; }
.footer-inner a:hover { color: var(--cherry); }
.footer-legal { text-align: right; }
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; }
  .search { order: 3; min-width: 100%; }
  .footer-legal { text-align: left; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ prijzen & gratis verzending ============ */
.was { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: .4rem; }
.trust { list-style: none; margin-top: 1rem; color: #4A3E45; font-size: .9rem; }
.trust li { padding: .25rem 0; }
.free-bar { max-width: 380px; margin-left: auto; padding: .5rem 0; }
.free-track { background: var(--blush); border-radius: 4px; height: 8px; overflow: hidden; }
.free-fill { background: var(--cherry); height: 100%; transition: width .4s ease; }
.free-ok { color: #1E7A46; font-weight: 700; text-align: right; }
.cart-sums { max-width: 380px; margin-left: auto; }
.cart-total { display: flex; justify-content: space-between; font-size: 1rem; padding: .35rem 0; max-width: 1400px; }
.cart-total.grand { font-size: 1.25rem; border-top: 1px solid var(--blush-line); margin-top: .3rem; padding-top: .6rem; }

/* ============ prijsbeheer ============ */
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0; }
.admin-table th, .admin-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--blush-line); }
.admin-table input[type=text] { width: 90px; padding: .35rem; border: 1px solid var(--blush-line); border-radius: 4px; }
.admin-table .mini { padding: .35rem .8rem; font-size: .82rem; }


/* ============ rode promobanner (dagpromotie) ============ */
.promo-banner {
  background: linear-gradient(120deg, #8E0E3E 0%, #5C0827 100%);
  color: #fff;
  width: calc(min(1400px, 100vw) - 6vw);
  margin: 1.25rem auto 0;
}
.promo-inner {
  padding: 2rem 2.25rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 820px) { .promo-inner { grid-template-columns: 1fr; } }
.promo-eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; opacity: .85; margin-bottom: .6rem;
}
.promo-text h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.08; color: #fff;
}
.promo-sub { margin: .9rem 0 1.5rem; opacity: .92; max-width: 44ch; }
.btn-light { background: #fff; color: var(--cherry-deep); }
.btn-light:hover { background: var(--blush); color: var(--cherry-deep); }
.promo-media {
  position: relative; background: #fff;
  aspect-ratio: 4 / 3; max-height: 250px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22); overflow: hidden;
}
@media (max-width: 820px) { .promo-media { max-height: 220px; } }
.promo-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 1.2rem; opacity: 0; transition: opacity 1.6s ease;
}
.promo-media img.show { opacity: 1; }

/* ============ categoriemenu: bannerbreedte, drukletters ============ */
.cat-nav { justify-content: space-between; padding-left: 0; padding-right: 0; }
.cat-nav a {
  text-transform: uppercase; letter-spacing: .06em;
  font-size: .82rem; font-weight: 700; color: var(--ink);
}

/* ============ zes tegels 3x2 met sterke kleuren ============ */
.cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { padding: 1.1rem 1rem; }
.cat-card img {
  aspect-ratio: 4 / 3; padding: .4rem; margin-bottom: .6rem;
  mix-blend-mode: multiply; background: transparent;
}
.cat-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.cat-count { color: rgba(43,34,40,.65); font-size: .85rem; margin-top: .15rem; }
.cat-grid .cat-card:nth-child(6n+1) { background: #F48FB6; }
.cat-grid .cat-card:nth-child(6n+2) { background: #FFB177; }
.cat-grid .cat-card:nth-child(6n+3) { background: #B4A0EA; }
.cat-grid .cat-card:nth-child(6n+4) { background: #8FD3A8; }
.cat-grid .cat-card:nth-child(6n+5) { background: #FFD37A; }
.cat-grid .cat-card:nth-child(6n+6) { background: #E58A9B; }

/* ============ rechte hoeken overal ============ */
:root { --radius: 0; }
.promo-banner, .promo-media, .cat-card, .card-img, .buy-box,
.agegate-card, .gallery img#mainimg, .thumbs img, .cart-img img,
.free-track, .admin-table input[type=text] { border-radius: 0 !important; }
.btn, .card-cta, .btn-light, .search input, .search button,
.buy-row input[type=number], .cart-link, .pagination a,
.cat-nav a, .chip { border-radius: 0 !important; }

/* aanbiedingen-badge */
.badge-deal { background: #8E0E3E; font-size: .85rem; padding: .25rem .7rem; }


/* klikbare maatknoppen */
.maat-knoppen { display:flex; flex-wrap:wrap; gap:.5rem; margin:.5rem 0 1rem; }
.maat-knop { position:relative; cursor:pointer; }
.maat-knop input { position:absolute; opacity:0; }
.maat-knop span { display:inline-block; padding:.5rem 1rem; border:1.5px solid var(--blush-line);
  font-weight:700; font-size:.9rem; transition:all .15s ease; }
.maat-knop input:checked + span { background:var(--cherry); color:#fff; border-color:var(--cherry); }
.maat-knop.uit span { opacity:.4; text-decoration:line-through; cursor:not-allowed; }
