/* LO REN FORGE — Extension styles
   Responsive overrides + layout utilities
   ======================================== */

/* ============ Container utility ============ */
.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--narrow  { max-width: 860px; }
.container--medium  { max-width: 1080px; }
.container--wide    { max-width: 1920px; }

/* ============ Spacing utilities ============ */
.section-pad { padding: var(--section-y) var(--pad-x); }
.section-pad--paper { padding: var(--section-y) var(--pad-x); background: var(--bg-paper); }
.section-pad--ink   { padding: var(--section-y) var(--pad-x); background: var(--ink); color: var(--bg-cream); }

/* ============ Grid utilities ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============ Topnav extras ============ */
@media (max-width: 1100px) {
  .topnav-inner { grid-template-columns: auto auto 1fr auto; }
}
@media (min-width: 1101px) {
  .topnav-inner { grid-template-columns: auto 1fr auto; }
  .nav-burger   { display: none !important; }
}

/* ============ Hero responsive ============ */
@media (max-width: 600px) {
  .hero-title { font-size: clamp(48px, 14vw, 80px); }
  .hero-lede  { font-size: 18px; }
}

/* ============ Product grid responsive ============ */
@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .cp-grid       { grid-template-columns: 1fr; }
}

/* ============ WooCommerce add-to-cart row ============ */
.pd-qty-row { margin: 24px 0; }
.qty-add-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 480px) {
  .pd-qty-row,
  .qty-add-row { grid-template-columns: 1fr; }
}

/* ============ Post navigation ============ */
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}

/* ============ Price table responsive ============ */
@media (max-width: 600px) {
  .pt-row { grid-template-columns: 1fr 1fr; }
  .pt-row span:nth-child(3),
  .pt-row span:nth-child(4) { border-left: none; }
}

/* ============ Footer responsive ============ */
@media (max-width: 700px) {
  .footer-cols   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============ Newsletter responsive ============ */
@media (max-width: 600px) {
  .nl-row { flex-direction: column; }
  .nl-row input { border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 10px; }
}

/* ============ Story hero ============ */
.story-hero, .craft-hero, .artisans-hero, .service-hero,
.contact-hero, .commission-hero {
  text-align: center;
  padding: clamp(28px, 3.5vw, 56px) var(--pad-x) clamp(28px, 3.5vw, 56px);
}

/* ============ Scroll progress bar ============ */
body::before {
  content: '';
  position: fixed; top: 64px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--scroll, 0%), transparent var(--scroll, 0%));
  z-index: 99;
  pointer-events: none;
}

/* ============ Image lazy load fade ============ */
img[loading="lazy"] { transition: opacity 0.3s; }

/* ============ WooCommerce notices ============ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 14px 20px; margin: 0 0 20px;
  border-radius: var(--radius-card);
  font-family: var(--f-sans); font-size: 14px;
  border: 1px solid var(--line); background: var(--bg-paper);
  list-style: none;
}
.woocommerce-error { border-color: var(--ember); background: rgba(184, 70, 42, 0.06); color: var(--ember-deep); }
.woocommerce-message { border-color: #4a7c59; color: #2d5038; }
.woocommerce-message a.button, .woocommerce-error a.button {
  float: right; background: var(--ink); color: var(--bg-cream);
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
  text-decoration: none;
}

/* ============ Checkout / Cart pages ============ */
.woocommerce-cart table.cart th,
.woocommerce-checkout .woocommerce-checkout th {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-60);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.woocommerce-cart table.cart td,
.woocommerce-checkout .woocommerce-checkout td {
  padding: 16px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.woocommerce-cart .cart-collaterals,
.woocommerce .cart-collaterals {
  max-width: 400px; margin-left: auto;
}
.woocommerce-page h2, .woocommerce h2 {
  font-family: var(--f-display); font-size: 32px; font-weight: 500;
  margin: 32px 0 20px;
}
.woocommerce form .form-row label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-60); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  padding: 12px 16px; font-family: var(--f-sans); font-size: 15px;
  background: var(--bg); width: 100%;
}
.woocommerce #place_order,
.woocommerce button.button.alt {
  background: var(--ink) !important; color: var(--bg-cream) !important;
  font-family: var(--f-sans); font-size: 15px; font-weight: 500;
  padding: 16px 32px; border-radius: 100px; border: none;
  cursor: pointer; width: 100%; transition: background 0.15s;
}
.woocommerce #place_order:hover,
.woocommerce button.button.alt:hover { background: var(--accent) !important; }

/* ============ My Account page ============ */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block; padding: 10px 16px;
  font-family: var(--f-sans); font-size: 14px; font-weight: 500;
  color: var(--ink-60); border-radius: var(--radius-card); transition: all 0.15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: var(--ink); background: var(--bg-paper); }

/* ============ Selection ============ */
::selection { background: var(--ember); color: #fff; }
::-moz-selection { background: var(--ember); color: #fff; }

/* ============ Scrollbar (WebKit) ============ */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-paper); }
::-webkit-scrollbar-thumb { background: var(--ink-20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-60); }

/* ============================================================
   DESIGN PROTOTYPE UPDATES
   ============================================================ */

/* ── Button: Outline variant ─────────────────────────────── */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover {
  background: var(--bg-paper);
  border-color: var(--ink);
}

/* ── Hero: Split 2-column layout ─────────────────────────── */
/* Hero split: definite height → propagates to flex/grid children for correct sizing */
.hero--split {
  height: calc(100svh - 65px); /* 65px = nav bar height */
  min-height: 560px;           /* floor for very short viewports */
  display: flex;
  flex-direction: column;
  align-items: stretch;        /* override base .hero { align-items: center } */
  justify-content: flex-start; /* override base .hero { justify-content: center } */
  background: var(--bg);
  text-align: left;
  overflow: hidden;
}

.hero-announce {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px var(--pad-x);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-40);
  text-transform: uppercase;
  background: var(--bg-cream);
  flex-shrink: 0;
}
.hero-announce span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* flex: 1 fills the remaining hero height after the announce banner */
.hero-split-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  align-items: stretch;
  min-height: 0; /* prevent flex blowout */
}

.hero-text-col {
  padding: clamp(24px, 4vw, 72px) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical centering within the column */
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 24px);
}

/* Tighter font so title fits within viewport along with lede + buttons */
.hero-title--split {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.hero-title--split em {
  font-style: italic;
  font-weight: 400;
}

.hero-lede--split {
  font-family: var(--f-sans);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--ink-60);
  max-width: 46ch;
  margin: 0;
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Showcase col stretches to fill the full grid row height */
.hero-showcase-col {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ── Hero Showcase Card ───────────────────────────────────── */
.hero-showcase-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.hsc-image {
  flex: 1;
  min-height: 0; /* allow flex child to shrink */
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.hsc-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-showcase-card:hover .hsc-image img {
  transform: scale(1.03);
}
.hsc-image--placeholder {
  background: var(--ink);
}

.hsc-info {
  padding: 16px 20px;
  background: var(--ink);
  color: var(--bg-cream);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hsc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.hsc-sku {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(251,248,242,0.45);
  text-transform: uppercase;
}
.hsc-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.hsc-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--bg-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsc-price,
.hsc-price .woocommerce-Price-amount {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}

/* ── Featured Products: New style ───────────────────────── */
.featured-divider-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.fh-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.fh-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-40);
  text-transform: uppercase;
  white-space: nowrap;
}

.featured-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

/* ── Product Card: Forge variant ────────────────────────── */
.product-card--forge {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  background: var(--bg-cream);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card--forge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(26, 14, 8, 0.18);
}
.product-card--forge .product-thumb {
  position: relative;
  background: #1a1008;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card--forge .product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card--forge:hover .product-thumb img {
  transform: scale(1.04);
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-cream);
  color: var(--ink);
}
.product-badge--out {
  background: var(--ink);
  color: var(--bg-cream);
}
.product-info--forge {
  padding: 16px 18px 18px;
}
.pif-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.pif-row-top .product-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.product-price-inline,
.product-price-inline .woocommerce-Price-amount {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-60);
  white-space: nowrap;
}
.product-desc {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.45;
  margin: 0 0 10px;
}
.pif-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-maker-tag,
.product-batch-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  text-transform: uppercase;
}
.product-batch-tag::before {
  content: '·';
  margin-right: 8px;
  color: var(--line-strong);
}

/* ── Story Block: Updated text & image caption ──────────── */
.sb-body--second {
  margin-top: 16px;
}
.sb-image-meta {
  position: absolute;
  top: 16px;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
}
.sb-location {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(251,248,242,0.4);
  text-transform: uppercase;
}
.sb-image-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  gap: 10px;
  align-items: baseline;
  z-index: 2;
}
.sb-img-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  flex-shrink: 0;
  text-transform: uppercase;
}
.sb-img-desc {
  font-size: 12px;
  color: rgba(251,248,242,0.65);
  line-height: 1.4;
  font-style: italic;
}
.sb-cta {
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ── Footer: Partner column & gold tagline ──────────────── */
.footer-col--partner span.footer-location {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-60);
  display: block;
  margin-top: 2px;
}
.footer-mono--gold {
  color: var(--gold) !important;
  letter-spacing: 0.18em;
}

/* ── Hero responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .hero--split {
    min-height: unset;   /* stack layout — no need for full-vh */
  }
  .hero-split-inner {
    grid-template-columns: 1fr;
  }
  .hero-showcase-col {
    height: clamp(260px, 45vw, 420px);
  }
  .hero-text-col {
    padding: clamp(32px, 5vw, 64px) var(--pad-x);
    justify-content: flex-start;
  }
  .hero-title--split {
    font-size: clamp(40px, 10vw, 80px);
  }
}
@media (max-width: 600px) {
  .hero-announce { font-size: 9px; letter-spacing: 0.16em; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .featured-grid--3col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .featured-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   INNER PAGE FIXES
   ============================================================ */

/* ── Inner pages: tight top gap matching prototype ──────────
   theme.css uses padding: var(--section-y) ≈ 133px.
   Override to ~32px so hero starts close to nav. */
.story-page,
.craft-page,
.service-page,
.commission-page,
.contact-page,
.journal-page {
  padding-top: clamp(20px, 2.5vw, 40px) !important;
}

/* ── Shop archive header ────────────────────────────────────  */
.shop-lede {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: normal;
  color: var(--ink-60);
  text-transform: none;
  line-height: 1.7;
  max-width: 640px;
  margin: 16px 0 0;
}

/* ── Journal title links ────────────────────────────────────  */
.jl-title a {
  color: inherit;
  text-decoration: none;
}
.jl-title a:hover { color: var(--accent); }

/* ── Artisan ember portrait card ────────────────────────────
   Matches prototype: transparent card, dark SVG portrait, ink text below. */
.artisans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding: 0 0 var(--section-y);
}
.artisan-card {
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  color: var(--ink);
  padding: 0;
  animation: card-in 0.6s cubic-bezier(0.5,0,0.2,1) both;
  animation-delay: calc(var(--card-i, 0) * 0.06s);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.artisan-card:hover { transform: translateY(-4px); }
.ac-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  height: 0;
  padding-bottom: 133%;
  overflow: hidden;
  background: #1a1310;
  border-radius: var(--radius-card);
  margin-bottom: 16px;
}
.ac-portrait > svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
/* Overlay at TOP — matches prototype (N°01, TỪ 2008 top-left/right) */
.ac-portrait-overlay {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bg-cream);
  text-transform: uppercase;
  opacity: 0.7;
}
.ac-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bg-cream);
  text-transform: uppercase;
}
.ac-since {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bg-cream);
}
.ac-body {
  padding: 0 4px;
}
.ac-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.ac-name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ac-meta {
  display: flex;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.ac-meta .dot { opacity: 0.4; }
.ac-arrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.artisan-card:hover .ac-arrow { color: var(--accent); border-color: var(--accent); }

/* ── Journal page ───────────────────────────────────────────  */
.journal-page {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-bottom: var(--section-y);
}
.journal-hero {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 100px);
}
.jl-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.jl-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 48px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.jl-entry:first-child { border-top: 1px solid var(--line); }
.jl-date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-40);
  text-transform: uppercase;
  padding-top: 5px;
}
.jl-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
  transition: color 0.15s;
}
.jl-entry:hover .jl-title { color: var(--accent); }
.jl-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-60);
  margin: 0 0 14px;
}
.jl-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  text-transform: uppercase;
}
.jl-meta .dot { margin: 0 8px; }
@media (max-width: 600px) {
  .jl-entry { grid-template-columns: 1fr; gap: 6px; }
  .jl-date { padding-top: 0; }
}

/* ── Artisans page: no top padding (hero fills it) ──────────  */
.artisans-page {
  padding-top: 0 !important;
}
/* ── Artisans grid: top spacing after hero ───────────────────  */
.artisans-grid {
  padding-top: clamp(32px, 4vw, 56px);
}

/* ── Artisans page hero: light parchment + ember glow ───────
   Matches prototype: linear-gradient(180deg, var(--bg) 0%, var(--bg-paper) 100%)
   with EmberBackdrop warm glow at top-right. */
.ap-hero {
  position: relative;
  padding: clamp(60px, 8vw, 120px) var(--pad-x) clamp(60px, 7vw, 100px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-paper) 100%);
  overflow: hidden;
  text-align: center;
  /* Full-width bleed */
  margin: 0 calc(var(--pad-x) * -1);
}
/* Ember warm glow overlay — matches EmberBackdrop intensity=0.5 */
.ap-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 82% -5%, rgba(184,70,42,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 90%, rgba(178,149,79,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.ap-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
/* Hero text is dark (light background) */
.ap-hero .page-title { color: var(--ink); }
.ap-hero .page-lede  { color: var(--ink-80); max-width: 54ch; margin: 16px auto 0; font-size: 15px; line-height: 1.7; }
.ap-hero .section-eyebrow { color: var(--accent); margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   MARQUEE STRIP
   ═══════════════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--ink);
  color: var(--bg-cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mq-track {
  display: inline-flex;
  animation: mq-scroll 28s linear infinite;
}
.mq-content {
  display: inline-block;
  padding: 14px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mq-dot {
  color: var(--ember, #B8462A);
  margin: 0 14px;
  font-size: 9px;
  vertical-align: middle;
}
@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO STATS BAR
   ═══════════════════════════════════════════════════════════════ */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hs-num {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.hs-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.hs-divider {
  color: var(--line);
  font-size: 20px;
  line-height: 1;
  align-self: center;
}
@media (max-width: 600px) {
  .hero-stats { gap: 12px; }
  .hs-divider { display: none; }
  .hs-item { flex-direction: row; align-items: baseline; gap: 6px; }
  .hs-num { font-size: 18px; }
  .hs-label { font-size: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SHOWCASE SPEC CARD
   ═══════════════════════════════════════════════════════════════ */
.hsc-specs {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  gap: 0;
}
.hsc-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hsc-spec-row:last-child { border-bottom: none; }
.hsc-spec-row dt {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251,248,242,0.4);
  font-weight: 400;
}
.hsc-spec-row dd {
  font-family: var(--f-sans);
  font-size: 12px;
  color: rgba(251,248,242,0.85);
  font-weight: 500;
  text-align: right;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CRAFT PREVIEW — step descriptions
   ═══════════════════════════════════════════════════════════════ */
.cp-desc {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-40);
  font-family: var(--f-sans);
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MATERIALS BLOCK — 3-col with swatches
   ═══════════════════════════════════════════════════════════════ */
.mb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .mb-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
.mb-card {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.mb-swatch {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  display: block;
}
.mb-body {
  padding: 20px 22px 24px;
}
.mb-code {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.mb-title {
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
}
.mb-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-60);
  margin: 0;
}
/* Remove old 2-col icon styles */
.mb-icon { display: none; }

/* ═══════════════════════════════════════════════════════════════
   PROMISE BLOCK — dark variant
   ═══════════════════════════════════════════════════════════════ */
.promise-block--dark {
  background: var(--ink);
  color: var(--bg-cream);
  margin: 0 calc(var(--pad-x) * -1);
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
}
.promise-block--dark .section-eyebrow {
  color: var(--gold);
  border-color: rgba(178,149,79,0.3);
}
.promise-block--dark .section-title {
  color: var(--bg-cream);
}
.promise-block--dark .section-title em {
  color: var(--ember, #B8462A);
}
.pb-top {
  margin-bottom: 48px;
}
.promise-block--dark .pb-n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244,239,230,0.35);
  margin-bottom: 10px;
}
.promise-block--dark .pb-item h4 {
  color: var(--bg-cream);
  font-family: var(--f-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  margin: 0 0 8px;
}
.promise-block--dark .pb-item p {
  color: rgba(244,239,230,0.6);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}
@media (max-width: 640px) {
  .pb-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON — gold variant
   ═══════════════════════════════════════════════════════════════ */
.btn-gold {
  background: var(--gold, #B2954F);
  color: #fff;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  border-radius: 2px;
}
.btn-gold:hover {
  background: #9a7d3e;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   COMMISSION CONFIGURATOR  (matches source styles-ext.css exactly)
   ═══════════════════════════════════════════════════════════════ */
.commission { padding: clamp(40px, 5vw, 80px) var(--pad-x) var(--section-y); max-width: 1680px; margin: 0 auto; }
.cm-header { text-align: center; max-width: 700px; margin: 0 auto clamp(50px, 6vw, 80px); }
.cm-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.cm-preview-wrap { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.cm-preview {
  background: #14110f;
  border-radius: var(--radius-card);
  aspect-ratio: 4/2.7;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(26, 14, 8, 0.5);
}
.knife-preview-svg { width: 100%; height: 100%; }
.cm-preview-meta {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}
.cm-meta-k { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.cm-meta-v { color: var(--bg-cream); font-family: var(--f-display); font-size: 18px; font-weight: 500; }
.cm-price { text-align: right; color: var(--bg-cream); }
.cm-price-amt { display: block; font-family: var(--f-display); font-size: 28px; font-weight: 500; }
.cm-price-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: rgba(251,248,242,0.5); text-transform: uppercase; }

.cm-spec-card { background: var(--bg-cream); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 22px; }
.cm-spec-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--line); gap: 24px; }
.cm-spec-row:last-child { border-bottom: 0; }
.cm-spec-row span:first-child { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-60); text-transform: uppercase; padding-top: 4px; }
.cm-spec-row span:last-child { text-align: right; }
.cm-engrave { font-family: var(--f-display); font-style: italic; color: var(--accent); font-size: 16px !important; }

.cm-cfg { display: flex; flex-direction: column; gap: 28px; }
.cm-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--bg-paper);
  border-radius: 100px;
}
.cm-stepper .cm-step {
  display: flex; flex-direction: column;
  padding: 8px 4px; text-align: center;
  border-radius: 100px;
  font-family: var(--f-sans);
  transition: background 0.15s;
  background: transparent;
  border: none;
  cursor: pointer;
}
.cm-step-n { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-40); margin-bottom: 2px; }
.cm-step-l { font-size: 11px; color: var(--ink-60); }
.cm-stepper .cm-step:hover { background: var(--bg); }
.cm-stepper .cm-step.is-active { background: var(--ink); }
.cm-stepper .cm-step.is-active .cm-step-n { color: var(--gold); }
.cm-stepper .cm-step.is-active .cm-step-l { color: var(--bg-cream); }
.cm-stepper .cm-step.is-done .cm-step-n { color: var(--accent); }

.cm-step-body h3 { font-family: var(--f-display); font-size: 32px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.01em; }
.cm-help { font-size: 14px; color: var(--ink-80); margin: 0 0 24px; max-width: 50ch; }
.cm-actions { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Option grid (blade profile cards) */
.opt-grid { display: grid; gap: 12px; }
.opt-grid-2 { grid-template-columns: 1fr 1fr; }
.opt-card {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}
.opt-card:hover { border-color: var(--line-strong); background: var(--bg-cream); }
.opt-card.is-active { border-color: var(--ink); background: var(--bg-cream); }
.profile-glyph { width: 100%; height: 50px; color: var(--ink); margin-bottom: 14px; }
.opt-card-body { display: flex; flex-direction: column; gap: 4px; }
.opt-card-body strong { font-family: var(--f-display); font-size: 18px; font-weight: 500; }
.opt-card-body span { font-size: 12px; color: var(--ink-60); }
.opt-price { font-family: var(--f-mono); font-size: 11px !important; letter-spacing: 0.08em; color: var(--ink-80) !important; text-transform: uppercase; margin-top: 6px; }

/* Steel / Finish rows */
.opt-stack { display: flex; flex-direction: column; gap: 8px; }
.opt-row {
  display: grid; grid-template-columns: 18px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
  text-align: left;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.opt-row:hover { border-color: var(--line-strong); }
.opt-row.is-active { border-color: var(--ink); background: var(--bg-cream); }
.opt-rad {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  display: block;
  flex-shrink: 0;
}
.opt-row.is-active .opt-rad::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.opt-row strong { font-family: var(--f-display); font-size: 18px; font-weight: 500; display: block; }
.opt-row p { font-size: 12px; color: var(--ink-60); margin: 2px 0 0; }
.opt-delta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-80); white-space: nowrap; }

/* Handle wood cards */
.wood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wood-card {
  display: flex; gap: 14px; align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
  text-align: left;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.wood-card:hover { border-color: var(--line-strong); }
.wood-card.is-active { border-color: var(--ink); background: var(--bg-cream); }
.wood-swatch {
  width: 60px; flex-shrink: 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  min-height: 60px;
}
.wood-grain {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,0.25);
  display: block;
}
.wood-body { display: flex; flex-direction: column; gap: 2px; }
.wood-body strong { font-family: var(--f-display); font-size: 15px; font-weight: 500; }
.wood-body p { font-size: 11px; color: var(--ink-60); margin: 0; line-height: 1.35; }

/* Length selector */
.cm-sub { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.cm-sub-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-60); text-transform: uppercase; display: block; margin-bottom: 12px; }
.len-row { display: flex; gap: 8px; flex-wrap: wrap; }
.len-chip {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-80);
}
.len-chip:hover { background: var(--bg-paper); }
.len-chip.is-active { background: var(--ink); color: var(--bg-cream); border-color: var(--ink); }

/* Engraving step */
.big-input {
  width: 100%;
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  padding: 16px 0;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  outline: none;
  letter-spacing: 0.04em;
}
.big-input::placeholder { color: var(--ink-40); font-style: italic; }
.engrave-preview { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.ep-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-60); text-transform: uppercase; display: block; margin-bottom: 12px; }
.ep-box { padding: 28px; background: var(--ink); border-radius: var(--radius-card); text-align: center; }
.ep-text { font-family: var(--f-mono); font-size: 18px; letter-spacing: 0.18em; color: var(--gold); }
.ep-empty { font-family: var(--f-mono); font-size: 12px; color: rgba(251,248,242,0.3); letter-spacing: 0.1em; }

/* Step 6 recap */
.conf-recap { padding: 24px; background: var(--bg-paper); border-radius: var(--radius-card); margin-bottom: 20px; }
.conf-recap h4 { font-family: var(--f-display); font-size: 24px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.005em; }
.conf-recap p { font-size: 13px; color: var(--ink-60); margin: 0; }
.conf-recap-price { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.conf-recap-price span { font-family: var(--f-display); font-size: 30px; font-weight: 500; }
.conf-recap-price small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-60); letter-spacing: 0.08em; }

/* Form fields */
.ch-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field span,
.form-field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-60); text-transform: uppercase; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--bg-cream);
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--ink); }

.commission-form { display: flex; flex-direction: column; gap: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-preview-wrap { position: static; }
  .cm-stepper { grid-template-columns: repeat(3, 1fr); border-radius: var(--radius-card); }
  .ch-fields { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .opt-grid-2, .wood-grid { grid-template-columns: 1fr; }
  .cm-step-body h3 { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   STORY / CRAFT / JOURNAL PAGES  (matches source styles.css)
   ═══════════════════════════════════════════════════════════════ */
.story-page-header,
.craft-page-header {
  max-width: 800px;
  margin: 0 auto clamp(50px, 7vw, 90px);
  text-align: center;
}

/* 3-column story grid */
.story-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 50px);
  margin: clamp(60px, 8vw, 100px) 0;
}
.story-col { padding-top: 22px; border-top: 1px solid var(--line); }
.col-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 500; }
.story-col p { font-size: 15px; color: var(--ink-80); margin: 0; line-height: 1.65; }
.story-col em { font-style: italic; color: var(--ink); }

/* Story pull-quote */
.story-quote {
  text-align: center;
  max-width: 800px;
  margin: clamp(60px, 8vw, 100px) auto;
  position: relative;
}
.quote-mark {
  font-family: var(--f-display);
  font-size: 120px;
  line-height: 0.5;
  color: var(--accent);
  display: block;
}
.story-quote p {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin: 24px 0;
  letter-spacing: -0.01em;
}
.quote-attr { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-60); }

/* Five core values */
.story-values { margin-top: clamp(60px, 8vw, 100px); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.value-item { padding-top: 20px; border-top: 1px solid var(--line); }
.value-roman { font-family: var(--f-display); font-style: italic; font-size: 28px; color: var(--accent); margin-bottom: 14px; }
.value-item h4 { font-family: var(--f-display); font-size: 20px; font-weight: 500; margin: 0 0 8px; line-height: 1.2; }
.value-item p { font-size: 13px; color: var(--ink-80); margin: 0; line-height: 1.55; }

/* HammerRule helper */
.hammer-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
}
.hammer-rule__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
}
.hammer-rule__line { flex: 1; height: 1px; background: var(--line); }

/* Craft full-row layout */
.craft-full { display: flex; flex-direction: column; gap: 0; }
.craft-full-row {
  display: grid;
  grid-template-columns: 80px 60px 1fr 220px;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(30px, 4vw, 50px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.craft-full-row:last-child { border-bottom: 1px solid var(--line); }
.full-n {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 400;
  color: var(--accent);
  line-height: 0.9;
}
.full-line { height: 1px; background: var(--line-strong); margin-top: 30px; }
.full-body h2 { font-family: var(--f-display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; }
.full-body p { font-size: 16px; color: var(--ink-80); line-height: 1.65; margin: 0 0 18px; max-width: 60ch; }
.full-aside { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.aside-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-60); text-transform: uppercase; }
.aside-v { font-family: var(--f-mono); font-size: 12px; }
.full-visual { aspect-ratio: 1; border-radius: var(--radius-card); overflow: hidden; }

/* Journal list (prototype classes) */
.journal-list { display: flex; flex-direction: column; }
.journal-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.journal-row:last-child { border-bottom: 1px solid var(--line); }
.journal-row:hover .journal-body h3 { color: var(--accent); }
.journal-date { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.journal-body h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; transition: color 0.15s; }
.journal-body p { font-size: 14px; color: var(--ink-80); margin: 0; line-height: 1.6; }
.journal-body .journal-meta-row { display: flex; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-60); text-transform: uppercase; margin-top: 8px; }
.journal-body .journal-meta-row .dot { opacity: 0.5; }

/* Arrow link (used in journal rows) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.2s;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow:hover { gap: 14px; }

/* ═══════════════════════════════════════════════════════════════
   SERVICE PAGE  (matches source styles-ext.css)
   ═══════════════════════════════════════════════════════════════ */
.service-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin: clamp(40px, 5vw, 70px) 0;
  padding: 32px;
  background: var(--bg-paper);
  border-radius: var(--radius-card);
}
.sf-step { display: flex; flex-direction: column; gap: 8px; }
.sf-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); }
.sf-step h3 { font-family: var(--f-display); font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.005em; }
.sf-step p { font-size: 13px; color: var(--ink-80); margin: 0; line-height: 1.5; }
.sf-arrow { font-family: var(--f-mono); color: var(--ink-40); font-size: 20px; align-self: center; }

.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  margin-top: clamp(40px, 5vw, 60px);
}
.service-list { display: flex; flex-direction: column; gap: 12px; }
.service-card {
  text-align: left;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  display: block;
}
.service-card:hover { border-color: var(--line-strong); }
.service-card.is-active { border-color: var(--ink); background: var(--bg-cream); }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sc-head h3 { font-family: var(--f-display); font-size: 24px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.sc-arrow { color: var(--accent); font-size: 14px; }
.sc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-meta div { font-size: 13px; color: var(--ink-80); }
.sc-meta span { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-60); text-transform: uppercase; margin-bottom: 4px; }

.wholesale-form {
  background: var(--bg-cream);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.form-title { font-family: var(--f-display); font-size: 28px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE  (matches source styles-ext.css)
   ═══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 5vw, 80px); }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.ci-block { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ci-block:last-child { border-bottom: 0; }
.ci-eyebrow { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 8px; }
.ci-block h3 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.005em; }
.ci-block p { font-size: 14px; color: var(--ink-80); margin: 0 0 6px; line-height: 1.6; }
.ci-block a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.ci-quiet { color: var(--ink-60) !important; font-size: 13px !important; margin: 0 !important; }
.ci-map { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 5/3; border: 1px solid var(--line); }
.contact-form {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* ─── Additional responsive overrides ─────────────────────── */
@media (max-width: 1100px) {
  .service-flow { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .sf-arrow { transform: rotate(90deg); }
  .service-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .wholesale-form,
  .contact-form { position: static; }
  .craft-full-row { grid-template-columns: 60px 30px 1fr; }
  .full-visual { display: none; }
}
@media (max-width: 700px) {
  .values-grid,
  .story-cols { grid-template-columns: 1fr 1fr; }
  .journal-row { grid-template-columns: 1fr; gap: 8px; }
  .journal-row .link-arrow { margin-top: 8px; }
}
@media (max-width: 480px) {
  .values-grid,
  .story-cols { grid-template-columns: 1fr; }
}

/* ─── Product page upgrades — matches prototype ProductDetail ────────────── */

/* Breadcrumb */
.pd-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-60);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.pd-breadcrumb a { color: var(--ink-60); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--ink); }
.pd-breadcrumb span { opacity: 0.5; }
.pd-breadcrumb span:last-child { opacity: 1; color: var(--ink); }

/* Category · SKU eyebrow */
.pd-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.pd-eyebrow-diamond { font-size: 8px; }
.pd-eyebrow-dot, .pd-eyebrow-sku { color: var(--ink-40); }

/* Price note */
.pd-price {
  flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pd-price-note {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40); align-self: center;
}

/* Batch badge on image */
.pd-main-image { position: relative; }
.pd-batch-badge {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: rgba(244,239,230,0.6); text-transform: uppercase;
  pointer-events: none;
}

/* Spec-v link (artisan) */
.spec-v-link {
  color: var(--accent); text-decoration: none;
  font-family: var(--f-display); font-size: 16px;
}
.spec-v-link:hover { text-decoration: underline; }

/* Trust bullets */
.pd-trust {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-trust li {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-60);
  display: flex; align-items: center; gap: 8px;
}
.pd-trust li span { color: var(--accent); font-size: 8px; }

/* ATC wrap — remove default margin from WC form */
.pd-atc-wrap .cart { margin: 20px 0 0; }

/* "Add to cart" button — force Vietnamese text via content injection when
   the WC button text isn't translated; JS overrides in product.js handle this */
.single_add_to_cart_button.button { border-radius: 100px !important; }

/* ─── Product care section — ◇ CHĂM SÓC ◇ ───────────────────────────────── */
.pd-care {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.pd-care-divider,
.pd-related-divider {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-40);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.pd-care-divider span:first-child,
.pd-care-divider span:last-child,
.pd-related-divider span:first-child,
.pd-related-divider span:last-child { color: var(--accent); font-size: 8px; }

.pd-care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
}
@media (max-width: 900px) {
  .pd-care-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pd-care-grid { grid-template-columns: 1fr; }
}

.pd-care-step {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.pdc-num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 10px;
}
.pd-care-step h3 {
  font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400; margin: 0 0 8px; color: var(--ink);
}
.pd-care-step p {
  font-family: var(--f-sans); font-size: 13px; line-height: 1.6;
  color: var(--ink-60); margin: 0;
}

/* Related products divider replaces old section-header */
.pd-related-divider {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Divider flanking lines — ──── ◇ CHĂM SÓC ◇ ──── */
.pd-care-divider::before,
.pd-care-divider::after,
.pd-related-divider::before,
.pd-related-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}

/* ─── Quantity stepper — matches prototype −/qty/+ pill ─────────────────── */
.lf-qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  height: 52px;
  width: auto;
  overflow: hidden;
  flex-shrink: 0;
}
.lf-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink);
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  padding: 0;
  flex-shrink: 0;
  user-select: none;
}
.lf-qty-btn:hover { background: var(--line); }
.lf-qty .qty {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
  height: 52px;
  line-height: 52px;
}
.lf-qty .qty::-webkit-inner-spin-button,
.lf-qty .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lf-qty .qty:focus { outline: none; }

/* ATC row — stepper left, button right, button grows */
.pd-atc-wrap .cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
}
.pd-atc-wrap .cart .quantity { flex-shrink: 0; }
.pd-atc-wrap .cart .single_add_to_cart_button {
  flex: 1;
  height: 52px;
  padding: 0 24px;
}
