/* CARD BASE */

.product-card-inner {
  height: 100%;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

/* CONTENT */
.product-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.product-card-en-title {
  font-size: 12px;
  color: #9b9b9b;
  margin-top: 8px;
}

.woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 10px;
  color: #000;
}

/* ADD TO CART */
.product-card-actions .button {
  background: #f5f5f5;
  color: #555;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  transition: all 0.25s ease;
}

/* HOVER */
.product-card:hover .product-card-inner {
  border-color: #ef3a4f;
}

.product-card:hover .button {
  background: #ef3a4f;
  color: #fff;
}

li {
  list-style: none;
}

.product-card {
  width: 100%;
  height: 440px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  transition: border 0.25s ease;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.product-card:hover {
  border-color: #ef3a4f;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
}

.product-card-image img {
  width: 270px;
  height: 270px;
  object-fit: contain;
  margin: 16px auto 0;
  display: block;
}

.product-card-body {
  text-align: center;
  padding: 12px 16px;
}

.product-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

.product-card-price {
  padding-right: 16px;
  font-weight: bold;
  transition: color 0.25s ease;
}

.price del {
  color: red;
  font-size: 12px;
}

.product-card:hover .product-card-price {
  color: #ef3a4f;
}

.product-card-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f3f3;
  color: #555;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  text-decoration: none;
  width: 180px;
  max-width: 130px;
}

.product-card:hover .product-card-btn {
  background: #ef3a4f;
  color: #fff;
}

.woocommerce-js ul.products li.product a img {
  width: 270px;
  display: block;
  margin: 0 auto;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: #ef3a4f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  direction: rtl;
}

/* Hide WooCommerce "added to cart" link */
.product-card-btn + .added_to_cart {
    display: none !important;
}

/* Prevent button style change after add to cart */
.product-card-btn.added {
    background: inherit;
    color: inherit;
}

.product-card-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-card-btn.is-loading {
    pointer-events: none;
}

.product-card-btn.is-loading svg,
.product-card-btn.is-loading span,
.product-card-btn.is-loading {
    color: transparent;
}

.product-card-btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    animation: navid-spin 0.7s linear infinite;
}

@keyframes navid-spin {
    to { transform: rotate(360deg); }
}


@media (max-width: 640px) {
  .product-card-image img {
    height: 210px;
  }
  .product-card {
    height: 400px;
    width: 85vw;
    scroll-snap-align: start;
  }
}
