/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */

.mh-grid { display: grid; gap: 0.75rem; }
.mh-grid--6 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) { .mh-grid--6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .mh-grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .mh-grid--6 { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* Section titles inside HOOK_HOME — show the real Danish titles, style consistently */
.mh-hookhome h2,
.mh-hookhome .h2,
.mh-hookhome .featured-products__title,
.mh-hookhome .products-section-title,
.mh-hookhome .module-title,
.mh-hookhome .section-title {
  display: block;
  font-family: "Bricolage Grotesque", var(--mh-font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  color: var(--mh-plum);
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
  border: 0;
  line-height: 1.1;
}

/* Spacing between consecutive product carousels (target module wrappers INSIDE container, not the container itself) */
.mh-hookhome .mh-container > section,
.mh-hookhome .mh-container > div {
  margin: 0 0 4rem;
}
.mh-hookhome .mh-container > section:last-child,
.mh-hookhome .mh-container > div:last-child { margin-bottom: 0; }
.mh-hookhome > .mh-container { margin: 0 auto; }

/* "Alle nyheder" / "All featured products" buttons → clean text-link with arrow */
.mh-hookhome .btn-outline-primary,
.mh-hookhome .btn.btn-outline-primary,
.mh-hookhome .module-products__buttons .btn,
.mh-hookhome .module-products__buttons a {
  background: transparent;
  border: 0;
  padding: 0.4rem 0;
  color: var(--mh-plum);
  font-family: var(--mh-font-body);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 0;
  display: inline-block;
  margin: 1.5rem 0 0;
  text-transform: none;
  letter-spacing: 0;
}

.mh-hookhome .btn-outline-primary::after,
.mh-hookhome .module-products__buttons .btn::after,
.mh-hookhome .module-products__buttons a::after {
  content: " →";
  text-decoration: none;
  display: inline-block;
  margin-left: 0.25rem;
}

.mh-hookhome .btn-outline-primary:hover { color: var(--mh-primary-deep); }

/* Center button under each carousel */
.mh-hookhome .module-products__buttons {
  text-align: center;
  margin-top: 1.5rem;
}

/* Force HOOK_HOME carousel widgets to render as a 6-column grid instead of horizontal slider */
.mh-hookhome .swiper,
.mh-hookhome .swiper-container,
.mh-hookhome .slick-slider,
.mh-hookhome [class*="carousel"] {
  overflow: visible;
  width: 100%;
}

.mh-hookhome .products,
.mh-hookhome .product_list,
.mh-hookhome .products-list,
.mh-hookhome .swiper-wrapper,
.mh-hookhome .slick-track,
.mh-hookhome ul.products,
.mh-hookhome [class*="product-list"] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-hookhome .swiper-slide,
.mh-hookhome .slick-slide,
.mh-hookhome .products > li,
.mh-hookhome .swiper-wrapper > * {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.mh-hookhome .swiper-button-prev,
.mh-hookhome .swiper-button-next,
.mh-hookhome .slick-arrow,
.mh-hookhome .swiper-pagination { display: none; }

@media (max-width: 1200px) {
  .mh-hookhome .products, .mh-hookhome .swiper-wrapper, .mh-hookhome ul.products,
  .mh-hookhome [class*="product-list"] { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .mh-hookhome .products, .mh-hookhome .swiper-wrapper, .mh-hookhome ul.products,
  .mh-hookhome [class*="product-list"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .mh-hookhome .products, .mh-hookhome .swiper-wrapper, .mh-hookhome ul.products,
  .mh-hookhome [class*="product-list"] { grid-template-columns: repeat(2, 1fr); }
}

.mh-card {
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mh-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; flex: 1; }
.mh-card__link:hover { color: inherit; }

.mh-card__media {
  position: relative;
  aspect-ratio: 1;
  background: #F4F4F2;
  border-radius: 2px;
  overflow: hidden;
}

.mh-card__media-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.mh-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .35s ease;
  mix-blend-mode: multiply;
}

.mh-card:hover .mh-card__img { transform: scale(1.04); }

.mh-card__actions {
  position: absolute;
  bottom: 0.45rem;
  right: 0.45rem;
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.mh-card__actions .mh-card__wish-slot,
.mh-card__actions .bm-wishlist-btn-mini,
.mh-card__actions .mh-card__form,
.mh-card__actions .mh-card__buy {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.mh-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #E30613;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  line-height: 1;
  z-index: 1;
}

.mh-card__badge--sale { background: #E30613; }
.mh-card__badge--tag { background: var(--mh-plum); top: 0.5rem; left: auto; right: 0.5rem; }

.bm-wishlist-btn-mini,
.mh-card__wish {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: #FFFFFF;
  border: 0;
  color: var(--mh-plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
  padding: 0;
}

.bm-wishlist-btn-mini:hover,
.mh-card__wish:hover { color: var(--mh-primary); }

.bm-wishlist-btn-mini.in-wishlist { background: var(--mh-primary); color: #FFFFFF; }
.bm-wishlist-btn-mini img { width: 14px; height: 14px; }
.bm-wishlist-btn-mini.in-wishlist img { filter: brightness(0) invert(1); }

.mh-card__body {
  padding: 0.7rem 0 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.mh-card__brand {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-muted);
  display: none;
}

.mh-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--mh-ink);
  line-height: 1.3;
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  letter-spacing: -0.005em;
}

.mh-card__rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.mh-card__stars {
  color: #0F0F0F;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mh-card__rcount {
  font-size: 11px;
  color: var(--mh-muted);
  font-weight: 500;
}

.mh-card__stock {
  font-size: 11.5px;
  color: var(--mh-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mh-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2BB673;
  display: inline-block;
}
/* Stock state (driven by real $product.availability) */
.mh-card__stock--low .mh-card__dot { background: #E0A800; }
.mh-card__stock--out { color: #C0392B; }
.mh-card__stock--out .mh-card__dot { background: #C0392B; }

.mh-card__prices {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.mh-card__was {
  font-size: 12px;
  color: var(--mh-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.mh-card__price {
  font-family: var(--mh-font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mh-plum);
  letter-spacing: -0.005em;
}

.mh-card__price--sale { color: #E30613; }

.mh-card__save {
  display: none;
}

.mh-card__form { margin: 0; }

.mh-card__buy {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--mh-plum);
  color: #FFFFFF;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mh-card__buy i { font-size: 16px; line-height: 1; }
.mh-card__buy::before { content: none; }

.mh-card__buy:hover { background: var(--mh-primary); }
.mh-card__buy--added { background: var(--mh-lime-deep); }
.mh-card__buy--added::before { content: none; }
.mh-card__buy--added i { font-size: 14px; }

.mh-card__wish--on { background: var(--mh-primary); color: #FFFFFF; border-color: var(--mh-primary); }
.mh-card__wish--on i { font-weight: bold; }

.mh-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--mh-plum);
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 18px 40px rgba(61, 21, 48, 0.30);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 10000;
  pointer-events: none;
}
.mh-toast--in { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   PRODUCT MINIATURE OVERRIDES (Hummingbird catalog cards)
   ============================================================ */

.product-miniature,
.js-product-miniature {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.product-title a {
  color: var(--mh-plum);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  font-family: var(--mh-font-body);
}

.product-price-and-shipping .price,
.product-price {
  color: var(--mh-primary-deep);
  font-weight: 800;
  font-size: 17px;
  font-family: var(--mh-font-body);
}

.regular-price {
  color: var(--mh-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.product-flag {
  background: var(--mh-primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.product-flag.new { background: var(--mh-plum); }
.product-flag.online-only { background: var(--mh-lime); color: var(--mh-plum); }

/* Product card hover swap — second image visible on hover */
.mh-card__img--primary,
.mh-card__img--hover {
  transition: opacity .25s ease;
}
.mh-card__img--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}
/* Only fade the primary out on hover when a real hover image is present.
   Without `:has()`, cards with only one image showed empty space on hover. */
.mh-card:has(.mh-card__img--hover):hover .mh-card__img--primary { opacity: 0; }
.mh-card:hover .mh-card__img--hover { opacity: 1; }
@media (hover: none) {
  .mh-card__img--hover { display: none; }
}

