/* ============================================================
   Hagane & Hearth — stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --charcoal-950: #14120f;
  --charcoal-900: #1b1815;
  --charcoal-800: #24211d;
  --charcoal-700: #322d27;
  --steel-300: #c7ccce;
  --steel-500: #8b9296;
  --steel-700: #5d6467;
  --ember-400: #dd8f4a;
  --ember-500: #c9752f;
  --ember-600: #a75f24;
  --cream-050: #faf7f0;
  --cream-100: #f3ede1;
  --cream-200: #e7ddc9;
  --walnut-500: #6b4326;
  --walnut-700: #4a2f1c;
  --success: #4a7a52;
  --danger: #b1432f;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-050);
  color: var(--charcoal-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal-950);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--charcoal-950); color: var(--cream-100); }
.section-dark h1, .section-dark h2, .section-dark h3,
.hero h1, .hero h2, .hero h3,
.banner-cta h1, .banner-cta h2, .banner-cta h3 { color: var(--cream-050); }
.section-cream { background: var(--cream-100); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--ember-500); }
.lede { font-size: 1.15rem; color: grey; max-width: 640px; }
.section-dark .lede { color: var(--steel-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ember-500); color: var(--cream-050); border-color: var(--ember-500); }
.btn-primary:hover { background: var(--ember-600); border-color: var(--ember-600); }
.btn-ghost { background: transparent; color: var(--cream-050); border-color: rgba(250,247,240,0.4); }
.btn-ghost:hover { border-color: var(--cream-050); background: rgba(250,247,240,0.08); }
.btn-dark { background: var(--charcoal-950); color: var(--cream-050); border-color: var(--charcoal-950); }
.btn-dark:hover { background: var(--charcoal-800); }
.btn-outline { background: transparent; color: var(--charcoal-950); border-color: var(--charcoal-950); }
.btn-outline:hover { background: var(--charcoal-950); color: var(--cream-050); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,18,15,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  color: var(--cream-050);
}
.brand-mark { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--ember-400); font-weight: 600; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--steel-300); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream-050); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; color: var(--cream-050); display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.cart-count {
  background: var(--ember-500); color: var(--cream-050); border-radius: 50%;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.nav-toggle { display: none; background: none; border: none; color: var(--cream-050); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 0 0; background: var(--charcoal-950);
    flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 22px;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-950); color: var(--steel-300); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--cream-050); font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 0.92rem; color: var(--steel-300); }
.footer-grid a:hover { color: var(--cream-050); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--steel-700); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,117,47,0.18), transparent 55%),
    linear-gradient(180deg, var(--charcoal-950), #1c1814 70%);
  color: var(--cream-100);
  padding: 90px 0 70px;
  overflow: hidden;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-art { position: relative; }
.hero-art .knife-art { width: 100%; height: auto; filter: drop-shadow(0 25px 40px rgba(0,0,0,0.45)); }
.hero-badges { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--steel-300); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember-500); }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--cream-100); border-top: 1px solid var(--cream-200); border-bottom: 1px solid var(--cream-200); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; text-align: center; }
.trust-item { font-size: 0.88rem; color: var(--charcoal-700); font-weight: 500; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ember-500); font-weight: 700; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.product-card {
  background: var(--cream-050);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img {
  background: linear-gradient(160deg, var(--charcoal-800), var(--charcoal-950));
  padding: 26px 20px 10px;
  position: relative;
}
.product-card-img .knife-art { width: 100%; }
.product-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ember-500); font-weight: 700; }
.product-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.product-meta { font-size: 0.85rem; color: var(--steel-700); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--charcoal-950); }
.badge {
  display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 20px; font-weight: 700;
}
.badge-full { background: rgba(201,117,47,0.15); color: var(--ember-600); }
.badge-light { background: rgba(93,100,103,0.15); color: var(--steel-700); }
.badge-museum { background: rgba(74,122,82,0.15); color: var(--success); }
.badge-sold { background: rgba(177,67,47,0.14); color: var(--danger); }
.grade-corner {
  position: absolute; top: 12px; right: 14px;
}

/* ---------- Knife art ---------- */
.knife-art { width: 100%; height: auto; }
.knife-icon { width: 46px; }
.sold-stamp rect { fill: rgba(177,67,47,0.9); }
.sold-stamp text { fill: #fff; font-size: 15px; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.1em; }
.knife-grade-label { font-size: 7px; fill: var(--cream-100); font-family: var(--font-body); letter-spacing: 0.04em; opacity: 0.75; }

/* ---------- Filter bar (shop) ---------- */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--cream-200); margin-bottom: 34px;
}
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--cream-200); background: var(--cream-050);
  padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; font-weight: 500;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--ember-500); }
.chip.active { background: var(--charcoal-950); color: var(--cream-050); border-color: var(--charcoal-950); }
.sort-select {
  padding: 9px 14px; border-radius: 4px; border: 1px solid var(--cream-200); background: var(--cream-050);
  font-family: var(--font-body); font-size: 0.85rem;
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--steel-700); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.pd-gallery { background: linear-gradient(160deg, var(--charcoal-800), var(--charcoal-950)); border-radius: var(--radius); padding: 40px; position: sticky; top: 100px; }
.pd-specs { list-style: none; margin: 20px 0; padding: 0; border-top: 1px solid var(--cream-200); }
.pd-specs li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--cream-200); font-size: 0.92rem; }
.pd-specs li span:first-child { color: var(--steel-700); }
.pd-worklist { list-style: none; margin: 0; padding: 0; }
.pd-worklist li { position: relative; padding: 8px 0 8px 26px; font-size: 0.95rem; }
.pd-worklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ember-500); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--cream-200); border-radius: 4px; }
.qty-stepper button { border: none; background: none; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 42px; text-align: center; border: none; font-size: 1rem; font-family: var(--font-body); background: transparent; }

/* ---------- Compare slider (before/after) ---------- */
.compare-slider { position: relative; overflow: hidden; border-radius: var(--radius); user-select: none; }
.compare-slider .layer { position: absolute; inset: 0; padding: 40px; display: flex; align-items: center; }
.compare-slider .layer-after { clip-path: inset(0 0 0 50%); }
.compare-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ember-400);
  transform: translateX(-1px); pointer-events: none; z-index: 2;
}
.compare-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; background: var(--ember-500); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.compare-label { position: absolute; top: 14px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; background: rgba(0,0,0,0.5); color: #fff; border-radius: 3px; z-index: 2; }
.compare-label.before { left: 14px; }
.compare-label.after { right: 14px; }

/* ---------- Process page ---------- */
.process-list { counter-reset: step; }
.process-step {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 34px 0; border-bottom: 1px solid var(--cream-200);
}
.process-step:last-child { border-bottom: none; }
.process-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ember-500); }
@media (max-width: 640px) { .process-step { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Timeline / About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.stat { }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--ember-500); }
.stat span { font-size: 0.85rem; color: var(--steel-700); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--charcoal-950); color: var(--cream-100); padding: 34px 30px; border-radius: var(--radius);
}
.testimonial-card p { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; color: var(--cream-050); }
.testimonial-name { font-weight: 600; color: var(--ember-400); font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--steel-500); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal-800); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--cream-200);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--cream-050); color: var(--charcoal-950);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ember-400); outline-offset: 1px; }
.field { margin-bottom: 18px; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--steel-700); margin-top: 10px; }
.form-success {
  background: rgba(74,122,82,0.12); border: 1px solid var(--success); color: #2f5535;
  padding: 18px 20px; border-radius: 4px; margin-bottom: 20px; display: none;
}
.form-success.visible { display: block; }

/* ---------- Cart / Checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel-700); padding: 0 0 14px; border-bottom: 1px solid var(--cream-200); }
.cart-row td { padding: 20px 0; border-bottom: 1px solid var(--cream-200); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 16px; }
.cart-item-info .knife-art { width: 90px; }
.cart-item-info .thumb-wrap { width: 90px; background: linear-gradient(160deg, var(--charcoal-800), var(--charcoal-950)); border-radius: 4px; padding: 8px; }
.cart-remove { color: var(--danger); font-size: 0.82rem; font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; }
.cart-summary { background: var(--cream-100); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid var(--cream-200); margin-top: 10px; padding-top: 16px; font-weight: 700; font-size: 1.15rem; font-family: var(--font-head); }
.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart .knife-art { width: 200px; margin: 0 auto 24px; opacity: 0.5; }

/* ---------- Misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.divider { height: 1px; background: var(--cream-200); margin: 0; border: none; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tag-list .chip { cursor: default; }
.banner-cta {
  background: linear-gradient(120deg, var(--walnut-700), var(--charcoal-950));
  color: var(--cream-050); border-radius: var(--radius); padding: 56px; text-align: center;
}
.icon-row { display: flex; gap: 20px; }
.breadcrumb { font-size: 0.85rem; color: var(--steel-700); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--ember-500); }
