/* Small e.l.f.-style previews. The parent continues to render the ProductCard. */
body.catalogo-theme :is(.wapu-product-card, .wapu-single__related-carousel-item) .catalogo-card-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  gap: 2px 0;
  min-width: 0;
  margin: 2px 0;
  padding: 0;
  grid-column: 1 / -1;
  line-height: 1;
}
body.catalogo-theme .wapu-product-card.catalogo-card--feature .catalogo-card-swatches {
  justify-content: center;
}
body.catalogo-theme .catalogo-card-swatch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
body.catalogo-theme .catalogo-card-swatch__media {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--wtds-fill-3, #eee);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .16);
}
body.catalogo-theme .catalogo-card-swatch--text { width: auto; max-width: 100%; padding-inline: 2px; }
body.catalogo-theme .catalogo-card-swatch--text .catalogo-card-swatch__media {
  width: auto;
  max-width: 5rem;
  height: 22px;
  padding: 5px 5px;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 11px/12px var(--wtds-font-text, Arial, sans-serif);
}
body.catalogo-theme .catalogo-card-swatch:is(:hover, :focus-visible, .is-selected) .catalogo-card-swatch__media { outline: 1px solid currentColor; outline-offset: 2px; }
body.catalogo-theme .catalogo-card-swatch:focus-visible { outline: none; }
body.catalogo-theme .catalogo-card-swatches__more {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-inline: 3px;
  color: var(--wtds-ink-3, #777);
  font: 12px/1 var(--wtds-font-text, Arial, sans-serif);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
body.catalogo-theme .catalogo-card-swatches [hidden] { display: none !important; }
body.catalogo-theme .catalogo-card-swatches__more:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
body.catalogo-theme .wapu-product-card.catalogo-swatch-preview .wapu-product-card__img--featured { opacity: 1 !important; }
body.catalogo-theme .wapu-product-card.catalogo-swatch-preview .wapu-product-card__img--hover { opacity: 0 !important; }

/* Regular cards: gallery, swatches, product information and a separate action. */
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) > .wapu-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wtds-surface-2, #f4f3f1);
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) .wapu-product-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
body.catalogo-theme .wapu-product-card.catalogo-card-gallery-active .wapu-product-card__img--featured {
  opacity: 1 !important;
  transform: none !important;
}
body.catalogo-theme .wapu-product-card.catalogo-card-gallery-active .wapu-product-card__img--hover {
  visibility: hidden !important;
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) > .catalogo-card-swatches {
  padding-inline: 4px;
  margin: 8px 0 0;
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) > .wapu-product-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 8px 4px 0;
  text-align: start;
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) .wapu-product-card__name {
  margin: 0;
  font: 700 16px/1.2 var(--wtds-font-text, sans-serif);
  text-align: start;
  overflow-wrap: anywhere;
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) .wapu-product-card__brand {
  color: var(--wtds-ink-3, #555);
  font-size: 12px;
}
body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) .wapu-product-card__price-wrap {
  margin: 0;
  justify-content: flex-start;
  text-align: start;
}
body.catalogo-theme .catalogo-card-tools {
  display: grid;
  order: 2;
  gap: 10px;
  padding-top: 6px;
}
body.catalogo-theme .catalogo-card-category {
  padding-inline: 4px;
  color: var(--wtds-ink-3, #555);
  font: 400 13px/1.3 var(--wtds-font-text, sans-serif);
}
body.catalogo-theme .catalogo-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: var(--wtds-surface-2, #f4f3f1);
  color: var(--wtds-ink, #171717);
  font: 700 14px/1.25 var(--wtds-font-text, sans-serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
body.catalogo-theme .catalogo-card-action:not(:disabled):hover { background: var(--wtds-fill-3, #e8e8e8); }
body.catalogo-theme .catalogo-card-action:disabled { opacity: .52; cursor: default; }
body.catalogo-theme .catalogo-card__feature-meta .catalogo-card-action {
  inline-size: min(100%, 14rem);
  box-sizing: border-box;
}
body.catalogo-theme .catalogo-card-cart-status { font-size: 12px; padding-inline: 4px; }
body.catalogo-theme .catalogo-card-cart-status:empty { display: none; }

@media (min-width: 48rem) {
  body.catalogo-theme .wapu-product-card:has(> [data-catalogo-regular-card]) {
    align-self: stretch;
    height: auto;
  }
  body.catalogo-theme .wapu-product-card > [data-catalogo-regular-card] {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
  }
  body.catalogo-theme .wapu-product-card > [data-catalogo-regular-card] > .catalogo-card-swatches {
    padding-inline: 4px;
    margin: 0;
  }
  body.catalogo-theme .wapu-product-card > [data-catalogo-regular-card] > .catalogo-card-action {
    margin-top: auto;
  }
}

@media (min-width: 64rem) {
  body.catalogo-theme:not(.catalogo-editorial-archive) .wapu-archive #wapu-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.catalogo-theme .catalogo-card-gallery:not([hidden]) {
  position: absolute;
  inset-inline: 6px;
  bottom: 7px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  pointer-events: none;
}
body.catalogo-theme .catalogo-card-gallery button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #151515;
  background: #fffc;
  cursor: pointer;
  pointer-events: auto;
}
body.catalogo-theme .catalogo-card-gallery__arrow { flex: 0 0 34px; height: 34px; font-size: 22px; line-height: 1; }
body.catalogo-theme .catalogo-card-gallery__dots { display: flex; align-items: center; justify-content: center; min-width: 0; }
body.catalogo-theme .catalogo-card-gallery__dots button { flex: 0 1 17px; width: 17px; min-width: 0; height: 22px; border-radius: 0; }
body.catalogo-theme .catalogo-card-gallery__dots button:first-child { border-start-start-radius: 999px; border-end-start-radius: 999px; }
body.catalogo-theme .catalogo-card-gallery__dots button:last-child { border-start-end-radius: 999px; border-end-end-radius: 999px; }
body.catalogo-theme .catalogo-card-gallery__dots button::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: currentColor; opacity: .42; }
body.catalogo-theme .catalogo-card-gallery__dots button[aria-pressed="true"]::before { width: 10px; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  body.catalogo-theme .catalogo-card-gallery:not([hidden]) { opacity: 0; transition: opacity .18s ease; }
  body.catalogo-theme .wapu-product-card:not(:hover):not(:focus-within) .catalogo-card-gallery button { pointer-events: none; }
  body.catalogo-theme .wapu-product-card:is(:hover, :focus-within) .catalogo-card-gallery:not([hidden]) { opacity: 1; }
}
@media (max-width: 47.9375rem) {
  body.catalogo-theme .wapu-product-card:has(> .catalogo-card-tools) .wapu-product-card__name { font-size: 14px; }
  body.catalogo-theme .catalogo-card-action { font-size: 13px; }
  body.catalogo-theme .catalogo-card-gallery__arrow { flex-basis: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body.catalogo-theme .catalogo-card-gallery:not([hidden]) { transition: none; }
}
