/* Shared WooCommerce product card.
   The same component is rendered on the home page, catalog and product page. */
.product-card,
.products-section .product-card,
.category-products-grid .product-card,
.product-related .product-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 24.875rem !important;
  min-height: 24.875rem;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow: hidden;
  border: 0.0625rem solid #e5e4e0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.3125rem 1rem rgba(0,0,0,.03);
}

.product-card__image,
.products-section .product-card__image,
.category-products-grid .product-card__image,
.product-related .product-card__image {
  display: grid;
  height: 10.375rem;
  min-height: 10.375rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.625rem;
  background: #fff;
}

.category-products-grid--dvigateli .product-card__image { background-image: none !important; }
.category-products-grid--dvigateli .product-card__image img { opacity: 1; }
.product-card__image img,
.category-products-grid .product-card__image img,
.product-related .product-card__image img {
  width: 100%;
  height: 100%;
  border-radius: 0.625rem;
  object-fit: contain;
}

.product-card__meta,
.category-products-grid .product-card__meta {
  display: flex;
  min-height: 1.5rem;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.65625rem;
}
.product-card__badge {
  padding: 0.3125rem 0.5625rem;
  border-radius: 0.75rem;
  background: #ff5c0a;
  color: #fff;
  font-size: 0.65625rem;
  font-weight: 800;
  line-height: 1;
}
.product-card .stock { color: #1fa650; font-size: 0.65625rem; font-weight: 700; }
.product-card .stock--yes::before { margin-right: 0.3125rem; color: #20ad55; font-size: 0.625rem; content: '●'; }

.product-card h3,
.category-products-grid .product-card h3 {
  display: -webkit-box;
  min-height: 2.5rem;
  margin: 0;
  overflow: hidden;
  color: #121314;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.96875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card__fit,
.category-products-grid .product-card__fit {
  display: -webkit-box;
  min-height: 2.375rem;
  margin: 0;
  overflow: hidden;
  color: #5e636b;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.1875rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card__price,
.category-products-grid .product-card__price {
  display: flex;
  height: 1.625rem;
  align-items: center;
  margin-top: auto;
  padding: 0;
}
.product-card__price strong,
.category-products-grid .product-card__price strong {
  color: #121314;
  font-family: Manrope, Arial, sans-serif;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5rem;
}
.product-card__price .woocommerce-Price-currencySymbol { margin-left: 0.125rem; }

.product-card__actions,
.category-products-grid .product-card__actions,
.product-related .product-card__actions {
  display: flex;
  width: 100%;
  height: 2.5rem;
  min-height: 2.5rem;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0;
}
.product-card__purchase {
  width: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.product-card__quick-buy {
  width: auto;
  min-width: 0;
  flex: 0 1 40%;
}
.product-card__actions .button,
.category-products-grid .product-card__actions .button,
.woocommerce .product-card__actions a.button {
  display: inline-flex;
  min-width: 0;
  min-height: 2.5rem;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 0.875rem;
  border-color: #ff5c0a;
  border-radius: 0.5rem;
  background: #ff5c0a;
  color: #fff;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}
.product-card__purchase > .button,
.category-products-grid .product-card__purchase > .button,
.woocommerce .product-card__purchase > a.button {
  width: 100%;
  border: 0.0625rem solid #bfc1c4;
  background: #fff;
  color: #121314;
}
.product-card__quick-buy,
.woocommerce .product-card__actions a.product-card__quick-buy {
  width: 44%;
  max-width: 44%;
  flex: 0 0 44%;
  padding-right: 0.5625rem;
  padding-left: 0.5625rem;
  border: 0.0625rem solid #ff5c0a;
  background: #ff5c0a;
  color: #fff;
  white-space: nowrap;
}
.product-card__purchase > .button:hover,
.category-products-grid .product-card__purchase > .button:hover,
.woocommerce .product-card__purchase > a.button:hover {
  border-color: #9fa2a6;
  background: #f7f7f5;
  color: #121314;
}
.product-card__actions .button:hover,
.woocommerce .product-card__actions a.button:hover { border-color: #e84d00; background: #e84d00; color: #fff; }
.product-card__actions .product-card__purchase > .button:hover,
.category-products-grid .product-card__actions .product-card__purchase > .button:hover,
.woocommerce .product-card__actions .product-card__purchase > a.button:hover {
  border-color: #9fa2a6;
  background: #f7f7f5;
  color: #121314;
}
.product-card__favorite,
.category-products-grid .product-card__favorite {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  border: 0.0625rem solid #deddd9;
  border-radius: 0.5rem;
  background: #fff;
  color: #4c5055;
  font-size: 1.3125rem;
  line-height: 1;
}

@media (max-width: 1199px) {
  .product-card,
  .products-section .product-card,
  .category-products-grid .product-card,
  .product-related .product-card { height: 23.25rem !important; min-height: 23.25rem; padding: 0.6875rem; }
  .product-card__image,
  .products-section .product-card__image,
  .category-products-grid .product-card__image,
  .product-related .product-card__image { height: 9.125rem; min-height: 9.125rem; }
}

@media (max-width: 767px) {
  .product-card,
  .products-section .product-card,
  .category-products-grid .product-card,
  .product-related .product-card {
    height: 19.75rem !important;
    min-height: 19.75rem;
    gap: 0.375rem;
    padding: 0.5625rem;
    border-radius: 0.625rem;
  }
  .product-card__image,
  .products-section .product-card__image,
  .category-products-grid .product-card__image,
  .product-related .product-card__image { height: 7rem; min-height: 7rem; }
  .product-card__meta, .category-products-grid .product-card__meta { min-height: 1.25rem; gap: 0.25rem; font-size: 0.5rem; }
  .product-card__badge { padding: 0.25rem 0.375rem; font-size: 0.5rem; }
  .product-card .stock { font-size: 0.5rem; }
  .product-card h3, .category-products-grid .product-card h3 { min-height: 2.375rem; font-size: 0.8125rem; line-height: 1.1875rem; }
  .product-card__fit, .category-products-grid .product-card__fit { min-height: 2rem; font-size: 0.75rem; line-height: 1rem; }
  .product-card__price, .category-products-grid .product-card__price { height: 1.25rem; }
  .product-card__price strong, .category-products-grid .product-card__price strong { font-size: 0.8125rem; }
  .product-card__actions, .category-products-grid .product-card__actions, .product-related .product-card__actions { height: 2.125rem; min-height: 2.125rem; gap: 0.3125rem; }
  .product-card__actions .button, .category-products-grid .product-card__actions .button, .woocommerce .product-card__actions a.button { min-height: 2.125rem; padding: 0 0.5rem; font-size: 0.5625rem; }
  .product-card__favorite, .category-products-grid .product-card__favorite { top: 0.8125rem; right: 0.8125rem; width: 2.125rem; min-width: 2.125rem; height: 2.125rem; font-size: 1.125rem; }
  .product-card__purchase { width: 100%; flex: 1 1 100%; }
  .product-card__quick-buy { display: none !important; width: 0; max-width: none; flex-basis: 0; }

  body.home .products-section .product-card {
    width: 17.5rem;
    min-width: 17.5rem;
    height: 24.875rem !important;
    min-height: 24.875rem;
    flex: 0 0 17.5rem;
    padding: 0.6875rem;
  }
  body.home .products-section .product-card__image {
    width: 16rem;
    height: 10.375rem;
    min-height: 10.375rem;
    align-self: center;
  }
  body.home .products-section .product-card h3 { font-size: 0.96875rem; line-height: 1.25rem; }
  body.home .products-section .product-card__fit { min-height: 2.375rem; font-size: 0.875rem; line-height: 1.1875rem; }
  body.home .products-section .product-card__price strong { font-size: 1.1875rem; line-height: 1.5rem; }
  body.home .products-section .product-card__actions .button { font-size: 0.8125rem; }
}
