/* One Shop card, regardless of the listing that contains it.
 * Parent layouts own column widths and scrolling; this file owns card contents.
 * Explicit resets protect it from Kadence's product-loop and block defaults.
 */
body .polett-catalog-card {
  --card-ink: #171315;
  --card-muted: #65555d;
  --card-border: #dfc7d0;
  --card-space: 1.25rem;
  position: relative;
  container: polett-card / inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: 0;
  color: var(--card-ink);
  background: #fff;
  box-shadow: none;
  font-family: "Montserrat Polett", Montserrat, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
body .polett-catalog-card:is(:hover, :focus-within) { border-color: #9b7e8b; }
body .polett-catalog-card .polett-catalog-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  border-radius: 0;
  background: #f3f3ef;
}
/* Image sizing must override native related/grid image dimensions. */
body .polett-catalog-card .polett-catalog-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  object-fit: contain;
}
body .polett-catalog-card .polett-catalog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--card-space) var(--card-space) 0;
}
body .polett-catalog-card .polett-catalog-card__family {
  margin: 0 0 0.28rem;
  color: var(--card-muted);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
body .polett-catalog-card .polett-catalog-card__title {
  display: block;
  min-height: 2.76em !important;
  margin: 0.4rem 0 0.75rem !important;
  padding: 0 !important;
  color: var(--card-ink);
  font-family: inherit;
  font-size: 0.94rem !important;
  font-weight: 650 !important;
  letter-spacing: normal;
  line-height: 1.38 !important;
  overflow-wrap: anywhere;
}
body .polett-catalog-card .polett-catalog-card__title a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
body .polett-catalog-card .polett-catalog-card__title a:hover { text-decoration: underline; }
body .polett-catalog-card .polett-catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  padding-top: 0.85rem;
}
body .polett-catalog-card .polett-catalog-card__price {
  color: var(--card-ink);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.6;
}
body .polett-catalog-card .polett-catalog-card__price ins {
  color: inherit;
  background: transparent;
  text-decoration: none;
}
body .polett-catalog-card .polett-catalog-card__price del { color: var(--card-muted); }
body .polett-catalog-card .polett-tax-note {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--card-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}
body .polett-catalog-card .polett-catalog-card__brand {
  color: var(--card-muted);
  font-size: 0.67rem;
  font-weight: 400;
  line-height: 1.6;
}
body .polett-catalog-card .polett-catalog-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 0 var(--card-space);
}
body .polett-catalog-card .polett-catalog-card__actions a.button {
  position: relative;
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0;
  height: auto;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  border: 1px solid var(--card-ink);
  border-radius: 0 !important;
  padding: 0.7rem 0.65rem !important;
  overflow: visible;
  color: #fff !important;
  background: var(--card-ink) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 0.85rem !important;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: none !important;
  white-space: normal;
  transform: none;
}
body .polett-catalog-card .polett-catalog-card__actions a.button:is(:hover, :focus-visible) {
  color: var(--card-ink) !important;
  background: #fff !important;
}
body .polett-catalog-card a:focus-visible {
  outline: 2px solid var(--card-ink);
  outline-offset: 3px;
}
body .polett-catalog-card .polett-cart-button__label {
  position: static;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}
body .polett-catalog-card .polett-cart-button__icon {
  flex: 0 0 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}
body .polett-catalog-card .added_to_cart {
  padding: 0.6rem;
  color: var(--card-ink);
  font-size: 0.8rem;
  text-align: center;
}
body .polett-catalog-card .polett-catalog-card__sale {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  color: #fff;
  background: var(--card-ink);
  font-size: 0.7rem;
}
/* Strip duplicate outer shells; keep the native grid/carousel dimensions. */
body.polett-commerce-polish :is(ul.products, .wc-block-grid__products, .wc-block-product-template) > li:has(> .polett-catalog-card),
body.single-product.polett-commerce-polish .related.products.polett-related-carousel ul.products > li:has(> .polett-catalog-card) {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
@container polett-card (max-width: 210px) {
  body .polett-catalog-card .polett-catalog-card__body {
    padding-inline: 0.85rem;
    padding-top: 0.85rem;
  }
  body .polett-catalog-card .polett-catalog-card__actions { padding-bottom: 0.85rem; }
}
/* Intrinsic-size containment needs a stretched parent in the empty-cart grid. */
body.woocommerce-cart .wc-block-grid:has(.polett-catalog-card) {
  width: 100%;
  min-width: 0;
}
body.woocommerce-cart .wc-block-grid__products:has(.polett-catalog-card) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  width: 100%;
  gap: 1rem;
  margin: 0;
}
body.woocommerce-cart .wc-block-grid__products > .polett-card-item {
  width: 100%;
  max-width: none;
  margin: 0;
}
