/* The slot's native template still owns the outer classic-loop wrapper. */
.product-small .col-inner:has(> .te-product-card) > .badge-container > :is(.te-sale-flash, .callout:has(.on-sale)) {
  display: none;
}

.te-product-card {
  --te-card-line: #e4d8e7;
  --te-card-sale: #e60023;
  position: relative;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  block-size: 100%;
  overflow: hidden;
  border: 1px solid var(--te-card-line);
  border-radius: 18px;
  background: var(--te-cream, #fcf9f5);
  color: var(--te-ink, #261d29);
  font-family: system-ui, sans-serif;
}

.te-product-card .te-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  inline-size: 100%;
  overflow: hidden;
  background: var(--te-lilac, #f1e8f6);
}

.te-product-card .te-product-card__image {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.te-product-card .te-product-card__alternate {
  opacity: 0;
  transition: opacity 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .te-product-card__media:hover .te-product-card__alternate {
    opacity: 1;
  }
}
.te-product-card__media:focus-visible .te-product-card__alternate {
  opacity: 1;
}

.te-product-card .te-product-card__badge {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 1;
  max-inline-size: calc(100% - 24px);
  padding: 6px 11px;
  border-radius: 30px;
  background: var(--te-card-sale);
  color: #ffffff;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.te-product-card .te-product-card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-inline-size: 0;
  padding: clamp(10px, 2vw, 21px);
  color: inherit;
  text-align: start;
}

.te-product-card .te-product-card__title {
  margin: 0;
  color: inherit;
  font: 500 clamp(1.04rem, 1.55vw, 1.35rem) / 1.18 Georgia, serif;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  text-transform: none;
}

.te-product-card .te-product-card__title a {
  color: inherit;
}

.te-product-card .te-product-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: .14em;
}

.te-product-card .te-product-card__price {
  margin: 0;
  color: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.te-product-card .te-product-card__price .amount {
  color: inherit;
  font-weight: inherit;
}

.te-product-card .te-product-card__price del,
.te-product-card .te-product-card__price del .amount {
  color: #6c5b70;
  opacity: 1;
  font-weight: 450;
}

.te-product-card .te-product-card__price ins,
.te-product-card .te-product-card__price ins .amount,
.te-product-card .te-product-card__price--discounted:not(:has(ins, del)) .amount {
  color: var(--te-card-sale);
}

.te-product-card .te-product-card__stock {
  margin: 0;
  color: #6c5b70;
  font-size: .8rem;
}

.te-product-card .te-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-block-start: auto;
  padding-block-start: 4px;
}

.te-product-card .te-product-card__actions :is(.button, .te-product-card__primary, .te-product-card__secondary, .added_to_cart) {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  margin: 0;
  padding: .5rem .85rem;
  border: 1px solid var(--te-plum, #2b1538);
  border-radius: 30px;
  box-shadow: none;
  font: 650 .81rem / 1.25 system-ui, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.te-product-card .te-product-card__actions :is(.button, .te-product-card__primary) {
  background: var(--te-plum, #2b1538);
  color: #fff;
}

.te-product-card .te-product-card__actions :is(.te-product-card__secondary, .added_to_cart) {
  border-color: var(--te-card-line);
  background: transparent;
  color: var(--te-plum, #2b1538);
}

.te-product-card .te-product-card__actions :is(.button, .te-product-card__primary, .te-product-card__secondary, .added_to_cart):hover {
  border-color: var(--te-accent, #5a3470);
  background: var(--te-accent, #5a3470);
  color: #fff;
}

.te-product-card a:focus-visible {
  outline: 2px solid var(--te-accent, #5a3470);
  outline-offset: 2px;
}

.te-product-card .te-product-card__media:focus-visible {
  outline-offset: -4px;
}

@media (max-width: 600px) {
  .te-product-card {
    border-radius: 14px;
  }

  .te-product-card .te-product-card__badge {
    inset: 8px 8px auto auto;
    padding: 5px 8px;
  }

  .te-product-card .te-product-card__actions :is(.button, .te-product-card__primary, .te-product-card__secondary, .added_to_cart) {
    inline-size: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .te-product-card .te-product-card__alternate {
    transition: none;
  }
}
