/* Homepage: hero, category rail, product rails, promo band, just-launched
   tabs, featured launches, SEO block, FAQ. Real values throughout -- see
   Phase 5 report for the two spots (hero photo, promo band photos) still
   using on-brand placeholder treatment pending real asset transfer. */

.ecl-hero {
  display: block;
  background: radial-gradient(120% 140% at 15% 20%, #141C9E 0%, var(--ecl-navy) 45%, var(--ecl-navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.ecl-hero__inner { padding: 56px 32px 60px; max-width: 640px; }
.ecl-hero__eyebrow {
  display: inline-block; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 5px 14px; font-family: var(--ecl-font-primary); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.ecl-hero__title { font-family: var(--ecl-font-primary); font-size: var(--ecl-hero-size); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.ecl-hero__title span { color: var(--ecl-accent-lime); }
.ecl-hero__sub { font-size: 15.5px; color: #C7CAF2; max-width: 420px; margin: 18px 0 26px; line-height: 1.6; }
.ecl-hero__cta {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px;
  border-radius: 999px; background: var(--ecl-accent-lime); color: var(--ecl-navy);
  font-family: var(--ecl-font-primary); font-size: 14.5px; font-weight: 800;
}
.ecl-hero__trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.ecl-hero__trust span { font-family: var(--ecl-font-primary); font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.ecl-hero__trust small { font-family: var(--ecl-font-secondary); font-size: 12px; font-weight: 400; color: #A9ADE0; }

.ecl-cat-rail { padding-top: 34px; padding-bottom: 8px; }
/* Category rail: one horizontal row that scrolls inside its own viewport.
   Original rules (flex row, 100px items, 88px circles) restored; the
   native scrollbar is hidden visually but scrolling stays enabled, and
   prev/next buttons (see main.js) drive it on desktop. */
.ecl-cat-rail__viewport { position: relative; }
.ecl-cat-rail__track {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 22px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ecl-cat-rail__track::-webkit-scrollbar { display: none; }
.ecl-cat-rail__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.ecl-cat-rail__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100px; flex: 0 0 auto; scroll-snap-align: start; }
.ecl-cat-rail__item img { -webkit-user-drag: none; }
.ecl-cat-rail__nav {
  position: absolute; top: 26px; z-index: 2; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 16px; line-height: 1;
  background: #fff; color: var(--ecl-navy); border: 1px solid var(--ecl-border-gray);
  box-shadow: 0 4px 12px rgba(10,16,115,.12); transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}
.ecl-cat-rail__nav:hover { background: var(--ecl-navy); color: #fff; border-color: var(--ecl-navy); }
.ecl-cat-rail__nav:focus-visible { outline: 2px solid var(--ecl-navy); outline-offset: 2px; }
.ecl-cat-rail__nav:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
.ecl-cat-rail__nav--prev { left: -18px; }
.ecl-cat-rail__nav--next { right: -18px; }
@media (max-width: 900px) { .ecl-cat-rail__nav { display: none; } }
.ecl-cat-rail__item span:last-child { font-family: var(--ecl-font-primary); font-size: 12.5px; font-weight: 600; color: var(--ecl-ink); text-align: center; line-height: 1.3; }
.ecl-cat-rail__icon {
  width: 88px; height: 88px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--ecl-font-primary); font-size: 30px; font-weight: 800;
}
.ecl-cat-rail__icon--deals { background: var(--ecl-sale-red); font-size: 34px; }
.ecl-cat-rail__icon--new { background: var(--ecl-accent-lime); color: var(--ecl-navy); font-size: 30px; }

/* Real WooCommerce category thumbnail image, when one has genuinely
   been uploaded -- see ecl_get_category_thumbnail_html() in
   inc/nav-data.php. Same circle footprint as the letter-placeholder. */
.ecl-cat-rail__icon--photo { overflow: hidden; background: var(--ecl-surface); }
.ecl-cat-rail__icon--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ecl-rail-section { padding-top: 40px; }
.ecl-rail-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ecl-rail-section__head h2 { font-family: var(--ecl-font-primary); font-size: var(--ecl-h2-size); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ecl-ink); }
.ecl-rail-section__controls { display: flex; align-items: center; gap: 12px; }
.ecl-rail-section__viewall { font-family: var(--ecl-font-primary); font-size: 13px; font-weight: 600; color: var(--ecl-navy); }
.ecl-rail-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--ecl-hairline); background: #fff; color: var(--ecl-navy); font-size: 14px; }
.ecl-product-rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-behavior: smooth; }
.ecl-product-rail__item { flex: none; width: calc((100% - 54px) / 4); min-width: 230px; }

.ecl-section-heading { font-family: var(--ecl-font-primary); font-size: var(--ecl-h2-size); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ecl-ink); }

.ecl-promo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 40px; }
.ecl-promo-band__panel {
  display: flex; align-items: flex-end; border-radius: 14px; overflow: hidden; min-height: 200px; padding: 22px;
}
.ecl-promo-band__panel span { font-family: var(--ecl-font-primary); font-size: 19px; font-weight: 800; color: #fff; }

.ecl-tabgroup { display: flex; gap: 6px; background: var(--ecl-tint-navy); padding: 4px; border-radius: 999px; }
.ecl-tabgroup button { height: 36px; padding: 0 18px; border: none; border-radius: 999px; background: none; color: var(--ecl-body-gray); font-family: var(--ecl-font-primary); font-size: 13px; font-weight: 700; }
.ecl-tabgroup button.is-active { background: var(--ecl-navy); color: #fff; }

.ecl-seo-block { padding-top: 52px; }
.ecl-seo-block h2 { font-family: var(--ecl-font-primary); font-size: var(--ecl-h2-small-size); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ecl-ink); }
.ecl-seo-block__cols { columns: 2; column-gap: 44px; font-size: 14.5px; line-height: 1.7; color: #4A4A55; }
.ecl-seo-block__cols p { margin: 0 0 14px; break-inside: avoid; }

.ecl-faq { max-width: 900px; padding-top: 44px; padding-bottom: 56px; }
.ecl-faq h2 { font-family: var(--ecl-font-primary); font-size: var(--ecl-h2-small-size); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ecl-ink); }
.ecl-faq details { border-bottom: 1px solid var(--ecl-hairline); }
.ecl-faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--ecl-font-primary); font-size: 15.5px;
  font-weight: 600; color: var(--ecl-ink); display: flex; justify-content: space-between; gap: 16px;
}
.ecl-faq summary::-webkit-details-marker { display: none; }
.ecl-faq summary span { color: var(--ecl-navy); }
.ecl-faq p { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: #4A4A55; }

@media (max-width: 900px) {
  .ecl-hero__title { font-size: var(--ecl-hero-size-sm); }
  .ecl-hero__inner { padding: 40px 16px 44px; }
  .ecl-product-rail__item { width: 66vw; min-width: 0; }
  .ecl-promo-band { grid-template-columns: 1fr; }
  .ecl-featured-grid { grid-template-columns: 1fr; }
  .ecl-seo-block__cols { columns: 1; }
  .ecl-section-heading, .ecl-rail-section__head h2 { font-size: 21px; }
}


/* Phase 5 asset-integration follow-up: real hero/promo photos replace the
   earlier on-brand placeholder gradients and live text. Appended rather
   than merged into the rules above so the prior declarations stay intact
   and this change stays easy to diff/revert. */
.ecl-hero__img { display: block; width: 100%; height: auto; }
.ecl-promo-band__panel { display: block; padding: 0; align-items: normal; }
.ecl-promo-band__panel img { display: block; width: 100%; height: 100%; object-fit: cover; }


/* Hero text overlay -- only ever rendered when ecl_hero_title/subtitle
   are actually set via Appearance -> Ecomladen Settings (see hero.php);
   with nothing entered, the hero looks exactly as before. Deliberately
   a small corner card rather than a full-width overlay, since the photo
   already has its own baked-in headline and there is no way to confirm
   visually (no browser access here) where that sits on the image --
   a small, clearly separate callout card avoids colliding with it
   regardless of position. */
.ecl-hero { position: relative; }
.ecl-hero__overlay {
  position: absolute; left: 24px; bottom: 24px; max-width: 320px;
  background: rgba(255, 255, 255, 0.94); border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(10, 16, 30, 0.18);
}
.ecl-hero__overlay-title { font-family: var(--ecl-font-primary); font-size: 17px; font-weight: 800; color: var(--ecl-ink); margin: 0 0 4px; }
.ecl-hero__overlay-subtitle { font-family: var(--ecl-font-secondary); font-size: 13px; color: var(--ecl-body-gray); margin: 0; }

@media (max-width: 640px) {
  .ecl-hero__overlay { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 16px; }
}


/* Promo band overlay label -- only rendered when ecl_promo_banner_1/2_text
   is set (see promo-band.php); with nothing entered, panels look exactly
   as before. Small corner label, same reasoning as the hero overlay: no
   way to confirm here where the baked-in text on each photo sits. */
.ecl-promo-band__panel { position: relative; }
.ecl-promo-band__overlay {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255, 255, 255, 0.94);
  color: var(--ecl-ink); font-family: var(--ecl-font-primary); font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(10, 16, 30, 0.15);
}


/* ===== 50vh category hero banner ===== */
/* Desktop height is exactly 50vh (50svh where supported). Internal sizes
   scale with viewport height (vh clamps) so content fits instead of the
   section growing. */
.ecl-hb {
  --hb-pad-y: clamp(18px, 3.6vh, 40px);
  --hb-gap: clamp(10px, 1.4vw, 18px);
  --hb-radius: 14px;
  --hb-label-h: clamp(46px, 7.2vh, 60px);
  --hb-ease: cubic-bezier(.2, .7, .2, 1);
  --hb-media-min: clamp(92px, 12vh, 120px); /* smallest image area a card may shrink to */
  background: radial-gradient(120% 140% at 10% 15%, #141C9E 0%, var(--ecl-navy) 45%, var(--ecl-navy-deep) 100%);
  color: #fff;
  /* Desktop target is ~50vh, but the hero may grow when its content needs
     more room (short laptop screens, longer German copy). Never a fixed
     height, never overflow:hidden -- that is what clipped the cards. */
  display: grid;
  min-height: 50vh; min-height: 50svh;
}
.ecl-hb__inner {
  box-sizing: border-box; width: 100%; min-width: 0;
  max-width: var(--ecl-container-width); margin-inline: auto;
  padding: var(--hb-pad-y) 32px;
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: clamp(24px, 3.5vw, 56px); align-items: center;
}

/* Left column */
.ecl-hb__text { min-width: 0; }
.ecl-hb__eyebrow {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
  font-family: var(--ecl-font-primary); font-size: 11px; font-weight: 700; letter-spacing: var(--ecl-eyebrow-letter-spacing);
  text-transform: uppercase; color: #DDE0FF;
}
.ecl-hb__title {
  margin: clamp(10px, 2vh, 18px) 0 0; color: #fff;
  font-family: var(--ecl-font-primary); font-weight: 800;
  font-size: clamp(34px, min(4.4vw, 8vh), 64px); line-height: 1; letter-spacing: -0.035em;
}
.ecl-hb__accent { position: relative; display: inline-block; color: var(--ecl-accent-lime); z-index: 0; }
.ecl-hb__accent::after {
  content: ""; position: absolute; z-index: -1; left: -0.04em; right: 0.02em; bottom: 0.04em; height: 0.2em;
  background: var(--ecl-accent-lime); opacity: .22; border-radius: 0.1em;
}
.ecl-hb__sub {
  margin: clamp(8px, 1.6vh, 16px) 0 0; max-width: 36ch;
  font-family: var(--ecl-font-secondary); font-size: clamp(14px, 1.9vh, 16px); line-height: 1.55; color: #C7CAF2;
}
.ecl-hb__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 2.6vh, 26px); }
.ecl-hb__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: clamp(42px, 5.6vh, 50px); padding: 0 22px; border-radius: 10px; box-sizing: border-box;
  background: var(--ecl-accent-lime); color: var(--ecl-navy); border: 1px solid var(--ecl-accent-lime);
  font-family: var(--ecl-font-primary); font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px rgba(4,8,60,.25);
  transition: transform .3s var(--hb-ease), box-shadow .3s var(--hb-ease), background-color .3s var(--hb-ease), border-color .3s var(--hb-ease);
}
.ecl-hb__cta:hover { color: var(--ecl-navy); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 22px rgba(4,8,60,.32); }
.ecl-hb__cta-arrow { display: inline-block; transition: transform .3s var(--hb-ease); }
.ecl-hb__cta:hover .ecl-hb__cta-arrow { transform: translateX(3px); }
.ecl-hb__cta--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.ecl-hb__cta--ghost:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.75); box-shadow: none; }
.ecl-hb__cta:focus-visible, .ecl-hb__tile:focus-visible { outline: 2px solid var(--ecl-accent-lime); outline-offset: 3px; }

.ecl-hb__trust {
  list-style: none; margin: clamp(14px, 2.6vh, 26px) 0 0; padding: clamp(10px, 1.8vh, 16px) 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.ecl-hb__trust li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ecl-font-primary); font-size: 12.5px; font-weight: 600; color: #DDE0FF; }
.ecl-hb__trust svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ecl-accent-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Right column: one component, fixed 3x2 frame */
.ecl-hb__grid {
  min-width: 0; max-height: 520px; align-self: stretch;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(calc(var(--hb-label-h) + var(--hb-media-min)), 1fr));
  gap: var(--hb-gap);
}
.ecl-hb__tile {
  min-width: 0; min-height: 0; position: relative;
  display: grid; grid-template-rows: minmax(0, 1fr) var(--hb-label-h);
  background: #fff; border-radius: var(--hb-radius); overflow: hidden; color: var(--ecl-ink); text-decoration: none;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(4,8,60,.18), 0 8px 22px rgba(4,8,60,.16);
  transition: transform .4s var(--hb-ease), box-shadow .4s var(--hb-ease);
}
.ecl-hb__tile:hover { transform: translateY(-3px); color: var(--ecl-ink); box-shadow: 0 2px 4px rgba(4,8,60,.2), 0 14px 30px rgba(4,8,60,.24); }

/* Reusable image frame: size comes only from the card, never the image.
   The img is absolutely positioned so its intrinsic dimensions cannot
   stretch the grid track. */
.ecl-hb__media { position: relative; display: block; min-height: 0; overflow: hidden; background: var(--ecl-surface); }
.ecl-hb__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none;
  object-position: center; transition: transform .45s var(--hb-ease);
}
.ecl-hb__media--cover img { object-fit: cover; }
.ecl-hb__media--contain img {
  object-fit: contain; box-sizing: border-box; padding: clamp(8px, 1.4vh, 14px);
  mix-blend-mode: multiply; /* white product backgrounds melt into the frame tint */
}
.ecl-hb__tile:hover .ecl-hb__media img { transform: scale(1.04); }

.ecl-hb__label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 clamp(10px, 1vw, 14px); border-top: 1px solid var(--ecl-hairline); min-width: 0;
}
.ecl-hb__label-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ecl-hb__label strong { font-family: var(--ecl-font-primary); font-size: clamp(12.5px, 0.95vw, 14px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecl-hb__label small { font-family: var(--ecl-font-secondary); font-size: 12px; color: var(--ecl-meta-gray); }
.ecl-hb__label-arrow {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: var(--ecl-navy); background: var(--ecl-tint-navy);
  transition: background-color .3s var(--hb-ease), color .3s var(--hb-ease);
}
.ecl-hb__tile:hover .ecl-hb__label-arrow { background: var(--ecl-navy); color: #fff; }

/* Laptop / tablet landscape: same composition, tighter */
@media (max-width: 1240px) {
  .ecl-hb__inner { padding-inline: 24px; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .ecl-hb__label-arrow { display: none; }
}
@media (max-width: 1024px) {
  .ecl-hb__inner { gap: 20px; }
  .ecl-hb__sub { font-size: 14px; }
  .ecl-hb__cta { padding: 0 16px; font-size: 13.5px; }
  .ecl-hb__trust { gap: 6px 14px; }
  .ecl-hb__trust li { font-size: 12px; }
}

/* Mobile (theme breakpoint 900px): stacked, categories as swipe row.
   Height is content-driven here; the 50vh rule is desktop only. */
@media (max-width: 900px) {
  .ecl-hb { min-height: 0; }
  .ecl-hb__inner { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 28px 0 22px; }
  .ecl-hb__text { padding-inline: 16px; }
  .ecl-hb__title { font-size: clamp(34px, 9vw, 44px); }
  .ecl-hb__sub { font-size: 14.5px; }
  .ecl-hb__trust { margin-top: 16px; padding-top: 12px; gap: 6px 16px; }
  .ecl-hb__trust li { font-size: 12px; }
  .ecl-hb__grid {
    display: flex; height: auto; max-height: none; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    padding: 2px 16px 8px; scrollbar-width: none;
  }
  .ecl-hb__grid::-webkit-scrollbar { display: none; }
  .ecl-hb__tile { flex: 0 0 148px; grid-template-rows: auto minmax(52px, auto); scroll-snap-align: start; }
  .ecl-hb__label { padding-block: 6px; }
  .ecl-hb__label strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .ecl-hb__media { aspect-ratio: 1 / 1; }
  .ecl-hb__tile:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ecl-hb__tile, .ecl-hb__media img, .ecl-hb__cta, .ecl-hb__cta-arrow { transition: none; }
  .ecl-hb__tile:hover, .ecl-hb__cta:hover { transform: none; }
  .ecl-hb__tile:hover .ecl-hb__media img { transform: none; }
}