/* HL homepage — tokens, shell order, opening (desktop + mobile) */
body#index {
  --hl-home-radius-xl: 16px;
  --hl-home-radius-lg: 14px;
  --hl-home-radius-md: 12px;
  --hl-home-radius-sm: 8px;
  --hl-home-surface: #f8f9fa;
  --hl-home-surface-soft: #fafafb;
  --hl-home-border: #e6e8ec;
  --hl-home-shadow: 0 4px 16px rgba(24, 25, 26, 0.06);
}

/* Homepage shell width: hl-site-layout.css (--hl-container-max). Nested module gutters also live there. */

body#index .page-content--home {
  padding-top: 0.25rem;
}

.hl-home-sec-title {
  margin: 0 0 0.15rem;
  font-family: Mulish, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hl-black, #18191a);
}

.hl-home-sec-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.8125rem;
  color: var(--hl-modern-muted, #65676b);
}

body#index .hl-home-shell .section-title {
  margin-bottom: 0.75rem !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.hl-home-anchor {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Desktop opening shell */
.hl-home-opening {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  gap: 0 1.1rem;
  align-items: stretch;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1.1rem;
  box-sizing: border-box;
  min-height: 0;
  max-height: none;
  background: var(--hl-home-surface-soft);
  border: 1px solid var(--hl-home-border);
  border-radius: var(--hl-home-radius-xl);
}

.hl-home-open__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.25rem 0.25rem 0.25rem 0.1rem;
}

.hl-home-open__title {
  margin: 0 0 0.45rem;
  font-family: Mulish, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.15rem + 0.95vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hl-black, #18191a);
}

/* Weight on span: custom.css forces h1 { font-weight:800 !important } */
.hl-home-open__title-text {
  font-weight: 700;
}

.hl-home-open__lead {
  margin: 0 0 0.8rem;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  color: #6b7280;
}

.hl-home-open__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}

.hl-home-open__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-height: 46px;
  padding: 0.4rem 1.05rem;
  font-family: Mulish, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: var(--hl-home-radius-sm);
  box-sizing: border-box;
}

.hl-home-open__btn--primary {
  background: var(--hl-red, #d71920);
  color: #fff !important;
  border: 1.5px solid var(--hl-red, #d71920);
}

.hl-home-open__btn--primary:hover {
  background: var(--hl-red-hover, #b51218);
  border-color: var(--hl-red-hover, #b51218);
  color: #fff !important;
}

.hl-home-open__btn--ghost {
  background: #fff;
  color: var(--hl-black, #18191a) !important;
  border: 1px solid var(--hl-home-border);
}

.hl-home-open__btn--ghost:hover {
  border-color: #c8ccd3;
}

.hl-home-open__textlink {
  display: none;
}

/* Blog editorial card */
.hl-home-open__blog {
  min-width: 0;
}

.hl-home-open__blog-link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border: 1px solid var(--hl-home-border);
  border-radius: var(--hl-home-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.hl-home-open__blog-link:hover {
  border-color: #d5d8de;
  box-shadow: var(--hl-home-shadow);
}

.hl-home-open__blog-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36%;
  max-width: 36%;
  padding: 0.65rem;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}

.hl-home-open__blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
}

.hl-home-open__blog-media--cover {
  flex: 0 0 42%;
  max-width: 42%;
  padding: 0;
  background: #f7f7f8;
}

.hl-home-open__blog-media--cover img {
  object-fit: cover;
  max-height: none;
  min-height: 100%;
}

.hl-home-open__blog-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 64%;
  min-width: 0;
  padding: 0.75rem 0.9rem;
}

.hl-home-open__blog-kicker {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hl-modern-muted, #65676b);
}

.hl-home-open__blog-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.35rem;
  font-family: Mulish, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 1.05rem + 0.25vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--hl-black, #18191a);
}

.hl-home-open__blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--hl-modern-muted, #65676b);
}

.hl-home-open__blog-cta {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hl-red, #d71920);
}

body#index .ets_block_latest.page_home,
body#index .ps-customtext,
body#index .ps-banner,
body#index .ps-featuredproducts,
body#index .ps-bestsellers {
  display: none !important;
}

/* —— Mobile recomposition ——
 * Custom structural sections keep fixed anchors.
 * displayHome merchant modules (.ps-*, .hl-home-discover) share ONE order band
 * so PrestaShop BO position / DOM order controls their relative sequence.
 * Do NOT assign distinct order to .ps-specials vs .ps-newproducts.
 */
@media (max-width: 767.98px) {
  /* Flatten opening for stacked mobile hero */
  .hl-home-shell__pad:first-child .hl-home-opening {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 0.35rem;
  }

  .hl-home-open__intro {
    padding: 0.5rem 0 0;
    margin: 0;
  }

  .hl-home-open__blog {
    margin: 0;
  }

  .hl-home-open__title {
    font-size: 1.4375rem; /* 23px */
    line-height: 1.08;
    margin-bottom: 0.375rem; /* 6px → lead */
  }

  .hl-home-open__title-text {
    font-weight: 700;
  }

  .hl-home-open__lead {
    margin: 0;
    max-width: none;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.4;
    font-weight: 400;
    color: #6b7280;
  }

  /* Compact intro only: no hero CTAs — quick nav + Pakkumised follow */
  .hl-home-open__actions {
    display: none;
  }

  /* Compact horizontal editorial teaser */
  .hl-home-open__blog-link {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
  }

  .hl-home-open__blog-media {
    flex: 0 0 112px;
    max-width: 112px;
    width: 112px;
    padding: 0.5rem;
    max-height: 120px;
    align-self: stretch;
  }

  .hl-home-open__blog-media img {
    max-height: 104px;
  }

  .hl-home-open__blog-media--cover {
    padding: 0;
  }

  .hl-home-open__blog-media--cover img {
    max-height: 120px;
    min-height: 100%;
  }

  .hl-home-open__blog-body {
    padding: 0.65rem 0.7rem;
  }

  .hl-home-open__blog-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
  }

  .hl-home-open__blog-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
  }

  .hl-home-open__blog-cta {
    font-size: 0.78rem;
  }

  .hl-home-sec-title {
    font-size: 1.25rem;
  }
}
