/*
 * Emna Hussein — component library.
 * Header, footer, overlays, hero/video sections, category grid,
 * product card/gallery/buy-box, filters, accordion, carousel, editorial blocks.
 */

/* =========================================================
   Header
   ========================================================= */

.eh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  transition: background var(--duration-base) ease, border-color var(--duration-base) ease;
  border-bottom: 1px solid transparent;
}
.eh-header.is-scrolled,
.eh-header:not(.eh-header--transparent) {
  background: var(--color-cream);
  border-bottom-color: var(--color-stone);
}
.eh-header--transparent .eh-header__bar { color: var(--color-cream); }
.eh-header--transparent.is-scrolled .eh-header__bar { color: var(--color-ink); }

.eh-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  color: var(--color-ink);
}

.eh-header__side { display: flex; align-items: center; flex: 1 1 0%; min-width: 0; gap: var(--space-6); }
.eh-header__side--left { justify-content: flex-start; }
.eh-header__side--right { justify-content: flex-end; }

.eh-header__logo { display: flex; flex: 0 0 auto; }
.eh-header__logo img { height: 46px; width: auto; }

.eh-header__nav {
  display: none;
}
@media (min-width: 1240px) {
  .eh-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }
}

.eh-header__nav-item { position: relative; }
.eh-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-label);
  font-size: var(--text-button);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eh-header__nav-link.is-active,
.eh-header__nav-link:hover { color: var(--color-gold-deep); }

.eh-header__nav-caret {
  opacity: 0.6;
  transition: transform var(--duration-base) ease, opacity var(--duration-base) ease;
}
.eh-header__nav-item:hover .eh-header__nav-caret,
.eh-header__nav-item:focus-within .eh-header__nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.eh-header__dropdown {
  position: absolute;
  top: 100%;
  min-width: 480px;
  background: var(--color-paper);
  color: var(--color-ink);
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 28px 56px rgba(20, 17, 13, 0.18);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--duration-base) ease, transform var(--duration-base) ease, visibility var(--duration-base);
}
.eh-header__side--left .eh-header__dropdown { left: 0; }
.eh-header__side--right .eh-header__dropdown { right: 0; }
.eh-header__nav-item:hover .eh-header__dropdown,
.eh-header__nav-item:focus-within .eh-header__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.eh-header__dropdown-links { display: flex; flex-direction: column; }
.eh-header__dropdown-link {
  display: block;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-sand);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink-soft);
  transition: color var(--duration-fast) ease, padding-left var(--duration-fast) ease;
}
.eh-header__dropdown-link:first-child { padding-top: 0; }
.eh-header__dropdown-link:last-of-type { border-bottom: none; }
.eh-header__dropdown-link:hover { color: var(--color-gold-deep); padding-left: var(--space-2); }
.eh-header__dropdown-link--all {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-sand);
  border-bottom: none;
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}
.eh-header__dropdown-link--all:hover { padding-left: var(--space-2); }

.eh-header__dropdown-feature { position: relative; display: block; }
.eh-header__dropdown-image { position: relative; overflow: hidden; }
.eh-header__dropdown-image img { transition: transform var(--duration-slower) ease-out; }
.eh-header__dropdown-feature:hover .eh-header__dropdown-image img { transform: scale(1.06); }
.eh-header__dropdown-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 13, 0.65) 0%, rgba(20, 17, 13, 0) 55%);
}
.eh-header__dropdown-feature-label {
  position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3);
  color: var(--color-cream);
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eh-header__icons { display: flex; align-items: center; gap: var(--space-4); }
.eh-header__icon-btn { display: inline-flex; width: 20px; height: 20px; }
.eh-header__icon-btn svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }

.eh-header__hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px; height: 16px;
}
.eh-header__hamburger span { display: block; height: 1px; width: 100%; background: currentColor; }
@media (min-width: 1240px) { .eh-header__hamburger { display: none; } }

/* =========================================================
   Overlays (mobile menu / search / cart drawer)
   ========================================================= */

.eh-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.eh-overlay.is-open { visibility: visible; pointer-events: auto; }

.eh-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 17, 13, 0.4);
  opacity: 0;
  transition: opacity var(--duration-base) ease;
}
.eh-overlay.is-open .eh-overlay__backdrop { opacity: 1; }

.eh-overlay__panel {
  position: absolute; top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.eh-overlay.is-open .eh-overlay__panel { transform: translateX(0); }

.eh-overlay--search .eh-overlay__panel {
  background: var(--color-cream);
  color: var(--color-ink);
  width: 100%;
  height: auto;
  top: 0; left: 0; right: 0;
  transform: translateY(-100%);
}
.eh-overlay--search.is-open .eh-overlay__panel { transform: translateY(0); }

.eh-overlay__close { align-self: flex-end; width: 22px; height: 22px; }
.eh-overlay__close svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }

.eh-overlay__nav { display: flex; flex-direction: column; }
.eh-overlay__nav-link {
  display: block;
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(247, 242, 233, 0.15);
  font-family: var(--font-label);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eh-overlay__socials { display: flex; gap: var(--space-4); }
.eh-overlay__socials svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.eh-overlay__search-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-stone);
  padding-block: var(--space-3);
}
.eh-overlay__search-input:focus { outline: none; border-color: var(--color-gold); }

.eh-cart__empty { font-size: var(--text-body); color: var(--color-stone); }
.eh-cart__subtotal { display: flex; justify-content: space-between; border-top: 1px solid rgba(247, 242, 233, 0.2); padding-top: var(--space-4); }

/* =========================================================
   Hero / video sections
   ========================================================= */

.eh-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-cream);
}
.eh-hero__media,
.eh-hero__media img,
.eh-hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.eh-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,17,13,0) 55%, rgba(20,17,13,0.45) 100%);
}
.eh-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-7) var(--container-gutter) var(--space-8);
  max-width: 640px;
}
.eh-hero__content .eh-display { color: var(--color-cream); }
.eh-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.eh-video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-cream);
}
.eh-video-section__media,
.eh-video-section__media video,
.eh-video-section__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Radial, not flat: darkest where the centered quote sits, lighter at the edges so the photo still reads. */
.eh-video-section__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 58% at center, rgba(20,17,13,0.62) 0%, rgba(20,17,13,0.4) 55%, rgba(20,17,13,0.18) 100%); }
.eh-video-section__content { position: relative; z-index: 1; max-width: 640px; padding-inline: var(--container-gutter); }
.eh-video-section__content .eh-quote { color: var(--color-cream); margin-bottom: var(--space-4); }

/* =========================================================
   Category tile grid
   ========================================================= */

.eh-category-grid {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 720px) {
  .eh-category-grid { grid-template-columns: repeat(3, 1fr); }
}

.eh-category-tile { position: relative; display: block; }
.eh-category-tile__frame { overflow: hidden; }
.eh-category-tile__frame img {
  transition: transform var(--duration-slower) ease-out;
}
.eh-category-tile:hover .eh-category-tile__frame img { transform: scale(1.06); }
.eh-category-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 13, 0.82) 0%, rgba(20, 17, 13, 0.32) 32%, rgba(20, 17, 13, 0) 58%);
  pointer-events: none;
}
.eh-category-tile__index {
  position: absolute; top: var(--space-5); left: var(--space-5);
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.14em;
  color: var(--color-cream);
  opacity: 0.75;
}
.eh-category-tile__label {
  position: absolute; left: var(--space-5); right: var(--space-5); bottom: var(--space-5);
  color: var(--color-cream);
}
.eh-category-tile__label-title {
  font-family: var(--font-label);
  font-size: var(--text-button);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eh-category-tile__label-desc {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  color: var(--color-sand);
  margin-top: var(--space-1);
}
.eh-category-tile__label-rule {
  display: block;
  width: 100%; height: 1px;
  background: var(--color-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-base) ease-out;
  margin-top: var(--space-3);
}
.eh-category-tile:hover .eh-category-tile__label-rule { transform: scaleX(1); }
.eh-category-tile__label-shop {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  color: var(--color-gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-base) ease, transform var(--duration-base) ease;
  margin-top: var(--space-2);
}
.eh-category-tile__label-shop svg { transition: transform var(--duration-base) ease-out; }
.eh-category-tile:hover .eh-category-tile__label-shop { opacity: 1; transform: translateY(0); }
.eh-category-tile:hover .eh-category-tile__label-shop svg { transform: translateX(4px); }

/* =========================================================
   Split banner
   ========================================================= */

.eh-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .eh-split { grid-template-columns: 1fr 1fr; } }
.eh-split__col {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-cream);
  overflow: hidden;
}
.eh-split__col img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slower) ease-out;
}
.eh-split__col:hover img { transform: scale(1.04); }
.eh-split__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,13,0.68) 0%, rgba(20,17,13,0.55) 28%, rgba(20,17,13,0) 62%); }
.eh-split__content { position: relative; z-index: 1; padding: var(--space-6); }

/* =========================================================
   Editorial alternating block (About)
   ========================================================= */

.eh-editorial__row {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .eh-editorial__row { grid-template-columns: 1fr 1fr; align-items: center; }
  .eh-editorial__row--reverse { direction: rtl; }
  .eh-editorial__row--reverse > * { direction: ltr; }
}
.eh-editorial__media { overflow: hidden; }
/* About page: .eh-frame's default object-fit:cover crops to fill a fixed-height
   box — right for art-directed full-bleed shots elsewhere, but About's photos
   should always show in full next to their paired text, whatever their shape. */
.about .eh-editorial__media img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.eh-editorial__content {
  padding: var(--space-7) var(--container-gutter);
}
.eh-editorial__content > * + * { margin-top: var(--space-4); }
.eh-editorial__list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.eh-editorial__list li { padding-left: var(--space-5); position: relative; }
.eh-editorial__list li::before { content: '—'; position: absolute; left: 0; color: var(--color-gold-deep); }

.eh-pullquote { text-align: center; padding-block: var(--space-7); }
.eh-pullquote__attribution {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.eh-dna {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) { .eh-dna { grid-template-columns: repeat(3, 1fr); } }
.eh-dna__col > * + * { margin-top: var(--space-3); }

/* =========================================================
   Section heading
   ========================================================= */

.eh-section-heading { max-width: 42rem; }
.eh-section-heading > * + * { margin-top: var(--space-3); }
.eh-section-heading--center { margin-inline: auto; text-align: center; }

/* =========================================================
   Toolbar / filters
   ========================================================= */

.eh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-stone);
  border-bottom: 1px solid var(--color-stone);
}
.eh-toolbar__count { font-size: var(--text-caption); color: var(--color-text-muted); }
.eh-toolbar__actions { display: flex; align-items: center; gap: var(--space-5); }
.eh-toolbar__select {
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-stone);
  padding: var(--space-1) var(--space-2);
}
.eh-toolbar__filter-btn {
  font-family: var(--font-label);
  font-size: var(--text-button);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eh-filter-panel {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 100%);
  background: var(--color-paper);
  z-index: 110;
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out-soft);
}
.eh-filter-panel.is-open { transform: translateX(0); }
.eh-filter-panel__group { border-bottom: 1px solid var(--color-stone); padding-block: var(--space-4); }
.eh-filter-panel__group-title {
  font-family: var(--font-label);
  font-size: var(--text-button);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.eh-swatches { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.eh-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-stone);
  cursor: pointer;
}
.eh-swatch.is-selected { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.eh-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-stone);
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--duration-base) ease, color var(--duration-base) ease;
}
.eh-chip.is-selected,
.eh-chip:hover { background: var(--color-ink); color: var(--color-cream); border-color: var(--color-ink); }

/* =========================================================
   Product card
   ========================================================= */

.eh-product-card { display: block; }
.eh-product-card__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-sand); }
.eh-product-card__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.eh-product-card__img--alt { opacity: 0; transition: opacity var(--duration-base) ease; }
.eh-product-card:hover .eh-product-card__img--alt { opacity: 1; }
.eh-product-card__body { padding-top: var(--space-3); }
.eh-product-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.eh-product-card__price { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
.eh-product-card__swatches { display: flex; gap: var(--space-1); margin-top: var(--space-2); }
.eh-product-card__swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--color-stone); }
.eh-product-card__cta {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-label);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-base) ease, transform var(--duration-base) ease, border-color var(--duration-base) ease;
}
.eh-product-card:hover .eh-product-card__cta { opacity: 1; transform: translateY(0); border-color: var(--color-ink); }

/* =========================================================
   Product detail page
   ========================================================= */

.eh-pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1100px) {
  .eh-pdp { grid-template-columns: 220px 1fr 380px; align-items: start; }
  .eh-pdp__nav, .eh-pdp__summary { position: sticky; top: calc(var(--space-7) + 60px); }
}

.eh-pdp__back { font-size: var(--text-caption); display: block; margin-bottom: var(--space-5); }
.eh-pdp__prevnext { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-caption); margin-bottom: var(--space-6); }

.eh-pdp__gallery { display: flex; flex-direction: column; gap: var(--space-5); }
.eh-pdp__gallery .eh-frame { cursor: zoom-in; }

.eh-pdp__title { margin-bottom: var(--space-2); }
.eh-pdp__price { font-size: var(--text-body-lg); margin-bottom: var(--space-4); }
.eh-pdp__desc { color: var(--color-text-muted); margin-bottom: var(--space-5); }
.eh-pdp__desc ul { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.eh-pdp__desc li { padding-left: var(--space-5); position: relative; }
.eh-pdp__desc li::before { content: '—'; position: absolute; left: 0; color: var(--color-gold-deep); }

.eh-pdp__variation { margin-bottom: var(--space-5); }
.eh-pdp__variation-label {
  font-family: var(--font-label); font-size: var(--text-caption);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2); display: block;
}
.eh-pdp__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.eh-qty {
  display: inline-flex; align-items: center; gap: var(--space-4);
  border: 1px solid var(--color-stone);
  padding: var(--space-2) var(--space-4);
}
.eh-qty button { font-size: 1rem; line-height: 1; }
/* Native spin arrows eat the whole box at this width, hiding the digit — we already have the −/+ buttons. */
.eh-qty input[type="number"] { -moz-appearance: textfield; }
.eh-qty input[type="number"]::-webkit-inner-spin-button,
.eh-qty input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.eh-pdp__note {
  display: flex; align-items: center; gap: var(--space-2);
  font-style: italic; font-size: var(--text-caption); color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.eh-pdp__note::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-gold); flex-shrink: 0; }

.eh-accordion__item { border-top: 1px solid var(--color-stone); }
.eh-accordion__item:last-child { border-bottom: 1px solid var(--color-stone); }
.eh-accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-4);
  font-family: var(--font-label);
  font-size: var(--text-button);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eh-accordion__icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.eh-accordion__icon::before, .eh-accordion__icon::after {
  content: ''; position: absolute; background: currentColor;
}
.eh-accordion__icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.eh-accordion__icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); transition: transform var(--duration-fast) ease; }
.eh-accordion__item.is-open .eh-accordion__icon::after { transform: translateX(-50%) rotate(90deg) scaleY(0); }
.eh-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) ease;
}
.eh-accordion__panel-inner { padding-bottom: var(--space-5); color: var(--color-text-muted); }
.eh-accordion__panel-inner > * + * { margin-top: var(--space-3); }

/* =========================================================
   Carousel (Similar Pieces)
   ========================================================= */

.eh-carousel__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  scrollbar-width: none;
}
.eh-carousel__track::-webkit-scrollbar { display: none; }
.eh-carousel__item { flex: 0 0 auto; width: 70%; scroll-snap-align: start; }
@media (min-width: 768px) { .eh-carousel__item { width: 32%; } }
@media (min-width: 1200px) { .eh-carousel__item { width: 23%; } }

/* =========================================================
   Motion primitives — Ken Burns, marquee, scroll cue
   ========================================================= */

.eh-kenburns img { animation: eh-kenburns 22s ease-in-out infinite alternate; }
@keyframes eh-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.eh-scrollcue {
  position: absolute; bottom: var(--space-6); left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 44px;
  background: currentColor; opacity: 0.35;
  overflow: hidden;
}
.eh-scrollcue::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--color-gold);
  animation: eh-scrollcue 2.2s ease-in-out infinite;
}
@keyframes eh-scrollcue { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

.eh-marquee {
  overflow: hidden;
  background: var(--color-ink);
  border-top: 1px solid var(--color-bronze);
  border-bottom: 1px solid var(--color-bronze);
  padding-block: var(--space-4);
}
.eh-marquee__track {
  display: flex;
  width: max-content;
  animation: eh-marquee 32s linear infinite;
}
.eh-marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.eh-marquee__item {
  display: inline-flex; align-items: center;
  font-family: var(--font-label);
  font-size: var(--text-button);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  white-space: nowrap;
  padding-inline: var(--space-5);
}
.eh-marquee__item::after { content: '\25C6'; color: var(--color-gold); font-size: 7px; margin-left: var(--space-5); }
@keyframes eh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .eh-kenburns img { animation: none; }
  .eh-marquee__track { animation: none; }
  .eh-scrollcue::after { animation: none; top: 0; }
}

/* =========================================================
   Statement section (full-bleed quote moment)
   ========================================================= */

.eh-quote--xl { font-size: clamp(2rem, 5vw, 3.75rem); }

/* =========================================================
   Asymmetric editorial duo
   ========================================================= */

.eh-duo { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--color-stone); }
@media (min-width: 900px) { .eh-duo { grid-template-columns: 1.4fr 1fr; } }
.eh-duo__main { position: relative; min-height: 460px; overflow: hidden; background: var(--color-sand); }
@media (min-width: 900px) { .eh-duo__main { min-height: 640px; } }
.eh-duo__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eh-duo__side { display: flex; flex-direction: column; background: var(--color-cream); }
.eh-duo__side-media { flex: 1 1 50%; min-height: 240px; overflow: hidden; position: relative; background: var(--color-sand); }
.eh-duo__side-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eh-duo__side-content { flex: 1 1 50%; padding: var(--space-7) var(--container-gutter); display: flex; flex-direction: column; justify-content: center; }
.eh-duo__side-content > * + * { margin-top: var(--space-3); }

/* =========================================================
   Bento category showcase
   ========================================================= */

.eh-bento { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--color-stone); }
@media (min-width: 900px) {
  .eh-bento { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; min-height: 760px; }
  .eh-bento__item--main { grid-row: 1 / 3; }
}
.eh-bento .eh-category-tile { height: 100%; min-height: 340px; }
.eh-bento .eh-category-tile__frame { height: 100%; aspect-ratio: auto; }

/* =========================================================
   Recognition strip
   ========================================================= */

.eh-recognition { display: flex; align-items: center; justify-content: center; gap: var(--space-5); }
.eh-recognition__rule { flex: 1; max-width: 100px; height: 1px; background: var(--color-stone); }
.eh-recognition__text {
  font-family: var(--font-label); font-size: var(--text-caption);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted);
  white-space: nowrap;
}

/* =========================================================
   Closing CTA banner
   ========================================================= */

.eh-cta-banner {
  position: relative; min-height: 56vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; color: var(--color-cream);
}
.eh-cta-banner__media, .eh-cta-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eh-cta-banner__scrim { position: absolute; inset: 0; background: rgba(20, 17, 13, 0.55); }
.eh-cta-banner__content { position: relative; z-index: 1; max-width: 640px; padding-inline: var(--container-gutter); }
.eh-cta-banner__content .eh-display { color: var(--color-cream); font-size: clamp(2rem, 4.5vw, 3.5rem); }

/* =========================================================
   Prose (legal / long-form text pages)
   ========================================================= */

.eh-prose { max-width: 760px; }
.eh-prose h1 { font-size: var(--text-h1); margin-bottom: var(--space-6); }
.eh-prose h2 { font-size: var(--text-h3); font-weight: 500; margin-top: var(--space-8); margin-bottom: var(--space-3); }
.eh-prose h3, .eh-prose h4 { font-size: var(--text-h4); font-weight: 500; margin-top: var(--space-6); margin-bottom: var(--space-2); }
.eh-prose p { max-width: none; color: var(--color-ink); line-height: 1.7; margin-bottom: var(--space-4); }
.eh-prose ul, .eh-prose ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); list-style: disc; }
.eh-prose ol { list-style: decimal; }
.eh-prose li { margin-bottom: var(--space-2); line-height: 1.7; }
.eh-prose a { text-decoration: underline; text-underline-offset: 2px; }
.eh-prose strong { font-weight: 600; }
.eh-prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-5); font-size: var(--text-caption); }
.eh-prose table th, .eh-prose table td { border: 1px solid var(--color-stone); padding: var(--space-2) var(--space-3); text-align: left; }

/* =========================================================
   Category hub (Explore by Act / Model / Line)
   ========================================================= */

.eh-hub-section + .eh-hub-section { border-top: 1px solid var(--color-stone); }
.eh-hub-section__title { margin-bottom: var(--space-5); }
.eh-hub-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .eh-hub-grid { grid-template-columns: repeat(3, 1fr); } }
.eh-hub-link {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5); border: 1px solid var(--color-stone);
  transition: border-color var(--duration-base) ease, background var(--duration-base) ease;
}
.eh-hub-link:hover { border-color: var(--color-ink); background: var(--color-paper); }
.eh-hub-link__title { font-family: var(--font-display); font-size: 1.125rem; }
.eh-hub-link.is-soon { opacity: 0.55; pointer-events: none; }
.eh-hub-link__badge {
  font-family: var(--font-label); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-gold-deep); border: 1px solid var(--color-gold); padding: 2px 8px;
}

/* =========================================================
   Article card (blog / press listings)
   ========================================================= */

.eh-article-card { display: block; }
.eh-article-card__frame { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: var(--space-3); }
.eh-article-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slower) ease-out; }
.eh-article-card:hover .eh-article-card__frame img { transform: scale(1.05); }
.eh-article-card__eyebrow { display: block; margin-bottom: var(--space-2); }
.eh-article-card__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.eh-article-card__excerpt { color: var(--color-text-muted); font-size: var(--text-caption); margin-top: var(--space-2); }

/* =========================================================
   Footer
   ========================================================= */

.eh-footer { background: var(--color-ink); color: var(--color-cream); }

.eh-footer__insta-head { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-6); }
.eh-footer__insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--color-ink); }
@media (min-width: 768px) { .eh-footer__insta-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .eh-footer__insta-grid { grid-template-columns: repeat(5, 1fr); } }
.eh-footer__insta-grid .eh-frame { aspect-ratio: 1/1; }

.eh-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid rgba(247,242,233,0.12);
}
@media (min-width: 768px) { .eh-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .eh-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; } }
.eh-footer__col-title {
  font-family: var(--font-label); font-size: var(--text-eyebrow);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.eh-footer__col a { display: block; padding-block: var(--space-1); font-size: var(--text-caption); opacity: 0.85; }
.eh-footer__col a:hover { opacity: 1; text-decoration: underline; }
.eh-footer__newsletter-field { display: flex; margin: 0; border-bottom: 1px solid rgba(247,242,233,0.3); padding-bottom: var(--space-2); }
.eh-footer__newsletter-field input { flex: 1; width: auto; background: transparent; border: none; border-radius: 0; padding: 0; color: var(--color-cream); font-size: var(--text-body); }
.eh-footer__newsletter-field input::placeholder { color: rgba(247,242,233,0.5); }
.eh-footer__newsletter-field button { color: var(--color-gold); }

/* Same email-capture pattern as the footer newsletter, but for a light (ink-on-sand) section in the page body. */
.eh-newsletter-field { display: flex; margin: 0 auto; max-width: 420px; border-bottom: 1px solid var(--color-ink); padding-bottom: var(--space-2); }
.eh-newsletter-field input { flex: 1; width: auto; background: transparent; border: none; border-radius: 0; padding: 0; color: var(--color-ink); font-size: var(--text-body); }
.eh-newsletter-field input::placeholder { color: var(--color-text-muted); }
.eh-newsletter-field button { color: var(--color-gold-deep); }

.eh-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid rgba(247,242,233,0.12);
  font-size: var(--text-caption);
  opacity: 0.7;
}

/* =========================================================
   Cart / Checkout
   ========================================================= */

.eh-cart-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 960px) { .eh-cart-layout { grid-template-columns: 1.6fr 1fr; } }

.eh-cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-stone);
}
.eh-cart-line__frame { width: 96px; height: 120px; overflow: hidden; background: var(--color-sand); }
.eh-cart-line__frame img { width: 100%; height: 100%; object-fit: cover; }
.eh-cart-line__title { font-family: var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--text-button); }
.eh-cart-line__variant { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-1); }
.eh-cart-line__price { font-size: var(--text-body); margin-top: var(--space-2); }
.eh-cart-line__actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.eh-cart-line__remove { font-size: var(--text-caption); color: var(--color-text-muted); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.eh-cart-line__remove:hover { color: var(--color-error); }
.eh-cart-line .eh-qty { padding: var(--space-1) var(--space-3); gap: var(--space-3); }
.eh-cart-line .eh-qty input { width: 2ch; text-align: center; border: none; background: transparent; font-family: var(--font-body); font-size: var(--text-body); }

.eh-cart-summary { background: var(--color-sand); padding: var(--space-5); align-self: start; }
.eh-cart-summary__row { display: flex; justify-content: space-between; margin-bottom: var(--space-3); font-size: var(--text-body); }
.eh-cart-summary__row--total { border-top: 1px solid var(--color-stone); padding-top: var(--space-3); font-weight: 500; font-size: var(--text-h5); }

/* Checkout */
.eh-checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 960px) { .eh-checkout-layout { grid-template-columns: 1.4fr 1fr; } }
.eh-checkout-section + .eh-checkout-section { margin-top: var(--space-6); }
.eh-checkout-section h2 { font-size: var(--text-h5); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-label); margin-bottom: var(--space-4); }
.eh-checkout-item { display: flex; justify-content: space-between; font-size: var(--text-body); padding-block: var(--space-2); border-bottom: 1px solid var(--color-stone); }
#eh-paypal-buttons { margin-top: var(--space-5); min-height: 55px; }
.eh-checkout-error { background: #fbe9e7; border: 1px solid var(--color-error); color: var(--color-error); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); font-size: var(--text-body); }

/* Flipbook (Manifesto's Gallery Book) — StPageFlip handles page-turn rendering;
   this just styles the frame, controls and loading state around it. */
.eh-flipbook { max-width: 640px; margin-inline: auto; }
.eh-flipbook__book {
  width: 100%;
  aspect-ratio: 420 / 594;
  margin-inline: auto;
  background: var(--color-sand);
}
.eh-flipbook__book .stf__parent { margin-inline: auto; }
.eh-flipbook__book .stf__item img { box-shadow: 0 12px 32px rgba(20, 17, 13, 0.18); }
.eh-flipbook__controls {
  display: flex; align-items: center; justify-content: center; gap: var(--space-5);
  margin-top: var(--space-5);
}
.eh-flipbook__controls button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-stone);
  background: transparent;
  color: var(--color-ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.eh-flipbook__controls button:hover:not(:disabled) { border-color: var(--color-gold); color: var(--color-gold-deep); }
.eh-flipbook__controls button:disabled { opacity: 0.35; cursor: not-allowed; }
.eh-flipbook__counter {
  font-family: var(--font-label); font-size: var(--text-caption);
  letter-spacing: 0.08em; color: var(--color-text-muted);
  min-width: 5.5rem; text-align: center;
}
