/* Single visual contract for carousel, Kadence grids and category archives. */
.encuero-catalog-card {
  --encuero-ink: #241a14;
  --encuero-leather: #8b684d;
  min-width: 0;
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-self: flex-start;
  height: auto;
  overflow: hidden;
  cursor: pointer;
}

.encuero-card-link {
  display: block;
  background: #e8e0d7;
  color: inherit;
  text-decoration: none;
}

.encuero-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  transform: scale(0.8);
}

.best-seller-card.is-gallery-preview .encuero-card-image {
  transform: scale(1);
}

.encuero-full-catalog-gallery-card.is-gallery-preview .encuero-card-image {
  transform: scale(1);
}

.encuero-catalog-card.is-gallery-preview .encuero-card-image {
  transform: scale(1);
}

.encuero-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  align-self: center;
  width: 90%;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem 0.6rem;
  background: #f2f2f2;
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.35s ease;
}

.encuero-catalog-card .encuero-card-name,
.woocommerce .products .encuero-catalog-card .encuero-card-name {
  color: var(--encuero-ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.encuero-card-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-height: 1.15rem;
}

.encuero-card-color-swatch {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  outline: 1px solid #c9c1ba;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    outline-color 0.2s ease,
    box-shadow 0.2s ease;
}

.encuero-card-color-swatch:hover,
.encuero-card-color-swatch:focus-visible {
  outline-color: var(--encuero-ink);
  transform: scale(1.12);
}

.encuero-card-color-swatch:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--encuero-ink);
}

.encuero-card-color-swatch.is-active {
  outline: 2px solid var(--encuero-ink);
  outline-offset: 2px;
}

.encuero-card-color-swatch:disabled {
  cursor: default;
  opacity: 0.55;
}

.encuero-card-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  color: #5f5c5a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.encuero-card-regular-price {
  color: #aaa29d;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: line-through;
}

.encuero-card-sale-price {
  color: #5f5c5a;
  font-size: 0.85rem;
  font-weight: 600;
}

.encuero-card-current-price {
  color: #5f5c5a;
  font-weight: 700;
}

.encuero-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.encuero-catalog-card .encuero-card-add-cart {
  position: relative;
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--encuero-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  appearance: none;
  box-shadow: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.25s ease,
    color 0.25s ease,
    transform 0.3s ease,
    visibility 0s linear 0.25s;
}

.encuero-catalog-card .encuero-card-buy-now {
  position: relative;
  display: block;
  width: auto;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--encuero-ink);
  background: var(--encuero-ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  appearance: none;
  box-shadow: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s ease,
    visibility 0s linear 0.25s;
}

.encuero-catalog-card .encuero-card-buy-now:hover,
.encuero-catalog-card .encuero-card-buy-now:focus-visible {
  background: var(--encuero-leather);
  border-color: var(--encuero-leather);
  color: #fff;
}

.encuero-card-add-cart:not(.is-view-product)::after {
  content: "";
  background-color: currentColor;
  mask: url("../images/cart.svg") center / contain no-repeat;
  -webkit-mask: url("../images/cart.svg") center / contain no-repeat;
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.4rem;
  vertical-align: -0.12rem;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
}

.encuero-catalog-card:hover .encuero-card-info,
.encuero-catalog-card:focus-within .encuero-card-info {
  transform: translateY(-30px);
  border-radius: 0.65rem 0.65rem 0 0;
}

.encuero-catalog-card:hover .encuero-card-add-cart,
.encuero-catalog-card:focus-within .encuero-card-add-cart,
.encuero-catalog-card:hover .encuero-card-buy-now,
.encuero-catalog-card:focus-within .encuero-card-buy-now {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.encuero-catalog-card .encuero-card-add-cart:hover,
.encuero-catalog-card .encuero-card-add-cart:focus-visible {
  border: 0;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--encuero-leather);
  box-shadow: none !important;
}

.encuero-card-add-cart:not(.is-view-product):hover::after,
.encuero-card-add-cart:not(.is-view-product):focus-visible::after {
  transform: translateX(0.25rem);
}

.encuero-card-add-cart:disabled {
  cursor: wait;
  opacity: 0.65;
}

.encuero-card-add-cart.is-added {
  background: transparent;
  color: #687653;
}

.encuero-card-add-cart.is-view-product {
  background: transparent;
  color: var(--encuero-ink);
}

.encuero-card-add-cart.is-view-product:hover,
.encuero-card-add-cart.is-view-product:focus-visible {
  color: var(--encuero-leather);
}

.encuero-catalog-card .encuero-card-name {
  text-transform: uppercase;
}
.encuero-catalog-card .encuero-card-name a {
  color: inherit;
  text-decoration: none;
}
.encuero-catalog-card .encuero-card-info {
  overflow-wrap: anywhere;
}
.encuero-catalog-card .encuero-card-attributes {
  margin: 0;
  font-size: 0.85rem;
}
.encuero-catalog-card .encuero-card-color-dot {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  border: 2px solid #fff;
  border-radius: 50%;
  outline: 1px solid #c9c1ba;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.encuero-catalog-card .encuero-card-color-name {
  font-size: 0.85rem;
}
.encuero-catalog-card .encuero-card-status {
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}
.encuero-catalog-card .encuero-card-status:empty {
  display: none;
}
.encuero-catalog-card a:is(.encuero-card-add-cart, .encuero-card-buy-now) {
  text-decoration: none;
}
.encuero-catalog-card :is(a, button):focus-visible {
  outline: 2px solid #55151b;
  outline-offset: 3px;
}
.encuero-catalog-card .encuero-card-price del {
  color: #aaa29d;
  font-size: 0.75rem;
  font-weight: 500;
}
.encuero-catalog-card .encuero-card-price ins {
  background: transparent;
  color: #5f5c5a;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.encuero-catalog-card .encuero-card-price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.woocommerce .products .encuero-catalog-card img.encuero-card-image {
  width: 100%;
  height: auto;
  margin: 0;
}

.encuero-catalog-card .encuero-color-reference {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  min-height: 1.5em;
  letter-spacing: 0.02em;
}

/* Classic WooCommerce loops use the same card; their native cart link is retained. */
.woocommerce .products .encuero-catalog-card--woocommerce {
  cursor: pointer;
}
.woocommerce .products > li.encuero-shop-product-item {
  box-shadow: none !important;
}
.woocommerce .products .encuero-catalog-card--woocommerce .encuero-card-link {
  overflow: hidden;
}
.woocommerce .products .encuero-catalog-card--woocommerce .encuero-card-name {
  margin: 0;
}
.woocommerce .products .encuero-catalog-card--woocommerce .encuero-card-price {
  margin: 0;
}
.woocommerce
  .products
  .encuero-catalog-card--woocommerce
  .encuero-card-actions {
  margin: 0;
}
.woocommerce
  .products
  .encuero-catalog-card--woocommerce
  .encuero-card-actions
  .encuero-card-add-cart {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--encuero-ink);
  box-shadow: none !important;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}
.woocommerce
  .products
  .encuero-catalog-card--woocommerce
  .encuero-card-actions
  .encuero-card-add-cart:hover,
.woocommerce
  .products
  .encuero-catalog-card--woocommerce
  .encuero-card-actions
  .encuero-card-add-cart:focus-visible {
  background: transparent !important;
  color: var(--encuero-leather);
}

/* Product Collection blocks keep WooCommerce's markup and interactivity. */
.wc-block-product-template .encuero-block-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: flex-start;
  overflow: hidden;
  background: transparent;
}
.wc-block-product-template .encuero-block-card-image-wrap {
  overflow: hidden;
  background: #e8e0d7;
}
.wc-block-product-template
  .encuero-block-card-image-wrap
  img.encuero-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: scale(0.8);
}
.wc-block-product-template .encuero-block-card-title,
.wc-block-product-template .encuero-block-card-price,
.wc-block-product-template .encuero-block-card-actions {
  z-index: 1;
  align-self: center;
  box-sizing: border-box;
  width: 90%;
  margin: 0;
  padding: 0.55rem 0.9rem;
  background: #f2f2f2;
}
.wc-block-product-template .encuero-block-card-title {
  margin-top: -1.8rem;
  padding-top: 0.8rem;
  color: var(--encuero-ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}
.wc-block-product-template .encuero-block-card-title a {
  color: inherit;
  text-decoration: none;
}
.wc-block-product-template .encuero-block-card-price {
  color: #5f5c5a;
  font-size: 1rem;
  font-weight: 700;
}
.wc-block-product-template .encuero-block-card-actions {
  padding-top: 0.2rem;
}
.wc-block-product-template .encuero-block-card-actions .wp-block-button__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--encuero-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) {
  .wc-block-product-template
    .encuero-block-product-card:hover
    .encuero-block-card-title,
  .wc-block-product-template
    .encuero-block-product-card:focus-within
    .encuero-block-card-title {
    border-radius: 0.65rem 0.65rem 0 0;
  }
}
@media (max-width: 639px), (hover: none), (pointer: coarse) {
  .encuero-catalog-card .encuero-card-info,
  .encuero-catalog-card:hover .encuero-card-info,
  .encuero-catalog-card:focus-within .encuero-card-info {
    transform: none;
    border-radius: 0;
    padding: 0.75rem 0.85rem 0.55rem;
  }
  .encuero-catalog-card .encuero-card-add-cart,
  .encuero-catalog-card .encuero-card-buy-now {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .encuero-catalog-card .encuero-card-actions {
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .encuero-catalog-card .encuero-card-info,
  .encuero-catalog-card .encuero-card-add-cart,
  .encuero-catalog-card .encuero-card-buy-now,
  .encuero-catalog-card .encuero-card-color-swatch {
    transition: none;
  }
  .encuero-catalog-card:hover .encuero-card-info,
  .encuero-catalog-card:focus-within .encuero-card-info {
    transform: none;
  }
}
