/* HL pack auto — do not edit; rebuild from sources */
/* === hl-product-card-a.css === */
/* HL shared GRID product card â€” exclude category LIST via overrides below */

:root {
  --hl-pc-red: #d71920;
  --hl-pc-red-soft: #fff1f1;
  --hl-pc-border: #e8edf1;
  --hl-pc-text: #222;
  --hl-pc-muted: #8a939c;
  --hl-pc-radius: 9px;
  --hl-pc-pad: 13px;
  --hl-pc-gap-x: 12px;
  --hl-pc-gap-y: 16px;
  --hl-pc-img-h: 150px;
  --hl-pc-title: 13px;
  --hl-pc-price: 16.5px;
  --hl-pc-action-h: 33px;
}

/* ===== Grid containers (shared) ===== */
body#index .products,
body#index .featured-products .products,
body#index .module-products .products,
body#index .module-products__list .products,
body#index .new-products .products,
body#index .on-sale-products .products,
body#index #content .products,
body#prices-drop .products,
body#new-products .products,
body#best-sales .products,
body#search .products,
body#manufacturer .products,
body#supplier .products,
body.page-search .products,
body.page-manufacturer .products,
body.page-supplier .products,
body.page-prices-drop .products,
body.page-new-products .products,
body.page-best-sales .products,
html[data-hl-cat-view="grid"] body#category #js-product-list .products,
body#category #js-product-list .products.hl-view-grid {
  display: grid !important;
  width: 100% !important;
  column-gap: var(--hl-pc-gap-x) !important;
  row-gap: var(--hl-pc-gap-y) !important;
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

body#index .products > article,
body#index .products > div,
body#prices-drop .products > article,
body#search .products > article,
body#manufacturer .products > article,
body#new-products .products > article,
body#best-sales .products > article,
html[data-hl-cat-view="grid"] body#category #js-product-list .products > article,
body#category #js-product-list .products.hl-view-grid > article,
body .module-products .products > article,
body .ps-categoryproducts .products > article,
body .ps-viewedproduct .products > article,
body .product-accessories .products > article {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  min-width: 0 !important;
}

/*
 * Columns — two contexts under 1320 shell:
 * A) Homepage teasers: full content width → max 6 equal tracks (no 7th).
 * B) Catalog listings (sidebar + main): max 5 so cards stay ~180px+.
 */

/* A) Homepage */
body#index .products,
body#index .module-products .products,
body#index .module-products__list .products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 379.98px) {
  body#index .products,
  body#index .module-products .products {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#index .products,
  body#index .module-products .products,
  body#index .module-products__list .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body#index .products,
  body#index .module-products .products,
  body#index .module-products__list .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  body#index .products,
  body#index .module-products .products,
  body#index .module-products__list .products {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
  }
}

/* B) Shared catalog listing grid (sidebar pages + category GRID) — NOT search */
body#prices-drop .products,
body#new-products .products,
body#best-sales .products,
body#manufacturer .products,
body#supplier .products,
body.page-manufacturer .products,
body.page-supplier .products,
body.page-prices-drop .products,
body.page-new-products .products,
body.page-best-sales .products,
html[data-hl-cat-view="grid"] body#category #js-product-list .products,
body#category #js-product-list .products.hl-view-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 379.98px) {
  body#prices-drop .products,
  body#manufacturer .products,
  body#supplier .products {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#prices-drop .products,
  body#new-products .products,
  body#best-sales .products,
  body#manufacturer .products,
  body#supplier .products,
  body.page-manufacturer .products,
  body.page-supplier .products,
  body.page-prices-drop .products,
  body.page-new-products .products,
  body.page-best-sales .products,
  html[data-hl-cat-view="grid"] body#category #js-product-list .products,
  body#category #js-product-list .products.hl-view-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body#prices-drop .products,
  body#new-products .products,
  body#best-sales .products,
  body#manufacturer .products,
  body#supplier .products,
  body.page-manufacturer .products,
  body.page-supplier .products,
  body.page-prices-drop .products,
  body.page-new-products .products,
  body.page-best-sales .products,
  html[data-hl-cat-view="grid"] body#category #js-product-list .products,
  body#category #js-product-list .products.hl-view-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  body#prices-drop .products,
  body#new-products .products,
  body#best-sales .products,
  body#manufacturer .products,
  body#supplier .products,
  body.page-manufacturer .products,
  body.page-supplier .products,
  body.page-prices-drop .products,
  body.page-new-products .products,
  body.page-best-sales .products,
  html[data-hl-cat-view="grid"] body#category #js-product-list .products,
  body#category #js-product-list .products.hl-view-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1400px) {
  body#prices-drop .products,
  body#new-products .products,
  body#best-sales .products,
  body#manufacturer .products,
  body#supplier .products,
  body.page-manufacturer .products,
  body.page-supplier .products,
  body.page-prices-drop .products,
  body.page-new-products .products,
  body.page-best-sales .products,
  html[data-hl-cat-view="grid"] body#category #js-product-list .products,
  body#category #js-product-list .products.hl-view-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
  }
}

/*
 * C) Search — full width → 7-col @1400+, card rhythm like homepage Pakkumised.
 */
body#search .products,
body.page-search .products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 10px !important;
  row-gap: 12px !important;
}

@media (max-width: 379.98px) {
  body#search .products,
  body.page-search .products {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body#search .products,
  body.page-search .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body#search .products,
  body.page-search .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  body#search .products,
  body.page-search .products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
  }
}

@media (min-width: 1400px) {
  body#search .products,
  body.page-search .products {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
  }
}

body#search article.product-miniature.hl-pc,
body.page-search article.product-miniature.hl-pc {
  --hl-pc-img-h: 148px;
  --hl-pc-pad: 8px;
  --hl-pc-title: 12.5px;
  --hl-pc-price: 15.5px;
  --hl-pc-action-h: 34px;
}
body#search article.product-miniature.hl-pc .product-miniature__top,
body.page-search article.product-miniature.hl-pc .product-miniature__top {
  margin: 0 0 4px !important;
}
body#search article.product-miniature.hl-pc .product-miniature__image-container,
body#search article.product-miniature.hl-pc .thumbnail-container,
body.page-search article.product-miniature.hl-pc .product-miniature__image-container,
body.page-search article.product-miniature.hl-pc .thumbnail-container {
  padding: 1px !important;
}
body#search article.product-miniature.hl-pc .product-miniature__image,
body.page-search article.product-miniature.hl-pc .product-miniature__image {
  max-width: 98% !important;
  max-height: calc(var(--hl-pc-img-h) - 2px) !important;
  object-fit: contain !important;
}
body#search article.product-miniature.hl-pc .hl-pc-status,
body.page-search article.product-miniature.hl-pc .hl-pc-status {
  min-height: 14px !important;
  height: 14px !important;
  margin: 0 0 2px !important;
}
body#search article.product-miniature.hl-pc .product-miniature__title,
body.page-search article.product-miniature.hl-pc .product-miniature__title {
  min-height: calc(1.22em * 2) !important;
  max-height: calc(1.22em * 2) !important;
  height: calc(1.22em * 2) !important;
  margin: 0 0 4px !important;
  line-height: 1.22 !important;
  font-size: var(--hl-pc-title) !important;
}
body#search article.product-miniature.hl-pc .product-miniature__prices,
body.page-search article.product-miniature.hl-pc .product-miniature__prices {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 2px !important;
  gap: 1px !important;
  justify-content: flex-start !important;
}
body#search article.product-miniature.hl-pc .product-miniature__bottom,
body.page-search article.product-miniature.hl-pc .product-miniature__bottom,
body#search article.product-miniature.hl-pc .hl-list-buy,
body.page-search article.product-miniature.hl-pc .hl-list-buy {
  flex: 0 0 auto !important;
}
body#search article.product-miniature.hl-pc .hl-pc-avail,
body.page-search article.product-miniature.hl-pc .hl-pc-avail {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}
body#search article.product-miniature.hl-pc .hl-pc-avail:empty,
body.page-search article.product-miniature.hl-pc .hl-pc-avail:empty {
  display: none !important;
}
body#search article.product-miniature.hl-pc .product-miniature__actions,
body.page-search article.product-miniature.hl-pc .product-miniature__actions {
  flex: 0 0 auto !important;
  margin-top: 2px !important;
  gap: 0 !important;
  justify-content: flex-start !important;
}
body#search article.product-miniature.hl-pc .hl-list-buy,
body.page-search article.product-miniature.hl-pc .hl-list-buy {
  gap: 0 !important;
}
body#search article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body#search article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body#search article.product-miniature.hl-pc a.hl-pc-view,
body.page-search article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body.page-search article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body.page-search article.product-miniature.hl-pc a.hl-pc-view {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  font-size: 11px !important;
}
body#search article.product-miniature.hl-pc .product-miniature__form,
body.page-search article.product-miniature.hl-pc .product-miniature__form {
  width: 100% !important;
}
body#search article.product-miniature.hl-pc:hover,
body.page-search article.product-miniature.hl-pc:hover {
  transform: none !important;
}

/* Search page chrome — compact header + toolbar */
body#search .hl-search-header,
body.page-search .hl-search-header {
  margin: 0 0 12px;
  padding: 0;
}

body#search .hl-search-header__title,
body.page-search .hl-search-header__title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

body#search .hl-search-header__query,
body.page-search .hl-search-header__query {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #4b5563;
}

body#search .hl-search-toolbar,
body.page-search .hl-search-toolbar {
  margin: 0 0 14px;
}

body#search .hl-search-toolbar .hl-category-toolbar__row,
body.page-search .hl-search-toolbar .hl-category-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

body#search .hl-search-toolbar .hl-category-toolbar__count,
body.page-search .hl-search-toolbar .hl-category-toolbar__count {
  font-size: 0.9rem;
  color: #4b5563;
}

body#search .hl-search-empty,
body.page-search .hl-search-empty {
  padding: 28px 0 40px;
  max-width: 36rem;
}

body#search .hl-search-empty__lead,
body.page-search .hl-search-empty__lead {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
}

body#search .hl-search-empty__hint,
body.page-search .hl-search-empty__hint {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #6b7280;
}

body#search .hl-search-empty__actions,
body.page-search .hl-search-empty__actions {
  margin: 0;
  font-size: 0.9rem;
}

body#search .hl-search-empty__actions a,
body.page-search .hl-search-empty__actions a {
  color: #d71920;
  text-decoration: none;
}

body#search .hl-search-empty__actions a:hover,
body.page-search .hl-search-empty__actions a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  body#search .hl-search-header__title,
  body.page-search .hl-search-header__title {
    font-size: 1.2rem;
  }

  body#search .hl-search-toolbar .hl-category-toolbar__row,
  body.page-search .hl-search-toolbar .hl-category-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }

  body#search .hl-search-toolbar .hl-category-toolbar__actions,
  body.page-search .hl-search-toolbar .hl-category-toolbar__actions {
    width: 100%;
  }
}

/* === hl-product-card-b.css === */
/* HL product card chrome (part B) */

/* ===== Card shell ===== */
article.product-miniature.hl-pc {
  position: relative !important;
  border: 1px solid var(--hl-pc-border) !important;
  border-radius: var(--hl-pc-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

/* Full-card hit target (real <a>); CTAs stay above */
article.product-miniature.hl-pc > .hl-pc-hit {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent !important;
  cursor: pointer;
  pointer-events: auto !important;
}

/* Pass clicks through non-interactive areas to .hl-pc-hit */
article.product-miniature.hl-pc .product-miniature__inner,
article.product-miniature.hl-pc .product-miniature__inner * {
  pointer-events: none;
}

article.product-miniature.hl-pc .product-miniature__title,
article.product-miniature.hl-pc .product-miniature__image-link,
article.product-miniature.hl-pc .product-miniature__actions,
article.product-miniature.hl-pc .product-miniature__actions *,
article.product-miniature.hl-pc .product-miniature__form,
article.product-miniature.hl-pc .product-miniature__form *,
article.product-miniature.hl-pc .hl-pc-atc,
article.product-miniature.hl-pc .hl-pc-view,
article.product-miniature.hl-pc .hl-list-qty,
article.product-miniature.hl-pc .hl-list-qty *,
article.product-miniature.hl-pc .hl-pc-avail {
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
}

article.product-miniature.hl-pc .product-miniature__inner {
  position: relative;
  z-index: 2;
}

article.product-miniature.hl-pc:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 30, 40, .06) !important;
  border-color: #dfe5ea !important;
}

article.product-miniature.hl-pc .product-miniature__inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: var(--hl-pc-pad) !important;
  box-sizing: border-box;
}

/* Category LIST: do not paint as tall grid card first (CLS). List geometry wins in category-view CSS. */
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__inner,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__inner {
  display: grid !important;
  flex-direction: unset !important;
  height: 125px !important;
  min-height: 125px !important;
  max-height: 125px !important;
  padding: 10px 4px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

article.product-miniature.hl-pc .product-miniature__bottom {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0;
}

article.product-miniature.hl-pc .hl-list-buy {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  margin-top: 0 !important;
  gap: 0;
  align-items: center;
  width: 100%;
  min-height: 0;
}

/* Image — clean, fixed area */
article.product-miniature.hl-pc .product-miniature__top {
  position: relative !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

article.product-miniature.hl-pc .product-miniature__top .product-flags,
article.product-miniature.hl-pc .hl-flags-on-image {
  display: none !important;
}

article.product-miniature.hl-pc .product-miniature__image-container,
article.product-miniature.hl-pc .thumbnail-container {
  height: var(--hl-pc-img-h) !important;
  max-height: var(--hl-pc-img-h) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  padding: 6px !important;
  box-sizing: border-box;
}

article.product-miniature.hl-pc .product-miniature__image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

article.product-miniature.hl-pc .product-miniature__image {
  max-width: 90% !important;
  max-height: 145px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform .2s ease;
}

article.product-miniature.hl-pc:hover .product-miniature__image {
  transform: scale(1.015);
}

/* Status / title — reserved zones (list keeps in-flow; grid/home pin to corner) */
.hl-pc-status {
  flex: 0 0 auto;
  min-height: 15px;
  height: 15px;
  margin: 0 0 5px !important;
  line-height: 1;
  overflow: hidden;
}

.hl-pc-status__new {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--hl-pc-red, #d71920);
  color: #fff;
}

/* Grid + home + modules: UUS top-left of card (never clipped mid-title) */
html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc,
body#index article.product-miniature.hl-pc,
body#search article.product-miniature.hl-pc,
body.page-search article.product-miniature.hl-pc,
body#manufacturer article.product-miniature.hl-pc,
body#supplier article.product-miniature.hl-pc,
body#prices-drop article.product-miniature.hl-pc,
body#new-products article.product-miniature.hl-pc,
body#best-sales article.product-miniature.hl-pc,
body#product article.product-miniature.hl-pc,
body.page-product article.product-miniature.hl-pc,
body .module-products article.product-miniature.hl-pc,
body .ps-categoryproducts article.product-miniature.hl-pc,
body .ps-viewedproduct article.product-miniature.hl-pc,
body .product-accessories article.product-miniature.hl-pc {
  position: relative !important;
  overflow: visible !important;
}

html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-status,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-status,
body#index article.product-miniature.hl-pc .hl-pc-status,
body#search article.product-miniature.hl-pc .hl-pc-status,
body.page-search article.product-miniature.hl-pc .hl-pc-status,
body#manufacturer article.product-miniature.hl-pc .hl-pc-status,
body#supplier article.product-miniature.hl-pc .hl-pc-status,
body#prices-drop article.product-miniature.hl-pc .hl-pc-status,
body#new-products article.product-miniature.hl-pc .hl-pc-status,
body#best-sales article.product-miniature.hl-pc .hl-pc-status,
body#product article.product-miniature.hl-pc .hl-pc-status,
body.page-product article.product-miniature.hl-pc .hl-pc-status,
body .module-products article.product-miniature.hl-pc .hl-pc-status,
body .ps-categoryproducts article.product-miniature.hl-pc .hl-pc-status,
body .ps-viewedproduct article.product-miniature.hl-pc .hl-pc-status,
body .product-accessories article.product-miniature.hl-pc .hl-pc-status {
  position: absolute !important;
  top: 7px !important;
  left: 7px !important;
  z-index: 5 !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: calc(100% - 14px) !important;
  margin: 0 !important;
  overflow: visible !important;
  pointer-events: none;
}

html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-status__new,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-status__new,
body#index article.product-miniature.hl-pc .hl-pc-status__new,
body#search article.product-miniature.hl-pc .hl-pc-status__new,
body.page-search article.product-miniature.hl-pc .hl-pc-status__new,
body#product article.product-miniature.hl-pc .hl-pc-status__new,
body.page-product article.product-miniature.hl-pc .hl-pc-status__new {
  box-shadow: 0 1px 3px rgba(20, 30, 40, .14);
}

/* LIST: never pin UUS to card corner — keep beside title via .hl-list-flags */
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-status,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-status {
  position: static !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  pointer-events: auto;
}

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 {
  position: static !important;
  top: auto !important;
  left: auto !important;
}

article.product-miniature.hl-pc .product-miniature__infos {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  align-items: stretch;
}

article.product-miniature.hl-pc .product-miniature__title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: calc(1.32em * 2) !important;
  max-height: calc(1.32em * 2) !important;
  height: calc(1.32em * 2) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: var(--hl-pc-title) !important;
  font-weight: 600 !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: left !important;
  color: var(--hl-pc-text) !important;
  text-decoration: none !important;
  width: 100%;
  align-self: stretch;
}

article.product-miniature.hl-pc .product-miniature__title:hover {
  color: var(--hl-pc-red) !important;
}

/* Prices — fixed zone; commercial block centered (title stays left) */
article.product-miniature.hl-pc .product-miniature__prices {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 2px !important;
  flex: 0 0 auto !important;
  min-height: 42px !important;
  height: 42px !important;
  margin: 0 0 6px !important;
  width: 100%;
  overflow: hidden;
  text-align: center !important;
}

article.product-miniature.hl-pc .product-miniature__regular-price {
  order: -1;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: var(--hl-pc-muted) !important;
  text-decoration: line-through !important;
  line-height: 1.15 !important;
  max-height: 14px;
  overflow: hidden;
  text-align: center !important;
  align-self: center;
}

article.product-miniature.hl-pc .product-miniature__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 22px;
}

article.product-miniature.hl-pc .product-miniature__price {
  font-size: var(--hl-pc-price) !important;
  font-weight: 700 !important;
  color: var(--hl-pc-red) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.hl-pc-discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--hl-pc-red);
  color: #fff;
  white-space: nowrap;
}

/* Availability — always reserved, centered with price */
.hl-pc-avail {
  flex: 0 0 auto;
  min-height: 18px;
  height: 18px;
  margin: 0 0 8px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.hl-pc-oos,
.hl-list-oos.hl-pc-oos {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 18px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

article.product-miniature.hl-pc .product-miniature__actions {
  display: flex !important;
  flex-direction: column !important;
  margin-top: auto !important;
  padding-top: 0 !important;
  width: 100%;
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
}

article.product-miniature.hl-pc .product-miniature__form {
  width: auto;
  max-width: 100%;
  margin: 0;
}

/* Primary CTA — compact desktop */
article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
article.product-miniature.hl-pc .hl-pc-atc.btn-primary {
  width: auto !important;
  min-width: 132px !important;
  max-width: 168px !important;
  height: var(--hl-pc-action-h) !important;
  min-height: var(--hl-pc-action-h) !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--hl-pc-atc, #d71920) !important;
  background: var(--hl-pc-atc, #d71920) !important;
  background-color: var(--hl-pc-atc, #d71920) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 1px 2px rgba(215, 25, 32, .08) !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
article.product-miniature.hl-pc .hl-pc-atc .material-icons {
  color: #fff !important;
  text-transform: none !important;
}

article.product-miniature.hl-pc .hl-pc-atc .material-icons {
  font-size: 15px !important;
}

article.product-miniature.hl-pc .hl-pc-atc:hover {
  background: var(--hl-pc-atc-hover, #c4161c) !important;
  border-color: var(--hl-pc-atc-hover, #c4161c) !important;
  color: #fff !important;
}

article.product-miniature.hl-pc .hl-pc-atc:focus-visible,
article.product-miniature.hl-pc .hl-pc-view:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Secondary CTA */
article.product-miniature.hl-pc a.hl-pc-view {
  width: auto !important;
  min-width: 132px !important;
  max-width: 168px !important;
  height: var(--hl-pc-action-h) !important;
  min-height: var(--hl-pc-action-h) !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid #dde3e8 !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

article.product-miniature.hl-pc a.hl-pc-view:hover {
  border-color: var(--hl-pc-red) !important;
  color: var(--hl-pc-red) !important;
  background: #fff !important;
}

/* Mobile: full-width touch CTA */
@media (max-width: 767.98px) {
  :root {
    --hl-pc-pad: 12px;
    --hl-pc-img-h: 132px;
    --hl-pc-action-h: 40px;
  }
  article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
  article.product-miniature.hl-pc a.hl-pc-view {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  article.product-miniature.hl-pc .hl-list-buy {
    align-items: stretch;
  }
  article.product-miniature.hl-pc .product-miniature__form {
    width: 100%;
  }
}

/* Compact (product page related) */
article.product-miniature.hl-pc--compact {
  --hl-pc-pad: 10px;
  --hl-pc-img-h: 120px;
  --hl-pc-title: 12px;
  --hl-pc-price: 15px;
  --hl-pc-action-h: 32px;
}

article.product-miniature.hl-pc--compact .product-miniature__image {
  max-height: 110px !important;
}

/* PDP related/viewed: beat body#product outline ATC from legacy header CSS */
body#product article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body#product article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body.page-product article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body.page-product article.product-miniature.hl-pc .hl-pc-atc.btn-primary {
  width: auto !important;
  min-width: 132px !important;
  max-width: 168px !important;
  height: var(--hl-pc-action-h) !important;
  min-height: var(--hl-pc-action-h) !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--hl-pc-atc, #d71920) !important;
  background: var(--hl-pc-atc, #d71920) !important;
  background-color: var(--hl-pc-atc, #d71920) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 1px 2px rgba(215, 25, 32, .08) !important;
}

body#product article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body#product article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body.page-product article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body.page-product article.product-miniature.hl-pc .hl-pc-atc .material-icons {
  color: #fff !important;
  text-transform: none !important;
}

body#product article.product-miniature.hl-pc .hl-pc-atc:hover,
body.page-product article.product-miniature.hl-pc .hl-pc-atc:hover {
  background: var(--hl-pc-atc-hover, #c4161c) !important;
  border-color: var(--hl-pc-atc-hover, #c4161c) !important;
  color: #fff !important;
}

body#product article.product-miniature.hl-pc a.hl-pc-view,
body.page-product article.product-miniature.hl-pc a.hl-pc-view {
  width: auto !important;
  min-width: 132px !important;
  max-width: 168px !important;
  height: var(--hl-pc-action-h) !important;
  min-height: var(--hl-pc-action-h) !important;
  background: #fff !important;
  color: #333 !important;
  border: 1px solid #dde3e8 !important;
  text-transform: none !important;
}

/* Equal card bottoms: clamp related titles to 3 lines */
body#product article.product-miniature.hl-pc--compact .product-miniature__title,
body.page-product article.product-miniature.hl-pc--compact .product-miniature__title {
  min-height: calc(1.25em * 3) !important;
  max-height: calc(1.25em * 3) !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
}

body#product .ps-categoryproducts .products,
body#product .ps-viewedproduct .products,
body.page-product .ps-categoryproducts .products,
body.page-product .ps-viewedproduct .products,
body#product .product-accessories .products {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

body#product .ps-categoryproducts .products > article,
body#product .ps-viewedproduct .products > article,
body.page-product .ps-categoryproducts .products > article,
body.page-product .ps-viewedproduct .products > article {
  height: 100% !important;
}

@media (min-width: 768px) {
  body#product .ps-categoryproducts .products,
  body#product .ps-viewedproduct .products,
  body.page-product .ps-categoryproducts .products,
  body.page-product .ps-viewedproduct .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  body#product .ps-categoryproducts .products,
  body#product .ps-viewedproduct .products,
  body.page-product .ps-categoryproducts .products,
  body.page-product .ps-viewedproduct .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  body#product .ps-categoryproducts .products,
  body#product .ps-viewedproduct .products,
  body.page-product .ps-categoryproducts .products,
  body.page-product .ps-viewedproduct .products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Homepage section title spacing */
body#index .section-title {
  margin-bottom: 18px !important;
  padding-bottom: 0 !important;
}

body#index .section-title::before,
body#index .section-title::after {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  article.product-miniature.hl-pc,
  article.product-miniature.hl-pc .product-miniature__image {
    transition: none !important;
  }
  article.product-miniature.hl-pc:hover { transform: none; }
  article.product-miniature.hl-pc:hover .product-miniature__image { transform: none; }
}

/* === hl-product-card-b2.css === */
/* HL product card list-view neutralize (part B2) */
/* ===== LIST VIEW: neutralize shared GRID card chrome ===== */
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  background: transparent !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc:hover,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__image-container,
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .thumbnail-container,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__image-container,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .thumbnail-container {
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__image,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__image {
  max-height: none !important;
  transform: none !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__title,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__title {
  min-height: 0 !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}
/* List: neutralize GRID zone heights */
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__prices,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__prices {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  text-align: right !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__title,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__title {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-status,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-status {
  height: auto !important;
  min-height: 0 !important;
  display: none !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-discount,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-discount {
  display: inline-flex !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-avail,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-avail {
  justify-content: flex-end !important;
  text-align: right !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-oos,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-oos {
  text-align: right !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-list-buy,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-list-buy {
  flex: none !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__actions,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__actions {
  margin-top: 0 !important;
  flex: none !important;
  align-items: flex-end !important;
}

/* ATC lives in a ROW form → flex-basis = width. OK. */
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-atc {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 110px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: #d71920 !important;
  background-color: #d71920 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-atc .material-icons {
  color: #fff !important;
}
/*
 * Vaata toodet is a DIRECT child of COLUMN .actions.
 * flex: 0 0 110px would set HEIGHT (main axis) → 110×110 square + wrapped text.
 */
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc a.hl-pc-view,
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc a.hl-list-viewlink,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc a.hl-pc-view,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc a.hl-list-viewlink {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 128px !important;
  max-width: 160px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  border: 1px solid #dde3e8 !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #333 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc a.hl-pc-view:hover,
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc a.hl-list-viewlink:hover,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc a.hl-pc-view:hover,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc a.hl-list-viewlink:hover {
  border-color: #d71920 !important;
  color: #d71920 !important;
  background: #fff !important;
}
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc:hover,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-atc:hover {
  background: #b9141a !important;
  border-color: #b9141a !important;
  color: #fff !important;
}

/* Category GRID: price+CTA action group (list rules above stay exclusive) */
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__top {
  margin-bottom: 6px !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__image-container,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .thumbnail-container {
  padding: 2px !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__image {
  max-width: 96% !important;
  max-height: calc(var(--hl-pc-img-h) - 4px) !important;
  object-fit: contain !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-status {
  min-height: 14px;
  height: 14px;
  margin: 0 0 2px !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__title {
  margin-bottom: 4px !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__prices {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  min-height: 26px !important;
  height: auto !important;
  justify-content: flex-end !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-avail:not(:has(*)) {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-avail {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 4px !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .product-miniature__actions {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc:hover {
  transform: none !important;
}

/* === hl-product-card-calm.css === */
/* HL product-card color calm — colors only, scoped to .hl-pc miniatures.
   Restore: remove this file + head.tpl link, or restore from
   _backups/product-card-colors-pre-calm-2026-09-18/
   Say: "taasta tootekaardi värvid" */
article.product-miniature.hl-pc {
  /* Soft-enough but contrasty ATC — brand red, slightly compact */
  --hl-pc-atc: #d71920;
  --hl-pc-atc-hover: #c4161c;
  --hl-pc-atc-active: #b01419;
  --hl-pc-price-std: #252a31;
  --hl-pc-price-sale: var(--hl-pc-red, #d71920);
  --hl-pc-price-was: #68707c;
  --hl-pc-badge-bg: #d71920;
  --hl-pc-badge-fg: #fff;
  --hl-pc-new-bg: #d71920;
  --hl-pc-new-fg: #fff;
  --hl-pc-new-border: #d71920;
}

/* A — ATC soft red (list/grid/home/search/related) */
article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body#index article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body#index article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body#search article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body#search article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body.page-search article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body.page-search article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body#product article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body#product article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body.page-product article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
body.page-product article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body#manufacturer article.product-miniature.hl-pc .hl-pc-atc,
body#supplier article.product-miniature.hl-pc .hl-pc-atc,
body#prices-drop article.product-miniature.hl-pc .hl-pc-atc,
body#new-products article.product-miniature.hl-pc .hl-pc-atc,
body#best-sales article.product-miniature.hl-pc .hl-pc-atc,
html[data-hl-cat-view="list"] 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 .hl-pc-atc,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-atc,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-atc {
  background: var(--hl-pc-atc) !important;
  background-color: var(--hl-pc-atc) !important;
  border-color: var(--hl-pc-atc) !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(215, 25, 32, .08) !important;
}

article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body#index article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body#index article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body#search article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body#search article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body.page-search article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body.page-search article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body#product article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body#product article.product-miniature.hl-pc .hl-pc-atc .material-icons,
body.page-product article.product-miniature.hl-pc .hl-pc-atc .product-miniature__add-text,
body.page-product article.product-miniature.hl-pc .hl-pc-atc .material-icons {
  color: #fff !important;
}

article.product-miniature.hl-pc .hl-pc-atc:hover,
article.product-miniature.hl-pc .hl-pc-atc:hover.btn-primary,
body#index article.product-miniature.hl-pc .hl-pc-atc:hover,
body#search article.product-miniature.hl-pc .hl-pc-atc:hover,
body.page-search article.product-miniature.hl-pc .hl-pc-atc:hover,
body#product article.product-miniature.hl-pc .hl-pc-atc:hover,
body.page-product article.product-miniature.hl-pc .hl-pc-atc:hover,
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc:hover,
html[data-hl-cat-view="grid"] body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc:hover,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-pc-atc:hover,
body#category #js-product-list .products.hl-view-grid article.product-miniature.hl-pc .hl-pc-atc:hover {
  background: var(--hl-pc-atc-hover) !important;
  background-color: var(--hl-pc-atc-hover) !important;
  border-color: var(--hl-pc-atc-hover) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(215, 25, 32, .14) !important;
}

article.product-miniature.hl-pc .hl-pc-atc:active,
article.product-miniature.hl-pc .hl-pc-atc:active.btn-primary {
  background: var(--hl-pc-atc-active) !important;
  background-color: var(--hl-pc-atc-active) !important;
  border-color: var(--hl-pc-atc-active) !important;
  color: #fff !important;
}

article.product-miniature.hl-pc .hl-pc-atc:focus-visible {
  outline: 2px solid #d71920;
  outline-offset: 2px;
}

article.product-miniature.hl-pc .hl-pc-atc:disabled,
article.product-miniature.hl-pc .hl-pc-atc[disabled],
article.product-miniature.hl-pc .hl-pc-atc.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Slightly smaller ATC so strong red doesn't dominate */
article.product-miniature.hl-pc {
  --hl-pc-action-h: 30px;
}
article.product-miniature.hl-pc .hl-pc-atc.product-miniature__add,
article.product-miniature.hl-pc .hl-pc-atc.btn-primary,
body#index article.product-miniature.hl-pc .hl-pc-atc,
body#category #js-product-list article.product-miniature.hl-pc .hl-pc-atc,
body#search article.product-miniature.hl-pc .hl-pc-atc {
  min-width: 118px !important;
  max-width: 156px !important;
  height: var(--hl-pc-action-h) !important;
  min-height: var(--hl-pc-action-h) !important;
  padding: 0 10px !important;
  font-size: 10.5px !important;
  border-radius: 5px !important;
}
article.product-miniature.hl-pc .hl-pc-atc .material-icons {
  font-size: 14px !important;
}

/* B — prices: std dark; sale red only when regular-price present (has_discount markup) */
article.product-miniature.hl-pc .product-miniature__price {
  color: var(--hl-pc-price-std) !important;
}

article.product-miniature.hl-pc .product-miniature__prices:has(.product-miniature__regular-price) .product-miniature__price {
  color: var(--hl-pc-price-sale) !important;
}

article.product-miniature.hl-pc .product-miniature__regular-price {
  color: var(--hl-pc-price-was) !important;
}

/* C — −% badge (solid HL red + white) */
article.product-miniature.hl-pc .hl-pc-discount,
.hl-pc-discount {
  background: var(--hl-pc-badge-bg) !important;
  background-color: var(--hl-pc-badge-bg) !important;
  color: var(--hl-pc-badge-fg) !important;
  font-weight: 700 !important;
  border: 0 !important;
}

/* D — UUS solid red (grid status + list flag; @layer beats BS badge) */
article.product-miniature.hl-pc .hl-pc-status__new {
  background: var(--hl-pc-new-bg) !important;
  background-color: var(--hl-pc-new-bg) !important;
  color: var(--hl-pc-new-fg) !important;
  border: 1px solid var(--hl-pc-new-border) !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  padding: 1px 3px !important;
}

@layer vendors {
  article.product-miniature.hl-pc .hl-list-flags .product-flag.new,
  article.product-miniature.hl-pc .hl-list-flags .badge.new,
  html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-list-flags .product-flag.new,
  body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-list-flags .product-flag.new,
  html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-list-flags .badge.new,
  body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-list-flags .badge.new,
  html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .hl-list-flags .product-flags .badge.new:not(.discount),
  body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .hl-list-flags .product-flags .badge.new:not(.discount) {
    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;
  }
}

/* E — .hl-pc-view left as-is (already neutral) */

/* === hl-product-card-title.css === */
/* HL product-card: title + careful mobile gutters.
   Do not touch image / price / CTA / badge chrome. */
article.product-miniature.hl-pc .product-miniature__title {
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  min-height: calc(1.32em * 3) !important;
  max-height: calc(1.32em * 3) !important;
  height: calc(1.32em * 3) !important;
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  /* borrow ~3px from card side pad — name only, rest unchanged */
  margin-left: -3px !important;
  margin-right: -3px !important;
  width: calc(100% + 6px) !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__title,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__title {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  margin: 0 !important;
  width: auto !important;
}

/* Mobile: widen cards carefully — less outer edge + tighter column gap.
   Keep ~10px screen edge so it still reads premium. */
@media (max-width: 767.98px) {
  :root {
    --hl-pc-gap-x: 8px;
  }

  body#category #wrapper > .container,
  body#index #wrapper > .container,
  body#prices-drop #wrapper > .container,
  body#new-products #wrapper > .container,
  body#best-sales #wrapper > .container,
  body#search #wrapper > .container,
  body#manufacturer #wrapper > .container,
  body.page-search #wrapper > .container,
  body.page-prices-drop #wrapper > .container,
  body.page-new-products #wrapper > .container,
  body.page-best-sales #wrapper > .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* custom.css adds 5px products padding — reclaim for name width */
  body#index .products,
  body#index .featured-products .products,
  body#index .module-products .products,
  body#prices-drop .products,
  body#new-products .products,
  body#best-sales .products,
  body#search .products,
  body#manufacturer .products,
  body.page-search .products,
  html[data-hl-cat-view="grid"] body#category #js-product-list .products,
  body#category #js-product-list .products.hl-view-grid,
  #products .products {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* === hl-product-card-img-round.css === */
/* HL — soft-round product thumbs (black studio squares look less harsh) */

/* Grid / listing cards */
article.product-miniature.hl-pc .product-miniature__image-container,
article.product-miniature.hl-pc .thumbnail-container {
  background: #fff !important;
}

article.product-miniature.hl-pc .product-miniature__image-link {
  border-radius: 16px !important;
  overflow: hidden !important;
}

article.product-miniature.hl-pc .product-miniature__image {
  border-radius: 16px !important;
}

html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__image-link,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__image-link,
html[data-hl-cat-view="list"] body#category #js-product-list article.product-miniature.hl-pc .product-miniature__image,
body#category #js-product-list .products.hl-view-list article.product-miniature.hl-pc .product-miniature__image {
  border-radius: 12px !important;
}

/* PDP main image */
body#product .product__images img,
body#product .js-qv-product-cover,
body#product .product-cover img,
body#product .images-container img {
  border-radius: 16px;
}

