/* Storefront styles — clean white/grey sections, bold Poppins headings, bright green
   calls to action, sage-green curved header band. */
:root {
  --accent: #5ec537;          /* buttons/ticks — overridden at runtime from store settings */
  --accent-ink: #ffffff;
  --sage: #b3bd96;            /* header curve, CTA band */
  --cream: #fbf9f1;           /* KleiJN logo background; header band */
  --ink: #333333;
  --ink-soft: #666666;
  --line: #e6e6e6;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --cloud: #e9ebee;           /* stages section */
  --card: #ffffff;
  --sand: #f2f2f0;
  --black: #000000;
  --danger: #c0392b;
  --ok: #3e9a28;
  --radius: 15px;
  --font-display: 'Poppins', Helvetica, Arial, sans-serif;
  --font-body: 'Poppins', Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; } /* clears the sticky header on #anchor jumps */
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); background: var(--paper); line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.boot { padding: 80px 24px; text-align: center; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--radius); padding: 13px 34px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #b9b9b9; cursor: not-allowed; filter: none; box-shadow: none; }
.btn .chev { font-size: 1.2em; line-height: 1; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 20px; font-size: 0.9rem; box-shadow: none; }

/* ---------- Header: black utility bar + sage band with a curved edge ---------- */
.topbar { background: var(--black); color: #fff; font-size: 0.85rem; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 26px; height: 40px; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 640px) { .topbar .wrap { justify-content: center; gap: 18px; } .topbar .hide-sm { display: none; } }

.site-header { position: sticky; top: 0; z-index: 20; }
/* Cream band (the KleiJN logo's own background) with the sage curve sweeping in at the right */
.band { background: var(--cream); position: relative; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04); }
.band::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 38%; height: 100%;
  background: var(--sage); border-top-left-radius: 100% 120%; pointer-events: none;
}
.brand img { display: block; height: 64px; width: auto; }
@media (max-width: 640px) { .brand img { height: 52px; } }
.site-footer .foot-brand img { display: block; height: 46px; width: auto; border-radius: 10px; margin-bottom: 8px; }
.band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; color: #fff; letter-spacing: -0.02em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.brand small { font-weight: 400; font-size: 0.95rem; margin-left: 10px; opacity: 0.95; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a.navlink { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.site-nav a.navlink:hover { color: var(--accent); }
.site-header.scrolled .band { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
@media (max-width: 760px) { .site-nav a.navlink { display: none; } .brand small { display: none; } .band::after { width: 30%; } }

/* ---------- Product hero ---------- */
.hero { padding: 36px 0 72px; }
.hero h1.product-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 28px; }
.brand-mark { display: block; height: 24px; width: auto; margin-bottom: 12px; }
.hero .grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.hero .grid > * { min-width: 0; } /* lets the thumbnail strip scroll instead of widening the column */
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; gap: 28px; } }

.gallery-main { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img[src$=".png"] { object-fit: contain; padding: 4%; } /* cut-out stage shots */
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--mist); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; color: #b8b8b8; font-size: 0.85rem; text-align: center; }
.placeholder svg { width: 26%; height: auto; margin: 0 auto; }

.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.ticks li::before { content: '✓'; color: var(--accent); font-weight: 700; flex: 0 0 auto; }

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 2px; }
.price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.was { color: var(--ink-soft); text-decoration: line-through; font-size: 1.1rem; }
.save { background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.vat-note { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 18px; }

.picker-label { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 0.95rem; }
.picker-label span { font-weight: 500; color: var(--ink-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; background: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); transition: box-shadow 0.15s ease; position: relative; }
.swatch i { width: 32px; height: 32px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--accent), 0 2px 10px rgba(0, 0, 0, 0.12); }
.swatch:disabled { cursor: not-allowed; }
.swatch:disabled i { opacity: 0.35; }
.swatch:disabled::after { content: ''; position: absolute; width: 36px; height: 2px; background: #999; transform: rotate(-45deg); }

.stock { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.stock.low { color: #d4860b; }
.stock.out { color: var(--danger); }

.buy-row { display: flex; gap: 12px; margin-bottom: 18px; align-items: stretch; max-width: 420px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border-radius: 12px; background: var(--mist); }
.qty button { width: 36px; height: 48px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: var(--ink-soft); }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; color: var(--ink); }

.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pay-badges span { border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.grey { background: var(--mist); }
.section.cloud { background: var(--cloud); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* Numbered stages with huge pale numerals behind each */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; gap: 12px; } }
.stage { position: relative; text-align: center; padding: 40px 12px 8px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.stage .num { position: absolute; inset: 0 0 auto; font-family: var(--font-display); font-weight: 800; font-size: 15rem; line-height: 1; color: #fff; z-index: 0; user-select: none; }
.stage .img { position: relative; z-index: 1; height: 200px; display: grid; place-items: center; margin-bottom: 14px; }
.stage .img img { max-height: 200px; width: auto; }
.stage h3 { position: relative; z-index: 1; font-size: 1.15rem; margin-bottom: 2px; }
.stage p { position: relative; z-index: 1; margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { text-align: center; }
.feature .icon { width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 0.92rem; }

.details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
@media (max-width: 900px) { .details { grid-template-columns: 1fr; gap: 36px; } }
.details .prose p { font-size: 1rem; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 48%; color: var(--ink); font-weight: 600; padding-right: 16px; }

.box-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.box-items span { background: #fff; border-radius: var(--radius); padding: 14px 24px; font-weight: 600; color: var(--ink); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07); }

/* Looping video banner at the top of the page */
.hero-video { padding: 28px 0 0; background: var(--cloud); }
.hv-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 21 / 9; max-width: 100%; background: #1d1f1a; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16); }
.hv-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 60px 32px 26px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%); }
.hv-caption span { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; }
@media (max-width: 640px) { .hv-frame { aspect-ratio: 4 / 3; border-radius: 16px; } .hv-caption { padding: 40px 18px 18px; } }

/* Coming-soon teaser */
.coming-soon { background: linear-gradient(180deg, var(--paper) 0%, var(--cloud) 100%); }
.cs-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cs-grid > * { min-width: 0; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr; gap: 28px; } }
.cs-image { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07); }
.cs-image img { width: 100%; height: 100%; object-fit: cover; }
.cs-badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-row input { flex: 1 1 160px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.notify-row input:focus { outline: none; border-color: var(--accent); }
.notify-row .btn { flex: 0 0 auto; }
.order-notify { background: var(--mist); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; max-width: 520px; }
.order-notify p { margin: 0 0 12px; font-size: 0.92rem; }

.cta-band { background: var(--sage); border-radius: 28px; padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.92); font-weight: 500; }
@media (max-width: 640px) { .cta-band { padding: 34px 24px; } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-lines a { text-decoration: none; color: var(--ink); font-weight: 600; }
.contact-lines span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 0.93rem; }
.alert.error { background: #fbe5e2; color: var(--danger); }
.alert.ok { background: #e6f5e0; color: var(--ok); }

/* ---------- Checkout ---------- */
.checkout { padding: 36px 0 80px; }
.checkout .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .checkout .wrap { grid-template-columns: 1fr; } .summary { order: -1; } }
.checkout h1 { font-size: 2rem; }
.panel { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07); }
.panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.fulfil-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fulfil-opts { grid-template-columns: 1fr; } }
.fulfil-opt { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; }
.fulfil-opt input { position: absolute; opacity: 0; }
.fulfil-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.fulfil-opt strong { display: block; color: var(--ink); }
.fulfil-opt span { font-size: 0.85rem; }

.summary { position: sticky; top: 150px; }
.summary-item { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary-item .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--mist); flex: 0 0 64px; }
.summary-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-item strong { color: var(--ink); }
.summary .swatches { margin: 0 0 18px; }
.summary .swatch { width: 38px; height: 38px; }
.summary .swatch i { width: 26px; height: 26px; }
.summary-lines { display: grid; gap: 8px; font-size: 0.95rem; }
.summary-lines div { display: flex; justify-content: space-between; }
.summary-lines .total { font-weight: 700; color: var(--ink); font-size: 1.1rem; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

.status-page { padding: 80px 0; text-align: center; }
.status-page .panel { max-width: 560px; margin: 0 auto; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--accent); color: var(--accent-ink); }
.status-icon.warn { background: var(--sand); color: var(--ink); }

.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.75); padding: 44px 0; font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer .foot-brand { color: #fff; font-weight: 700; font-size: 1.15rem; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Mobile sticky buy bar ---------- */
.buy-bar { display: none; }
@media (max-width: 900px) {
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(110%); transition: transform 0.2s ease; }
  .buy-bar.show { transform: none; }
  .buy-bar .price { font-size: 1.35rem; }
  body.has-buy-bar .site-footer { padding-bottom: 104px; }
}
