/* ==========================================================================
   Base — type, links, buttons, shared primitives. Values from tokens.css,
   geometry from the locked design system (quiet 2–3px corners, brass rules).
   Scoped to .esmaric-shell so Woodmart-rendered pages are untouched.
   ========================================================================== */

body.esmaric-shell {
  margin: 0;
  background: var(--es-paper);
  color: var(--es-ink);
  font-family: var(--es-font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.esmaric-shell h1,
.esmaric-shell h2,
.esmaric-shell h3,
.esmaric-shell h4 {
  font-family: var(--es-font-display);
  font-weight: 400;
  line-height: 1.16;
  color: var(--es-umber-800);
  margin: 0;
  text-wrap: balance;
}

.esmaric-shell p { margin: 0; }

.esmaric-shell a {
  color: var(--es-brass-700);
  text-decoration: none;
}
.esmaric-shell a:hover { color: var(--es-ink); }
.esmaric-shell :focus { outline: none; }
.esmaric-shell :focus-visible { outline: 2px solid var(--es-brass-500); outline-offset: 2px; }
.esmaric-shell ::selection { background: var(--es-umber-300); }

.esmaric-shell img { max-width: 100%; display: block; }
.esmaric-shell figure { margin: 0; }

/* Product photography is never washed — the buyer judges paint colour off it. */
.esmaric-shell .product-media img,
.esmaric-shell .product-media { filter: none; }
.esmaric-shell .es-washed img { filter: sepia(0.45) saturate(0.75) contrast(0.95) brightness(1.06); }

/* — eyebrows and rules — */
.es-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--es-brass-700); margin: 0;
}
.es-eyebrow-sm {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--es-brass-700);
}
.es-diamond {
  width: 9px; height: 9px; flex: none;
  background: var(--es-gold); transform: rotate(45deg); display: inline-block;
}
.es-brass-rule { width: 34px; height: 1px; background: var(--es-gold); display: block; }
.es-rule-diamond { display: flex; align-items: center; gap: 10px; max-width: 250px; }
.es-rule-diamond span { flex: 1; height: 1px; background: var(--es-umber-400); display: block; }
.es-rule-diamond i { width: 7px; height: 7px; border: 1px solid var(--es-gold); transform: rotate(45deg); display: block; }

/* — buttons — */
.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  font-family: var(--es-font-body); font-weight: 500;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 32px; border-radius: var(--es-radius); line-height: 1.2;
  min-height: 44px;
}
.es-btn--primary { background: var(--es-umber-800); color: var(--es-umber-100); }
.es-btn--primary:hover { background: var(--es-umber-900); color: var(--es-umber-100); }
.es-btn--secondary { border-color: var(--es-rule); color: var(--es-ink); background: transparent; }
.es-btn--secondary:hover { background: color-mix(in srgb, var(--es-ink) 7%, transparent); }

/* — the brass "see all" underline — */
.es-link-rule {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--es-umber-700); padding-bottom: 5px;
  border-bottom: 1px solid var(--es-gold);
}
.es-link-rule:hover { color: var(--es-ink); border-bottom-color: var(--es-umber-800); }

/* — price: always the body face, tabular figures, never the display face — */
.es-price,
.esmaric-shell .price {
  font-family: var(--es-font-body); font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--es-umber-800);
}
.esmaric-shell .price del { color: var(--es-ink-soft); font-weight: 400; margin-right: 8px; }
.esmaric-shell .price ins { text-decoration: none; }

.es-stock-line {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--es-brass-700);
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 480px) {
  .es-btn, .esmaric-shell input, .esmaric-shell select { min-height: 44px; }
}
