/**
 * CS Cosméticos — product card vertical
 *
 * The shared WooCommerce renderer remains responsible for data and actions.
 * This file is the only visual contract for complete vertical product cards.
 * Compact product representations deliberately keep their own component CSS.
 */

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) {
  --cs-product-card-plum: #600165;
  --cs-product-card-ink: #28172a;
  --cs-product-card-soft-lilac: #faf4fb;
  --cs-product-card-line: #e7dfe7;
  --cs-product-card-muted: #6f6470;
  --cs-product-card-radius: 10px;
  --cs-product-card-focus: 0 0 0 3px rgba(200, 128, 203, 0.38);
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--cs-product-card-line);
  border-radius: var(--cs-product-card-radius);
  background: #fff;
  box-shadow: none;
  color: var(--cs-product-card-ink);
  container-type: inline-size;
  transform: none;
  transition: border-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cs-product-cards .cs-pcard:hover,
  body.woocommerce-cart .cross-sells .cs-pcard:hover {
    border-color: rgba(96, 1, 101, 0.36) !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard :where(a, button):focus-visible {
  outline: 2px solid var(--cs-product-card-plum);
  outline-offset: 3px;
  box-shadow: var(--cs-product-card-focus);
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__media {
  position: relative;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__img {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cs-product-card-soft-lilac);
  text-decoration: none;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__img img,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__imgtag,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__img .attachment-woocommerce_thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__img:hover img {
    transform: scale(1.025);
  }
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__badge--black {
  background: var(--cs-product-card-ink);
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__badge--red {
  background: #ff2d2d;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__badge--green {
  background: #14b86a;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__info {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 2px 2px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__content,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__information {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__topline,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__actions {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__topline--no-swatches {
  min-height: 34px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-preview {
  display: flex;
  min-width: 0;
  min-height: 28px;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  margin: 0;
  overflow: hidden;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-swatches {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-swatch {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--cs-product-card-line);
  border-radius: 8px;
  background: var(--cs-pcard-swatch-color, #f7f1f7);
  box-shadow: none;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-swatch.is-image {
  background: #fff;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-more {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--cs-product-card-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__wish,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__topline .cs-pcard__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cs-product-card-ink);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__wish:hover {
    border-color: var(--cs-product-card-plum);
    color: var(--cs-product-card-plum);
  }
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__wish.is-active {
  border-color: var(--cs-product-card-plum);
  color: var(--cs-product-card-plum);
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__wish svg {
  width: 21px;
  height: 19px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__title {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.012em;
  line-height: 1.28;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__title a {
  display: -webkit-box;
  min-height: calc(2 * 1.28em);
  overflow: hidden;
  color: var(--cs-product-card-ink);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__title a:hover {
    color: var(--cs-product-card-plum);
  }
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__meta {
  min-height: 1.35em;
  margin: 0;
  overflow: hidden;
  color: var(--cs-product-card-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__rating {
  display: flex;
  min-width: 0;
  min-height: 19px;
  align-items: center;
  gap: 4px;
  color: var(--cs-product-card-muted);
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__rating .star-rating {
  position: relative;
  display: inline-block;
  width: 5em;
  height: 1em;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  float: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  color: #ffc849;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__rating .star-rating::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "★★★★★";
  opacity: 0.25;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__rating .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  height: 1em;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__rating .star-rating span::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "★★★★★";
  text-indent: 0;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__rating-count {
  min-width: 0;
  overflow: hidden;
  color: var(--cs-product-card-muted);
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__footer,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__commerce {
  min-width: 0;
  margin-top: auto;
  padding-top: 13px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__price {
  display: flex;
  min-width: 0;
  min-height: 27px;
  flex: 1 1 auto;
  flex-flow: row wrap;
  align-items: baseline;
  align-content: end;
  gap: 4px 9px;
  color: var(--cs-product-card-ink);
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard .cs-price--single,
:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard .cs-price--sale {
  color: var(--cs-product-card-ink);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard .cs-price--regular {
  color: var(--cs-product-card-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: line-through;
  opacity: 0.72;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-price--native {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-price--native ins {
  color: var(--cs-product-card-ink);
  font-weight: 700;
  text-decoration: none;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-price--native del {
  color: var(--cs-product-card-muted);
  font-size: 0.68em;
  font-weight: 600;
  opacity: 0.72;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-price--native .woocommerce-Price-amount {
  white-space: nowrap;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__off {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fd0100;
  color: #fff;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__cart {
  width: 100%;
}

.cs-product-cards .cs-pcard__cart a.button,
.cs-product-cards .woocommerce ul.products li.product .cs-pcard__cart a.button,
body.woocommerce-cart .cross-sells .cs-pcard__cart a.button {
  position: relative;
  display: inline-flex !important;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px !important;
  overflow: hidden;
  border: 1px solid rgba(96, 1, 101, 0.16) !important;
  border-radius: 8px;
  background: var(--cs-product-card-soft-lilac) !important;
  box-shadow: none !important;
  color: var(--cs-product-card-plum) !important;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.2;
  text-align: center;
  text-indent: 0;
  text-decoration: none;
  transform: none;
}

.cs-product-cards .cs-pcard.cs-pcard--variable .cs-pcard__cart a.button,
.cs-product-cards .woocommerce ul.products li.product .cs-pcard.cs-pcard--variable .cs-pcard__cart a.button,
body.woocommerce-cart .cross-sells .cs-pcard.cs-pcard--variable .cs-pcard__cart a.button {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  padding: 9px 12px !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.2;
  text-indent: 0;
  white-space: normal;
}

@media (hover: hover) and (pointer: fine) {
  .cs-product-cards .cs-pcard__cart a.button:hover,
  .cs-product-cards .woocommerce ul.products li.product .cs-pcard__cart a.button:hover,
  body.woocommerce-cart .cross-sells .cs-pcard__cart a.button:hover {
    border-color: var(--cs-product-card-plum) !important;
    background: var(--cs-product-card-plum) !important;
    color: #fff !important;
  }
}

.cs-product-cards .cs-pcard__cart a.button::after,
.cs-product-cards .woocommerce ul.products li.product .cs-pcard__cart a.button::after,
body.woocommerce-cart .cross-sells .cs-pcard__cart a.button::after {
  display: none !important;
  content: none !important;
}

.cs-product-cards .cs-pcard__cart a.button:is(.loading, .cs-add-to-cart-pending),
.cs-product-cards .woocommerce ul.products li.product .cs-pcard__cart a.button:is(.loading, .cs-add-to-cart-pending),
body.woocommerce-cart .cross-sells .cs-pcard__cart a.button:is(.loading, .cs-add-to-cart-pending) {
  border-color: rgba(96, 1, 101, 0.16) !important;
  background: var(--cs-product-card-soft-lilac) !important;
  color: transparent !important;
  cursor: progress;
  opacity: 1;
}

.cs-product-cards .cs-pcard__cart a.button:is(.loading, .cs-add-to-cart-pending)::after,
.cs-product-cards .woocommerce ul.products li.product .cs-pcard__cart a.button:is(.loading, .cs-add-to-cart-pending)::after,
body.woocommerce-cart .cross-sells .cs-pcard__cart a.button:is(.loading, .cs-add-to-cart-pending)::after {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(96, 1, 101, 0.25);
  border-top-color: var(--cs-product-card-plum);
  border-radius: 50%;
  background: none;
  background-image: none;
  content: "" !important;
  animation: csProductCardSpin 700ms linear infinite;
}

:where(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard a.added_to_cart,
body.woocommerce-cart .cross-sells .cs-pcard a.added_to_cart {
  display: none !important;
}

@keyframes csProductCardSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes csProductCardAdded {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.cs-product-cards .cs-pcard__cart a.button.added,
body.woocommerce-cart .cross-sells .cs-pcard__cart a.button.added {
  animation: csProductCardAdded 450ms ease-out;
}

@media (max-width: 767px) {
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard {
    padding: 8px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__info {
    padding: 10px 1px 1px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__topline,
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__topline--no-swatches {
    min-height: 30px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__wish,
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__topline .cs-pcard__wish {
    top: 8px;
    right: 8px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__title {
    font-size: 14px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__meta {
    font-size: 11px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard .cs-price--single,
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard .cs-price--sale {
    font-size: 17px;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard .cs-price--regular {
    font-size: 11px;
  }

  .cs-product-cards .cs-pcard__cart a.button,
  .cs-product-cards .woocommerce ul.products li.product .cs-pcard__cart a.button,
  body.woocommerce-cart .cross-sells .cs-pcard__cart a.button,
  .cs-product-cards .cs-pcard.cs-pcard--variable .cs-pcard__cart a.button,
  .cs-product-cards .woocommerce ul.products li.product .cs-pcard.cs-pcard--variable .cs-pcard__cart a.button,
  body.woocommerce-cart .cross-sells .cs-pcard.cs-pcard--variable .cs-pcard__cart a.button {
    min-height: 44px;
    padding-inline: 7px !important;
    font-size: 12px;
  }
}

@media (max-width: 359px) {
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__variation-swatch:nth-child(n + 3) {
    display: none;
  }

  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard__title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard,
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard *,
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard *::before,
  :is(.cs-product-cards, body.woocommerce-cart .cross-sells) .cs-pcard *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
