/* HL homepage — trust / L1 / L2 + mobile compact nav */
.hl-home-trust {
  margin: 0 0 1.75rem;
  padding: 0;
  background: var(--hl-home-surface, #f8f9fa);
  border: 1px solid var(--hl-home-border, #e6e8ec);
  border-radius: var(--hl-home-radius-md, 12px);
  overflow: hidden;
}

.hl-home-trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 54px;
}

.hl-home-trust__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hl-black, #18191a);
  border-right: 1px solid var(--hl-home-border, #e6e8ec);
}

.hl-home-trust__item:last-child {
  border-right: 0;
}

.hl-home-trust__item strong {
  font-weight: 700;
}

.hl-home-trust__item .material-icons {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  font-size: 17px;
  line-height: 17px;
  color: var(--hl-red, #d71920);
}

.hl-home-trust__item a {
  color: inherit !important;
  font-weight: 700;
  text-decoration: none;
}

.hl-home-trust__item a:hover {
  color: var(--hl-red, #d71920) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hl-home-quick {
  margin: 0 0 2.25rem;
  padding: 0;
}

/* Utility/nav heading — quieter than commerce section titles (Pakkumised, etc.)
   Weight lives on inner span: custom.css forces h2 { font-weight:800 !important }. */
.hl-home-quick__title,
.hl-home-quick .hl-home-sec-title {
  margin: 0;
  font-size: 1.3125rem; /* 21px desktop */
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.hl-home-quick__title-text {
  font-weight: 600;
}

.hl-home-quick__head,
.hl-home-discover__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hl-home-quick__head {
  margin-bottom: 0.7rem; /* ~11px heading → grid */
}

.hl-home-quick__head-text,
.hl-home-discover__head-text {
  min-width: 0;
}

.hl-home-quick__more {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.hl-home-quick__more a {
  color: var(--hl-red, #d71920) !important;
  text-decoration: none !important;
}

.hl-home-quick__more a:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.hl-home-quick__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hl-home-quick__grid:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hl-home-quick__grid:has(> :nth-child(7):last-child) {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hl-home-quick__item {
  display: flex;
  min-width: 0;
}

.hl-home-quick__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  min-height: 96px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  text-decoration: none !important;
  color: var(--hl-black, #18191a) !important;
  background: #fff;
  border: 1px solid var(--hl-home-border, #e6e8ec);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.hl-home-quick__link:hover {
  border-color: #d0d4db;
  box-shadow: 0 4px 14px rgba(24, 25, 26, 0.05);
  transform: translateY(-1px);
  color: var(--hl-black, #18191a) !important;
}

.hl-home-quick__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: transparent;
}

.hl-home-quick__media img {
  display: block;
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hl-home-quick__media--letter {
  width: 34px;
  height: 34px;
  border-radius: var(--hl-home-radius-sm, 8px);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hl-red, #d71920);
  border: 1px solid var(--hl-home-border, #e6e8ec);
  background: var(--hl-home-surface-soft, #fafafb);
}

/* Always reserve 2 title lines so short names don't shrink the tile */
.hl-home-quick__name {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  text-align: center;
}

.hl-home-discover {
  margin: 0 0 2.15rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.hl-home-discover__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hl-home-discover__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 68px;
  max-height: 76px;
  padding: 0.6rem 0.75rem;
  text-decoration: none !important;
  color: var(--hl-black, #18191a) !important;
  background: #fff;
  border: 1px solid var(--hl-home-border, #e6e8ec);
  border-radius: 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hl-home-discover__link:hover {
  border-color: #d0d4db;
  box-shadow: 0 3px 10px rgba(24, 25, 26, 0.05);
  transform: translateY(-1px);
  color: var(--hl-black, #18191a) !important;
}

.hl-home-discover__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--hl-home-border, #e6e8ec);
  overflow: hidden;
}

.hl-home-discover__icon img {
  display: block;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.hl-home-discover__icon--letter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hl-modern-muted, #65676b);
  background: var(--hl-home-surface-soft, #fafafb);
}

.hl-home-discover__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.hl-home-discover__parent {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hl-modern-muted, #65676b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hl-home-discover__name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.hl-home-discover__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 18px;
  color: var(--hl-red, #d71920);
}

/* Secondary blog — layout owned by hl-home-blog2.css (featured + compact). */
.hl-home-blog2 {
  margin: 0 0 1.35rem;
}

.hl-home-blog2__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.7rem;
}

.hl-home-blog2__more {
  margin: 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hl-home-blog2__more a {
  color: var(--hl-red, #d71920) !important;
  text-decoration: none !important;
}

.hl-home-blog2__more a:hover {
  text-decoration: underline !important;
}

/* SEO / store intro */
.hl-home-seo {
  margin: 0 0 1.75rem;
  max-width: 56rem;
}

.hl-home-seo__prose {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3a3b3d;
}

.hl-home-seo__prose p {
  margin: 0 0 0.75rem;
}

.hl-home-seo__links-label {
  margin: 0.35rem 0 0.35rem !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hl-modern-muted, #65676b);
}

.hl-home-seo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.hl-home-seo__links a {
  color: var(--hl-red, #d71920) !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
}

.hl-home-seo__links a:hover {
  text-decoration: underline !important;
}

.hl-home-seo__help {
  margin-top: 0.25rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hl-home-border, #e6e8ec);
  font-size: 0.875rem;
}

.hl-home-seo__help a {
  color: var(--hl-red, #d71920) !important;
}

body#index .hl-home-shell .ps-specials,
body#index .hl-home-shell .ps-newproducts {
  margin-top: 0;
  margin-bottom: 2.15rem;
}

body#index .hl-home-shell .hl-home-need {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .hl-home-quick__grid,
  .hl-home-quick__grid:has(> :nth-child(6):last-child),
  .hl-home-quick__grid:has(> :nth-child(7):last-child),
  .hl-home-quick__grid:has(> :nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hl-home-quick {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem; /* 24px → Pakkumised */
  }

  .hl-home-quick__title,
  .hl-home-quick .hl-home-sec-title {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.2;
  }

  .hl-home-quick__title-text {
    font-weight: 600;
  }

  .hl-home-quick__head {
    display: contents;
  }

  .hl-home-quick__head-text {
    order: 1;
    margin-bottom: 0.625rem; /* 10px → grid */
  }

  .hl-home-quick__grid {
    order: 2;
  }

  .hl-home-quick__more {
    order: 3;
    margin: 0.5625rem 0 0; /* 9px */
    white-space: normal;
  }

  /* Max 6 L1 = 2×3; hide 7–8 */
  .hl-home-quick__grid,
  .hl-home-quick__grid:has(> :nth-child(6):last-child),
  .hl-home-quick__grid:has(> :nth-child(7):last-child),
  .hl-home-quick__grid:has(> :nth-child(8):last-child) {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .hl-home-quick__item:nth-child(n + 7) {
    display: none !important;
  }

  /* Compact horizontal category rows — equal geometry, 2-line title slot */
  .hl-home-quick__link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    min-height: 64px;
    max-height: none;
    padding: 0.55rem 0.65rem;
    text-align: left;
  }

  .hl-home-quick__media,
  .hl-home-quick__media--letter {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .hl-home-quick__media img {
    max-width: 26px;
    max-height: 26px;
  }

  .hl-home-quick__name {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    min-height: calc(1.25em * 2);
    text-align: left;
  }

  .hl-home-trust {
    margin-bottom: 1.35rem;
  }

  .hl-home-trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .hl-home-trust__item {
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--hl-home-border, #e6e8ec);
    min-height: 48px;
  }

  .hl-home-trust__item:nth-child(odd) {
    border-right: 1px solid var(--hl-home-border, #e6e8ec);
  }

  .hl-home-trust__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hl-home-trust__item .material-icons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
  }

  .hl-home-discover {
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent;
  }

  .hl-home-discover__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hl-home-discover__grid {
    grid-template-columns: 1fr;
  }

  /* Mobile: top 4 L2 only */
  .hl-home-discover__item:nth-child(n + 5) {
    display: none !important;
  }

  .hl-home-discover__link {
    min-height: 60px;
    max-height: none;
  }

  .hl-home-blog2__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hl-home-seo {
    margin-bottom: 1.35rem;
  }

  body#index .hl-home-shell .ps-specials,
  body#index .hl-home-shell .ps-newproducts {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .hl-home-discover__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
