.rq-product-card {
  --flex-direction: column;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--rq-radius-brand);
  background-color: var(--rq-card);
  height: 100%;
  box-shadow: none;
}

.rq-product-card > .e-con,
.rq-product-card__media-pad,
.rq-product-card__body {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.rq-product-card__media-pad {
  --flex-direction: column;
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 0.625rem;
  background-color: var(--rq-card);
  z-index: 0;
}

.rq-product-card__media {
  --flex-direction: column;
  --flex-grow: 0;
  --flex-shrink: 0;
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  width: 100% !important;
  height: auto !important;
  max-height: none;
  aspect-ratio: 4 / 3 !important;
  border-radius: 0;
  background-color: var(--rq-card);
  background-image: var(--rq-product-placeholder-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rq-product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--rq-product-placeholder-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.rq-product-card__photo,
.rq-product-card__photo > .elementor-widget-container,
.rq-product-card__photo > .elementor-widget-container > a,
.rq-product-card__photo > .elementor-widget-container > figure,
.rq-product-card__media > .elementor-element,
.rq-product-card__media > .elementor-widget-image,
.rq-product-card__media a,
.rq-product-card__media figure {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.rq-product-card__photo img,
.rq-product-card__media img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 700ms ease;
}

.rq-product-card__photo img[src=""],
.rq-product-card__photo img:not([src]),
.rq-product-card__media img[src=""],
.rq-product-card__media img:not([src]),
.rq-product-card__media img[src*="placeholder"],
.rq-product-card__media img[src*="woocommerce-placeholder"],
.rq-product-card__media img.woocommerce-placeholder {
  opacity: 0 !important;
}

.rq-product-card:hover .rq-product-card__photo img:not([src=""]):not([src*="placeholder"]):not(.woocommerce-placeholder),
.rq-product-card:hover .rq-product-card__media img:not([src=""]):not([src*="placeholder"]):not(.woocommerce-placeholder) {
  transform: scale(1.03);
}

.rq-product-card__body {
  --flex-direction: column;
  --flex-grow: 1;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  gap: 0;
  padding: 1rem;
  min-width: 0;
  width: 100% !important;
  height: auto !important;
  background-color: var(--rq-card) !important;
  z-index: 2;
}

.rq-product-card__meta {
  --flex-direction: row;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.rq-product-card__meta > .elementor-element {
  width: auto !important;
  max-width: none;
}

.rq-product-card__meta > .elementor-element:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.rq-product-card__meta > .elementor-element:last-child {
  flex: 0 1 auto;
  max-width: 55%;
}

.rq-product-card__sku,
.rq-product-card__sku > .elementor-widget-container,
.rq-product-card__sku p {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  color: var(--rq-foreground) !important;
}

.rq-product-card__category,
.rq-product-card__category > .elementor-widget-container {
  display: block !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0.125rem 0.5rem !important;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--rq-muted) 50%, transparent);
  color: var(--rq-muted-foreground);
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rq-product-card__category p {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

.rq-product-card__category a,
.rq-product-card__category span {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--rq-muted-foreground) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.rq-product-card__category a:first-of-type,
.rq-product-card__category span:first-of-type,
.rq-product-card__category p > a:first-of-type {
  display: inline !important;
}

.rq-product-card__title,
.rq-product-card__title .elementor-heading-title {
  display: block;
  min-height: 2.7em;
  margin-block-start: 0.75rem !important;
  margin-block-end: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  color: var(--rq-foreground) !important;
}

.rq-product-card__actions {
  --flex-direction: row;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 0.75rem !important;
  align-items: center;
  width: 100%;
  margin-block-start: auto !important;
  padding-block-start: 1.25rem !important;
  border-top: 1px solid var(--rq-border);
}

.rq-product-card__actions > .elementor-element {
  width: auto !important;
  margin: 0 !important;
}

.rq-product-card__actions > .elementor-element:last-child {
  width: 100% !important;
  min-width: 0;
}

.rq-product-card__qty-wrap,
.rq-product-card__qty-wrap > .elementor-widget-container {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rq-product-card.is-in-quote .rq-product-card__qty-wrap,
.rq-product-card.is-in-quote .rq-product-card__qty,
.rq-product-card.is-in-quote .rq-product-card__qty-wrap[hidden] {
  display: none !important;
}

.rq-product-card__rfq.is-in-quote .elementor-button {
  border-color: var(--rq-foreground) !important;
}

.rq-product-card__qty {
  position: relative;
  display: block;
}

.rq-product-card__qty-select {
  height: 2.75rem;
  min-width: 5.5rem;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-brand);
  background-color: var(--rq-background);
  color: var(--rq-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  outline: none;
  cursor: pointer;
}

.rq-product-card__qty-select:focus {
  box-shadow: 0 0 0 2px var(--rq-ring);
}

.rq-product-card__rfq.rq-btn {
  min-width: 0;
  width: 100%;
}

.rq-product-card__rfq.rq-btn .elementor-button-wrapper,
.rq-product-card__rfq.rq-btn .elementor-button {
  width: 100%;
}

.rq-product-card__rfq.rq-btn .elementor-button {
  height: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.rq-product-card__rfq.is-loading .elementor-button {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.rq-product-card__rfq.is-added .elementor-button {
  border-color: var(--rq-foreground) !important;
}

.rq-btn--industrial-muted .elementor-button {
  background-image: none !important;
  background-color: var(--rq-background) !important;
  color: var(--rq-foreground) !important;
  border: 1px solid var(--rq-border) !important;
  box-shadow: none !important;
}

.rq-btn--industrial-muted .elementor-button:hover {
  background-color: var(--rq-muted) !important;
  filter: none;
}

.rq-btn--industrial-muted .elementor-button-icon {
  color: var(--rq-muted-foreground);
  transition: color 150ms ease;
}

.rq-btn--industrial-muted .elementor-button:hover .elementor-button-icon {
  color: var(--rq-foreground);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
