/* HL homepage — MOBILE polish (v2026-09-13m7)
 * Short first fold: H1 + lead + CTAs.
 * Then full Categories → trust → article → LM.
 */

@media (max-width: 767.98px) {
  body#index .hl-home-shell { padding-bottom: 0.25rem; }
  body#index .hl-home-shell__pad.container-md,
  body#index .hl-home-shell .container-md {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body#index .hl-home-shell__mid {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  /* DOM is trust→cats; mobile visual order stays categories first */
  body#index .hl-home-shell__cats { order: 1 !important; }
  body#index .hl-home-shell__trust { order: 2 !important; }

  /* —— Compact soft hero (NO category tiles) —— */
  body#index .hl-home-hero {
    margin: 0 0 0.7rem !important;
    padding: 0.75rem 0.8rem !important;
    background: var(--hl-surface-soft, #f4f5f6) !important;
    border-radius: 6px !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body#index .hl-home-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  body#index .hl-home-hero__aside {
    display: none !important;
  }
  body#index .hl-home-hero__title {
    margin: 0 0 0.5rem !important;
    max-width: none !important;
    font-size: clamp(1.25rem, 0.65rem + 2.7vw, 1.4375rem) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    color: var(--hl-ink, #18191a) !important;
  }
  body#index .hl-home-hero__br {
    display: none !important;
  }
  body#index .hl-home-hero__lead {
    margin: 0 0 0.95rem !important;
    max-width: 38rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #374151 !important;
  }
  body#index .hl-home-hero__actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem 1.1rem !important;
    margin: 0 !important;
  }
  body#index .hl-home-hero .hl-home-cta--primary,
  body#index .hl-home-hero .hl-btn-primary {
    display: none !important;
  }
  body#index .hl-home-hero .hl-home-cta--text {
    min-height: 32px !important;
    padding: 0.1rem 0 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
  }

  /* —— Categories: all primary L1, compact 2×5 —— */
  body#index .hl-home-quick__grid--desk,
  body#index .hl-home-quick__grid--mobile {
    display: none !important;
  }
  body#index .hl-home-quick__grid {
    display: grid !important;
  }
  /* Override hl-home-b.css max-6 hide — show all primary L1 */
  body#index .hl-home-quick__grid > .hl-home-quick__item,
  body#index .hl-home-quick__grid > .hl-home-quick__item:nth-child(n + 7),
  body#index .hl-home-quick__grid > .hl-home-quick__item:nth-child(n + 9) {
    display: flex !important;
  }

  body#index .hl-home-quick {
    margin: 0 0 0.65rem !important;
    padding: 0.55rem 0.6rem 0.65rem !important;
    background: #f5f6f7 !important;
    border-radius: 8px !important;
  }
  body#index .hl-home-quick__head {
    margin-bottom: 0.35rem !important;
  }
  body#index .hl-home-quick__head-text { margin-bottom: 0 !important; }
  body#index .hl-home-quick__title,
  body#index .hl-home-quick .hl-home-sec-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }
  body#index .hl-home-quick__grid,
  body#index .hl-home-quick__grid:has(> :nth-child(6):last-child),
  body#index .hl-home-quick__grid:has(> :nth-child(7):last-child),
  body#index .hl-home-quick__grid:has(> :nth-child(8):last-child),
  body#index .hl-home-quick__grid:has(> :nth-child(9):last-child),
  body#index .hl-home-quick__grid:has(> :nth-child(10):last-child) {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.28rem !important;
  }
  body#index .hl-home-quick__link {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    min-height: 54px !important;
    max-height: none !important;
    padding: 0.4rem 0.45rem !important;
    background: #ffffff !important;
    border: 1px solid #e6e8eb !important;
    box-shadow: none !important;
    border-radius: 7px !important;
  }
  body#index .hl-home-quick__link:active {
    background: #ffffff !important;
    border-color: var(--hl-red, #d71920) !important;
  }
  body#index .hl-home-quick__media,
  body#index .hl-home-quick__media--letter {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    align-self: center !important;
    background: transparent !important;
  }
  body#index .hl-home-quick__media img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
  }
  /* Text block height = content (1 or 2 lines); row align-items centers it vs icon.
     Do NOT reserve empty 2nd line or force fixed height (that top-aligns + clipped). */
  body#index .hl-home-quick__name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-self: center !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(1.25em * 2) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--hl-ink, #18191a) !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-pack: start !important;
    overflow: hidden !important;
  }
  body#index .hl-home-quick__more {
    margin-top: 0.35rem !important;
    text-align: left !important;
  }
  body#index .hl-home-quick__more a {
    font-size: 0.8125rem !important;
    color: var(--hl-muted, #6b7280) !important;
  }

  /* —— Trust info —— */
  body#index .hl-home-trust {
    margin: 0 0 0.35rem !important;
    background: transparent !important;
  }
  body#index .hl-home-trust__inner {
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: var(--hl-surface-info, #e9edf1) !important;
    border: 1px solid #dde2e7 !important;
    box-shadow: none !important;
  }
  body#index .hl-home-trust__list {
    grid-template-columns: 1fr 1fr !important;
    min-height: 0 !important;
  }
  body#index .hl-home-trust__item {
    gap: 0.4rem !important;
    min-height: 0 !important;
    padding: 0.55rem 0.6rem !important;
    border-right: 0 !important;
    border-bottom: 1px solid #d5dbe2 !important;
    color: var(--hl-ink, #18191a) !important;
    align-items: flex-start !important;
  }
  body#index .hl-home-trust__item::after {
    display: none !important;
  }
  body#index .hl-home-trust__item:nth-child(odd) {
    border-right: 1px solid #d5dbe2 !important;
  }
  body#index .hl-home-trust__item:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }
  body#index .hl-home-trust__secondary {
    display: block !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #4b5563 !important;
  }
  body#index .hl-home-trust__primary {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--hl-ink, #18191a) !important;
  }
  body#index .hl-home-trust__ico {
    color: var(--hl-red, #d71920) !important;
  }
  body#index .hl-home-trust__ico svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* —— Featured —— */
  body#index .hl-home-featured {
    margin: 0 0 0.75rem !important;
    padding: 0.2rem 0 0 !important;
    background: transparent !important;
  }
  body#index .hl-home-featured__link {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }
  body#index .hl-home-featured__media {
    aspect-ratio: 16 / 9 !important;
    max-height: 148px !important;
    border-radius: 5px !important;
    background: transparent !important;
    overflow: hidden !important;
  }
  body#index .hl-home-featured__media img {
    max-height: 148px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body#index .hl-home-featured__title {
    margin: 0 0 0.3rem !important;
    font-size: 1.125rem !important;
    line-height: 1.2 !important;
    color: var(--hl-ink, #18191a) !important;
  }
  body#index .hl-home-featured__excerpt {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 0 0 0.35rem !important;
    font-size: 0.875rem !important;
    line-height: 1.35 !important;
  }

  /* —— LM compact —— */
  body#index .hl-home-brand {
    margin: 0 0 0.85rem !important;
    background: transparent !important;
  }
  body#index .hl-home-brand__inner {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
    padding: 0.95rem 0.9rem !important;
    border-radius: 8px !important;
  }
  body#index .hl-home-brand__title {
    max-width: none !important;
    font-size: 1.125rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.4rem !important;
  }
  body#index .hl-home-brand__lead { display: none !important; }
  body#index .hl-home-brand__nav-blurb { display: none !important; }
  body#index .hl-home-brand__nav-link {
    padding: 0.28rem 0 !important;
    min-height: 36px;
  }
  body#index .hl-home-brand__nav-name { font-size: 0.8125rem !important; }
  body#index .hl-home-brand .hl-home-cta--primary,
  body#index .hl-home-brand .hl-btn-primary {
    display: inline-flex !important;
    width: auto !important;
    min-height: 36px !important;
    margin-top: 0.15rem;
    color: #fff !important;
  }
  body#index .hl-home-brand .hl-home-cta--primary:hover,
  body#index .hl-home-brand .hl-btn-primary:hover {
    color: #fff !important;
  }

  body#index .ps-specials {
    margin: 0 0 0.75rem !important;
    padding: 0.45rem 0.1rem 0.55rem !important;
  }

  /* Equal-height homepage cards: button always on one baseline, less air, CLS-stable */
  body#index .hl-home-shell__products .products {
    align-items: stretch !important;
    column-gap: 6px !important;
    row-gap: 10px !important;
    --hl-pc-gap-x: 6px;
    --hl-pc-gap-y: 10px;
  }
  body#index .hl-home-shell__products .products > article.product-miniature,
  body#index .hl-home-shell__products .products > article.product-miniature.hl-pc {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
  }
  body#index .hl-home-shell__products article.product-miniature.hl-pc {
    --hl-pc-img-h: 148px;
    --hl-pc-pad: 6px;
    --hl-pc-gap-y: 2px;
    --hl-pc-action-h: 36px;
  }
  body#index .hl-home-shell__products article.product-miniature.hl-pc .product-miniature__inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
  }
  body#index .hl-home-shell__products article.product-miniature.hl-pc .product-miniature__bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  body#index .hl-home-shell__products article.product-miniature.hl-pc .product-miniature__image-container,
  body#index .hl-home-shell__products article.product-miniature.hl-pc .thumbnail-container {
    height: var(--hl-pc-img-h) !important;
    min-height: var(--hl-pc-img-h) !important;
    max-height: var(--hl-pc-img-h) !important;
    padding: 2px !important;
    box-sizing: border-box !important;
  }
  body#index .hl-home-shell__products article.product-miniature.hl-pc .product-miniature__image {
    max-width: 98% !important;
    max-height: calc(var(--hl-pc-img-h) - 4px) !important;
    object-fit: contain !important;
  }
  body#index .hl-home-shell__products .hl-pc-status {
    min-height: 16px !important;
    height: 16px !important;
    margin: 0 0 2px !important;
  }
  body#index .hl-home-shell__products .product-miniature__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    height: calc(1.22em * 2) !important;
    min-height: calc(1.22em * 2) !important;
    max-height: calc(1.22em * 2) !important;
    margin: 0 0 4px !important;
    font-size: 0.8125rem !important;
    line-height: 1.22 !important;
  }
  body#index .hl-home-shell__products .product-miniature__prices {
    min-height: 2.6em !important;
    margin: 0 0 2px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  body#index .hl-home-shell__products .hl-pc-avail {
    min-height: 14px !important;
    margin: 0 0 4px !important;
  }
  body#index .hl-home-shell__products .product-miniature__actions,
  body#index .hl-home-shell__products .hl-pc-atc,
  body#index .hl-home-shell__products .product-miniature__form {
    margin-top: auto !important;
  }
  body#index .hl-home-shell__products .product-miniature__actions {
    gap: 2px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
  }
  body#index .hl-home-shell__products .product-miniature__actions .btn,
  body#index .hl-home-shell__products .hl-pc-atc,
  body#index .hl-home-shell__products a.hl-pc-view {
    min-height: var(--hl-pc-action-h) !important;
    height: var(--hl-pc-action-h) !important;
  }
  body#index .ps-newproducts,
  body#index .ps-specials { margin-top: 0 !important; margin-bottom: 0.75rem !important; }
  body#index .ps-newproducts .section-title,
  body#index .ps-specials .section-title {
    margin-bottom: 8px !important;
    font-size: 1.1rem !important;
  }
  body#index .hl-home-sec-head {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.55rem !important;
  }

  body#index .hl-home-discover { margin: 0 0 0.75rem !important; }
  body#index .hl-home-discover__grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  body#index .hl-home-discover__link {
    min-height: 48px !important;
    padding: 0.45rem 0.1rem !important;
  }
  body#index .hl-home-seo { margin: 0 0 0.75rem !important; padding-top: 0.6rem !important; }
  body#index .hl-home-seo__title { font-size: 1.1rem !important; }
  body#index .hl-home-blog2__card:hover { transform: none !important; }
}

@media (max-width: 389.98px) {
  body#index .hl-home-hero__title { font-size: 1.1875rem !important; }
  body#index .hl-home-featured__media,
  body#index .hl-home-featured__media img { max-height: 138px !important; }
  body#index .hl-home-shell__pad.container-md,
  body#index .hl-home-shell .container-md {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  body#index .hl-home-hero__title { font-size: 1.375rem !important; }
  body#index .hl-home-featured__media,
  body#index .hl-home-featured__media img { max-height: 160px !important; }
}
