/**
 * Dahls product-tile skin. Not scoped to the category page — the same
 * miniature renders in related-product carousels, search and the home page.
 */
.mh-card,
.product-miniature {
  background: #fff;
  border-radius: 6px;
  overflow: visible;
  transition: box-shadow .15s, translate .15s;
}
.product-miniature:hover {
  translate: 0 -1px;
}
.mh-card__media {
  background: #f8f8f8;
  border-radius: 16px;
  aspect-ratio: 333 / 319;
  margin-bottom: 20px;
}
.mh-card__media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.mh-card__img {
  max-width: 250px;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mh-card__img--hover {
  inset: unset;
}
.mh-card:hover .mh-card__img {
  transform: none;
  scale: 1.04;
}
.mh-card__link {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mh-card__body { padding: 0; }
.mh-card__name {
  order: 1;
  margin: 0;
  font-family: 'GT Walsheim', sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: normal;
  color: #232323;
  text-transform: capitalize;
}

/* Related-products row (product page): production renders a plain 5-up row with a
   "Du vil eventuelt også synes om" heading — no carousel, no arrows. */
.product-accessories .products-section-title {
  font-family: 'GT Walsheim', sans-serif;
  font-size: 27px;
  font-weight: 500;
  text-align: left;
  margin: 0 0 18px;
}
.product-accessories .item_listing {
  display: flex;
  flex-wrap: wrap;
}
.product-accessories .item {
  flex: 0 0 20%;
  max-width: 20%;
  padding-right: 20px;
  box-sizing: border-box;
}
/* Production keeps the wishlist heart visible on these tiles, bottom-right. */
.product-accessories .mh-card__actions {
  opacity: 1;
  top: auto;
  bottom: 8px;
  right: 8px;
}
.product-accessories .mh-card__name { font-weight: 700; }
/* Production shows no out-of-stock ribbon outside the category listing. */
.product-accessories .product-flags.out_ofstock { display: none; }
.mh-card__prices { margin-top: 10px; }
.mh-card__prices,
.mh-card__prices .mh-card__price {
  order: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: normal;
  color: #000;
}
.mh-card__rating,
.mh-card__stock { display: none; }
.mh-card__actions .mh-card__form { display: none !important; }
.mh-card__actions {
  top: 4px;
  right: 8px;
  bottom: auto;
  left: auto;
}
.mh-card__actions .bm-wishlist-btn-mini {
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 50%;
  padding: 0;
  text-align: center;
  line-height: 32px;
  z-index: 5;
  box-shadow: none;
  opacity: 0;
  transition: opacity 200ms;
}
.product-miniature:hover .bm-wishlist-btn-mini,
.product-miniature:focus-within .bm-wishlist-btn-mini { opacity: 1; }
.mh-card__actions .bm-wishlist-btn-mini.in-wishlist {
  background: none;
}
.mh-card__actions .bm-wishlist-btn-mini img {
  width: 24px;
  height: 24px;
  filter: none;
}
.mh-card__actions .bm-wishlist-btn-mini.in-wishlist img {
  filter: invert(38%) sepia(72%) saturate(1893%) hue-rotate(333deg) brightness(96%) contrast(90%);
}
.mh-card__actions { opacity: 0; transition: opacity 200ms; }
.product-miniature:hover .mh-card__actions,
.product-miniature:focus-within .mh-card__actions { opacity: 1; }

.inkl-text {
  order: 3;
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 24px;
  font-weight: 400;
  color: #5a5a5a;
  background: #fff;
  margin-top: 5px;
  padding-left: 4px;
  padding-right: 4px;
}
.inkl-text.hide { display: none; }

.mh-card__media .product-flags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mh-card__media .product-flag {
  background: #fff;
  color: #000;
  font-family: 'GT Walsheim';
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .7px;
  line-height: 10px;
  text-align: center;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .067);
}
.mh-card__media .product-flag.popular::before {
  content: '🎁';
  display: inline-block;
  margin-right: 6px;
  line-height: inherit;
}
.mh-card__media .product-flag.discount {
  color: #fff;
  background: #f8665f;
  font-weight: 500;
  letter-spacing: normal;
  box-shadow: none;
}
.mh-card__media .product-flag.graveret {
  background: #fdbb3f;
  letter-spacing: normal;
  box-shadow: none;
}
.mh-card__media .product-flags:not(.out_ofstock) .product-flag.new {
  background: #001e3d;
  color: #fff;
  letter-spacing: normal;
  box-shadow: none;
}
.mh-card__media .product-flags.out_ofstock ~ .product-flags {
  margin-top: 22px;
}
.mh-card__media .product-flags.out_ofstock {
  top: 0;
  left: 0;
  right: 0;
}
.mh-card__media .product-flags.out_ofstock .product-flag {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  text-align: center;
  background: #001e3d;
  color: #fff;
  letter-spacing: normal;
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}

@media (max-width: 992px) {

  .mh-card__media .product-flag {
    padding: 5px 12.5px;
    border: 0;
  }

  .mh-card__media {
    padding: 0;
    aspect-ratio: 172 / 229;
  }
  .mh-card__media-link { padding: 0; }
  .mh-card__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
  }
  .inkl-text { font-size: 10px; line-height: 18px; }}

/* Listing cards match the live Dahls four-up/two-up tile geometry. */
body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card.product-miniature {
  display: block;
  height: 442px;
  overflow: visible;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__media {
  width: 100%;
  height: 319px;
  aspect-ratio: auto;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 16px;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__media-link {
  width: 100%;
  height: 100%;
  padding: 0;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__img {
  width: 250px;
  height: 250px;
  max-width: 250px;
  max-height: 250px;
  padding: 0;
  mix-blend-mode: multiply;
  object-fit: contain;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__link {
  display: block;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__body {
  display: flex;
  height: 103px;
  min-height: 103px;
  padding: 0 !important;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__name {
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  font: 400 15px/20px 'GT Walsheim', sans-serif;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__prices {
  height: 24px;
  margin: 10px 0 0;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__prices,
body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__price {
  font: 500 18px/24px 'DM Sans', sans-serif;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .inkl-text {
  height: 24px;
  margin-top: 5px;
  font: 400 13px/24px 'DM Sans', sans-serif;
}

body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card__actions {
  display: none;
}

@media (max-width: 992px) {
  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card.product-miniature {
    height: 336px;
  }

  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__media {
    height: 229px;
  }

  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 10px;
  }

  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__body {
    height: 87px;
    min-height: 87px;
  }

  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__name {
    font-size: 13px;
    line-height: 20px;
  }

  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .mh-card__prices {
    margin-top: 0;
  }

  body:is(#category, #search, #best-sales, #prices-drop, #new-products) .mh-card .inkl-text {
    height: 18px;
    font-size: 10px;
    line-height: 18px;
  }
}
