/* eLeatherHub SEO rebuild — header / footer chrome (design handoff tokens) */
:root {
  --elh-page: #F3EDE2;
  --elh-raised: #EFE6D6;
  --elh-surface: #FBF8F2;
  --elh-ink: #1E1913;
  --elh-ink-muted: #3A3128;
  --elh-text-subtle: #6E6257;
  --elh-text-faint: #A89A86;
  --elh-accent: #8A2E1E;
  --elh-accent-hover: #6E2417;
  --elh-tan: #7A4A2A;
  --elh-gold: #E4B77A;
  --elh-border: #D8CBB8;
  --elh-border-light: #E2D7C6;
  --elh-border-faint: #EAE0CF;
  --elh-control: #B8A78F;
  --elh-hover: #E9DFCE;
  --elh-utility: #7A6A58;
  --elh-font-display: "Newsreader", Georgia, serif;
  --elh-font-ui: "IBM Plex Sans", system-ui, sans-serif;
  --elh-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --elh-max: 1280px;
}

html { background: var(--elh-page); }
body {
  background: var(--elh-page);
  color: var(--elh-ink);
  font-family: var(--elh-font-ui);
  -webkit-font-smoothing: antialiased;
}
body.elh-nav-open { overflow: hidden; }

/* Kill old Kalles transparent-header offset once the new sticky chrome is in place */
body .t4s-section-header,
body #shopify-section-header-inline { margin-bottom: 0 !important; margin-top: 0 !important; }

.elh-skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.elh-skip:focus {
  left: 16px; top: 16px; width: auto; height: auto; z-index: 100;
  padding: 10px 14px; background: var(--elh-ink); color: var(--elh-page);
}

/* —— Row 1: utility bar —— */
.elh-util { background: var(--elh-tan); color: #F3E6D3; font-size: 12.5px; letter-spacing: .02em; }
.elh-util__inner {
  max-width: var(--elh-max); margin: 0 auto; padding: 7px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.elh-util__promos { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.elh-util__promos span + span::before { content: "·"; margin-right: 26px; margin-left: -13px; color: var(--elh-gold); opacity: .8; }
.elh-util__promos span:first-child::before { content: none; }
.elh-util__quote { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.elh-util__quote:hover { color: #fff; text-decoration: underline; }

/* —— Header (rows 2 + 3), sticky —— */
.elh-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--elh-page);
  box-shadow: 0 1px 0 var(--elh-border);
}
.elh-header__bar {
  max-width: var(--elh-max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.elh-wordmark {
  font-family: var(--elh-font-display); font-size: 28px; font-weight: 600;
  letter-spacing: -.02em; color: var(--elh-ink); text-decoration: none; white-space: nowrap;
}
.elh-wordmark:hover { color: var(--elh-ink); text-decoration: none; }

.elh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.elh-search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; display: flex; }
.elh-search__input {
  width: 100%; height: 44px; padding: 0 46px 0 16px; border-radius: 6px;
  border: 1px solid var(--elh-border); background: var(--elh-surface); color: var(--elh-ink);
  font: inherit; font-size: 14.5px; outline: none;
}
.elh-search__input::placeholder { color: var(--elh-text-subtle); }
.elh-search__input:focus { border-color: var(--elh-tan); box-shadow: 0 0 0 3px rgba(122, 74, 42, .15); }
.elh-search__btn {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 4px;
  background: transparent; color: var(--elh-ink); cursor: pointer; display: grid; place-items: center;
}
.elh-search__btn:hover { background: var(--elh-hover); }

.elh-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.elh-icon {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 58px; padding: 4px 6px; border-radius: 4px;
  color: var(--elh-ink); text-decoration: none; font-size: 12px;
}
.elh-icon:hover { background: var(--elh-hover); color: var(--elh-ink); text-decoration: none; }
.elh-icon__label { line-height: 1; }
.elh-cart__count {
  position: absolute; top: -2px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--elh-accent); color: #fff;
  font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center;
}
.elh-cart__count:empty,
.elh-cart__count[data-cart-count="0"] { display: none; }

.elh-burger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--elh-ink); cursor: pointer;
}
.elh-burger svg { display: block; }

/* —— Row 3: menu bar —— */
.elh-navbar { background: var(--elh-ink); }
.elh-navbar__inner {
  max-width: var(--elh-max); margin: 0 auto; padding: 6px 24px;
  display: flex; align-items: center; gap: 12px;
}
.elh-nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; align-items: center; justify-content: center; }
.elh-nav__btn, .elh-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 0; border-radius: 4px;
  background: transparent; color: var(--elh-page);
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.elh-nav__btn:hover, .elh-nav__link:hover { background: rgba(243, 237, 226, .1); color: #fff; text-decoration: none; }
.elh-nav__btn.is-open { background: var(--elh-page); color: var(--elh-ink); }
.elh-nav__caret { font-size: 10px; opacity: .7; }
.elh-nav__pill {
  padding: 9px 20px; border-radius: 999px; background: var(--elh-accent); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.elh-nav__pill:hover { background: var(--elh-accent-hover); color: #fff; text-decoration: none; }

/* Buttons still used in the mobile drawer */
.elh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 4px; font-size: 13.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
}
.elh-btn:hover { text-decoration: none; }
.elh-btn--ghost { border-color: var(--elh-control); color: var(--elh-ink); background: transparent; }
.elh-btn--ghost:hover { background: var(--elh-hover); color: var(--elh-ink); }
.elh-btn--accent { background: var(--elh-accent); color: var(--elh-page); border-color: var(--elh-accent); }
.elh-btn--accent:hover { background: var(--elh-accent-hover); color: #fff; }

/* Mega panels overlay the page (absolute under the sticky header) instead of pushing it down */
[data-elh-mega-wrap] { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; }
[data-elh-mega-wrap] .elh-mega.is-open { box-shadow: 0 14px 28px rgba(30, 25, 19, .16); }

/* Live search dropdown */
.elh-search__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--elh-surface); border: 1px solid var(--elh-border); border-radius: 6px;
  box-shadow: 0 14px 28px rgba(30, 25, 19, .16); overflow: hidden;
}
.elh-search__panel[hidden] { display: none; }
.elh-search__list { list-style: none; margin: 0; padding: 6px 0; max-height: min(60vh, 440px); overflow-y: auto; }
.elh-search__list:empty { display: none; }
.elh-search__item a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 14px; color: var(--elh-ink); text-decoration: none; font-size: 14px;
}
.elh-search__item a:hover, .elh-search__item.is-active a { background: var(--elh-hover); color: var(--elh-ink); text-decoration: none; }
.elh-search__thumb { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--elh-raised); display: block; }
.elh-search__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elh-search__name mark { background: none; color: var(--elh-accent); font-weight: 600; }
.elh-search__price { font-weight: 600; white-space: nowrap; }
.elh-search__price del { font-weight: 400; color: var(--elh-text-subtle); margin-right: 6px; }
.elh-search__msg { margin: 0; padding: 14px; font-size: 14px; color: var(--elh-text-subtle); }
.elh-search__msg[hidden] { display: none; }
.elh-search__all {
  display: block; padding: 10px 14px; border-top: 1px solid var(--elh-border-light);
  font-size: 13.5px; font-weight: 600; color: var(--elh-accent); text-decoration: none;
}
.elh-search__all:hover { background: var(--elh-hover); text-decoration: none; color: var(--elh-accent); }

/* Mega panel */
.elh-mega {
  display: none; border-top: 1px solid var(--elh-border);
  background: var(--elh-surface);
  box-shadow: 0 18px 40px -20px rgba(30, 25, 19, .35);
}
.elh-mega.is-open { display: block; }
.elh-mega__inner {
  max-width: var(--elh-max); margin: 0 auto; padding: 22px 24px 26px;
  /* Same grid in every panel: 3 equal link columns + a fixed promo column on the right */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
  gap: 24px 36px; align-items: start;
}
.elh-mega__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* A single long list (Leather For, Guides) flows over two columns */
.elh-mega__col--wide { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; row-gap: 6px; align-content: start; }
.elh-mega__col--wide > .elh-mega__h { grid-column: 1 / -1; }
.elh-mega__h {
  font-family: var(--elh-font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--elh-tan); margin-bottom: 4px;
}
.elh-mega__link {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 5px 0; font-size: 14px; color: var(--elh-ink); text-decoration: none;
  border-bottom: 1px dashed var(--elh-border-faint);
}
.elh-mega__link:hover { color: var(--elh-accent); text-decoration: none; }
.elh-mega__more {
  margin-top: 6px; font-size: 13px; color: var(--elh-accent); text-decoration: none;
}
.elh-mega__more:hover { text-decoration: underline; }
.elh-mega__promo {
  grid-column: 4; grid-row: 1 / span 2; width: 100%; min-height: 170px;
  padding: 18px 20px; background: var(--elh-ink); color: var(--elh-page);
  border-radius: 6px; display: flex; flex-direction: column; gap: 8px; align-self: start;
}
.elh-mega__promo a { margin-top: auto; }
.elh-mega__promo-tag {
  font-family: var(--elh-font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--elh-gold);
}
.elh-mega__promo-line {
  font-family: var(--elh-font-display); font-size: 19px; line-height: 1.2;
}
.elh-mega__promo a { font-size: 13px; color: var(--elh-page); text-decoration: underline; }
.elh-mega__promo a:hover { color: #fff; }

/* Mobile drawer */
.elh-drawer-backdrop {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 25, 19, .45);
}
.elh-drawer-backdrop.is-open { display: block; }
.elh-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: min(100%, 380px); background: var(--elh-surface);
  transform: translateX(-105%); transition: transform .22s ease;
  display: flex; flex-direction: column; overflow: auto;
}
.elh-drawer.is-open { transform: translateX(0); }
.elh-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--elh-border);
}
.elh-drawer__close {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  color: var(--elh-ink); cursor: pointer; padding: 4px 8px;
}
.elh-drawer__ctas { display: flex; gap: 8px; padding: 14px 18px; flex-wrap: wrap; }
.elh-acc { border-bottom: 1px solid var(--elh-border-light); }
.elh-acc__sum {
  list-style: none; cursor: pointer; padding: 14px 18px;
  font-size: 15px; font-weight: 500; display: flex; justify-content: space-between;
}
.elh-acc__sum::-webkit-details-marker { display: none; }
.elh-acc__body { padding: 0 18px 16px; }
.elh-acc__h {
  font-family: var(--elh-font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--elh-tan); margin: 10px 0 6px;
}
.elh-acc__body a {
  display: block; padding: 7px 0; font-size: 14px; color: var(--elh-ink);
  text-decoration: none; border-bottom: 1px dashed var(--elh-border-faint);
}
.elh-acc__body a:hover { color: var(--elh-accent); }

@media (max-width: 1100px) {
  .elh-util__hide-md { display: none; }
  .elh-mega__inner { grid-template-columns: repeat(3, minmax(0, 1fr)) 240px; gap: 20px 24px; }
  .elh-nav__btn, .elh-nav__link { padding: 9px 10px; font-size: 14px; }
}
@media (max-width: 900px) {
  .elh-navbar { display: none; }
  .elh-burger { display: inline-flex; }
  .elh-header__bar { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
  .elh-wordmark { font-size: 24px; }
  .elh-search { order: 3; flex-basis: 100%; max-width: none; }
  .elh-search__input { height: 40px; }
  .elh-icon { min-width: 0; padding: 6px; }
  .elh-icon__label { display: none; }
  .elh-cart__count { right: -2px; }
}
@media (max-width: 600px) {
  .elh-util__hide-sm { display: none; }
  .elh-util__inner { padding: 6px 16px; }
  .elh-icon--wishlist { display: none; }
}

/* —— Footer —— */
.elh-footer {
  margin-top: auto; background: var(--elh-ink); color: var(--elh-border);
}
.elh-footer__grid {
  max-width: var(--elh-max); margin: 0 auto; width: 100%;
  padding: 44px 24px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px; font-size: 13.5px; line-height: 1.7;
}
.elh-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.elh-footer__brand-name {
  font-family: var(--elh-font-display); font-size: 24px; font-weight: 600; color: var(--elh-page);
}
.elh-footer__brand p {
  margin: 0; color: var(--elh-text-faint); font-size: 13px; line-height: 1.5;
}
.elh-footer__col { display: flex; flex-direction: column; gap: 4px; }
.elh-footer__h {
  font-family: var(--elh-font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--elh-gold); margin-bottom: 4px;
}
.elh-footer__col a {
  color: var(--elh-border); text-decoration: none;
}
.elh-footer__col a:hover { color: #fff; text-decoration: underline; }
.elh-footer__legal {
  border-top: 1px solid #3A3128; padding: 14px 24px;
  text-align: center; font-size: 12px; color: var(--elh-utility);
}
