/* =========================================================
   Unified product card (from home-v2)
   Loaded last by themes/new + home-v2 layouts
   ========================================================= */

.product-card.card-product,
.card-product.product-card {
  background: #fff !important;
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(31, 26, 46, 0.08) !important;
  transition: transform 0.2s;
  height: 100%;
  min-height: 0 !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  text-align: start;
  contain: none;
}

.product-card.card-product:hover {
  transform: translateY(-5px);
}

.product-card.card-product .product-img-wrapper,
.product-card .product-img-wrapper {
  position: relative !important;
  background: #f4f4f4;
  overflow: hidden;
  aspect-ratio: 1 !important;
  width: 100% !important;
  height: auto !important;
  padding-bottom: 0 !important;
  flex-shrink: 0;
}

.product-card .product-img-link {
  display: block !important;
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-card.card-product .product-img,
.product-card .product-img,
.card-product.product-card .product-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s;
  align-items: unset !important;
}

.product-card.card-product:hover .product-img {
  transform: scale(1.05);
}

.product-card .mobile-thumb { display: block !important; }
.product-card .desktop-thumb { display: none !important; }

@media (min-width: 768px) {
  .product-card .mobile-thumb { display: none !important; }
  .product-card .desktop-thumb { display: block !important; }
}

.product-card .product-favorite-btn {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.35rem;
  z-index: 2;
}

.product-card .btn-favorite-product {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.product-card .btn-favorite-product i {
  font-size: 1.05rem;
  line-height: 1;
}

.product-card .btn-favorite-product .text-muted,
.product-card .btn-favorite-product .far {
  color: #57534e !important;
}

.product-card .price.discount-price,
.product-card .price.original-price.text-muted,
.product-card .price.original-price.text-decoration-line-through,
.product-card .discount-price {
  color: #57534e !important;
}

.product-card.card-product .card-body,
.product-card .card-body {
  padding: 8px 10px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  gap: 0 !important;
  min-height: 0 !important;
}

.product-card .card-title {
  font-size: 0.8rem !important;
  margin: 0 0 2px !important;
  line-height: 1.25 !important;
}

.product-card .card-title a,
.product-card .card-title a.text-dark.text-decoration-none {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-decoration: none !important;
  color: #1f1a2e !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: normal;
  max-width: 100%;
  padding-inline-start: 0 !important;
}

.product-card .badge,
.product-card .one-cent-badge {
  margin-bottom: 2px !important;
}

.product-card .one-cent-badge {
  background: #ffe08a !important;
  color: #5a4300 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
}

.product-card .price-tag {
  font-size: 0.9rem !important;
  font-weight: 800;
  color: #1a1a1a !important;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
  text-align: center;
  width: 100%;
}

.product-card .card-price-wrapper,
.product-card .price-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  text-align: center;
  font-size: 0.9rem !important;
}

.product-card .price.original-price {
  display: inline-block;
  text-align: center;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.product-card .price.original-price.text-decoration-line-through,
.product-card .price.original-price.text-muted,
.product-card .discount-price,
.product-card .price.discount-price {
  display: inline-block;
  font-weight: 500 !important;
  color: #9a9a9a !important;
  font-size: 0.85rem !important;
  text-decoration: line-through;
  margin: 0 !important;
}

.product-card .discounted-price,
.product-card .price-on-sale {
  display: inline-block;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  font-size: 0.95rem !important;
  text-align: center;
  margin: 0 !important;
}

.product-card .card-price-wrapper .original-price,
.product-card .card-price-wrapper .discounted-price,
.product-card .card-price-wrapper .discount-price {
  font-size: inherit !important;
  line-height: 1.2 !important;
}

.product-card .one-cent-notification {
  margin-bottom: 4px !important;
  font-size: 0.7rem;
  line-height: 1.2;
  display: block !important;
}

.product-card .add-to-cart-button-container {
  margin-top: auto !important;
  padding: 0 !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.product-card .wg-quantity,
.product-card .on-card-quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  margin-inline: auto;
}

.product-card .btn-quantity {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #eee;
  background: #fff;
  color: #e67e22;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.product-card .quantity-on-card-input {
  width: 42px;
  text-align: center;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 3px;
  font-weight: bold;
}

/* Beat theme3 absolute full-width CTA */
.product-card.card-product .btn-quick-add,
.product-card.card-product .quick-add,
.product-card .btn-quick-add,
.product-card .quick-add,
.card-product.product-card .btn-quick-add {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34% !important;
  max-width: 34% !important;
  left: auto !important;
  right: auto !important;
  text-align: center !important;
  margin: 4px auto 0 !important;
  background-color: #e67e22 !important;
  border-color: #e67e22 !important;
  color: #fff !important;
  border: none !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  height: 39px !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 10px rgba(230, 126, 34, 0.25);
  transition: background-color 0.3s !important;
}

.product-card .btn-quick-add:hover,
.product-card .quick-add:hover {
  background-color: #d46a1a !important;
  border-color: #d46a1a !important;
  color: #fff !important;
}

.product-card .btn-quick-add .visually-hidden,
.product-card .quick-add .visually-hidden,
.product-card .btn-quick-add .text.visually-hidden,
.product-card .quick-add .text.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: block !important;
}

.product-card .btn-quick-add .text:not(.visually-hidden),
.product-card .quick-add .text:not(.visually-hidden) {
  display: none !important;
}

.product-card .btn-quick-add > .fa-cart-plus,
.product-card .quick-add > .fa-cart-plus {
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}

.product-card .btn-quick-add.d-none,
.product-card .quick-add.d-none {
  display: none !important;
}

.product-card .add-to-cart-button-container .on-card-quantity-control:not(.d-none) ~ .btn-quick-add,
.product-card .add-to-cart-button-container .on-card-quantity-control:not(.d-none) ~ .quick-add {
  display: none !important;
}

/* Product detail / sticky bar CTAs stay full-width text buttons */
.product-cta-block .add-to-cart-button-container,
.product-page-sticky-footer .add-to-cart-button-container,
.add-to-cart-button-container.product-card:not(.card-product) {
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  flex: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.product-cta-block .btn-quick-add,
.product-cta-block .quick-add,
.product-page-sticky-footer .btn-quick-add,
.product-page-sticky-footer .quick-add {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}

.product-cta-block .btn-quick-add .text,
.product-cta-block .quick-add .text,
.product-page-sticky-footer .btn-quick-add .text,
.product-page-sticky-footer .quick-add .text {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}

@media (max-width: 767.98px) {
  .product-card .card-body {
    padding: 6px 8px 8px !important;
  }

  .product-card .card-title,
  .product-card .card-title a {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    text-align: center;
  }

  .product-card .price-tag {
    margin-bottom: 2px !important;
  }

  .product-card .btn-quick-add,
  .product-card .quick-add {
    padding: 6px 10px !important;
    margin-top: 2px !important;
    font-size: 0.75rem !important;
  }
}
