/* ─────────────────────────────────────────────────────────────────────
   Kifold — premium leather goods. Dark-on-cream, generous whitespace.
   ──────────────────────────────────────────────────────────────────── */

:root {
  --ink:        #1c1a17;
  --ink-soft:   #3a3530;
  --paper:      #f6f1e8;
  --paper-2:    #efe7d8;
  --cream:      #faf6ee;
  --line:       #d8cdb8;
  --accent:     #8b5a2b;        /* saddle brown */
  --accent-dk:  #5a3a22;
  --gold:       #b78a4a;
  --rose:       #c64a4a;
  --ok:         #2f7a4d;
  --shadow-sm:  0 1px 2px rgba(28,26,23,.06), 0 2px 8px rgba(28,26,23,.06);
  --shadow-md:  0 6px 24px rgba(28,26,23,.08), 0 2px 6px rgba(28,26,23,.05);
  --shadow-lg:  0 24px 64px rgba(28,26,23,.18);
  --radius:     14px;
  --radius-sm:  8px;
  --maxw:       1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }

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

/* ── Top promo bar ──────────────────────────────────────────────────── */
.promo-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: .82rem;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 12px;
}
.promo-bar strong { color: var(--gold); }

/* ── Site header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .18em;
  color: var(--ink);
}
.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .55rem;
  letter-spacing: .35em;
  color: var(--ink-soft);
  margin-top: -4px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.icon-btn {
  background: none; border: none; padding: 8px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
}
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 600;
  border-radius: 999px; padding: 1px 6px;
  min-width: 18px; text-align: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.hero-copy h1 { margin-top: 0; }
.hero-copy .lead {
  font-size: 1.12rem; color: var(--ink-soft); max-width: 520px;
  margin: 14px 0 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; letter-spacing: .02em;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  text-align: center;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--full { width: 100%; }
.btn--xl { padding: 18px 32px; font-size: 1.05rem; }

.hero-trust {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 32px; font-size: .87rem; color: var(--ink-soft);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .stars { color: var(--gold); letter-spacing: 1px; }

.hero-media {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-lg);
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media .badge-float {
  position: absolute; top: 16px; left: 16px;
  background: var(--cream); color: var(--ink);
  padding: 7px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Section primitives ─────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head {
  text-align: center; max-width: 640px; margin: 0 auto 48px;
}
.section-head .eyebrow {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); margin: 8px 0 0; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── How it works ───────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.step {
  text-align: center; padding: 32px 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; color: var(--accent);
  margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ── Designer (live preview) ────────────────────────────────────────── */
.designer-section { background: var(--paper); }
.designer {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.designer-stage {
  position: relative; aspect-ratio: 1/1;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.designer-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.designer-stage .empty-hint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--ink-soft); font-size: .95rem; padding: 20px; text-align: center;
}
.designer-controls .field { margin-bottom: 18px; }
.designer-controls label {
  display: block; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.upload-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  width: 100%;
}
.upload-btn:hover { border-color: var(--accent); color: var(--accent); }
.upload-btn input[type=file] { display: none; }

.slider-row { display: flex; gap: 12px; align-items: center; }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent); }
.slider-row .val { font-size: .82rem; color: var(--ink-soft); min-width: 40px; text-align: right; }

.engrave-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink);
  font-size: .98rem;
}
.engrave-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.color-swatches { display: flex; gap: 10px; }
.swatch {
  width: 36px; height: 36px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.swatch.is-active { border-color: var(--ink); }

.price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin: 20px 0 12px;
}
.price-now { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: 1rem; color: var(--ink-soft); text-decoration: line-through; }
.price-save { font-size: .82rem; background: var(--rose); color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

.atc-row { display: flex; gap: 10px; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty button { background: #fff; border: 0; width: 38px; height: 46px; font-size: 1.1rem; color: var(--ink); }
.qty input { width: 44px; height: 46px; text-align: center; border: 0; background: #fff; font-weight: 600; font-size: 1rem; }

.designer-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; font-size: .85rem; color: var(--ink-soft);
}
.designer-foot .secure { display: inline-flex; gap: 6px; align-items: center; }

/* ── Highlight strip ────────────────────────────────────────────────── */
.highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.highlight {
  padding: 28px 22px; text-align: center;
  border-right: 1px solid var(--line);
}
.highlight:last-child { border-right: 0; }
.highlight .ico { font-size: 1.4rem; margin-bottom: 8px; color: var(--accent); }
.highlight h4 { font-family: 'Inter', sans-serif; font-size: .95rem; margin: 0 0 4px; }
.highlight p { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* ── Gallery ────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-grid figure {
  margin: 0; aspect-ratio: 1/1;
  overflow: hidden; border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

/* ── Reviews ────────────────────────────────────────────────────────── */
.reviews-section { background: var(--paper); }
.reviews-stats {
  display: flex; gap: 32px; align-items: center; justify-content: center;
  margin-bottom: 32px; flex-wrap: wrap;
}
.big-rating { font-size: 3rem; font-family: 'Cormorant Garamond', serif; line-height: 1; }
.stars-row { color: var(--gold); letter-spacing: 3px; font-size: 1.1rem; }
.reviews-stats .from { color: var(--ink-soft); font-size: .9rem; }
.etsy-badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: .85rem;
}
.etsy-badge::before { content: "★"; color: #f56400; }

.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.review-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review-card h4 { font-family: 'Inter', sans-serif; font-size: .98rem; margin: 0 0 6px; }
.review-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; }
.review-card .who { font-size: .82rem; color: var(--ink-soft); display: flex; justify-content: space-between; }
.review-card .who .verified { color: var(--ok); font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin: 12px 0 0; }

/* ── Trust band ─────────────────────────────────────────────────────── */
.trust-band {
  background: var(--ink); color: var(--cream);
  padding: 24px 0; text-align: center;
}
.trust-band .pays {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  opacity: .9; flex-wrap: wrap;
  font-size: .95rem; letter-spacing: .04em;
}
.pay-pill {
  background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 6px;
  font-size: .78rem; letter-spacing: .08em;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #efe7d8;
  padding: 56px 0 28px;
  font-size: .9rem; color: var(--ink-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { font-family: 'Inter', sans-serif; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem;
}

/* ── Cart drawer / mini-cart ────────────────────────────────────────── */
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 100%);
  background: var(--cream); box-shadow: var(--shadow-lg);
  transform: translateX(110%); transition: transform .3s ease;
  z-index: 100; display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(28,26,23,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s;
  z-index: 99;
}
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.cart-item .meta { font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.cart-item .remove { background: none; border: 0; color: var(--ink-soft); font-size: .82rem; text-decoration: underline; padding: 0; margin-top: 4px; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: #fff; }
.cart-foot .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 12px; }

/* ── Forms / generic pages ──────────────────────────────────────────── */
.page { padding: 56px 0; }
.page-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page h1 { margin-top: 0; }
.page p { color: var(--ink-soft); }

/* ── Utility ────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 200;
  font-size: .92rem;
}
.toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  section { padding: 48px 0; }
  .hero { padding: 32px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { aspect-ratio: 4/3; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 16px 24px;
    border-bottom: 1px solid var(--line); gap: 14px;
  }
  .nav-links.is-open { display: flex; }
  .menu-toggle { display: inline-flex; background: none; border: 0; color: var(--ink); padding: 8px; }
  .steps { grid-template-columns: 1fr; }
  .designer { grid-template-columns: 1fr; padding: 20px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(1), .highlight:nth-child(2) { border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
