/**
 * ECP Header Styles
 * Three-band header: announcement bar, logo band, nav bar with mega menus.
 * Depends on ecp-global.css for design tokens and .ecp-btn class.
 * 1.7.0 (2026-10-08): sticky header wrapper + collapsing announcement bar (§7).
 * 1.7.1 (2026-10-08): logo row stacks above nav so the search dropdown is not covered when condensed.
 * 1.8.0 (2026-10-08): direction-based bar; PDP gallery + anchors offset by the full header height.
 */

/* ══════════════════════════════════════════
   0. GLOBAL OVERRIDES — fight Elementor & plugin specificity
   ══════════════════════════════════════════ */
/* Desktop/tablet logo width (2026-10-08: was a fixed 250px). Scales with the viewport:
   280px at <=1018px (tablet), ~352px at 1280px, capped at 370px from ~1345px up.
   Phones (<=768px) keep their own rule further down (height 48px, max 220px wide). */
header.ecp-header-main {
  --ecp-logo-w: clamp(280px, 27.5vw, 370px);
}
/* Prevent Elementor/WP global img rules from blowing up our logo */
header.ecp-header-main img.ecp-logo-img.wvs-archive-product-image,
header.ecp-header-main img.ecp-logo-img {
  width: var(--ecp-logo-w) !important;
  height: auto !important;
  max-width: var(--ecp-logo-w) !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

header.ecp-header-main .ecp-logo img.ecp-logo-img {
  width: var(--ecp-logo-w) !important;
  height: auto !important;
  max-width: var(--ecp-logo-w) !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain;
}

/* Prevent WP block-gap and Elementor layout rules from adding margins */
div.ecp-announce,
header.ecp-header-main,
nav.ecp-nav,
div.ecp-announce *,
header.ecp-header-main *,
nav.ecp-nav * {
  box-sizing: border-box;
}

/* Reset any WP block spacing that leaks into our header */
div.ecp-announce + header.ecp-header-main,
header.ecp-header-main + nav.ecp-nav {
  margin-block-start: 0 !important;
}


/* ══════════════════════════════════════════
   1. ANNOUNCEMENT BAR
   ══════════════════════════════════════════ */
div.ecp-announce {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  background: var(--ecp-navy) !important;
  color: #fff !important;
  font-family: var(--ecp-font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  /* East Fork-style: navy extends under iOS status bar via safe-area + theme-color */
  padding: max(6px, env(safe-area-inset-top, 0px)) 20px 6px !important;
  text-align: center;
  position: relative;
  min-height: 0;
  line-height: 1.25;
}

.ecp-announce-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ecp-announce-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ecp-announce-link:hover {
  text-decoration-thickness: 2px;
}
/* Linked slides: beat Elementor's global kit link colour (navy on the navy bar). White at rest; hover/focus stay
   white and show an underline (plus a visible focus ring for keyboard users). */
div.ecp-announce a.ecp-announce-link { color: #fff; text-decoration: none; }
div.ecp-announce a.ecp-announce-link:hover,
div.ecp-announce a.ecp-announce-link:focus,
div.ecp-announce a.ecp-announce-link:focus-visible,
div.ecp-announce a.ecp-announce-link:active,
div.ecp-announce a.ecp-announce-link:visited { color: #fff; }
div.ecp-announce a.ecp-announce-link:hover,
div.ecp-announce a.ecp-announce-link:focus,
div.ecp-announce a.ecp-announce-link:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
div.ecp-announce a.ecp-announce-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }

.ecp-announce-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 4px;
  min-width: 32px;
  min-height: 28px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ecp-announce-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}
.ecp-announce-arrow:hover {
  color: #fff;
}

/* Hide arrows when only one slide */
.ecp-announce[data-single="true"] .ecp-announce-arrow {
  display: none;
}

/* No announcement slides configured → no bar is rendered. The logo band becomes the first band,
   so it takes over the iOS safe-area (notch) inset the bar used to carry. 0px on normal screens,
   so there is no extra gap. */
header.ecp-header-main.ecp-header-main--no-announce {
  border-top: env(safe-area-inset-top, 0px) solid var(--ecp-bg) !important;
}


/* ══════════════════════════════════════════
   2. MAIN HEADER BAND (LOGO ROW)
   ══════════════════════════════════════════ */
header.ecp-header-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 40px !important;
  background: var(--ecp-bg) !important;
  border-bottom: 1px solid var(--ecp-border) !important;
  position: relative !important;
  min-height: 72px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
/* Larger logo (2026-10-08): the logo is absolutely centred, so it does not push the row taller by itself.
   Give it ~14px breathing room above/below on desktop/tablet (logo art is 1505×221 → height ≈ 0.147 × width):
   72px at ≤1024px, ~80px at 1280px, ~82px at 1440px+. Phones keep min-height 64px (mobile block below). */
@media (min-width: 769px) {
  header.ecp-header-main {
    min-height: max(72px, calc(var(--ecp-logo-w) * 0.147 + 28px)) !important;
  }
}

/* Left cluster: search + burger */
header.ecp-header-main .ecp-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Center logo */
header.ecp-header-main .ecp-logo {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center;
}
header.ecp-header-main .ecp-logo a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ecp-text);
}
header.ecp-header-main .ecp-logo img.ecp-logo-img {
  width: var(--ecp-logo-w) !important;
  height: auto !important;
  max-width: var(--ecp-logo-w) !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain;
}
.ecp-logo-text {
  font-family: var(--ecp-font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ecp-text-mid);
  margin-top: 2px;
}

/* Right cluster: account / wishlist / cart */
header.ecp-header-main .ecp-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 24px;
  flex: 1;
  justify-content: flex-end !important;
}

.ecp-util-link,
a.ecp-util-link,
header.ecp-header-main a.ecp-util-link,
header.ecp-header-main a.ecp-account-link,
header.ecp-header-main a.ecp-wishlist-link {
  font-family: var(--ecp-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ecp-text);
  text-decoration: none !important;
  letter-spacing: 0.2px;
  transition: color 0.15s;
}
.ecp-util-link:hover,
.ecp-util-link:focus,
.ecp-util-link:visited,
a.ecp-util-link:hover,
a.ecp-util-link:focus,
a.ecp-util-link:visited,
header.ecp-header-main a.ecp-util-link:hover,
header.ecp-header-main a.ecp-util-link:focus,
header.ecp-header-main a.ecp-account-link:hover,
header.ecp-header-main a.ecp-account-link:focus,
header.ecp-header-main a.ecp-wishlist-link:hover,
header.ecp-header-main a.ecp-wishlist-link:focus {
  color: var(--ecp-navy);
  text-decoration: none !important;
}


/* ── Expandable Search ── */
.ecp-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.ecp-search-toggle,
button.ecp-search-toggle,
header.ecp-header-main button.ecp-search-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 0.45rem 0.7rem !important;
  margin: -0.45rem -0.35rem;
  color: var(--ecp-text) !important;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-transform: none;
  transition: background-color 180ms ease, color 180ms ease;
}
/* Soft gray hover only — not while open/focused (looks stuck over the field). */
.ecp-search-toggle:hover,
button.ecp-search-toggle:hover,
header.ecp-header-main button.ecp-search-toggle:hover {
  color: var(--ecp-text) !important;
  background: rgba(42, 33, 24, 0.07) !important;
  background-color: rgba(42, 33, 24, 0.07) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.ecp-search-toggle:focus,
button.ecp-search-toggle:focus,
header.ecp-header-main button.ecp-search-toggle:focus,
.ecp-search-wrap.is-open .ecp-search-toggle,
header.ecp-header-main .ecp-search-wrap.is-open .ecp-search-toggle,
.ecp-search-wrap.is-open .ecp-search-toggle:hover,
header.ecp-header-main .ecp-search-wrap.is-open .ecp-search-toggle:hover,
.ecp-search-wrap.is-open .ecp-search-toggle:focus,
header.ecp-header-main .ecp-search-wrap.is-open .ecp-search-toggle:focus {
  color: var(--ecp-text) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.ecp-search-toggle svg {
  flex-shrink: 0;
}

/* Hide duplicate site name under logo — keep for SEO (screen-reader only) */
.ecp-logo-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.ecp-search-form {
  display: flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.25s ease;
}

.ecp-search-wrap.is-open .ecp-search-form {
  max-width: 240px;
  opacity: 1;
}

.ecp-search-wrap.is-open .ecp-search-label {
  display: none;
}

.ecp-search-field {
  width: 220px;
  border: none;
  border-bottom: 1px solid var(--ecp-border-light);
  background: transparent;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  padding: 6px 4px;
  outline: none;
  color: var(--ecp-text);
}
.ecp-search-field::placeholder {
  color: var(--ecp-text-muted);
}
.ecp-search-field:focus {
  border-bottom-color: var(--ecp-navy);
}

/* ── Search Results Dropdown (Predictive / AJAX) ── */
.ecp-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 380px;
  max-height: 460px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ecp-border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 500;
}
.ecp-search-results.is-visible {
  display: flex;
}
.ecp-search-results-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ecp-search-results-label {
  font-family: var(--ecp-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ecp-text-muted);
  padding: 14px 16px 8px;
}

.ecp-search-result-item,
a.ecp-search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  text-decoration: none !important;
  color: var(--ecp-text) !important;
  transition: background 0.1s;
  box-shadow: none !important;
  border: none !important;
}
.ecp-search-result-item:hover,
a.ecp-search-result-item:hover,
.ecp-search-result-item:focus,
a.ecp-search-result-item:focus {
  background: var(--ecp-bg-warm);
  text-decoration: none !important;
  color: var(--ecp-text) !important;
}

.ecp-search-result-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--ecp-bg-warm);
}

.ecp-search-result-info {
  flex: 1;
  min-width: 0;
}
.ecp-search-result-name,
.ecp-search-result-price {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.ecp-search-result-name {
  font-family: var(--ecp-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ecp-text) !important;
  margin: 0;
  line-height: 1.3;
}
.ecp-search-result-price {
  font-family: var(--ecp-font-body);
  font-size: 13px;
  color: var(--ecp-text-muted) !important;
  margin-top: 2px;
}
/* 1.8.1: glaze line under the product name ("in Baltic"); natural height, no reserved space. */
.ecp-search-result-glaze {
  font-family: var(--ecp-font-body);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ecp-text-muted) !important;
  margin: 1px 0 0;
  min-height: 0;
}

.ecp-search-view-all {
  flex: 0 0 auto;
  display: block;
  margin: 0;
  padding: 12px 16px 16px;
  background: #fff;
  border-top: 1px solid var(--ecp-border);
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.ecp-search-view-all .ecp-btn,
.ecp-search-view-all a.ecp-btn,
a.ecp-search-view-all-btn.ecp-btn {
  display: flex !important;
  width: 100%;
  font-size: 13px;
  padding: 12px 20px;
  background: var(--ecp-navy) !important;
  background-color: var(--ecp-navy) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}
.ecp-search-view-all .ecp-btn:hover,
.ecp-search-view-all a.ecp-btn:hover,
a.ecp-search-view-all-btn.ecp-btn:hover {
  background: var(--ecp-navy-hover) !important;
  background-color: var(--ecp-navy-hover) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.ecp-search-no-results {
  padding: 20px 16px;
  text-align: center;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  color: var(--ecp-text-muted);
}

.ecp-search-loading {
  padding: 20px 16px;
  text-align: center;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  color: var(--ecp-text-muted);
}

/* ── Smart search additions (v1.6.0): variant swatch, chips, hints, keyboard highlight ── */
.ecp-search-results { max-height: min(560px, calc(100vh - 140px)); }
.ecp-search-result-item.is-active,
a.ecp-search-result-item.is-active {
  background: var(--ecp-bg-warm);
  outline: 2px solid var(--ecp-navy);
  outline-offset: -2px;
}
.ecp-search-result-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ecp-border);
  margin-left: auto;
}
.ecp-search-result-soldout {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ecp-text-muted);
}
.ecp-search-result-item.is-related .ecp-search-result-name {
  font-weight: 500;
}
.ecp-search-hint {
  font-family: var(--ecp-font-body);
  font-size: 13px;
  color: var(--ecp-text-muted);
  padding: 12px 16px 0;
}
.ecp-search-hint strong { color: var(--ecp-text); }
.ecp-search-chips-wrap { padding: 0 0 10px; }
.ecp-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
}
.ecp-search-chip,
a.ecp-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--ecp-border);
  border-radius: 999px;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  line-height: 1.2;
  color: var(--ecp-text) !important;
  background: #fff;
  text-decoration: none !important;
  box-shadow: none !important;
}
.ecp-search-chip:hover,
.ecp-search-chip:focus,
.ecp-search-chip.is-active {
  border-color: var(--ecp-navy);
  background: var(--ecp-bg-warm);
}
.ecp-search-chip.is-active { outline: 2px solid var(--ecp-navy); outline-offset: 1px; }
.ecp-search-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.ecp-search-view-all a.ecp-btn.is-active { outline: 2px solid var(--ecp-text); outline-offset: 2px; }
.ecp-search-no-results strong {
  display: block;
  color: var(--ecp-text);
  font-size: 14px;
  margin-bottom: 4px;
}
.ecp-search-no-results span { display: block; }

/* Results page (/?s=…&post_type=product) */
.ecp-ss-results-head { margin: 0 0 18px; }
.ecp-ss-hint {
  font-family: var(--ecp-font-body);
  font-size: 14px;
  color: var(--ecp-text-muted);
  margin: 0 0 10px;
}
.ecp-ss-hint a { color: var(--ecp-text); }
.ecp-ss-glazes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ecp-ss-glazes-label,
.ecp-ss-best-title {
  font-family: var(--ecp-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ecp-text-muted);
}
.ecp-ss-best-title { margin: 28px 0 14px; }
.ecp-ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.ecp-ss-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--ecp-border);
  border-radius: 999px;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  color: var(--ecp-text) !important;
  background: #fff;
  text-decoration: none !important;
}
a.ecp-ss-chip:hover, a.ecp-ss-chip:focus { border-color: var(--ecp-navy); background: var(--ecp-bg-warm); }
a.ecp-ss-chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.ecp-ss-empty { text-align: center; padding: 24px 0 8px; }
.ecp-ss-empty .ecp-ss-chips { justify-content: center; }
.ecp-ss-empty-title { font-family: var(--ecp-font-heading, var(--ecp-font-body)); font-size: 22px; color: var(--ecp-text); margin: 0 0 6px; }
.ecp-ss-empty-msg { font-family: var(--ecp-font-body); font-size: 14px; color: var(--ecp-text-muted); margin: 0 0 16px; }

/* ── Mobile Search Overlay ── */
.ecp-mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.ecp-mobile-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ecp-mobile-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 9998;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  /* Keep in layout (not display:none) so iOS can focus the input on tap */
  visibility: hidden;
  pointer-events: none;
}
.ecp-mobile-search-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}
.ecp-mobile-search-panel .ecp-mobile-search-header {
  flex: 0 0 auto;
}
.ecp-mobile-search-panel .ecp-mobile-search-results {
  flex: 1 1 auto;
  min-height: 0;
}

.ecp-mobile-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ecp-border);
}
.ecp-mobile-search-header svg {
  flex-shrink: 0;
  color: var(--ecp-text-muted);
}
.ecp-mobile-search-input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--ecp-font-body);
  font-size: 16px;
  color: var(--ecp-text);
  outline: none;
  padding: 8px 0;
}
.ecp-mobile-search-input::placeholder {
  color: var(--ecp-text-muted);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.ecp-mobile-search-close {
  background: none;
  border: none;
  color: var(--ecp-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.ecp-mobile-search-results {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, calc(100vh - 72px));
  overflow: hidden;
  padding-bottom: 0;
}
.ecp-mobile-search-results .ecp-search-results-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.ecp-mobile-search-results .ecp-search-view-all {
  flex: 0 0 auto;
}
.ecp-mobile-search-results .ecp-search-result-item,
.ecp-mobile-search-results a.ecp-search-result-item,
.ecp-mobile-search-results .ecp-search-result-name,
.ecp-mobile-search-results .ecp-search-result-price {
  text-decoration: none !important;
}


/* ── Mobile Search Button (hidden on desktop) ── */
.ecp-mobile-search-btn,
button.ecp-mobile-search-btn,
header.ecp-header-main button.ecp-mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 6px !important;
  margin: 0;
  color: var(--ecp-text) !important;
  transition: background-color 180ms ease, color 180ms ease;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.ecp-mobile-search-btn:hover,
.ecp-mobile-search-btn:focus,
button.ecp-mobile-search-btn:hover,
button.ecp-mobile-search-btn:focus,
header.ecp-header-main button.ecp-mobile-search-btn:hover,
header.ecp-header-main button.ecp-mobile-search-btn:focus {
  background: rgba(42, 33, 24, 0.07) !important;
  background-color: rgba(42, 33, 24, 0.07) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ecp-text) !important;
}

/* ── Mobile Burger (hidden on desktop) — clean stroke, no circle ── */
.ecp-burger,
button.ecp-burger,
header.ecp-header-main button.ecp-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 6px !important;
  margin: 0;
  color: var(--ecp-text) !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.ecp-burger:hover,
.ecp-burger:focus,
button.ecp-burger:hover,
button.ecp-burger:focus {
  background: rgba(42, 33, 24, 0.07) !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--ecp-text) !important;
}

/* ── Cart icon + badge ── */
.ecp-cart-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px !important;
  color: var(--ecp-text) !important;
  text-decoration: none !important;
  line-height: 0;
}
.ecp-cart-link:hover {
  color: var(--ecp-navy) !important;
}
.ecp-cart-icon {
  display: block;
  flex-shrink: 0;
}
.ecp-cart-icon--bag-light {
  /* Elementor e-eicon-bag-light (filled path); navy badge stays on .ecp-cart-count-badge */
  width: 22px;
  height: 22px;
}
.ecp-cart-count-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ecp-navy);
  color: #fff;
  font-family: var(--ecp-font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ecp-cart-count-badge[hidden] {
  display: none !important;
}
.ecp-cart-count-num {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}


/* ══════════════════════════════════════════
   3. NAVIGATION BAR
   ══════════════════════════════════════════ */
nav.ecp-nav {
  background: var(--ecp-bg) !important;
  border-bottom: 1px solid var(--ecp-border) !important;
  position: relative;
  z-index: 100;
}

nav.ecp-nav .ecp-nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center;
  gap: 0;
}

/* Top-level nav items */
.ecp-nav-list > li {
  position: static;   /* mega dropdown positions relative to .ecp-nav */
}

.ecp-nav-list > li > a {
  display: block;
  padding: 14px 20px;
  font-family: var(--ecp-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ecp-text);
  text-decoration: none;
  position: relative;
  transition: color 0.15s;
}

/* Underline hover animation (Farmhouse-style) */
.ecp-nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--ecp-navy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.ecp-nav-list > li:hover > a::after,
.ecp-nav-list > li.is-open > a::after {
  transform: scaleX(1);
}

.ecp-nav-list > li > a:hover {
  color: var(--ecp-navy);
}


/* ══════════════════════════════════════════
   4. MEGA DROPDOWN (FULL-WIDTH)
   ══════════════════════════════════════════ */
.ecp-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--ecp-border);
  border-bottom: 1px solid var(--ecp-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 36px 48px 28px; /* bottom space so promo photos clear the edge (esp. About, no CTA) */
  display: none;
  z-index: 200;
}

/* Show on hover / JS is-open */
.ecp-nav-list > li:hover > .ecp-mega,
.ecp-nav-list > li.is-open > .ecp-mega {
  display: block;
  z-index: 210; /* above any sibling mega still finishing a delayed close */
}

/* Inner layout: 2–3 calm link columns + optional featured promo (Farmhouse, not 10-col sprawl) */
.ecp-mega-inner {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Column groups — left-aligned, do not stretch to fill the viewport */
.ecp-mega-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 56px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.ecp-mega-col {
  flex: 0 0 auto;
  width: 200px;
  max-width: 260px;
  min-width: 0;
}

/* Section labels (Pottery only usually) — same family/size family as links, just heavier */
.ecp-mega-col-title {
  font-family: var(--ecp-font-body);
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ecp-navy, #2a3a52);
  margin: 0 0 12px;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
  text-decoration: none;
}

.ecp-mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecp-mega-links li {
  margin-bottom: 8px;
}
/* Same weight/size language as primary nav — not thin muted microcopy */
.ecp-mega-links a {
  font-family: var(--ecp-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ecp-text, #2a2118);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.45;
}
.ecp-mega-links a:hover {
  color: var(--ecp-navy, #2a3a52);
}


/* Featured promo — landscape 4:3 test crop (Malco photos) */
.ecp-mega-featured {
  flex: 0 0 320px;
  width: 320px;
  display: block;
}
.ecp-mega-featured-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #f5f1eb;
}
/* Under-image labels off for now (redundant with Shop All CTA) */
.ecp-mega-featured-caption {
  display: none;
}


/* ── "Shop All [Category]" CTA ── */
.ecp-mega-cta {
  padding: 20px 0;
  margin-top: 24px;
  border-top: 1px solid var(--ecp-border);
  text-align: center;
}

.ecp-mega-cta .ecp-btn {
  min-width: 260px;
}


/* ══════════════════════════════════════════
   5. MOBILE OVERLAY + DRAWER
   ══════════════════════════════════════════ */
.ecp-mobile-overlay {
  position: fixed;
  /* Sit under announce+logo so header stays visible */
  top: var(--ecp-mobile-panel-top, 120px);
  left: 0 !important;
  right: 0 !important;
  bottom: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  background: rgba(0,0,0,0.35);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.ecp-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Full-width panel flush under header — white, no "Menu" chrome */
/* Scoped to header hamburger only — NOT filters #ecp-mobile-drawer */
#ecpMobileDrawer {
  position: fixed;
  top: var(--ecp-mobile-panel-top, 120px);
  left: 0 !important;
  right: 0 !important;
  bottom: auto;
  inset-inline: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  /* Safe-area via padding only — never shrink width */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  border-radius: 0 !important;
  box-sizing: border-box !important;
  max-height: calc(100dvh - var(--ecp-mobile-panel-top, 120px) + 2px);
  background: #fff;
  z-index: 9999;
  /* No translateY — avoids a hairline gap against the logo row */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: none;
  border-bottom: 1px solid var(--ecp-border, #ddd8d0);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
#ecpMobileDrawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Keep announce + logo above the panel so the 2px overlap is hidden cleanly */
html.ecp-mobile-menu-open .ecp-announce,
html.ecp-mobile-menu-open header.ecp-header-main {
  position: relative;
  z-index: 10001;
}

#ecpMobileDrawer .ecp-mobile-drawer-header {
  display: none;
}
#ecpMobileDrawer .ecp-mobile-drawer-title {
  display: none;
}
#ecpMobileDrawer .ecp-mobile-drawer-close.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ── Mobile Nav List ── */
.ecp-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  background: #fff;
}

/* Top-level items */
.ecp-mobile-nav > li {
  border-bottom: 1px solid var(--ecp-border);
}

.ecp-mobile-nav > li > a,
.ecp-mobile-nav > li > .ecp-mobile-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-family: var(--ecp-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ecp-text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

/* Chevron for expandable items */
.ecp-mobile-parent .ecp-mobile-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ecp-mobile-nav > li.is-open > .ecp-mobile-parent .ecp-mobile-chevron {
  transform: rotate(180deg);
}

/* Sub-menu (accordion) — text only, no promo images */
.ecp-mobile-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fff;
}
.ecp-mobile-nav > li.is-open > .ecp-mobile-sub {
  max-height: 2400px; /* Pottery has two sections + many links */
  background: #fff;
}

/* Nested section lists — always open when parent top (Pottery) is open */
.ecp-mobile-sub--nested,
.ecp-mobile-section-wrap > .ecp-mobile-sub {
  max-height: none !important;
  overflow: visible !important;
  background: transparent;
  padding: 0 0 8px;
}

.ecp-mobile-section-wrap {
  border-bottom: none !important;
  list-style: none;
  padding: 0;
}

/* Desktop-style navy section titles — never button/pill chrome */
.ecp-mobile-section,
#ecpMobileDrawer .ecp-mobile-section {
  display: block;
  padding: 14px 20px 6px;
  margin: 0;
  font-family: var(--ecp-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ecp-navy, #2a3a52) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto;
  line-height: 1.3;
}

/* Kill any leftover section-toggle button styles if cached HTML remains */
.ecp-mobile-section-toggle {
  display: block !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}
.ecp-mobile-section-toggle .ecp-mobile-chevron {
  display: none !important;
}

.ecp-mobile-dead {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ecp-text-muted, #7a6f64);
}

.ecp-mobile-sub li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--ecp-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ecp-text, #2a2118);
  text-decoration: none;
  transition: color 0.15s;
}
.ecp-mobile-sub li a:hover {
  color: var(--ecp-navy, #2a3a52);
}

/* Links under Stoneware by Type / Collections */
.ecp-mobile-sub--nested li a {
  padding-left: 28px;
}

/* Mobile utility strip — East Fork / Farmhouse style under main nav */
.ecp-mobile-utils {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 4px 0 28px;
  border-top: none;
}
/* No separator line between primary nav (About) and Account/Wishlist/Outlet */
.ecp-mobile-nav > li:last-child {
  border-bottom: none;
}
#ecpMobileDrawer a.ecp-mobile-util,
.ecp-mobile-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-family: var(--ecp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ecp-text, #2a2118) !important;
  text-decoration: none !important;
  letter-spacing: 0.2px;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
#ecpMobileDrawer a.ecp-mobile-util:hover,
#ecpMobileDrawer a.ecp-mobile-util:focus,
.ecp-mobile-util:hover,
.ecp-mobile-util:focus {
  color: var(--ecp-text, #2a2118) !important;
  text-decoration: none !important;
}
.ecp-mobile-util__label {
  flex: 1 1 auto;
  text-decoration: none !important;
  border: none !important;
  color: inherit;
}
.ecp-mobile-util__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ecp-text, #2a2118);
}
.ecp-mobile-util__icon svg {
  display: block;
}

/* Mobile "Shop All" CTA button at bottom of accordion section */
.ecp-mobile-sub-cta {
  padding: 12px 20px 16px 20px;
}
.ecp-mobile-sub-cta .ecp-btn,
.ecp-mobile-sub-cta a.ecp-btn {
  width: 100%;
  font-size: 13px !important;
  padding: 12px 20px !important;
  /* color/bg come from global .ecp-btn — do not reintroduce link color here */
}


/* ══════════════════════════════════════════
   6. RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet / small desktop */
@media (max-width: 1024px) {
  .ecp-header-main {
    padding: 14px 24px;
  }
  .ecp-mega {
    padding: 28px 32px 0;
  }
  .ecp-mega-featured {
    flex: 0 0 280px;
    width: 280px;
  }
  .ecp-nav-list > li > a {
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* Mobile breakpoint — Farmhouse 3-col: [burger] [logo] [search][cart] */
@media (max-width: 768px) {
  /* Show burger + mobile search, hide desktop nav */
  .ecp-burger,
  button.ecp-burger,
  header.ecp-header-main button.ecp-burger {
    display: flex !important;
  }
  .ecp-mobile-search-btn,
  button.ecp-mobile-search-btn,
  header.ecp-header-main button.ecp-mobile-search-btn {
    display: flex !important;
  }
  .ecp-nav {
    display: none;
  }
  /* Hide desktop expandable search on mobile */
  .ecp-search-wrap {
    display: none !important;
  }

  /* Re-layout header band */
  header.ecp-header-main {
    padding: 12px 16px !important;
    min-height: 64px !important;
  }

  /* Equal side columns so absolute logo stays visually centered */
  header.ecp-header-main .ecp-header-left,
  header.ecp-header-main .ecp-header-right {
    flex: 1 1 0 !important;
    min-width: 0;
    gap: 4px !important;
  }
  header.ecp-header-main .ecp-header-left {
    justify-content: flex-start !important;
  }
  header.ecp-header-main .ecp-header-right {
    justify-content: flex-end !important;
  }

  /* Logo: absolutely centered in header band (Farmhouse) */
  header.ecp-header-main .ecp-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1;
  }
  header.ecp-header-main .ecp-logo img.ecp-logo-img {
    width: auto !important;
    max-width: 220px !important;
    height: 48px !important;
  }

  /* Hide Account / Wishlist on mobile — only search + cart icons on right */
  header.ecp-header-main .ecp-header-right .ecp-account-link,
  header.ecp-header-main .ecp-header-right .ecp-wishlist-link,
  header.ecp-header-main .ecp-header-right .ecp-util-link:not(.ecp-cart-link) {
    display: none !important;
  }

  /* Announcement bar — keep safe-area top pad, tighten sides */
  div.ecp-announce {
    font-size: 13px;
    padding: max(5px, env(safe-area-inset-top, 0px)) 12px 5px !important;
    gap: 6px;
  }
}

/* Very small phones — keep header tweaks; NEVER shrink drawer (was width:280px bug) */
@media (max-width: 420px) {
  .ecp-header-main {
    padding: 10px 12px;
  }
  .ecp-header-right {
    gap: 10px;
  }
  .ecp-search-wrap.is-open .ecp-search-form {
    max-width: 120px;
  }
  .ecp-search-field {
    width: 110px;
  }
  /* Force full-bleed hamburger panel on narrow phones (iPhone CSS width ≤420) */
  #ecpMobileDrawer,
  #ecpMobileDrawer.is-open {
    left: 0 !important;
    right: 0 !important;
    inset-inline: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  .ecp-mobile-overlay,
  .ecp-mobile-overlay.is-open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}


/* ══════════════════════════════════════════
   7. STICKY HEADER (2026-10-08, v1.7.0) — East Fork style
   div#ecpSiteHeader wraps announce + logo band + nav and is position:sticky for the whole page.
   ecp-header.js (§7) adds .is-condensed when the user scrolls DOWN past ~bar+60px and removes it on any
   ~10px scroll UP (1.8.0: direction based; always shown near the top). Condensed = the wrapper slides up
   by the bar height (+ a small desktop "compact" trim) using transform only, so nothing in the page
   flow moves (no CLS) and the sticky box keeps its size.
   Vars (JS sets the px values on <html>; fallbacks keep things sane before/without JS):
     --ecp-announce-h          measured announcement height
     --ecp-header-h            full wrapper height + admin-bar offset (expanded header bottom)
     --ecp-header-condensed-h  header bottom when condensed (used for anchors / PDP gallery offset)
     --ecp-compact-shift       extra px trimmed off the logo band when condensed (desktop only)
   ══════════════════════════════════════════ */
:root {
  --ecp-compact-shift: 14px;
  --ecp-compact-logo-scale: 0.86;
  --ecp-sticky-top: 0px;
}
@media (max-width: 1024px) {
  :root { --ecp-compact-shift: 10px; --ecp-compact-logo-scale: 0.9; }
}
@media (max-width: 768px) {
  /* Phones: the bar is already compact (64px) — only the announcement collapses. */
  :root { --ecp-compact-shift: 0px; --ecp-compact-logo-scale: 1; }
}
/* WP admin bar (logged-in): fixed 32px / 46px; at <=600px it scrolls away with the page. */
html body.admin-bar { --ecp-sticky-top: 32px; }
@media (max-width: 782px) { html body.admin-bar { --ecp-sticky-top: 46px; } }
@media (max-width: 600px) { html body.admin-bar { --ecp-sticky-top: 0px; } }

div.ecp-site-header {
  --ecp-sh-hidden: 0px;
  position: -webkit-sticky;
  position: sticky !important;
  top: var(--ecp-sticky-top) !important;
  z-index: 1000;
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--ecp-bg);
  transform: translate3d(0, calc(-1 * var(--ecp-sh-hidden)), 0);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0);
}
div.ecp-site-header.is-condensed {
  --ecp-sh-hidden: calc(var(--ecp-announce-h, 0px) + var(--ecp-compact-shift));
}
/* Soft shadow once content scrolls under the header */
html.ecp-header-scrolled div.ecp-site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
/* Transitions only after the first paint (JS adds .ecp-sh-ready) so a reload mid-page doesn't animate. */
div.ecp-site-header.ecp-sh-ready {
  transition: transform 0.28s cubic-bezier(.2, .7, .2, 1), box-shadow 0.2s ease;
  will-change: transform;
}

/* Desktop compact state: logo eases down slightly and the side clusters re-centre in the
   trimmed band. Transform only (no layout change). */
div.ecp-site-header.ecp-sh-ready header.ecp-header-main .ecp-logo img.ecp-logo-img,
div.ecp-site-header.ecp-sh-ready header.ecp-header-main .ecp-header-left,
div.ecp-site-header.ecp-sh-ready header.ecp-header-main .ecp-header-right {
  transition: transform 0.28s cubic-bezier(.2, .7, .2, 1);
}
div.ecp-site-header.is-condensed header.ecp-header-main .ecp-logo img.ecp-logo-img {
  transform: translateY(calc(var(--ecp-compact-shift) / 2)) scale(var(--ecp-compact-logo-scale));
  transform-origin: 50% 50%;
}
div.ecp-site-header.is-condensed header.ecp-header-main .ecp-header-left,
div.ecp-site-header.is-condensed header.ecp-header-main .ecp-header-right {
  transform: translateY(calc(var(--ecp-compact-shift) / 2));
}
/* The compact transforms above make .ecp-header-left a stacking context, which would trap the search
   dropdown (z-index 500) under the nav row (z-index 100). Stack the whole logo row above the nav instead
   (megas open downward from the nav, so they never meet the logo row). */
div.ecp-site-header header.ecp-header-main {
  z-index: 110;
}
/* Hidden announcement: not clickable/focus-trapping while off-screen (JS restores the bar on focus). */
div.ecp-site-header.is-condensed div.ecp-announce {
  pointer-events: none;
}

/* Mega menu: opens under the sticky nav; if taller than the space left, it scrolls inside. */
nav.ecp-nav .ecp-mega {
  max-height: calc(100vh - var(--ecp-header-h, 180px) + var(--ecp-sh-hidden) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Desktop search dropdown: never taller than the viewport below the header. */
header.ecp-header-main .ecp-search-results {
  max-height: min(460px, calc(100vh - var(--ecp-header-h, 180px) + var(--ecp-sh-hidden) + 60px));
}

/* Mobile hamburger panel sits flush under the header: lift the whole sticky wrapper above the
   panel (9999) while it is open (the wrapper is its own stacking context). */
html.ecp-mobile-menu-open div.ecp-site-header {
  z-index: 10001;
}

/* Scroll locks vs sticky: several overlays lock the page with body{overflow:hidden} (hamburger, mobile
   search, side cart, quick-add sheet, filter sheet, PDP lightbox). When <html> has overflow-x:clip (archive /
   card pages), that body value no longer propagates to the viewport, so <body> becomes its own scroll container
   and the sticky header detaches and scrolls away behind the overlay. Keep <body> a plain box and put the
   lock on <html> instead (which locks the viewport on every page). */
html.ecp-mobile-menu-open body,
html body.ecp-menu-cart-open,
html body.ecp-qa-sheet-open,
html body.ecp-sheet-open,
html body[style*="overflow: hidden"],
html:has(#ecpMobileSearchPanel.is-open) body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
html.ecp-mobile-menu-open,
html.ecp-menu-cart-open,
html:has(body.ecp-qa-sheet-open),
html:has(body.ecp-sheet-open),
html:has(body[style*="overflow: hidden"]),
html:has(#ecpMobileSearchPanel.is-open) {
  overflow: hidden !important;
}

/* Anchor links / scrollIntoView land below the condensed header. scroll-margin on targets, NOT
   scroll-padding on <html>: with scroll-padding, Chrome treats focusable things inside the sticky header
   (search field, nav links) as "obscured" and scrolls the page up when they get focus. */
html :where([id]) {
  scroll-margin-top: calc(var(--ecp-header-h, 170px) + 12px);
}
@media (max-width: 768px) {
  html :where([id]) { scroll-margin-top: calc(var(--ecp-header-h, 102px) + 12px); }
}
#ecpSiteHeader,
#ecpSiteHeader [id],
#ecpMobileDrawer [id],
#ecpMobileSearchPanel [id] {
  scroll-margin-top: 0 !important;
}

/* PDP gallery column (sticky in ecp-pdp.css at top:20px) — keep it below the sticky header. Uses the
   FULL header height because the bar can slide back in mid-page on scroll-up (1.8.0). */
html body.ecp-pdp-va-active .ecp-pdp-gallery-col {
  top: calc(var(--ecp-header-h, 170px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  div.ecp-site-header.ecp-sh-ready,
  div.ecp-site-header.ecp-sh-ready header.ecp-header-main .ecp-logo img.ecp-logo-img,
  div.ecp-site-header.ecp-sh-ready header.ecp-header-main .ecp-header-left,
  div.ecp-site-header.ecp-sh-ready header.ecp-header-main .ecp-header-right {
    transition: none;
  }
}

/* Print: no sticky chrome. */
@media print {
  div.ecp-site-header { position: static !important; transform: none !important; box-shadow: none !important; }
}


/* Never show mega promo imagery inside the hamburger drawer */
#ecpMobileDrawer .ecp-mega,
#ecpMobileDrawer .ecp-mega-featured,
#ecpMobileDrawer img.ecp-mega-featured-img {
  display: none !important;
}


/* Extra breathing room under featured when no bottom CTA (About) */
.ecp-mega--about .ecp-mega-inner,
.ecp-mega:not(:has(.ecp-mega-cta)) .ecp-mega-inner {
  padding-bottom: 4px;
}

/* 1.8.2: cart line glaze ("in Baltic") under the product name — slide-out bag + cart page (inc/ecp-cart-line-name.php).
   Natural height, no reserved space; class-based so it holds even if inline styles are sanitized. */
.ecp-line-glaze {
  display: block !important;
  margin: 2px 0 0 !important;
  min-height: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ecp-text-mid, #555);
}
