/* ==========================================================================
   Components — header, footer, product card, proof strip, chips, scale cue.
   ========================================================================== */

/* — header — */
.es-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--es-space-4);
  padding: 26px 48px 22px;
  background: var(--es-paper);
  border-bottom: 1px solid var(--es-rule);
}
.es-header__brand { display: flex; flex-direction: column; gap: 3px; }
.es-header__wordmark {
  font-family: var(--es-font-display);
  font-size: 28px; letter-spacing: 0.34em; line-height: 1;
  color: var(--es-ink);
}
.es-header__place {
  font-size: 9.5px; letter-spacing: 0.36em;
  color: var(--es-umber-600); padding-left: 3px;
}
.es-header__nav { display: flex; gap: 38px; justify-self: center; }
.es-header__nav a,
.es-header__utils a {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--es-umber-800); padding-bottom: 5px;
  border-bottom: 1px solid transparent;
}
.es-header__nav a:hover,
.es-header__nav a[aria-current="page"] { border-bottom-color: var(--es-gold); color: var(--es-umber-800); }
.es-header__utils { display: flex; gap: var(--es-space-5); justify-self: end; }
.es-header__menu-toggle { display: none; }

@media (max-width: 900px) {
  .es-header { grid-template-columns: auto 1fr auto; padding: 16px 20px; }
  .es-header__brand { justify-self: center; align-items: center; }
  .es-header__wordmark { font-size: 22px; }
  .es-header__menu-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 22px; height: 13px; background: none; border: 0; padding: 0; cursor: pointer;
  }
  .es-header__menu-toggle span { height: 1px; background: var(--es-umber-800); display: block; }
  .es-header__nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; gap: 0;
    background: var(--es-paper); border-bottom: 1px solid var(--es-rule);
  }
  .es-header__nav a { padding: 15px 20px; border-bottom: 1px solid var(--es-rule-soft, var(--es-rule)); }
  .es-header--open .es-header__nav { display: flex; }
  .es-header { position: relative; }
  .es-header__utils a:not(:last-child) { display: none; }
}

/* — announcement bar (commerce pages) — */
.es-announce {
  background: var(--es-paper-alt);
  color: var(--es-ink-soft);
  text-align: center;
  font-size: 12px; letter-spacing: 0.06em;
  padding: 11px 24px;
}

/* — dark commerce header variant — */
.es-header--dark {
  background: var(--es-umber-800);
  border-bottom: none;
  grid-template-columns: auto 1fr auto;
  gap: var(--es-space-6);
  padding: 20px 44px;
}
.es-header--dark .es-header__wordmark { color: var(--es-umber-200); font-size: 24px; }
.es-header--dark .es-header__nav { justify-self: start; gap: 28px; }
.es-header--dark .es-header__nav a,
.es-header--dark .es-header__utils a {
  color: var(--es-umber-200);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: none;
}
.es-header--dark .es-header__nav a:hover,
.es-header--dark .es-header__nav a[aria-current="page"] {
  color: var(--es-umber-100);
  border-bottom-color: var(--es-brass-400);
}
.es-header--dark .es-header__utils a:hover { color: var(--es-umber-100); }
.es-header--dark .es-header__menu-toggle span { background: var(--es-umber-200); }
@media (max-width: 900px) {
  .es-header--dark { padding: 14px 20px; }
  .es-header--dark .es-header__nav { background: var(--es-umber-800); border-bottom: 1px solid var(--es-band-rule); }
  .es-header--dark .es-header__nav a { border-bottom: 1px solid var(--es-band-rule); }
}

/* — inverted button for dark bands — */
.es-btn--invert { background: var(--es-umber-100); color: var(--es-umber-800); }
.es-btn--invert:hover { background: var(--es-paper); color: var(--es-umber-900); }

/* Wide screens: force the desktop header state no matter how the engine
   ordered the media evaluation (some embedded viewports mis-evaluate). */
@media (min-width: 901px) {
  .es-header__menu-toggle { display: none !important; }
  .es-header__nav { display: flex !important; position: static; }
}

/* — footer — */
.es-footer {
  position: relative; overflow: hidden;
  background: var(--es-band-bg); color: var(--es-band-ink);
  padding: 62px 48px 42px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  margin-top: var(--es-space-8);
}
.es-footer__watermark {
  position: absolute; right: 40px; bottom: -46px;
  font-family: var(--es-font-script);
  font-size: 170px; line-height: 0.9;
  color: var(--es-umber-100); opacity: 0.07; pointer-events: none;
}
.es-footer__brand { position: relative; display: flex; flex-direction: column; gap: 14px; }
.es-footer__wordmark {
  font-family: var(--es-font-display);
  font-size: 26px; letter-spacing: 0.32em; color: var(--es-umber-100);
}
.es-footer__tag { font-size: 9.5px; letter-spacing: 0.34em; color: var(--es-band-ink-dim); }
.es-footer__brand p { font-size: 13.5px; line-height: 1.75; font-weight: 300; max-width: 250px; }
.es-footer__col { position: relative; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; font-weight: 300; }
.es-footer__label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--es-band-ink-strong); margin-bottom: 5px;
}
.es-footer__col a { color: var(--es-band-ink); }
.es-footer__col a:hover { color: var(--es-band-ink-strong); }
.es-footer__pay { color: var(--es-band-ink-dim); margin-top: 6px; }

@media (max-width: 900px) {
  .es-footer { grid-template-columns: 1fr 1fr; padding: 34px 22px; gap: 22px; }
  .es-footer__brand { grid-column: 1 / -1; }
}

/* — product card (content-product.php) — */
.es-card { list-style: none; }
.es-card__link { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.es-card__media {
  position: relative; overflow: hidden;
  background: var(--es-paper-alt);
  border: 1px solid var(--es-rule);
  aspect-ratio: 1 / 1;
}
.es-card__media img { width: 100%; height: 100%; object-fit: cover; }
.es-card__link:hover .es-card__media img { transform: scale(1.03); }
.es-card__media img { transition: transform 0.35s ease; }
.es-card__scale {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 10px; letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--es-paper) 88%, transparent);
  color: var(--es-umber-700);
  border: 1px solid var(--es-rule);
  padding: 3px 9px; border-radius: var(--es-radius);
}
.es-card__soldout {
  position: absolute; right: 10px; top: 10px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--es-band-bg); color: var(--es-umber-100);
  padding: 4px 10px;
}
.es-card__title {
  font-family: var(--es-font-display); font-size: 16px; font-weight: 400;
  color: var(--es-ink); line-height: 1.35;
}
.es-card__price { font-size: 14.5px; }

/* — proof strip — */
.esmaric-proof {
  display: flex; flex-wrap: wrap; gap: 1px; list-style: none;
  margin: 0; padding: 0;
  background: var(--es-rule); border: 1px solid var(--es-rule);
}
.esmaric-proof li {
  flex: 1 1 140px; background: var(--es-paper-alt);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.esmaric-proof strong { font-family: var(--es-font-display); font-weight: 400; font-size: 21px; color: var(--es-umber-800); }
.esmaric-proof span { font-size: 12px; color: var(--es-ink-soft); }

/* — delivery promise — */
.esmaric-delivery { display: flex; gap: var(--es-space-5); margin: 0; }
.esmaric-delivery dt { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--es-brass-700); }
.esmaric-delivery dd { margin: 2px 0 0; font-weight: 500; color: var(--es-ink); }

/* — subcategory chips — */
.esmaric-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.esmaric-chips__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--es-umber-800);
  border: 1px solid var(--es-rule); border-radius: var(--es-radius);
  padding: 8px 16px; min-height: 36px;
}
.esmaric-chips__chip:hover { border-color: var(--es-umber-800); color: var(--es-umber-800); }
.esmaric-chips__count { font-size: 11px; color: var(--es-ink-soft); }

/* — scale cue — */
.esmaric-scale { display: flex; flex-direction: column; gap: 6px; }
.esmaric-scale__value { font-weight: 500; font-variant-numeric: tabular-nums; }
.esmaric-scale__weight { font-size: 13px; color: var(--es-ink-soft); }
.esmaric-scale__bar { height: 6px; background: linear-gradient(90deg, var(--es-gold), transparent); max-width: 220px; }

/* — photo-to-come slot (gold-bordered, from the handoff convention) — */
.es-photo-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--es-gold);
  background: repeating-linear-gradient(135deg, var(--es-paper-alt) 0 9px, var(--es-canvas) 9px 18px);
  min-height: 250px; padding: 26px; text-align: center;
}
.es-photo-slot span {
  font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.1em;
  color: var(--es-umber-500); line-height: 1.8;
}
