/* ============================================================
   Premium storefront — styling
   ============================================================ */
:root {
  --ink: #14161a;
  --ink-soft: #4a4f57;
  --line: #e7e8ea;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --accent: #14161a;
  --gold: #b08d4f;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(20, 22, 26, 0.08);
  --shadow-sm: 0 2px 10px rgba(20, 22, 26, 0.06);
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.topbar span { opacity: 0.9; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; cursor: pointer; }
.brand .logo { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.brand .sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft); }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border: none;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .12s, opacity .15s;
}
.cart-btn:hover { opacity: .9; }
.cart-btn:active { transform: scale(.97); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; padding: 64px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.hero p { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 4/3; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: opacity .15s, transform .12s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 26px 24px; max-width: var(--maxw); margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.trust div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.trust b { color: var(--ink); font-weight: 600; }
.trust .ic { font-size: 20px; }

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 30px; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s; cursor: pointer;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img {
  position: relative; aspect-ratio: 1/1; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.badge-korting {
  position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; z-index: 1;
}
.price s { color: var(--ink-soft); font-weight: 400; font-size: 0.82em; margin-right: 5px; }
.detail-price s { color: var(--ink-soft); font-weight: 400; font-size: 0.58em; margin-right: 8px; }
.lineprice s { color: var(--ink-soft); font-weight: 400; font-size: 0.85em; margin-right: 4px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 6px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card .tag { font-size: 14px; color: var(--ink-soft); flex: 1; margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 18px; font-weight: 600; }
.price small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.swatches { display: flex; gap: 5px; }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* placeholder look when photo ontbreekt */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: #b9bcc1; background: repeating-linear-gradient(45deg,#f3f3f1,#f3f3f1 10px,#efefec 10px,#efefec 20px);
  font-size: 13px; text-align: center; padding: 16px;
}
.ph svg { width: 44px; height: 44px; opacity: .5; }

/* ---------- Detail (modal) ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20,22,26,.5);
  backdrop-filter: blur(2px); z-index: 60; display: none;
  opacity: 0; transition: opacity .2s;
}
.overlay.open { display: block; opacity: 1; }

.panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 100vw;
  background: #fff; z-index: 70; box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.panel.open { transform: translateX(0); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 18px; }
.panel-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.panel-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.iconbtn { border: none; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); padding: 4px; }

/* Detail modal (centered) */
.detail {
  position: fixed; inset: 0; z-index: 70; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.detail.open { display: flex; }
.detail-card {
  background: #fff; border-radius: var(--radius); max-width: 940px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr;
}
.detail-media { background: var(--bg-soft); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 32px; position: relative; }
.detail-close { position: absolute; top: 16px; right: 18px; }
.detail-info .cat { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.detail-info h2 { font-size: 28px; margin: 8px 0 6px; }
.detail-info .tag { color: var(--ink-soft); margin-bottom: 18px; }
.detail-price { font-size: 26px; font-weight: 600; margin-bottom: 20px; }
.detail-price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.detail-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.feat { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.feat li { display: flex; gap: 10px; font-size: 14px; }
.feat li::before { content: "✓"; color: var(--ok); font-weight: 700; }

.field-label { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.finish-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.finish {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 13px; transition: border-color .15s;
}
.finish:hover { border-color: var(--ink-soft); }
.finish.sel { border-color: var(--ink); }
.finish .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }

/* ---------- Cart items ---------- */
.cart-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bg-soft); overflow: hidden; display:flex;align-items:center;justify-content:center; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: 15px; margin: 0 0 3px; font-weight: 600; }
.cart-item .meta { font-size: 12px; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.qty button { border: none; background: none; width: 28px; height: 28px; font-size: 16px; color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-item .lineprice { font-weight: 600; }
.remove { border: none; background: none; color: var(--ink-soft); font-size: 12px; text-decoration: underline; padding: 0; }

.summary { font-size: 14px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-soft); }
.summary .row.total { color: var(--ink); font-size: 18px; font-weight: 600; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Checkout ---------- */
.checkout { display: none; }
.checkout.open { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.input { display: flex; flex-direction: column; gap: 5px; }
.input label { font-size: 13px; font-weight: 500; }
.input input, .input select, .input textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 14px; font-family: inherit;
}
.input input:focus, .input select:focus, .input textarea:focus { outline: 2px solid var(--ink); border-color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); z-index: 90; opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #cfd2d6; padding: 54px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
footer a { display: block; color: #cfd2d6; font-size: 14px; padding: 4px 0; }
footer a:hover { color: #fff; }
.foot-brand .logo { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.foot-brand p { font-size: 14px; max-width: 34ch; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .detail-card { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .panel { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
