.product-small > .col-inner:has(> .kinders-market-card) {
  position: relative;
  height: 100%;
}

.kinders-market-card {
  --market-card-surface: #fbf6ee;
  --market-card-ink: #28221d;
  --market-card-accent: #8f3829;
  --market-card-inset: clamp(10px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dfd7cb;
  border-radius: 14px;
  background: var(--market-card-surface);
  color: var(--market-card-ink);
}

.kinders-market-card .kinders-market-card__media {
  position: relative;
  isolation: isolate;
  background: #fffdf8;
}

.kinders-market-card .kinders-market-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 26px 14px 10px;
  overflow: hidden;
}

.kinders-market-card .kinders-market-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .kinders-market-card .kinders-market-card__image:hover img {
    transform: scale(1.04);
  }
}

.kinders-market-card .kinders-market-card__tools {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
}

.kinders-market-card .kinders-market-card__stock {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: auto;
  padding: 4px 9px;
  background: #fffdf8;
  color: #332d29;
  border: 1px solid #d9cbb9;
  border-radius: 2px;
  font-size: 14px;
}

.kinders-market-card .kinders-market-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--market-card-inset);
  border-top: 1px solid #e8dfd2;
  text-align: left;
}

.kinders-market-card .kinders-market-card__title :is(.product-title, .woocommerce-loop-product__title, .product-title a) {
  margin: 0;
  color: var(--market-card-ink);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 650;
  line-height: 1.23;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.kinders-market-card .kinders-market-card__title .product-cat {
  display: block;
  overflow: visible;
  margin: 0 0 4px;
  color: #665a50;
  font-size: 14px;
  line-height: 1.2;
  opacity: 1;
  text-transform: none;
  white-space: normal;
}

.kinders-market-card .kinders-market-card__price {
  margin-top: auto;
  padding-top: 8px;
}

.kinders-market-card .kinders-market-card__price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: var(--market-card-ink);
  font-size: 16px;
  line-height: 1.4;
}

.kinders-market-card .kinders-market-card__price .price .amount {
  font-size: inherit;
}

.kinders-market-card .kinders-market-card__price .price del,
.kinders-market-card .kinders-market-card__price .price del .amount {
  color: #60554c;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
}

.kinders-market-card .kinders-market-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.kinders-market-card .kinders-market-card__actions :is(.button, .kinders-market-card__details, .quick-view, .added_to_cart) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #45231d;
  border-radius: 5px;
  background: #45231d;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.kinders-market-card .kinders-market-card__actions :is(.button, .kinders-market-card__details, .quick-view, .added_to_cart):hover {
  border-color: #31231d;
  background: #31231d;
  color: #fff;
}

.kinders-market-card .kinders-market-card__actions .quick-view {
  border-color: #c0ad9d;
  background: #fffaf0;
  color: #45231d;
}

.kinders-market-card .kinders-market-card__actions .quick-view:hover {
  border-color: #45231d;
  background: #f0e4d5;
  color: #45231d;
}

.kinders-market-card :is(a, button):focus-visible {
  outline: 2px solid var(--market-card-accent);
  outline-offset: 2px;
}

.kinders-market-card .kinders-market-card__image:focus-visible {
  outline-offset: -4px;
}

.product-small > .col-inner:has(> .kinders-market-card) > .badge-container {
  inset: 10px auto auto 10px;
  max-width: calc(100% - 20px);
  margin: 0;
  pointer-events: none;
}

.woocommerce .badge-container .kinders-market-sale,
.woocommerce-page .badge-container .kinders-market-sale,
.badge-container .kinders-market-sale {
  display: block;
  width: max-content;
  max-width: 100%;
  height: auto;
  margin: 0 0 4px;
}

.badge-container .kinders-market-sale .badge-inner.on-sale,
.wgm-native-card .badge-container .kinders-market-sale .badge-inner.on-sale,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 5px 9px;
  border: 1px solid #e60023 !important;
  border-radius: 30px !important;
  background-color: #e60023 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.badge-container .kinders-market-sale .badge-inner.on-sale .onsale,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge__text {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.wgm-native-card .wgm-native-card__sale-label {
  display: none;
}

:is(.kinders-market-card, .wgm-native-card, .product-small, .single-product .product-main, .product-quick-view-container)
  .price ins,
:is(.kinders-market-card, .wgm-native-card, .product-small, .single-product .product-main, .product-quick-view-container)
  .price ins .amount,
.wp-block-woocommerce-product-price ins,
.wp-block-woocommerce-product-price ins .amount {
  color: #a91427 !important;
  text-decoration: none;
}

:is(.single-product .sf-pdp__sticky-price, .single-product .woocommerce-variation-price) ins,
:is(.single-product .sf-pdp__sticky-price, .single-product .woocommerce-variation-price) ins .amount {
  color: #a91427 !important;
}

@media (max-width: 599px) {
  .kinders-market-card .kinders-market-card__image {
    aspect-ratio: 1;
    padding: 20px 8px 7px;
  }

  .kinders-market-card .kinders-market-card__actions > :is(.button, .kinders-market-card__details, .quick-view, .added_to_cart) {
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kinders-market-card .kinders-market-card__image img {
    transition: none;
  }

  .kinders-market-card .kinders-market-card__image:hover img {
    transform: none;
  }
}
