/* ===========================================================================
   Longhand Goods — theme component + layout library
   Translates the design-system React primitives (inline styles) into reusable
   classes, then composes them into the storefront shell, home, and content.
   Foundation tokens come from assets/ds/. WooCommerce specifics live in
   woocommerce.css.
   =========================================================================== */

/* --- Base / a11y ---------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { min-height: 100vh; }

img, svg, video { max-width: 100%; height: auto; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface-raised); color: var(--accent);
  padding: 10px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  font-family: var(--font-body); font-weight: var(--weight-semibold);
}
.skip-link:focus { left: 16px; }

/* --- Layout primitives ---------------------------------------------------- */
.lh-container { width: 100%; max-width: var(--container-xl); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.lh-container--wide { max-width: var(--container-2xl); }
.lh-container--md { max-width: var(--container-md); }
.lh-container--sm { max-width: var(--container-sm); }
.lh-section { padding-block: clamp(48px, 6vw, 88px); }
.lh-section--tight { padding-block: clamp(40px, 5vw, 72px); }
.site-content { display: block; }

/* Shared responsive product grid (home featured + WooCommerce loop). */
.lh-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }

/* =====================================================================
   COMPONENTS
   ===================================================================== */

/* --- Button --------------------------------------------------------------- */
.lh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--control-md); padding: 0 22px;
  font-family: var(--font-body); font-weight: var(--weight-semibold);
  font-size: var(--text-base); line-height: 1; letter-spacing: 0.01em;
  color: var(--accent-contrast); background: var(--accent);
  border: var(--border-thin) solid transparent; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); cursor: pointer; white-space: nowrap; user-select: none;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-soft), color var(--dur-base) var(--ease-out);
}
.lh-btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--accent-contrast); text-decoration: none; }
.lh-btn:active { transform: translateY(0) scale(0.99); box-shadow: var(--shadow-sm); }
.lh-btn [class^="ph-"], .lh-btn [class*=" ph-"] { font-size: 18px; }

.lh-btn--sm { height: var(--control-sm); padding: 0 14px; font-size: var(--text-sm); gap: 7px; }
.lh-btn--sm [class^="ph-"] { font-size: 16px; }
.lh-btn--lg { height: var(--control-lg); padding: 0 30px; font-size: var(--text-md); gap: 10px; }
.lh-btn--lg [class^="ph-"] { font-size: 20px; }
.lh-btn--block { width: 100%; }

.lh-btn--secondary { background: var(--surface-raised); color: var(--text-strong); border-color: var(--border-default); box-shadow: var(--shadow-xs); }
.lh-btn--secondary:hover { background: var(--surface-card); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.lh-btn--ghost { background: transparent; color: var(--accent); box-shadow: none; }
.lh-btn--ghost:hover { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.lh-btn--clay { background: var(--accent-2); color: var(--paper-50); }
.lh-btn--clay:hover { background: var(--accent-2-hover); color: var(--paper-50); }
.lh-btn[disabled], .lh-btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- IconButton ----------------------------------------------------------- */
.lh-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  background: transparent; color: var(--text-body);
  border: var(--border-thin) solid transparent; border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-soft);
}
.lh-iconbtn [class^="ph-"] { font-size: 20px; }
.lh-iconbtn:hover { background: var(--accent-soft); color: var(--accent); }
.lh-iconbtn:active { transform: scale(0.94); }
.lh-iconbtn--sm { width: 32px; height: 32px; }
.lh-iconbtn--sm [class^="ph-"] { font-size: 18px; }
.lh-iconbtn--lg { width: 48px; height: 48px; }
.lh-iconbtn--lg [class^="ph-"] { font-size: 24px; }
.lh-iconbtn--outline { background: var(--surface-raised); border-color: var(--border-default); }
.lh-iconbtn--outline:hover { background: var(--surface-card); color: var(--text-strong); }

/* --- Badge ---------------------------------------------------------------- */
.lh-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  font-family: var(--font-body); font-size: var(--text-2xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-hover);
}
.lh-badge [class^="ph-"] { font-size: 12px; }
.lh-badge--clay { background: var(--accent-2-soft); color: var(--accent-2-hover); }
.lh-badge--brass { background: var(--accent-brass-soft); color: var(--ink-700); }
.lh-badge--sage { background: var(--accent-soft); color: var(--accent-hover); }
.lh-badge--neutral { background: var(--surface-sunken); color: var(--text-muted); }
.lh-badge--success { background: var(--success-soft); color: var(--success); }
.lh-badge--danger { background: var(--danger-soft); color: var(--danger); }

/* --- Tag (filter chip) ---------------------------------------------------- */
.lh-tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--text-body); background: var(--surface-raised);
  border: var(--border-thin) solid var(--border-default); border-radius: var(--radius-pill);
  cursor: pointer; user-select: none; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lh-tag:hover { background: var(--surface-sunken); color: var(--text-body); text-decoration: none; }
.lh-tag.is-selected, .lh-tag[aria-current="true"] { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.lh-tag [class^="ph-"] { font-size: 15px; }

/* --- Divider -------------------------------------------------------------- */
.lh-divider { border: none; border-top: var(--border-hairline) solid var(--border-subtle); margin: var(--space-6) 0; height: 0; }
.lh-divider--engrave { border-top-color: var(--border-engrave); opacity: 0.5; }
.lh-divider--ornament { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-6) 0; border: none; }
.lh-divider--ornament::before, .lh-divider--ornament::after { content: ""; flex: 1; height: 0; border-top: var(--border-hairline) solid var(--border-subtle); }
.lh-divider--ornament > [class^="ph-"] { font-size: 16px; color: var(--accent); }

/* --- Price ---------------------------------------------------------------- */
.lh-price { display: inline-flex; align-items: baseline; gap: 10px; }
.lh-price__amount { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: var(--text-xl); color: var(--text-strong); letter-spacing: -0.01em; line-height: 1; }
.lh-price__was { font-family: var(--font-display); font-size: calc(var(--text-xl) * 0.7); color: var(--text-faint); text-decoration: line-through; }
.lh-price--sm .lh-price__amount { font-size: var(--text-md); }
.lh-price--sm .lh-price__was { font-size: calc(var(--text-md) * 0.7); }
.lh-price--lg .lh-price__amount { font-size: var(--text-2xl); }
.lh-price--lg .lh-price__was { font-size: calc(var(--text-2xl) * 0.7); }

/* --- Rating --------------------------------------------------------------- */
.lh-rating { display: inline-flex; align-items: center; gap: 6px; }
.lh-rating__stars { display: inline-flex; gap: 2px; color: var(--accent-brass); font-size: 14px; }
.lh-rating__stars .is-empty { color: var(--border-strong); }
.lh-rating__count { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); }

/* --- WoodSwatch ----------------------------------------------------------- */
.lh-wood-swatch { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: none; padding: 0; cursor: pointer; }
.lh-wood-swatch__dot {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--lh-wood), var(--lh-wood) 55%, rgba(0,0,0,0.22));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), var(--shadow-xs);
  display: inline-flex; align-items: center; justify-content: center; color: rgba(255,253,249,0.95);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.lh-wood-swatch__dot [class^="ph-"] { font-size: 17px; opacity: 0; }
.lh-wood-swatch:hover .lh-wood-swatch__dot { box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 3px var(--border-strong); }
.lh-wood-swatch.is-selected .lh-wood-swatch__dot { box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--accent), var(--shadow-sm); }
.lh-wood-swatch.is-selected .lh-wood-swatch__dot [class^="ph-"] { opacity: 1; }
.lh-wood-swatch__label { font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-muted); }
.lh-wood-swatch.is-selected .lh-wood-swatch__label { color: var(--text-strong); font-weight: var(--weight-semibold); }

/* --- EngravedBoard (CSS mock imagery) ------------------------------------- */
.lh-engraved {
  position: relative; width: 100%; height: 100%; min-height: 120px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8% 10%; box-sizing: border-box; overflow: hidden;
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0.05) 0 2px, rgba(255,255,255,0.035) 2px 5px, rgba(0,0,0,0.02) 5px 11px),
    radial-gradient(120% 120% at 30% 20%, var(--lh-wood) 0%, var(--lh-wood) 50%, rgba(0,0,0,0.32) 100%);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.28), inset 0 -2px 8px rgba(255,255,255,0.06);
}
.lh-engraved.is-left { justify-content: flex-start; text-align: left; }
.lh-engraved__text {
  font-family: var(--font-script); font-weight: 600; font-size: var(--lh-engrave-size, 34px); line-height: 1.05;
  white-space: pre-line; color: rgba(0,0,0,0.40);
  text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 -1px 1px rgba(0,0,0,0.45);
}
.lh-engraved--display .lh-engraved__text { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; }
.lh-engraved--body .lh-engraved__text { font-family: var(--font-body); font-weight: 500; line-height: 1.2; }
.lh-engraved.is-fill .lh-engraved__text { color: rgba(255,250,240,0.92); text-shadow: 0 1px 1px rgba(0,0,0,0.4); }

/* --- Input ---------------------------------------------------------------- */
.lh-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.lh-field__label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }
.lh-field__wrap { position: relative; display: flex; align-items: center; }
.lh-field__icon { position: absolute; left: 14px; font-size: 18px; color: var(--text-muted); pointer-events: none; }
.lh-input {
  width: 100%; height: var(--control-md); box-sizing: border-box; padding: 0 14px;
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong);
  background: var(--surface-raised); border: var(--border-thin) solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-inset); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.lh-field__wrap--icon .lh-input { padding-left: 42px; }
.lh-input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.lh-field__wrap:focus-within .lh-field__icon { color: var(--accent); }
.lh-field__help { font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-muted); }

/* --- QuantityStepper ------------------------------------------------------ */
.lh-qty {
  display: inline-flex; align-items: center;
  border: var(--border-thin) solid var(--border-default); border-radius: var(--radius-md);
  background: var(--surface-raised); overflow: hidden; box-shadow: var(--shadow-inset);
}
.lh-qty .lh-iconbtn { border-radius: 0; }
.lh-qty__value { min-width: 44px; text-align: center; font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.lh-qty--sm .lh-qty__value { min-width: 32px; }

/* --- ProductCard ---------------------------------------------------------- */
.lh-product-card {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--surface-card); border-radius: var(--radius-lg);
  border: var(--border-hairline) solid var(--border-subtle); box-shadow: var(--shadow-sm);
  overflow: hidden; text-decoration: none;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-soft);
}
.lh-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.lh-product-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-sunken); overflow: hidden; flex-shrink: 0; }
.lh-product-card__media > * { width: 100%; height: 100%; }
.lh-product-card__media img { object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.lh-product-card:hover .lh-product-card__media img,
.lh-product-card:hover .lh-product-card__media .lh-engraved { transform: scale(1.04); }
.lh-product-card__media .lh-engraved { transition: transform var(--dur-slow) var(--ease-out); }
.lh-product-card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.lh-product-card__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.lh-product-card__name { margin: 0; font-family: var(--font-display); font-weight: var(--weight-medium); font-size: var(--text-lg); line-height: 1.15; color: var(--text-strong); }
.lh-product-card__wood { font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
/* Anchor price + CTA to the bottom so equal-height cards align across a row. */
.lh-product-card__body .lh-price { margin-top: auto; }

/* =====================================================================
   SITE SHELL — header
   ===================================================================== */
.lh-skiptarget { outline: none; }

.lh-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--surface-page) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-hairline) solid var(--border-subtle);
}

.lh-wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; text-decoration: none; }
.lh-wordmark:hover { text-decoration: none; }
.lh-wordmark__name { font-family: var(--font-script); font-weight: 600; font-size: 30px; color: var(--text-strong); line-height: 0.85; }
.lh-wordmark__sub { font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent); padding-left: 2px; }
.lh-wordmark__img { max-height: 44px; width: auto; }

.lh-nav { display: flex; align-items: center; gap: 28px; }
.lh-nav a {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--text-body);
  letter-spacing: 0.01em; text-decoration: none; padding: 4px 0;
  border-bottom: 1.5px solid transparent; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lh-nav a:hover { color: var(--accent); text-decoration: none; }
.lh-nav .current-menu-item > a, .lh-nav .current_page_item > a { color: var(--accent); border-bottom-color: var(--accent); }
.lh-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.lh-nav li { position: relative; }
/* dropdowns */
.lh-nav .sub-menu { position: absolute; top: 100%; left: 0; display: none; flex-direction: column; gap: 0; min-width: 200px; padding: 8px; background: var(--surface-raised); border: var(--border-hairline) solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lh-nav li:hover > .sub-menu { display: flex; }
.lh-nav .sub-menu a { padding: 8px 10px; border-bottom: none; border-radius: var(--radius-sm); }
.lh-nav .sub-menu a:hover { background: var(--accent-soft); }

.lh-header__actions { display: flex; align-items: center; gap: 6px; }
.lh-cart-link { position: relative; }
.lh-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-2); color: var(--paper-50);
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  border-radius: var(--radius-pill); border: 2px solid var(--surface-page);
}
.lh-cart-count:empty, .lh-cart-count.is-empty { display: none; }
.lh-nav-toggle { display: none; }

/* Mobile nav panel */
.lh-mobile-nav { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.lh-mobile-nav__scrim { position: absolute; inset: 0; background: var(--surface-overlay); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.lh-mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: var(--surface-page); box-shadow: var(--shadow-xl); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 8px; transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.lh-mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.lh-mobile-nav.is-open .lh-mobile-nav__scrim { opacity: 1; }
.lh-mobile-nav.is-open .lh-mobile-nav__panel { transform: translateX(0); }
.lh-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lh-mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lh-mobile-nav a { display: block; padding: 12px 4px; font-family: var(--font-display); font-size: var(--text-lg); color: var(--text-strong); text-decoration: none; border-bottom: var(--border-hairline) solid var(--border-subtle); }
.lh-mobile-nav .sub-menu a { font-family: var(--font-body); font-size: var(--text-base); color: var(--text-muted); padding-left: 16px; }

/* =====================================================================
   HOME
   ===================================================================== */
.lh-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 5vw, 80px); }
.lh-hero__headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5.5vw, 84px); line-height: 1.02; letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 8px; }
.lh-hero__headline em { font-style: italic; color: var(--accent); }
.lh-hero__lede { font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; color: var(--text-body); max-width: 460px; margin: 18px 0 28px; }
.lh-hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lh-hero__trust { display: flex; gap: 22px; margin-top: 34px; align-items: center; flex-wrap: wrap; }
.lh-hero__trust span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-muted); }
.lh-hero__trust [class^="ph-"] { font-size: 14px; color: var(--accent-brass); }
.lh-hero__media { position: relative; }
.lh-hero__board { aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); border: var(--border-hairline) solid var(--border-subtle); }
.lh-hero__board img,
.lh-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lh-hero__tag { position: absolute; bottom: -18px; left: -18px; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 10px; border: var(--border-hairline) solid var(--border-subtle); }
.lh-hero__tag [class^="ph-"] { font-size: 22px; color: var(--accent-2); }
.lh-hero__tag span { font-family: var(--font-script); font-size: 22px; color: var(--text-strong); line-height: 1; }

.lh-section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 4vw, 48px); }
.lh-section-head--split { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; margin-bottom: 32px; gap: 24px; }
.lh-section-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3.8vw, 52px); color: var(--text-strong); margin: 8px 0 0; letter-spacing: -0.02em; }
.lh-section-head p { font-family: var(--font-body); color: var(--text-muted); margin: 10px auto 0; max-width: 540px; }

.lh-how { background: var(--surface-card); }
.lh-how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; }
.lh-how__step { text-align: center; }
.lh-how__mark { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--border-subtle); }
.lh-how__mark [class^="ph-"] { font-size: 28px; color: var(--accent); }
.lh-how__step h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--text-strong); margin: 0 0 6px; }
.lh-how__step p { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; margin: 0; }

.lh-testimonial { text-align: center; }
.lh-testimonial blockquote { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; color: var(--text-strong); margin: 20px 0 24px; letter-spacing: -0.01em; }
.lh-testimonial cite { font-family: var(--font-script); font-style: normal; font-size: 24px; color: var(--accent-2); }

.lh-cta-band { background: var(--surface-card); border-top: var(--border-hairline) solid var(--border-subtle); border-bottom: var(--border-hairline) solid var(--border-subtle); text-align: center; }
.lh-cta-band [class^="ph-"] { font-size: 34px; color: var(--accent-2); }
.lh-cta-band .lh-btn [class^="ph-"], .lh-cta-band .lh-btn [class*=" ph-"] { color: inherit; font-size: 20px; }
.lh-cta-band h2 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(26px, 3.5vw, 44px); color: var(--text-strong); margin: 14px 0 22px; letter-spacing: -0.01em; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.lh-footer { background: var(--surface-card); border-top: var(--border-hairline) solid var(--border-subtle); padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px) 28px; margin-top: 8px; }
.lh-footer__grid { max-width: var(--container-xl); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.lh-footer__brand .lh-wordmark__name { font-size: 30px; line-height: 0.9; }
.lh-footer__tagline { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--text-muted); max-width: 320px; line-height: 1.3; margin: 16px 0 0; }
.lh-footer__col h2, .lh-footer__col h4 { font-family: var(--font-body); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-muted); font-weight: 700; margin: 0 0 14px; }
.lh-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lh-footer__col a { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-body); text-decoration: none; }
.lh-footer__col a:hover { color: var(--accent); text-decoration: underline; }
.lh-footer__widgets { max-width: var(--container-xl); margin: 0 auto 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.lh-footer-widget__title { font-family: var(--font-body); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-muted); font-weight: 700; margin: 0 0 12px; }
.lh-footer-widget { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-body); }
.lh-footer-widget a { color: var(--text-body); }
.lh-footer-widget a:hover { color: var(--accent); }
.lh-footer__bottom { max-width: var(--container-xl); margin: 0 auto; }
.lh-footer__bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.lh-footer__copy { font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-faint); }
.lh-footer__social { display: flex; gap: 18px; align-items: center; }
.lh-footer__social a { color: var(--text-muted); display: inline-flex; align-items: center; }
.lh-footer__social a:hover { color: var(--accent); }
.lh-footer__social [class^="ph-"] { font-size: 18px; }
.lh-footer__social svg { width: 15px; height: 15px; display: block; }

/* =====================================================================
   CART DRAWER (mini-cart slide-over)
   ===================================================================== */
.lh-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
.lh-drawer__scrim { position: absolute; inset: 0; background: var(--surface-overlay); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.lh-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--surface-page); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.lh-drawer.is-open { visibility: visible; pointer-events: auto; }
.lh-drawer.is-open .lh-drawer__scrim { opacity: 1; }
.lh-drawer.is-open .lh-drawer__panel { transform: translateX(0); }
.lh-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: var(--border-hairline) solid var(--border-subtle); }
.lh-drawer__head h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--text-strong); margin: 0; }
.lh-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.lh-drawer__foot { padding: 20px 22px; border-top: var(--border-hairline) solid var(--border-subtle); background: var(--surface-card); }
.lh-drawer__empty { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.lh-drawer__empty [class^="ph-"] { font-size: 40px; color: var(--text-faint); }

/* =====================================================================
   ACCORDION (product details, etc.)
   ===================================================================== */
.lh-accordion { border-bottom: var(--border-hairline) solid var(--border-subtle); }
.lh-accordion__head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; padding: 16px 0; font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; color: var(--text-strong); text-align: left; }
.lh-accordion__head [class^="ph-"] { font-size: 14px; color: var(--text-muted); }
.lh-accordion__body { padding-bottom: 18px; font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }
.lh-accordion:not(.is-open) .lh-accordion__body { display: none; }
.lh-accordion .icon-open { display: none; }
.lh-accordion.is-open .icon-open { display: inline-block; }
.lh-accordion.is-open .icon-closed { display: none; }

/* =====================================================================
   GENERIC CONTENT — blog, pages, 404, search
   ===================================================================== */
.lh-page-head { text-align: center; padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.lh-page-head h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.02em; margin: 8px 0 0; }
.lh-entry { max-width: var(--container-md); margin: 0 auto; padding-block: clamp(24px, 3vw, 40px); }
.lh-entry__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.lh-entry__meta { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-6); }
.lh-entry__content { font-size: var(--text-md); line-height: var(--leading-relaxed); }
.lh-entry__content > * { margin-bottom: var(--space-6); }
.lh-entry__content a { text-decoration: underline; }
.lh-entry__content blockquote { border-left: 2px solid var(--accent); padding-left: var(--space-5); font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--text-strong); }
.lh-entry__thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-8); box-shadow: var(--shadow-md); }

.lh-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lh-post-card { display: flex; flex-direction: column; background: var(--surface-card); border: var(--border-hairline) solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-soft); }
.lh-post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.lh-post-card__media { aspect-ratio: 3 / 2; background: var(--surface-sunken); overflow: hidden; }
.lh-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lh-post-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.lh-post-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.2; margin: 0; }
.lh-post-card__title a { color: var(--text-strong); text-decoration: none; }
.lh-post-card__excerpt { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }

.lh-pagination { display: flex; justify-content: center; gap: 8px; margin: var(--space-12) 0; }
.lh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-md); border: var(--border-hairline) solid var(--border-default); font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-body); text-decoration: none; }
.lh-pagination .page-numbers.current { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.lh-pagination .page-numbers:hover:not(.current) { background: var(--surface-sunken); }

.lh-404 { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.lh-404 .lh-script { font-size: var(--script-lg); color: var(--accent-2); }

/* Comments */
.lh-comments { max-width: var(--container-md); margin: var(--space-12) auto 0; }
.lh-comments ol { list-style: none; margin: 0; padding: 0; }
.lh-comments .comment-body { padding: var(--space-5) 0; border-bottom: var(--border-hairline) solid var(--border-subtle); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .lh-product-grid { grid-template-columns: repeat(3, 1fr); }
  .lh-how__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
  .lh-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lh-nav { display: none; }
  .lh-nav-toggle { display: inline-flex; }
  .lh-hero { grid-template-columns: 1fr; }
  .lh-hero__media { max-width: 460px; margin: 8px auto 0; width: 100%; }
  .lh-section-head--split { flex-direction: column; align-items: flex-start; }
  .lh-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lh-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .lh-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lh-posts { grid-template-columns: 1fr; }
  .lh-footer__grid { grid-template-columns: 1fr; }
  .lh-header { gap: 12px; padding: 12px clamp(16px, 5vw, 20px); }
  .lh-header__actions { gap: 2px; }
}

/* =====================================================================
   DARK-MODE refinements (tokens carry most of it)
   ===================================================================== */
[data-theme="dark"] .lh-engraved { box-shadow: inset 0 2px 12px rgba(0,0,0,0.5), inset 0 -2px 8px rgba(255,255,255,0.04); }
[data-theme="dark"] .lh-engraved__text { color: rgba(0,0,0,0.5); text-shadow: 0 1px 0 rgba(255,255,255,0.10), 0 -1px 1px rgba(0,0,0,0.55); }

/* =====================================================================
   SEARCH + WP BLOCK ALIGNMENTS
   ===================================================================== */
.lh-search { border-bottom: var(--border-hairline) solid var(--border-subtle); background: var(--surface-page); padding: 16px 0; }
.lh-search[hidden] { display: none; }
.search-form,
.woocommerce-product-search { display: flex; gap: 10px; align-items: center; }
.search-form label { flex: 1; margin: 0; }
.woocommerce-product-search .search-field { flex: 1; }
.search-form .search-field,
.woocommerce-product-search .search-field {
  width: 100%; height: var(--control-md); box-sizing: border-box; padding: 0 16px;
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong);
  background: var(--surface-raised); border: var(--border-thin) solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-inset); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.search-form .search-field:focus,
.woocommerce-product-search .search-field:focus { border-color: var(--accent); box-shadow: var(--ring); }
.search-form .search-submit,
.woocommerce-product-search button[type="submit"] {
  height: var(--control-md); padding: 0 22px; flex: none;
  font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: var(--text-base);
  color: var(--accent-contrast); background: var(--accent); border: none; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.search-form .search-submit:hover,
.woocommerce-product-search button[type="submit"]:hover { background: var(--accent-hover); }

.alignwide { max-width: var(--container-2xl); margin-inline: auto; }
.alignfull { max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 var(--space-6) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-6); }
figure.wp-block-image img { border-radius: var(--radius-md); }

/* Multi-line input variant (comment forms, etc.) */
textarea.lh-input, .lh-input--area, .lh-comments textarea, .comment-form textarea {
  height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: var(--leading-normal);
}

/* --- Contact Form 7 (contact page) --------------------------------------- */
/* Fields reuse the theme .lh-field / .lh-input / .lh-btn via CF7's `class:`
   syntax (see the contact form template). This block adds only the CF7-specific
   glue the design system doesn't cover: form layout, control-wrap sizing, and
   CF7's own validation / response / spinner elements. Tokens carry dark mode. */
.wpcf7 { max-width: var(--container-sm); }
.wpcf7-form { display: flex; flex-direction: column; gap: var(--space-5); }
.wpcf7-form p { margin: 0; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-form .lh-field br { display: none; } /* drop CF7 autop line breaks inside field rows */
.lh-field__opt { font-weight: var(--weight-regular); color: var(--text-muted); }
.lh-cf7-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-1); }

/* Invalid field + inline tip */
.wpcf7-form .wpcf7-not-valid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.wpcf7-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--danger); }

/* Response banner — colored by CF7's result state (specificity beats CF7 core) */
.wpcf7 form.wpcf7-form .wpcf7-response-output {
  margin: var(--space-1) 0 0; padding: 12px 16px;
  font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-normal);
  border: var(--border-thin) solid var(--border-default); border-radius: var(--radius-md);
  background: var(--surface-sunken); color: var(--text-body);
}
.wpcf7 form.wpcf7-form .wpcf7-response-output:empty { display: none; }
.wpcf7 form.wpcf7-form.sent .wpcf7-response-output { border-color: var(--success); background: var(--success-soft); color: var(--text-strong); }
.wpcf7 form.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 form.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7 form.wpcf7-form.spam .wpcf7-response-output,
.wpcf7 form.wpcf7-form.failed .wpcf7-response-output { border-color: var(--danger); background: var(--danger-soft); color: var(--text-strong); }

/* Spinner tinted to brand accent */
.wpcf7-spinner { background-color: var(--accent); }

/* Editor canvas transparency checkerboard (neutral greys, Photoshop-style empty doc) */
:root { --lh-checker-a: #ffffff; --lh-checker-b: #cccccc; }
[data-theme="dark"] { --lh-checker-a: #3a3a3a; --lh-checker-b: #4a4a4a; }

/* Native form controls (variation <select> option lists, scrollbars, date/number
   spinners) follow the active theme — keeps native dropdowns legible in dark mode. */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
