/* Bliss .pcard — settings-driven extras (keep Bliss skin, wire Maximize hooks) */

.product-item.pcard {
  background: var(--mx-product-card-bg, transparent);
  border: 1px solid var(--mx-product-card-border, transparent);
  border-radius: var(--mx-product-card-radius, 12px);
  overflow: hidden;
}

/* Ratio settings export as "100%" — use padding-top (Bliss square default).
   Do NOT use aspect-ratio with % vars: calc(100%/100) collapses media height to 0. */
.product-item.pcard .pcard__media {
  aspect-ratio: auto;
  height: 0;
  padding-top: var(--mx-product-card-image-ratio-desktop, 100%);
  background: var(--mx-product-card-image-bg, #fff);
  border-radius: var(--mx-product-card-image-radius, 12px) var(--mx-product-card-image-radius, 12px) 0 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-item.pcard .pcard__media {
    padding-top: var(--mx-product-card-image-ratio-mobile, 100%);
  }
}

.product-item.pcard .pcard__img,
.product-item.pcard .mx-product-card-gallery-img {
  object-fit: var(--mx-product-card-image-fit, cover) !important;
}

/* Title clamp from settings */
.product-item.pcard .pcard__title > span,
.product-item.pcard .mx-product-card-title > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--mx-product-card-title-lines, 2);
  overflow: hidden;
  color: var(--mx-product-card-title-color, #27221a) !important;
}

/* Short description under title — Zid product.short_description */
.product-item.pcard .pcard__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--mx-product-card-short-lines, 2);
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #6b6b6b;
  text-align: center;
  word-break: break-word;
}
.product-item.pcard .pcard__excerpt:empty,
.product-item.pcard .pcard__excerpt[hidden] {
  display: none !important;
}

.product-item.pcard .pcard__price-sale {
  color: var(--mx-product-card-price-color, inherit);
}
.product-item.pcard .pcard__price-compare,
.product-item.pcard .product-prev-price {
  color: var(--mx-product-card-old-price-color, inherit);
}

.product-item.pcard .pcard__badge,
.product-item.pcard .pcard__badge--discount,
.product-item.pcard .pcard__badge--sale,
.product-item.pcard .mx-product-card-discount-badge {
  position: absolute !important;
  top: 10px !important;
  inset-inline-start: 10px !important;
  inset-inline-end: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 12 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 56px);
  pointer-events: none;
  white-space: nowrap;
}
.product-item.pcard .pcard__badge--discount,
.product-item.pcard .mx-product-card-discount-badge {
  background: var(--mx-product-card-discount-bg, #111) !important;
  color: var(--mx-product-card-discount-text, #fff) !important;
}
.product-item.pcard .pcard__badge--sale {
  background: #fff !important;
  color: #000 !important;
}

/* Stock status — quantity levels + pulse animation */
.product-item.pcard .pcard__stock,
.bh-card .pcard__stock,
.bh-card__stock.pcard__stock {
  --pc-stock-color: #0051ba;
  --pc-stock-bg: color-mix(in srgb, var(--pc-stock-color) 12%, transparent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  line-height: 1.35;
  color: var(--pc-stock-color);
  background: transparent;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.product-item.pcard .pcard__stock-dot,
.bh-card .pcard__stock-dot {
  position: relative;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pc-stock-color);
}

.product-item.pcard .pcard__stock-text,
.bh-card .pcard__stock-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

/* Quantity color map */
.product-item.pcard .pcard__stock.is-level-out,
.bh-card .pcard__stock.is-level-out {
  --pc-stock-color: #6b7280;
}
.product-item.pcard .pcard__stock.is-level-crit,
.bh-card .pcard__stock.is-level-crit {
  --pc-stock-color: #dc2626;
}
.product-item.pcard .pcard__stock.is-level-low,
.bh-card .pcard__stock.is-level-low {
  --pc-stock-color: #ea580c;
}
.product-item.pcard .pcard__stock.is-level-fair,
.bh-card .pcard__stock.is-level-fair {
  --pc-stock-color: #d97706;
}
.product-item.pcard .pcard__stock.is-level-ok,
.bh-card .pcard__stock.is-level-ok {
  --pc-stock-color: #0284c7;
}
.product-item.pcard .pcard__stock.is-level-good,
.bh-card .pcard__stock.is-level-good {
  --pc-stock-color: #0d9488;
}
.product-item.pcard .pcard__stock.is-level-high,
.product-item.pcard .pcard__stock.is-level-inf,
.bh-card .pcard__stock.is-level-high,
.bh-card .pcard__stock.is-level-inf {
  --pc-stock-color: #059669;
}

/* Animations by urgency */
.product-item.pcard .pcard__stock.is-level-crit .pcard__stock-dot,
.bh-card .pcard__stock.is-level-crit .pcard__stock-dot {
  animation: mx-pc-stock-pulse-fast 1.1s ease-out infinite;
}
.product-item.pcard .pcard__stock.is-level-low .pcard__stock-dot,
.bh-card .pcard__stock.is-level-low .pcard__stock-dot {
  animation: mx-pc-stock-pulse 1.6s ease-out infinite;
}
.product-item.pcard .pcard__stock.is-level-fair .pcard__stock-dot,
.bh-card .pcard__stock.is-level-fair .pcard__stock-dot {
  animation: mx-pc-stock-pulse 2.1s ease-out infinite;
}
.product-item.pcard .pcard__stock.is-level-ok .pcard__stock-dot,
.product-item.pcard .pcard__stock.is-level-good .pcard__stock-dot,
.product-item.pcard .pcard__stock.is-level-high .pcard__stock-dot,
.product-item.pcard .pcard__stock.is-level-inf .pcard__stock-dot,
.bh-card .pcard__stock.is-level-ok .pcard__stock-dot,
.bh-card .pcard__stock.is-level-good .pcard__stock-dot,
.bh-card .pcard__stock.is-level-high .pcard__stock-dot,
.bh-card .pcard__stock.is-level-inf .pcard__stock-dot {
  animation: mx-pc-stock-breathe 2.8s ease-in-out infinite;
}
.product-item.pcard .pcard__stock.is-level-out .pcard__stock-dot,
.bh-card .pcard__stock.is-level-out .pcard__stock-dot {
  animation: none;
  opacity: 0.7;
}

.product-item.pcard .pcard__stock.is-in,
.product-item.pcard .pcard__stock.is-low,
.bh-card .pcard__stock.is-in,
.bh-card .pcard__stock.is-low {
  animation: mx-pc-stock-fade-in 0.45s ease both;
}

@keyframes mx-pc-stock-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc-stock-color) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--pc-stock-color) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc-stock-color) 0%, transparent); }
}
@keyframes mx-pc-stock-pulse-fast {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc-stock-color) 65%, transparent); transform: scale(1); }
  50% { transform: scale(1.15); }
  70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--pc-stock-color) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc-stock-color) 0%, transparent); transform: scale(1); }
}
@keyframes mx-pc-stock-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
@keyframes mx-pc-stock-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .product-item.pcard .pcard__stock,
  .product-item.pcard .pcard__stock-dot,
  .bh-card .pcard__stock,
  .bh-card .pcard__stock-dot {
    animation: none !important;
  }
}

/* Meta row: category + rating on one line when rating exists */
.product-item.pcard .pcard__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0;
  min-width: 0;
}
.product-item.pcard .pcard__meta.has-rating {
  justify-content: space-between;
}
.product-item.pcard .pcard__meta .pcard__rating {
  margin-top: 0;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.product-item.pcard .pcard__rating.is-empty .product-card-rating-value,
.product-item.pcard .pcard__rating.is-empty .product-card-rating-count {
  color: #9ca3af;
}

/* Category row — compact Bliss chip */
.product-item.pcard .pcard__category {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--mx-product-card-brand-color, #6b6b6b);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  justify-self: center;
  flex: 1 1 auto;
}
.product-item.pcard .pcard__category span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  @media (max-width: 768px) {
    font-size: 12px;
  }
}
/* Beat legacy `.product-item img { width/height: 100% !important }` — that stretched
   category banners into a second huge blurry image under the product photo. */
.product-item.pcard .mx-product-card-category-img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: 0 0 16px !important;
  align-self: center;
  background: #efefef;
}
.product-item.pcard .mx-product-card-category-img.is-broken {
  display: none !important;
}

/* Hover actions — opposite corner from discount badge (logical props for RTL) */
.product-item.pcard .pcard__hover-actions,
.product-item.pcard .mx-product-card-hover-actions {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  inset-inline-start: auto;
  right: auto;
  left: auto;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: 0.28s ease;
  pointer-events: none;
}
.product-item.pcard:hover .pcard__hover-actions,
.product-item.pcard:focus-within .pcard__hover-actions,
.product-item.pcard:hover .mx-product-card-hover-actions,
.product-item.pcard:focus-within .mx-product-card-hover-actions {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* ≤769: hide hover icons on mobile — they were always-on and overlapped the badge */
@media (max-width: 769px) {
  .product-item.pcard .pcard__hover-actions,
  .product-item.pcard .mx-product-card-hover-actions {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.product-item.pcard .pcard__hover-actions .mx-product-card-hover-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--mx-product-card-hover-btn-bg, #fff);
  color: var(--mx-product-card-hover-btn-icon, #111);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
@media (max-width: 450px) {
  .product-item.pcard .pcard__hover-actions .mx-product-card-hover-btn {
    width: 26px;
    height: 26px;
  }
}
.product-item.pcard .pcard__hover-actions .mx-product-card-hover-btn:hover {
  background: var(--mx-product-card-hover-btn-ripple, var(--primary-color, #111));
  color: var(--mx-product-card-hover-btn-icon-hover, #fff);
}

/* Quick buy — second Bliss pill under ATC */
.product-item.pcard .pcard__actions {
  flex-direction: column;
  gap: 8px;
}
.product-item.pcard .pcard__quick-buy {
  pointer-events: auto;
  width: 100%;
  height: 35px;
  border: 0;
  border-radius: 60px !important;
  background: var(--mx-product-card-quick-buy-bg, #111) !important;
  color: var(--mx-product-card-quick-buy-text, #fff) !important;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: transform 0.54s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.54s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.54s;
}
.product-item.pcard:hover .pcard__quick-buy {
  opacity: 1;
  visibility: visible;
  transform: translateY(15px);
}

/* Mobile: always visible; dual = side-by-side with contrast (not stacked white pills) */
@media (max-width: 991px) {
  .product-item.pcard .pcard__actions {
    left: 8px;
    right: 8px;
    bottom: 8px;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
  }
  .product-item.pcard .pcard__atc,
  .product-item.pcard .pcard__quick-buy {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    flex: 1 1 0;
    min-width: 0;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    gap: 4px !important;
  }
  .product-item.pcard .pcard__actions:not(.has-quick-buy) .pcard__atc {
    flex: 1 1 100%;
  }
  /* Contrast: ATC = primary fill, Buy Now = outline / dark text on light */
  .product-item.pcard button.pcard__atc,
  .product-item.pcard .pcard__atc.pcard__atc--options,
  .product-item.pcard .pcard__atc.product-card-add-to-cart,
  .product-item.pcard .pcard__atc {
    background: var(--mx-product-card-btn-bg, var(--primary-color, #111)) !important;
    background-color: var(--mx-product-card-btn-bg, var(--primary-color, #111)) !important;
    color: var(--mx-product-card-btn-text, #fff) !important;
  }
  .product-item.pcard .pcard__quick-buy {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--mx-product-card-quick-buy-bg, var(--mx-product-card-btn-bg, #111)) !important;
    border: 1px solid currentColor !important;
    box-shadow: none !important;
  }
  .product-item.pcard .pcard__actions.has-quick-buy .pcard__cart-icon {
    width: 14px;
    height: 14px;
  }
  .product-item.pcard .pcard__actions.has-quick-buy .pcard__atc-text,
  .product-item.pcard .pcard__actions.has-quick-buy .pcard__quick-buy > span:not(.mx-spinner) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Custom text badges — calm Bliss chips at end of card detail */
.product-item.pcard .pcard__badges,
.product-item.pcard .mx-product-card-text-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: stretch !important;
  margin: 0 -9px !important;
  background: var(--mx-product-card-text-badge-bg, transparent) !important;
  width: 100%;
  margin: 8px 0 0;
  min-height: 0;
}
.product-item.pcard .pcard__badges:empty,
.product-item.pcard .pcard__badges[hidden] {
  display: none;
}
.product-item.pcard .mx-product-card-text-badge.is-custom {
  display: flex;
  align-items: center;
  position: static;
  top: auto;
  inset-inline-start: auto;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--mx-product-card-text-badge-color, #6b6b6b) !important;
  background: var(--mx-product-card-text-badge-bg, transparent) !important;
  padding: 4px !important;
  border-radius: 999px !important;
  border: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  pointer-events: none;
}

/* Rotating text badges */
.product-item.pcard .mx-product-card-text-badges.is-animated {
  position: relative;
  display: block;
  flex-wrap: nowrap;
  width: 100%;
  min-height: calc(var(--mx-text-badge-h, 22px) + 8px);
  overflow: hidden;
  gap: 0;
}
.product-item.pcard .mx-product-card-text-badges.is-animated .mx-product-card-text-badge {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  max-width: 100%;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-item.pcard .mx-product-card-text-badges.is-animated .mx-product-card-text-badge.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}
.product-item.pcard .mx-product-card-text-badges.is-animated .mx-product-card-text-badge.is-leaving {
  opacity: 0;
  transform: translateY(-110%);
  z-index: 0;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-fade .mx-product-card-text-badge.is-leaving {
  transform: none;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_up .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-rotate .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_up .mx-product-card-text-badge {
  transform: translateY(110%);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_up .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-rotate .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_up .mx-product-card-text-badge.is-leaving {
  transform: translateY(-110%);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_down .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_down .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-drop .mx-product-card-text-badge {
  transform: translateY(-110%);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_down .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_down .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-drop .mx-product-card-text-badge.is-leaving {
  transform: translateY(110%);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_left .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_left .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-wipe_left .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-glide .mx-product-card-text-badge {
  transform: translateX(24px);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_left .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_left .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-wipe_left .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-glide .mx-product-card-text-badge.is-leaving {
  transform: translateX(-24px);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_right .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_right .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-wipe_right .mx-product-card-text-badge {
  transform: translateX(-24px);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-fade_right .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-slide_right .mx-product-card-text-badge.is-leaving,
.product-item.pcard .mx-product-card-text-badges.is-anim-wipe_right .mx-product-card-text-badge.is-leaving {
  transform: translateX(24px);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-zoom_in .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-zoom_fade .mx-product-card-text-badge {
  transform: scale(0.85);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-zoom_out .mx-product-card-text-badge {
  transform: scale(1.15);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-flip_x .mx-product-card-text-badge {
  transform: rotateX(90deg);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-flip_y .mx-product-card-text-badge {
  transform: rotateY(90deg);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-rotate_in .mx-product-card-text-badge {
  transform: rotate(-12deg) scale(0.9);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-blur .mx-product-card-text-badge {
  filter: blur(6px);
  transform: none;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-blur .mx-product-card-text-badge.is-active {
  filter: none;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-bounce .mx-product-card-text-badge {
  transform: translateY(110%);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-elastic .mx-product-card-text-badge {
  transform: scaleX(0.6);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-clip_circle .mx-product-card-text-badge {
  clip-path: circle(0% at 50% 50%);
  transform: none;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-clip_circle .mx-product-card-text-badge.is-active {
  clip-path: circle(100% at 50% 50%);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-soft_cross .mx-product-card-text-badge {
  transform: none;
  opacity: 0;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-cube .mx-product-card-text-badge {
  transform: rotateX(90deg);
  transform-origin: center bottom;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-swing .mx-product-card-text-badge {
  transform: rotate(-10deg);
  transform-origin: top center;
}
.product-item.pcard .mx-product-card-text-badges.is-anim-skew .mx-product-card-text-badge {
  transform: skewX(12deg) translateX(12px);
}
.product-item.pcard .mx-product-card-text-badges.is-anim-push .mx-product-card-text-badge,
.product-item.pcard .mx-product-card-text-badges.is-anim-cover .mx-product-card-text-badge {
  transform: translateY(100%);
}
.product-item.pcard .mx-product-card-text-badges.is-animated .mx-product-card-text-badge.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: none;
  pointer-events: auto;
  z-index: 1;
}

/* Marquee */
.product-item.pcard .mx-product-card-text-badges.is-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: -8px !important;
}
.product-item.pcard .mx-product-card-text-badges__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: mx-marquee var(--mx-text-badge-marquee-duration, 12s) linear infinite;
  will-change: transform;
}
.product-item.pcard .mx-product-card-text-badges.is-marquee:hover .mx-product-card-text-badges__track {
  animation-play-state: paused;
}
.product-item.pcard .mx-product-card-text-badges__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1px;
  padding-inline-end: 1px;
}
.product-item.pcard .mx-product-card-text-badges.is-marquee .mx-product-card-text-badge {
  flex-shrink: 0;
  white-space: nowrap;
}
.rtl .product-item.pcard .mx-product-card-text-badges__track,
html[dir='rtl'] .product-item.pcard .mx-product-card-text-badges__track {
  animation-name: mx-marquee-rtl;
}
@media (prefers-reduced-motion: reduce) {
  .product-item.pcard .mx-product-card-text-badges.is-animated .mx-product-card-text-badge {
    transition: none;
  }
  .product-item.pcard .mx-product-card-text-badges__track {
    animation: none !important;
  }
}

.product-item.pcard .pcard__atc {
  background: var(--mx-product-card-btn-bg, #fff) !important;
  color: var(--mx-product-card-btn-text, #000) !important;
}
.product-item.pcard .pcard__atc.btn-product-card-out-of-stock {
  background: var(--mx-product-card-btn-disabled-bg, #f2f2f2) !important;
  color: var(--mx-product-card-btn-disabled-text, #888) !important;
}

/* Gallery inside Bliss media */
.product-item.pcard .mx-product-card-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-item.pcard .mx-product-card-media-link > .pcard__badge {
  z-index: 12 !important;
}
.product-item.pcard .mx-product-card-gallery {
  position: absolute;
  inset: 0;
}
.product-item.pcard .mx-product-card-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-item.pcard .mx-product-card-gallery-img.is-active {
  opacity: 1;
  position: relative;
}
.product-item.pcard .mx-product-card-slider-arrows,
.product-item.pcard .mx-product-card-slider-dots {
  z-index: 4;
}

/* Qty after add — compact Bliss */
.product-item.pcard .mx-product-card-qty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: max-content;
  background: #fff;
  border-radius: 40px;
  height: 44px;
  pointer-events: auto;
}
.product-item.pcard .mx-product-card-qty.is-hidden[hidden] {
  display: none !important;
}

/* Brand strip — Zid product.brand.name / product.brand.logo */
.product-item.pcard .pcard__brand,
.product-item.pcard a.pcard__brand {
  display: inline-flex !important;
  align-items: stretch;
  max-width: 100%;
  margin: 0 0 6px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none !important;
  color: inherit;
  justify-self: center;
}
.product-item.pcard .pcard__brand-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: var(--mx-product-card-brand-badge-bg, #3d342f);
  color: var(--mx-product-card-brand-badge-color, #ffffff);
  white-space: nowrap;
}
.product-item.pcard .pcard__brand-logo,
.product-item.pcard .pcard__brand img.pcard__brand-logo {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: 0 0 14px !important;
  display: block !important;
}
.product-item.pcard .pcard__brand-label {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
}
.product-item.pcard .pcard__brand-name {
  display: inline-flex !important;
  align-items: center;
  padding: 3px 8px;
  background: var(--mx-product-card-brand-name-bg, #f3ebe3);
  color: var(--mx-product-card-brand-name-color, #3d342f);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

/*
  Under-price notes rotator (sold / tax / stock / free-ship)
  Parity with theme-raed-react .bs-card__notes:
  rotate slide-up when 2+; static when only one.
*/
.product-item.pcard .pcard__notes {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 18px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
}
.product-item.pcard .pcard__notes-list {
  display: grid;
  grid-template-areas: "stack";
  align-items: center;
  justify-items: center;
  min-height: 18px;
}
.product-item.pcard .pcard__note {
  grid-area: stack;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(110%);
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.product-item.pcard .pcard__note.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
  pointer-events: auto;
}
.product-item.pcard .pcard__notes.is-rotating .pcard__note.is-prev {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-110%);
  z-index: 1;
}
.product-item.pcard .pcard__notes.is-static .pcard__note {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .product-item.pcard .pcard__note {
    transition: none;
  }
  .product-item.pcard .pcard__notes.is-rotating .pcard__note:not(.is-active) {
    display: none;
  }
  .product-item.pcard .pcard__notes.is-rotating .pcard__note.is-active {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* Tax exempt */
.product-item.pcard .pcard__tax,
.product-item.pcard .pcard__note--tax {
  font-size: 11px;
  font-weight: 500;
  color: var(--mx-product-card-tax-exempt-color, #0da072);
}

/* Sold */
.product-item.pcard .pcard__sold,
.product-item.pcard .pcard__note--sold {
  /* display comes from .pcard__note so rotator opacity/transform stay in control */
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mx-product-card-sold-color, #6b6b6b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.product-item.pcard .pcard__sold-flame {
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
  color: inherit;
  display: inline-flex;
  transform-origin: 50% 100%;
  animation: mx-pcard-sold-flame-flicker 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 2px color-mix(in srgb, currentColor 45%, transparent));
}
.product-item.pcard .pcard__sold-flame-svg {
  display: block;
  width: 14px;
  height: 16px;
}
.product-item.pcard .pcard__sold-flame-outer {
  transform-origin: 10px 22px;
  animation: mx-pcard-sold-flame-sway 0.85s ease-in-out infinite alternate;
}
.product-item.pcard .pcard__sold-flame-core {
  fill: currentColor;
  opacity: 0.55;
  transform-origin: 10.1px 17.4px;
  animation: mx-pcard-sold-flame-core 0.7s ease-in-out infinite alternate;
}
.product-item.pcard .pcard__sold-text {
  color: inherit;
  font-weight: 500;
  font-size: 12px;
}
.product-item.pcard .pcard__sold b,
.product-item.pcard .pcard__sold [data-mx-pc-sold-num] {
  display: inline;
  font-weight: 500;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.product-item.pcard .pcard__sold [data-mx-pc-sold-num].is-tick {
  animation: mx-pcard-sold-num-tick 0.45s ease;
}
@keyframes mx-pcard-sold-num-tick {
  0% { opacity: 0.45; transform: translateY(2px); }
  55% { opacity: 1; transform: translateY(-1px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-item.pcard .pcard__sold [data-mx-pc-sold-num].is-tick {
    animation: none;
  }
}
@keyframes mx-pcard-sold-flame-flicker {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  40% { transform: scale(1.06) translateY(-0.5px); opacity: 0.92; }
  70% { transform: scale(0.97) translateY(0.3px); opacity: 1; }
}
@keyframes mx-pcard-sold-flame-sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(5deg); }
}
@keyframes mx-pcard-sold-flame-core {
  from { opacity: 0.4; transform: scale(0.92); }
  to { opacity: 0.7; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .product-item.pcard .pcard__sold-flame,
  .product-item.pcard .pcard__sold-flame-outer,
  .product-item.pcard .pcard__sold-flame-core {
    animation: none;
  }
}
.product-item.pcard .pcard__ship,
.product-item.pcard .pcard__note--ship {
  color: #0da072;
  font-weight: 600;
}

/* Stock inside notes rotator — must obey slide-up (hydrate JS used to strip .pcard__note) */
.product-item.pcard .pcard__notes .pcard__stock,
.product-item.pcard .pcard__notes .pcard__note.pcard__stock,
.product-item.pcard .pcard__notes .pcard__note--stock {
  grid-area: stack !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: auto !important;
  max-width: 100% !important;
  animation: none !important;
}
.product-item.pcard .pcard__notes.is-rotating .pcard__stock:not(.is-active):not(.is-prev),
.product-item.pcard .pcard__notes.is-rotating .pcard__note.pcard__stock:not(.is-active):not(.is-prev),
.product-item.pcard .pcard__notes.is-rotating .pcard__note--stock:not(.is-active):not(.is-prev) {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(110%) !important;
  pointer-events: none !important;
}
.product-item.pcard .pcard__notes.is-rotating .pcard__stock.is-prev,
.product-item.pcard .pcard__notes.is-rotating .pcard__note.pcard__stock.is-prev,
.product-item.pcard .pcard__notes.is-rotating .pcard__note--stock.is-prev {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-110%) !important;
}
.product-item.pcard .pcard__notes .pcard__stock.is-active,
.product-item.pcard .pcard__notes .pcard__note.pcard__stock.is-active,
.product-item.pcard .pcard__notes .pcard__note--stock.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  z-index: 2;
  pointer-events: auto;
}
.product-item.pcard .pcard__notes.is-static .pcard__stock,
.product-item.pcard .pcard__notes.is-static .pcard__note.pcard__stock,
.product-item.pcard .pcard__notes.is-static .pcard__note--stock {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

/* Product/option image thumbs — above custom badges, max 4 */
.product-item.pcard .pcard__thumbs {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 2px;
  margin-top: 0px;
  margin-bottom: 0px;
}
.product-item.pcard .pcard__thumbs::-webkit-scrollbar {
  display: none;
}
.product-item.pcard .pcard__thumb {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #e7e7e7;
  background-size: cover;
  background-position: center;
  background-color: #f3f3f3;
  background-clip: padding-box;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.28s ease;
}
@media (max-width: 350px) {
  .product-item.pcard .pcard__thumb {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }
}
.product-item.pcard .pcard__thumb.is-active {
  border-color: var(--primary-color, #0f398b);
}
.product-item.pcard .pcard__thumb--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  background-image: none;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  border-style: dashed;
}

/* Tamara / Tabby strip — parity with theme-raed-react .bs-card__pay (web + mobile) */
.product-item.pcard .pcard__pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0px 0 0;
  padding: 0;
  min-height: auto;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 500;
}
.product-item.pcard .pcard__pay-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #6b6b6b;
  white-space: normal;
}
.product-item.pcard .pcard__pay-logos {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.product-item.pcard .pcard__pay-logo {
  display: block;
  height: 16px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  border-radius: 0;
}
.product-item.pcard .pcard__pay-logo--tabby {
  display: none !important;
}
@media (min-width: 990px) {
  .product-item.pcard .pcard__pay-logo {
    height: 20px;
  }
}
@media (max-width: 380px) {
  .product-item.pcard .pcard__pay {
    gap: 4px;
  }
  .product-item.pcard .pcard__pay-title {
    font-size: 11px;
  }
  .product-item.pcard .pcard__pay-logo {
    max-width: 30px;
    height: 14px;
  }
}

/* Sale countdown — parity with theme-raed-react .bs-card__cd */
.product-item.pcard .sale-countdown-timer-card-floating {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 6;
  margin: auto;
  width: max-content;
  max-width: calc(100% - 16px);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.product-item.pcard .pcard__countdown {
  position: static !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: max-content;
  margin: 0;
  padding: 0;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  font-size: inherit !important;
  direction: ltr;
}
.product-item.pcard .pcard__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-height: 26px;
  padding: 3px 2px 2px;
  gap: 1px;
  border-radius: 5px;
  background: var(--mx-product-card-countdown-bg, #ba0202) !important;
  color: var(--mx-product-card-countdown-color, #ffffff) !important;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.product-item.pcard .pcard__countdown-unit span:first-child {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: inherit !important;
}
.product-item.pcard .pcard__countdown-unit span:last-child {
  opacity: 1;
  font-weight: 600;
  font-size: 8px;
  line-height: 1;
}

/* Hide countdown on hover/focus — same as theme-raed-react .bs-card:hover .bs-card__cd */
.product-item.pcard:hover .sale-countdown-timer-card-floating,
.product-item.pcard:focus-within .sale-countdown-timer-card-floating,
.product-item.pcard .pcard__media:hover .sale-countdown-timer-card-floating,
.product-item.pcard .pcard__media:focus-within .sale-countdown-timer-card-floating,
.product-item.pcard .mx-product-card-media-link:hover ~ .sale-countdown-timer-card-floating,
.product-item.pcard.is-switching .sale-countdown-timer-card-floating {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Hover / always card video */
.product-item.pcard .pcard__hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  background: #000;
}
.product-item.pcard .pcard__hover-video[hidden] {
  display: none !important;
}
.product-item.pcard .mx-product-card-media-link:hover .pcard__hover-video:not(.is-always):not([hidden]),
.product-item.pcard .pcard__media:hover .pcard__hover-video:not(.is-always) {
  display: block !important;
}
