/* HL pack auto — do not edit; rebuild from sources */
/* === hl-category-list-badges.css === */
/* ONLY change: LIST discount badge moves to price (right).
   Keep original list row + grid card chrome. Load last on category. */

/* ===== GRID: never show list-only UI ===== */
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-list-desc,
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-list-flags,
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-list-qty,
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-list-viewlink__arrow,
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-list-meta,
body#category #js-product-list .products.hl-view-grid .hl-list-desc,
body#category #js-product-list .products.hl-view-grid .hl-list-flags,
body#category #js-product-list .products.hl-view-grid .hl-list-qty,
body#category #js-product-list .products.hl-view-grid .hl-list-viewlink__arrow,
body#category #js-product-list .products.hl-view-grid .hl-list-meta {
  display: none !important;
}

/* Grid: UUS by title, discount by price — no image flags */
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-pc-status,
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-pc-discount,
body#category #js-product-list .products.hl-view-grid .hl-pc-status,
body#category #js-product-list .products.hl-view-grid .hl-pc-discount {
  display: flex !important;
}
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-pc-oos,
body#category #js-product-list .products.hl-view-grid .hl-pc-oos {
  display: block !important;
}

/* Grid CTA = shared card button (undo list ATC bleed) */
html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc,
html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc a.hl-pc-view,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-atc,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc a.hl-pc-view {
  width: auto !important;
  min-width: 132px !important;
  max-width: 168px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 auto !important;
  padding: 0 12px !important;
}

html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .hl-list-buy,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-list-buy {
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__prices,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__prices {
  align-items: center !important;
  text-align: center !important;
}

html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__price-row,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__price-row {
  justify-content: center !important;
}

html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__actions,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__actions {
  align-items: center !important;
}

/* ===== LIST desktop: original row; only move discount to price ===== */
@media (min-width: 768px) {
  /* Keep flag column (UUS), but remove discount from it */
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags,
  body#category #js-product-list .products.hl-view-list .hl-list-flags {
    display: flex !important;
  }

  html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .product-flag.discount,
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .badge.discount,
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .product-flag.on-sale,
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .badge.on-sale,
  body#category #js-product-list .products.hl-view-list .hl-list-flags .product-flag.discount,
  body#category #js-product-list .products.hl-view-list .hl-list-flags .badge.discount,
  body#category #js-product-list .products.hl-view-list .hl-list-flags .product-flag.on-sale,
  body#category #js-product-list .products.hl-view-list .hl-list-flags .badge.on-sale {
    display: none !important;
  }

  /* UUS stays in list-flags column — hide duplicate pc-status */
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-pc-status,
  body#category #js-product-list .products.hl-view-list .hl-pc-status {
    display: none !important;
  }

  /* Solid red UUS — @layer vendors beats Bootstrap badge !important */
  @layer vendors {
    html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .product-flags .badge.new,
    html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .product-flags .badge.new:not(.discount),
    html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-flags .product-flags .product-flag.new,
    body#category #js-product-list .products.hl-view-list .hl-list-flags .product-flags .badge.new,
    body#category #js-product-list .products.hl-view-list .hl-list-flags .product-flags .badge.new:not(.discount),
    body#category #js-product-list .products.hl-view-list .hl-list-flags .product-flags .product-flag.new {
      background: #d71920 !important;
      background-color: #d71920 !important;
      color: #fff !important;
      border: 1px solid #d71920 !important;
      border-radius: 3px !important;
      font-weight: 700 !important;
      box-sizing: border-box !important;
      padding: 2px 6px !important;
    }
  }

  /* Discount lives next to price */
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-pc-discount,
  body#category #js-product-list .products.hl-view-list .hl-pc-discount {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 10px !important;
    padding: 2px 5px !important;
  }

  html[data-hl-cat-view="list"] body#category #js-product-list .product-miniature__price-row,
  body#category #js-product-list .products.hl-view-list .product-miniature__price-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
  }
}

/* === hl-category-list-typo.css === */
/* Desktop LIST only: title +1px, description max 3 lines.
   Do not touch row geometry, image, price, CTA, badges, or mobile. */

@media (min-width: 768px) {
  html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .product-miniature__title,
  body#category #js-product-list .products.hl-view-list .product-miniature__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    max-height: none !important;
  }

  html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .product-miniature__infos,
  body#category #js-product-list .products.hl-view-list .product-miniature__infos {
    row-gap: 3px !important;
  }

  html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .hl-list-desc,
  body#category #js-product-list .products.hl-view-list .hl-list-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    color: #626b78 !important;
    margin: 0 !important;
  }
}

/* === hl-category-list-meta.css === */
/* LIST metadata: brand · code · ETA + orderability dot. Do not grow row. */
html[data-hl-cat-view="grid"] body#category #js-product-list .hl-list-meta,
body#category #js-product-list .products.hl-view-grid .hl-list-meta {
  display: none !important;
}

html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .product-miniature__infos,
body#category #js-product-list .products.hl-view-list .product-miniature__infos {
  grid-template-areas:
    "flags title"
    "flags desc"
    "flags meta";
}

html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .product-miniature__infos.hl-list-infos--nodesc,
html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .product-miniature__infos:not(:has(.hl-list-desc)),
body#category #js-product-list .products.hl-view-list .product-miniature__infos.hl-list-infos--nodesc,
body#category #js-product-list .products.hl-view-list .product-miniature__infos:not(:has(.hl-list-desc)) {
  grid-template-areas:
    "flags title"
    "flags meta";
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta,
body#category #js-product-list .products.hl-view-list .hl-list-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin: 6px 0 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 12.5px;
  line-height: 1.35;
  color: #626b78;
  font-weight: 400;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-infos--nodesc .hl-list-meta,
body#category #js-product-list .products.hl-view-list .hl-list-infos--nodesc .hl-list-meta {
  margin-top: 8px;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__brand,
body#category #js-product-list .products.hl-view-list .hl-list-meta__brand {
  font-weight: 600;
  color: #374151;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__ref,
body#category #js-product-list .products.hl-view-list .hl-list-meta__ref {
  font-weight: 400;
  color: #626b78;
  word-break: break-word;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__eta,
body#category #js-product-list .products.hl-view-list .hl-list-meta__eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__dot,
body#category #js-product-list .products.hl-view-list .hl-list-meta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  flex: 0 0 7px;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__dot.is-ok,
body#category #js-product-list .products.hl-view-list .hl-list-meta__dot.is-ok {
  background: #3d9a5f;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__dot.is-off,
body#category #js-product-list .products.hl-view-list .hl-list-meta__dot.is-off {
  background: #d71920;
}

html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta__sep,
body#category #js-product-list .products.hl-view-list .hl-list-meta__sep {
  color: #d1d5db;
  font-weight: 400;
}

@media (min-width: 768px) {
  html[data-hl-cat-view="list"] body#category #js-product-list .products.hl-view-list .hl-list-desc,
  body#category #js-product-list .products.hl-view-list .hl-list-desc {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }
}

@media (max-width: 767.98px) {
  html[data-hl-cat-view="list"] body#category #js-product-list .hl-list-meta,
  body#category #js-product-list .products.hl-view-list .hl-list-meta {
    font-size: 12px;
  }
}

/* === hl-category-list-zoom.css === */
/* Desktop list view: hover thumb → floating preview, original size, rounded frame. */
#hl-list-img-zoom {
  position: fixed;
  z-index: 10060;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0) scale(0.96);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}

#hl-list-img-zoom.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

#hl-list-img-zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(420px, 42vw);
  max-height: min(420px, 70vh);
  object-fit: contain;
  object-position: center;
  transform: none;
  background: #fff;
  border: 0;
}

@media (max-width: 767.98px) {
  #hl-list-img-zoom {
    display: none !important;
  }
}

