/**
 * BeezWoo Premium Card V3 - Full Stylesheet
 * Enterprise Fashion Edition
 *
 * COMPATIBILITY: Universal (any WooCommerce theme)
 * OPTIMIZED: Woodmart, LiteSpeed Cache
 *
 * @version 1.2.0
 */

/* ============================================
   LAYOUT VARIANTS
   ============================================ */

/* ============================================
   CLASSIC LAYOUT - Clean White Card Style
   ============================================ */

.bpc-card--classic {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bpc-card--classic .bpc-card__content {
  background: #ffffff !important;
  color: #1c1c0d !important;
  padding: var(--bpc-spacing) !important;
}

.bpc-card--classic .bpc-card__title,
.bpc-card--classic .bpc-card__title a {
  color: #1c1c0d !important;
}

.bpc-card--classic .bpc-card__price {
  color: #1c1c0d !important;
}

.bpc-card--classic .bpc-card__brand {
  color: #999 !important;
}

.bpc-card--classic .bpc-card__media {
  border-radius: var(--bpc-radius) var(--bpc-radius) 0 0;
}

/* Classic: Gallery dots - dark style for visibility on light images */
.bpc-card--classic .bpc-gallery__dots {
  bottom: 12px;
  left: 50%;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bpc-card--classic .bpc-gallery__dot::before {
  background: rgba(255, 255, 255, 0.5);
}

.bpc-card--classic .bpc-gallery__dot:hover::before {
  background: rgba(255, 255, 255, 0.8);
}

.bpc-card--classic .bpc-gallery__dot--active::before {
  background: #fff;
}

/* Classic: Gallery arrows - matching overlay style */
.bpc-card--classic .bpc-gallery__arrow {
  background: var(--bpc-overlay-icon-bg, rgba(0, 0, 0, 0.3)) !important;
  color: var(--bpc-overlay-icon-color, #fff);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bpc-card--classic .bpc-gallery__arrow:hover {
  background: var(--bpc-overlay-icon-bg-hover, rgba(0, 0, 0, 0.5)) !important;
  color: var(--bpc-overlay-icon-color-hover, #fff);
}

/* Classic: Swatches - keep admin styling */
.bpc-card--classic .bpc-swatches {
  margin-top: 8px;
}

/* Classic: ATC button - full width dark button */
.bpc-card--classic .bpc-atc {
  margin-top: auto;
  padding-top: 10px;
}

.bpc-card--classic .bpc-atc__btn {
  width: 100% !important;
  height: 40px;
  background: #1c1c0d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 !important;
  position: static !important;
}

.bpc-card--classic .bpc-atc__btn:hover {
  background: var(--bpc-accent, #f9f506) !important;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bpc-card--classic .bpc-atc__btn svg {
  width: 16px !important;
  height: 16px !important;
  color: inherit !important;
  display: block !important;
}

/* ATC icon-only — floating overlay on the image (bottom-right) */
/* Uses --bpc-overlay-* CSS vars to match action button styling */
.bpc-card__media > .bpc-atc {
  position: absolute;
  bottom: var(--bpc-spacing, 12px);
  right: var(--bpc-spacing, 12px);
  z-index: 10;
  margin: 0;
  padding: 0;
}

.bpc-card__media > .bpc-atc .bpc-atc__btn--icon {
  width: var(--bpc-icon-size, 36px) !important;
  height: var(--bpc-icon-size, 36px) !important;
  min-width: var(--bpc-icon-size, 36px) !important;
  min-height: var(--bpc-icon-size, 36px) !important;
  border-radius: var(--bpc-icon-radius, 8px) !important;
  padding: 0 !important;
  background: var(--bpc-overlay-icon-bg, rgba(0, 0, 0, 0.3)) !important;
  color: var(--bpc-overlay-icon-color, #fff) !important;
  border: 1px solid var(--bpc-overlay-icon-border, rgba(255, 255, 255, 0.2)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--bpc-icon-shadow, 0 2px 8px rgba(0, 0, 0, 0.15));
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.bpc-card__media > .bpc-atc .bpc-atc__btn--icon:hover {
  background: var(--bpc-overlay-icon-bg-hover, rgba(0, 0, 0, 0.5)) !important;
  color: var(--bpc-overlay-icon-color-hover, #fff) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transform: scale(var(--bpc-icon-scale-hover, 1.08));
}

.bpc-card__media > .bpc-atc .bpc-atc__btn--icon svg {
  width: var(--bpc-icon-svg-size, 18px) !important;
  height: var(--bpc-icon-svg-size, 18px) !important;
  min-width: var(--bpc-icon-svg-size, 18px) !important;
  min-height: var(--bpc-icon-svg-size, 18px) !important;
  display: block !important;
  stroke: var(--bpc-overlay-icon-color, #fff) !important;
  stroke-width: 2 !important;
  fill: none !important;
}

/* Classic: Rating stars */
.bpc-card--classic .bpc-rating {
  margin-top: 4px;
}

/* Classic: Actions buttons (wishlist, quickview) - overlay style on image */
/* Uses --bpc-overlay-* CSS vars (same as ATC icon) for consistent appearance */
.bpc-card--classic .bpc-actions {
  position: absolute;
  top: var(--bpc-spacing, 12px);
  right: var(--bpc-spacing, 12px);
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.bpc-card--classic .bpc-action-btn {
  width: var(--bpc-icon-size, 36px) !important;
  height: var(--bpc-icon-size, 36px) !important;
  min-width: var(--bpc-icon-size, 36px) !important;
  min-height: var(--bpc-icon-size, 36px) !important;
  background: var(--bpc-overlay-icon-bg, rgba(0, 0, 0, 0.3)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--bpc-overlay-icon-border, rgba(255, 255, 255, 0.2)) !important;
  border-radius: var(--bpc-icon-radius, 8px) !important;
  box-shadow: var(--bpc-icon-shadow, 0 2px 8px rgba(0, 0, 0, 0.15)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.bpc-card--classic .bpc-action-btn:hover {
  background: var(--bpc-overlay-icon-bg-hover, rgba(0, 0, 0, 0.5)) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transform: scale(var(--bpc-icon-scale-hover, 1.08));
}

.bpc-card--classic .bpc-action-btn svg:not(.bpc-icon--heart-filled) {
  width: var(--bpc-icon-svg-size, 18px) !important;
  height: var(--bpc-icon-svg-size, 18px) !important;
  min-width: var(--bpc-icon-svg-size, 18px) !important;
  min-height: var(--bpc-icon-svg-size, 18px) !important;
  display: block !important;
  stroke: var(--bpc-overlay-icon-color, #fff) !important;
  stroke-width: 2 !important;
  fill: none !important;
}

/* Heart filled icon - hidden by default, shown when active */
.bpc-card--classic .bpc-action-btn .bpc-icon--heart-filled {
  display: none !important;
  width: var(--bpc-icon-svg-size, 18px) !important;
  height: var(--bpc-icon-svg-size, 18px) !important;
  stroke: none !important;
  fill: var(--bpc-overlay-icon-color, #fff) !important;
}

.bpc-card--classic .bpc-action-btn--active svg.bpc-icon--heart-empty {
  display: none !important;
}

.bpc-card--classic .bpc-action-btn--active svg.bpc-icon--heart-filled {
  display: block !important;
}

/* Overlay Layout */
.bpc-card--overlay {
  color: #fff;
}

.bpc-card--overlay .bpc-card__media {
  position: absolute;
  inset: 0;
}

.bpc-card--overlay .bpc-card__media-wrapper {
  height: 100%;
  padding-bottom: 0;
  aspect-ratio: var(--bpc-card-aspect, 4 / 5);
}

.bpc-card--overlay .bpc-card__content {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: calc(var(--bpc-spacing) * 2) var(--bpc-spacing) var(--bpc-spacing);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
  color: #fff;
}

.bpc-card--overlay .bpc-card__title,
.bpc-card--overlay .bpc-card__price,
.bpc-card--overlay .bpc-card__brand {
  color: #fff;
}

.bpc-card--overlay .bpc-card__price del {
  color: rgba(255, 255, 255, 0.6);
}

.bpc-card--overlay .bpc-atc__btn {
  background: #fff;
  color: var(--bpc-text-primary);
}

.bpc-card--overlay .bpc-atc__btn:hover {
  background: var(--bpc-accent);
  color: #000;
}

/* Editorial Layout */
.bpc-card--editorial .bpc-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bpc-card--editorial .bpc-card__brand {
  font-weight: 600;
  color: var(--bpc-accent);
}

.bpc-card--editorial .bpc-atc__btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Compact Layout */
.bpc-card--compact .bpc-badges {
  top: 8px;
  left: 8px;
}

.bpc-card--compact .bpc-badge {
  font-size: 0.5rem;
  padding: 2px 6px;
}

.bpc-card--compact .bpc-actions {
  top: 8px;
  right: 8px;
}

.bpc-card--compact .bpc-action-btn {
  width: 28px;
  height: 28px;
}

.bpc-card--compact .bpc-action-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   SOCIAL FEED LAYOUT - Instagram Style v2
   ============================================ */

/* Social layout styles are primarily in critical CSS */
/* This file contains additional/override styles */

/* Social media-wrapper inherits aspect-ratio from CSS variable + padding-bottom fallback */
.bpc-card--social .bpc-card__media-wrapper {
  aspect-ratio: var(--bpc-card-aspect, 4 / 5);
  padding-bottom: 125%; /* 4:5 fallback for older browsers */
  background-color: var(--bpc-social-bg, #fff); /* White fallback to prevent anti-aliasing artifacts */
  border-radius: inherit;
}

/* Ensure all text is white */
.bpc-card--social,
.bpc-card--social .bpc-card__content,
.bpc-card--social .bpc-card__title,
.bpc-card--social .bpc-card__title a,
.bpc-card--social .bpc-card__price,
.bpc-card--social .bpc-card__brand {
  color: #fff !important;
}

/* Price accent on sale */
.bpc-card--social .bpc-card__price ins,
.bpc-card--social.bpc-card--on-sale .bpc-card__price {
  color: var(--bpc-accent, #f9f506) !important;
}

/* Gallery dots position for social - above content */
.bpc-card--social .bpc-gallery__dots {
  bottom: auto;
  top: 10px;
  left: auto;
  right: 10px;
  transform: none;
}

/* Gallery arrows for social */
.bpc-card--social .bpc-gallery__arrow {
  width: 44px;
  height: 44px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92);
}

.bpc-card--social .bpc-gallery__arrow:hover {
  color: rgba(255, 255, 255, 1);
}

.bpc-card--social .bpc-gallery__arrow svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   DENSITY VARIANTS
   ============================================ */

.bpc-card--density-compact {
  --bpc-spacing: 8px;
}

.bpc-card--density-airy {
  --bpc-spacing: 16px;
}

/* ============================================
   GALLERY SLIDESHOW - Shopify Style
   ============================================ */

/* Gallery container */
.bpc-gallery {
  position: relative;
  overflow: hidden;
}

/* Gallery track - holds all slides */
.bpc-gallery__track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Individual slide */
.bpc-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bpc-gallery__slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Fade mode - default */
.bpc-gallery--fade .bpc-gallery__track {
  transform: none !important;
}

.bpc-gallery--fade .bpc-gallery__slide {
  position: absolute;
  inset: 0;
}

/* Slide mode */
.bpc-gallery--slide .bpc-gallery__slide {
  opacity: 1;
  pointer-events: auto;
}

.bpc-gallery__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Gallery dots - Shopify style */
.bpc-gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--bpc-gallery-dots-gap, 1px);
  padding: var(--bpc-gallery-dots-pad-y, 0px) var(--bpc-gallery-dots-pad-x, 0px);
  background: var(--bpc-gallery-dots-bg, transparent);
  filter: var(--bpc-gallery-dots-filter, drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)));
  border-radius: 9999px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

/* Mobile: always show dots */
@media (max-width: 767px) {
  .bpc-gallery__dots {
    bottom: 10px;
  }
}

.bpc-gallery__dot {
  width: var(--bpc-gallery-dot-hit, 14px) !important;
  height: var(--bpc-gallery-dot-hit, 14px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.bpc-gallery__dot::before {
  content: "";
  width: var(--bpc-gallery-dot-size, 5px);
  height: var(--bpc-gallery-dot-size, 5px);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0.95;
  transition: width 160ms ease, height 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.bpc-gallery__dot:hover::before {
  background: rgba(255, 255, 255, 0.85);
}

.bpc-gallery__dot:active {
  transform: scale(0.92);
}

.bpc-gallery__dot:focus-visible {
  outline: 2px solid rgba(249, 245, 6, 0.9);
  outline-offset: 2px;
}

.bpc-gallery__dot--active::before {
  background: #fff;
  width: var(--bpc-gallery-dot-active-w, 10px);
  height: var(--bpc-gallery-dot-active-h, 5px);
}

/* Gallery arrows (premium) */
.bpc-gallery .bpc-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  text-transform: none !important;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.bpc-gallery:hover .bpc-gallery__arrow,
.bpc-gallery.is-touching .bpc-gallery__arrow {
  opacity: 1;
  pointer-events: auto;
}

.bpc-gallery .bpc-gallery__arrow:hover {
  transform: translateY(-50%) scale(1.06);
  color: rgba(255, 255, 255, 1);
}

.bpc-gallery .bpc-gallery__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.bpc-gallery .bpc-gallery__arrow svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.bpc-gallery .bpc-gallery__arrow--prev {
  left: 10px;
}

.bpc-gallery .bpc-gallery__arrow--next {
  right: 10px;
}

/* Mobile: hide arrows by default (swipe), enable via admin toggle */
@media (max-width: 767px) {
  .bpc-gallery .bpc-gallery__arrow {
    display: none !important;
  }

  .bpc-gallery--mobile-arrows .bpc-gallery__arrow {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }

  /* Icon-only ATC in media overlay: ALWAYS visible on mobile */
  .bpc-card__media > .bpc-atc {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bpc-card__media > .bpc-atc .bpc-atc__btn--icon {
    width: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
    height: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
    min-width: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
    min-height: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
  }

  .bpc-card__media > .bpc-atc .bpc-atc__btn--icon svg {
    width: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
    height: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
  }

  /* Hide carousel-auto-enabled gallery arrows on mobile (swipe is native UX) */
  .wd-carousel .bpc-gallery .bpc-gallery__arrow,
  .wd-carousel-container .bpc-gallery .bpc-gallery__arrow,
  .swiper .bpc-gallery .bpc-gallery__arrow,
  .swiper-container .bpc-gallery .bpc-gallery__arrow,
  .owl-carousel .bpc-gallery .bpc-gallery__arrow,
  .slick-slider .bpc-gallery .bpc-gallery__arrow,
  .elementor-swiper .bpc-gallery .bpc-gallery__arrow,
  [class*="carousel"] .bpc-gallery .bpc-gallery__arrow,
  [class*="slider"] .bpc-gallery .bpc-gallery__arrow {
    display: none !important;
  }

  /* Re-enable only if mobile-arrows admin toggle is explicitly on */
  .wd-carousel .bpc-gallery--mobile-arrows .bpc-gallery__arrow,
  .wd-carousel-container .bpc-gallery--mobile-arrows .bpc-gallery__arrow,
  [class*="carousel"] .bpc-gallery--mobile-arrows .bpc-gallery__arrow,
  [class*="slider"] .bpc-gallery--mobile-arrows .bpc-gallery__arrow {
    display: flex !important;
    width: 28px !important;
    height: 28px !important;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================
   GALLERY ARROWS ALWAYS VISIBLE
   For use inside carousels to avoid swipe conflicts
   ============================================ */

/* Arrows always visible - compact glass style */
.bpc-gallery--arrows-visible .bpc-gallery__arrow {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 50% !important;
  color: #fff !important;
  z-index: 15 !important;
  transition: all 0.2s ease !important;
}

.bpc-gallery--arrows-visible .bpc-gallery__arrow:hover {
  background: rgba(0, 0, 0, 0.7) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.bpc-gallery--arrows-visible .bpc-gallery__arrow svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #fff !important;
  fill: none !important;
}

/* Position arrows more inside to avoid carousel arrow conflict */
.bpc-gallery--arrows-visible .bpc-gallery__arrow--prev {
  left: 8px !important;
}

.bpc-gallery--arrows-visible .bpc-gallery__arrow--next {
  right: 8px !important;
}

/* Mobile: arrows visible with compact style when enabled */
@media (max-width: 767px) {
  .bpc-gallery--arrows-visible.bpc-gallery--mobile-arrows .bpc-gallery__arrow {
    display: flex !important;
    width: 28px !important;
    height: 28px !important;
  }

  .bpc-gallery--arrows-visible.bpc-gallery--mobile-arrows .bpc-gallery__arrow svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Gallery in Social layout - position dots above content */
.bpc-card--social .bpc-gallery__dots {
  bottom: auto;
  top: 10px;
  left: auto;
  right: 10px;
  transform: none;
}

.bpc-card--social .bpc-gallery__arrow {
  width: 44px;
  height: 44px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92);
}

.bpc-card--social .bpc-gallery__arrow:hover {
  color: rgba(255, 255, 255, 1);
}

/* Touch feedback when swiping */
.bpc-gallery.is-dragging .bpc-gallery__track {
  transition: none;
}

/* Ensure gallery z-index doesn't conflict with content */
.bpc-card--social .bpc-gallery {
  z-index: 1;
}

.bpc-card--social .bpc-card__media::after {
  z-index: 2;
}

/* ============================================
   ASPECT RATIOS
   ============================================ */

/* Aspect ratio via CSS property (primary) + padding-bottom fallback */
.bpc-card[data-aspect="2-3"] .bpc-card__media-wrapper {
  aspect-ratio: 2 / 3;
  padding-bottom: 150%;
}

.bpc-card[data-aspect="3-5"] .bpc-card__media-wrapper {
  aspect-ratio: 3 / 5;
  padding-bottom: 166.67%;
}

.bpc-card[data-aspect="9-16"] .bpc-card__media-wrapper {
  aspect-ratio: 9 / 16;
  padding-bottom: 177.78%;
}

.bpc-card[data-aspect="4-5"] .bpc-card__media-wrapper {
  aspect-ratio: 4 / 5;
  padding-bottom: 125%;
}

.bpc-card[data-aspect="3-4"] .bpc-card__media-wrapper {
  aspect-ratio: 3 / 4;
  padding-bottom: 133.33%;
}

.bpc-card[data-aspect="1-1"] .bpc-card__media-wrapper {
  aspect-ratio: 1 / 1;
  padding-bottom: 100%;
}

.bpc-card[data-aspect="16-9"] .bpc-card__media-wrapper {
  aspect-ratio: 16 / 9;
  padding-bottom: 56.25%;
}

/* ============================================
   SHADOW VARIANTS
   ============================================ */

.bpc-card[data-shadow="none"] {
  box-shadow: none;
}

.bpc-card[data-shadow="subtle"] {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

.bpc-card[data-shadow="medium"] {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.bpc-card[data-shadow="strong"] {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

/* ============================================
   ACTIONS STYLES
   ============================================ */

/* Glass Style (default) */
.bpc-action-btn--glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.12) 100%
  );
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bpc-action-btn--glass:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Solid Style */
.bpc-action-btn--solid {
  background: #fff;
  backdrop-filter: none;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bpc-action-btn--solid:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ACTIONS POSITIONS
   ============================================ */

.bpc-actions--top-left {
  top: var(--bpc-spacing);
  right: auto;
  left: var(--bpc-spacing);
}

.bpc-actions--bottom-right {
  top: auto;
  bottom: var(--bpc-spacing);
  right: var(--bpc-spacing);
}

/* ============================================
   WISHLIST BUTTON STATES
   ============================================ */

.bpc-action-btn[data-action="wishlist"] .bpc-icon--heart-filled {
  display: none;
}

.bpc-action-btn[data-action="wishlist"].bpc-action-btn--active .bpc-icon--heart-empty {
  display: none;
}

.bpc-action-btn[data-action="wishlist"].bpc-action-btn--active .bpc-icon--heart-filled {
  display: block;
  color: #e53935;
}

.bpc-action-btn[data-action="wishlist"].bpc-action-btn--active {
  background: #fff;
}

/* ============================================
   SWATCHES INTEGRATION
   ============================================ */

.bpc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.bpc-swatches--scroll {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.bpc-swatches--scroll::-webkit-scrollbar {
  display: none;
}

.bpc-card__swatches-bar--scroll {
  overflow: hidden;
  position: relative;
}

.bpc-card__swatches-bar--scroll .bpc-swatches {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.bpc-card__swatches-bar--scroll .bpc-swatches::-webkit-scrollbar {
  display: none;
}

.bpc-card__swatches-bar--scroll .bpc-swatch {
  flex-shrink: 0;
}

.bpc-card__swatches-bar--scroll::before,
.bpc-card__swatches-bar--scroll::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 0;
  width: 20px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.bpc-card__swatches-bar--scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--bpc-bg, #fff) 0%, transparent 100%);
}

.bpc-card__swatches-bar--scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--bpc-bg, #fff) 0%, transparent 100%);
}

.bpc-card__swatches-bar--scroll.has-scroll-left::before {
  opacity: 1;
}

.bpc-card__swatches-bar--scroll.has-scroll-right::after {
  opacity: 1;
}

.bpc-card__swatches-bar--scroll.is-scrolling .bpc-swatches {
  scroll-behavior: auto;
}

/* Integration with BeezWoo Swatch System */
.bpc-swatches .beezwoo-swatch,
.bpc-swatches .bpc-swatch {
  width: var(--bpc-swatch-width, 38px);
  height: var(--bpc-swatch-height, 51px);
  /* Reset Woodmart/global button styles (padding/min-height) so ratio works */
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  text-transform: none !important;
  border-radius: var(--bpc-swatch-radius, 6px);
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bpc-swatches .beezwoo-swatch:hover,
.bpc-swatches .bpc-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bpc-swatches .beezwoo-swatch--active,
.bpc-swatches .bpc-swatch--active {
  border-color: #000;
  border-width: 2px;
  transform: scale(1.05);
}

.bpc-swatch__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bpc-swatches__more {
  font-size: 0.625rem;
  color: var(--bpc-text-muted);
  display: flex;
  align-items: center;
  padding-left: 4px;
}

/* ============================================
   RATING DISPLAY
   ============================================ */

.bpc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--bpc-text-secondary);
}

.bpc-rating__stars {
  display: flex;
  gap: 1px;
}

.bpc-rating__star {
  width: 12px;
  height: 12px;
  fill: #e5e5e5;
}

.bpc-rating__star--filled {
  fill: #fbbf24;
}

.bpc-rating__count {
  color: var(--bpc-text-muted);
}

/* ============================================
   ADD TO CART VARIANTS
   ============================================ */

/* Icon Only */
.bpc-atc__btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.bpc-atc__btn--icon .bpc-atc__text {
  display: none;
}

/* Icon + Text */
.bpc-atc__btn--icon-text .bpc-atc__icon {
  display: flex;
}

/* Hover Only */
.bpc-atc--hover {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.bpc-card:hover .bpc-atc--hover {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay Position */
.bpc-atc--overlay {
  position: absolute;
  bottom: var(--bpc-spacing);
  left: var(--bpc-spacing);
  right: var(--bpc-spacing);
  z-index: 10;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.bpc-card:hover .bpc-atc--overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Position */
.bpc-atc--floating {
  position: absolute;
  bottom: var(--bpc-spacing-sm);
  right: var(--bpc-spacing-sm);
  z-index: 10;
  margin: 0;
  padding: 0;
}

.bpc-atc--floating .bpc-atc__btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bpc-atc--floating .bpc-atc__text {
  display: none;
}

/* ============================================
   QUICKVIEW MODAL (FEED STYLE)
   ============================================ */

.bpc-quickview {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Use visibility instead of display:none to keep element in render tree for transitions */
  visibility: hidden;
  pointer-events: none;
}

.bpc-quickview.is-open {
  visibility: visible;
  pointer-events: auto;
}

.bpc-quickview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.bpc-quickview.is-open .bpc-quickview__overlay {
  opacity: 1;
}

.bpc-quickview__modal {
  position: relative;
  width: 100%;
  max-width: min(var(--bpc-qv-desktop-width, 1000px), 96vw);
  height: min(90vh, 900px);
  max-height: 90vh;
  background: #0b0b0b;
  border-radius: 24px;
  overflow: hidden;
  transform: translate3d(var(--bpc-qv-tx, 0px), var(--bpc-qv-ty, 0px), 0) scale(var(--bpc-qv-scale, 1));
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 200ms ease,
    border-radius 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

/* Desktop/tablet: premium portrait ratio (3:4) */
@media (min-width: 768px) {
  .bpc-quickview__modal {
    width: auto;
    height: min(88vh, 860px);
    max-height: 88vh;
    aspect-ratio: 3 / 4;
    max-width: 96vw;
  }
}

.bpc-quickview__modal.is-animating,
.bpc-quickview__modal.is-in {
  opacity: 1;
}

.bpc-quickview__modal.is-no-anim {
  transition: none !important;
}

.bpc-quickview__content {
  width: 100%;
  height: 100%;
  outline: none;
}

.bpc-quickview__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.bpc-quickview__loading .bpc-atc__spinner {
  display: block;
  position: static;
  width: 36px;
  height: 36px;
  border-width: 3px;
}

/* Premium skeleton loading state */
.bpc-qv--skeleton {
  position: relative;
}

.bpc-qv--skeleton .bpc-qv__skeleton-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(8px);
  transform: scale(1.05);
  opacity: 0.7;
}

.bpc-qv__skeleton-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.bpc-qv__skeleton-loader .bpc-atc__spinner {
  display: block;
  width: 44px;
  height: 44px;
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

.bpc-qv__skeleton-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: bpc-skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.bpc-qv__skeleton-line--title {
  width: 60%;
  height: 24px;
  margin-bottom: 12px;
}

.bpc-qv__skeleton-line--price {
  width: 35%;
  height: 20px;
}

@keyframes bpc-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Content fade-in when loaded */
.bpc-qv:not(.bpc-qv--skeleton) {
  animation: bpc-qv-fade-in 0.3s ease-out;
}

@keyframes bpc-qv-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile: fullscreen optional (configurable in admin) */
@media (max-width: 767px) {
  .bpc-quickview {
    padding: 0;
  }

  .bpc-quickview--mobile-fullscreen .bpc-quickview__modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

/* ============================================
   QUICKVIEW FEED UI (Mockup-inspired)
   ============================================ */

.bpc-qv {
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
  background: #111;
  font-family: var(--bpc-font-family, inherit);
}

.bpc-qv__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bpc-qv__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 200ms ease;
}

.bpc-qv__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 25%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.bpc-qv__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 16px 10px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
}

.bpc-qv__top-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

.bpc-qv__close-btn {
  position: absolute !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  left: 16px !important;
  right: auto !important;
  pointer-events: auto !important;
  z-index: 100 !important;
}

.bpc-qv__logo {
  height: 32px;
  width: auto;
  max-width: min(220px, 60vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.bpc-qv__topspacer {
  width: 44px;
  height: 44px;
}

.bpc-qv__topbtn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  text-transform: none !important;
}

.bpc-qv__topbtn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.bpc-qv__topbtn:active {
  transform: scale(0.96);
}

.bpc-qv__rail {
  position: absolute;
  right: 16px;
  bottom: 150px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.bpc-qv__rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bpc-qv__rail-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.bpc-qv .bpc-qv__action-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  text-transform: none !important;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.bpc-qv .bpc-qv__action-btn svg {
  width: 24px !important;
  height: 24px !important;
  color: #fff !important;
}

.bpc-qv .bpc-qv__action-btn:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(249, 245, 6, 0.7);
  color: #fff;
  transform: translateZ(0) scale(1.06);
}

.bpc-qv .bpc-qv__action-btn:hover svg {
  color: #fff !important;
}

/* Quick View: keep icons white, use outline for active state */
.bpc-qv .bpc-action-btn[data-action="wishlist"].bpc-action-btn--active {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(249, 245, 6, 0.75);
  color: #fff;
}

.bpc-qv .bpc-action-btn[data-action="wishlist"].bpc-action-btn--active .bpc-icon--heart-filled {
  color: currentColor;
}

.bpc-qv__swatches-stack {
  padding: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: min(380px, calc(100vh - 320px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bpc-qv__swatches-stack::-webkit-scrollbar {
  display: none;
}

.bpc-qv__swatches-stack .bpc-swatches {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}

.bpc-qv__swatches-stack .bpc-swatch {
  width: var(--bpc-qv-swatch-width, 40px);
  height: var(--bpc-qv-swatch-height, 56px);
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0.85;
  transform: translateZ(0) scale(1);
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bpc-qv__swatches-stack .bpc-swatch:hover {
  opacity: 1;
  transform: translateZ(0) scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.bpc-qv__swatches-stack .bpc-swatch--active {
  opacity: 1;
  border-color: var(--bpc-accent, #f9f506);
  box-shadow: 0 0 0 3px rgba(249, 245, 6, 0.35), 0 16px 34px rgba(0, 0, 0, 0.3);
}

.bpc-qv__swatches-stack .bpc-swatches__more {
  display: none;
}

.bpc-qv__gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
}

.bpc-qv .bpc-gallery__dots {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  opacity: 1;
  justify-content: center;
  pointer-events: auto;
}

.bpc-qv .bpc-qv__gallery-arrow {
  display: none !important; /* Hidden on mobile by default */
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
  text-transform: none !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.bpc-qv .bpc-qv__gallery-arrow svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.bpc-qv .bpc-qv__gallery-arrow:hover {
  transform: scale(1.08);
  color: rgba(255, 255, 255, 1);
}

.bpc-qv .bpc-qv__gallery-arrow:active {
  transform: scale(0.94);
}

@media (min-width: 768px) {
  .bpc-qv .bpc-qv__gallery-arrow {
    display: flex !important;
  }
}

/* Optional (admin): show nav arrows also on mobile */
@media (max-width: 767px) {
  .bpc-gallery--mobile-arrows .bpc-qv__gallery-arrow {
    display: flex !important;
  }
}

.bpc-qv__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  /* Don't block interactions with the right rail/swatches when overlapping. */
  pointer-events: none;
}

.bpc-qv__bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -90px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 35%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.bpc-qv__bottom > * {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.bpc-qv__brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bpc-qv__title {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.98);
}

.bpc-qv__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.bpc-qv__price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--bpc-accent, #f9f506);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bpc-qv__price .woocommerce-Price-amount,
.bpc-qv__price .woocommerce-Price-currencySymbol,
.bpc-qv__price bdi {
  color: inherit;
}

.bpc-qv__price del .woocommerce-Price-amount,
.bpc-qv__price del .woocommerce-Price-currencySymbol,
.bpc-qv__price del bdi {
  color: rgba(255, 255, 255, 0.65);
}

.bpc-qv__price ins .woocommerce-Price-amount,
.bpc-qv__price ins .woocommerce-Price-currencySymbol,
.bpc-qv__price ins bdi {
  color: var(--bpc-accent, #f9f506);
}

.bpc-qv__price del {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 600;
}

.bpc-qv__price ins {
  color: var(--bpc-accent, #f9f506);
  text-decoration: none;
}

.bpc-qv__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.bpc-qv__star {
  color: #fbbf24;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.bpc-qv__cta-row {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bpc-qv__cta {
  width: 100%;
  height: 56px;
  border-radius: 9999px;
  border: 0 !important;
  padding: 0 22px !important;
  min-height: 0 !important;
  background: var(--bpc-accent, #f9f506);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(249, 245, 6, 0.35);
  transition: transform 150ms ease, box-shadow 200ms ease;
  text-transform: none !important;
  line-height: 1 !important;
}

.bpc-qv__cta:hover {
  box-shadow: 0 0 30px rgba(249, 245, 6, 0.55);
}

.bpc-qv__cta:active {
  transform: scale(0.98);
}

.bpc-qv__cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.bpc-qv__cta-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.bpc-qv__details {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.875rem;
}

.bpc-qv__details:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .bpc-qv__rail {
    right: 22px;
    bottom: 160px;
  }

  .bpc-qv__bottom {
    padding: 26px 26px 26px;
  }

  .bpc-qv__cta-row {
    flex-direction: row;
    align-items: center;
  }

  .bpc-qv__details {
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.bpc-notification {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 20px;
  background: #1c1c0d;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bpc-notification.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bpc-notification--success {
  background: var(--bpc-new);
}

.bpc-notification--error {
  background: var(--bpc-sale);
}

.bpc-notification__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.bpc-card--skeleton .bpc-card__media {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: bpc-skeleton 1.5s ease-in-out infinite;
}

.bpc-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: bpc-skeleton 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes bpc-skeleton {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   OUT OF STOCK STATE
   ============================================ */

.bpc-card--out-of-stock .bpc-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.bpc-card--out-of-stock .bpc-atc__btn {
  background: var(--bpc-text-muted);
  cursor: not-allowed;
}

.bpc-card--out-of-stock .bpc-atc__btn:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
  /* Card adjustments */
  .bpc-card {
    --bpc-spacing: 10px;
    --bpc-spacing-sm: 8px;
    /* --bpc-radius: intentionally removed — controlled via PHP admin setting on :root */
  }

  /* Always visible actions on mobile */
  .bpc-card--classic .bpc-actions {
    opacity: 1;
    transform: none;
  }

  /* All action buttons: 0.8x on mobile (match ATC icon) */
  .bpc-action-btn {
    width: calc(var(--bpc-icon-size, 36px) * 0.8);
    height: calc(var(--bpc-icon-size, 36px) * 0.8);
  }

  .bpc-action-btn svg {
    width: calc(var(--bpc-icon-svg-size, 18px) * 0.8);
    height: calc(var(--bpc-icon-svg-size, 18px) * 0.8);
  }

  /* Classic layout: override !important full-size rules */
  .bpc-card--classic .bpc-action-btn {
    width: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
    height: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
    min-width: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
    min-height: calc(var(--bpc-icon-size, 36px) * 0.8) !important;
  }

  .bpc-card--classic .bpc-action-btn svg:not(.bpc-icon--heart-filled) {
    width: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
    height: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
    min-width: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
    min-height: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
  }

  .bpc-card--classic .bpc-action-btn .bpc-icon--heart-filled {
    width: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
    height: calc(var(--bpc-icon-svg-size, 18px) * 0.8) !important;
  }

  /* Typography adjustments */
  .bpc-card__title {
    font-size: 0.8rem;
  }

  .bpc-card__brand {
    font-size: 0.5625rem;
  }

  .bpc-card__price {
    font-size: 0.8rem;
  }

  /* Compact ATC on mobile */
  .bpc-atc__btn {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  /* Notifications */
  .bpc-notification {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
    width: auto;
    max-width: none;
  }

  .bpc-notification.is-visible {
    transform: translateX(0) translateY(0);
  }

  /* Swatches - slightly larger for touch */
  .bpc-swatches .beezwoo-swatch,
  .bpc-swatches .bpc-swatch {
    width: var(--bpc-swatch-width-mobile, 32px);
    height: var(--bpc-swatch-height-mobile, 43px);
    min-width: 20px;
    min-height: 20px;
  }
}

/* ============================================
   TABLET ADJUSTMENTS
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  .bpc-card {
    --bpc-spacing: 12px;
  }

  .bpc-quickview__modal {
    max-width: 90%;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

.bpc-action-btn:focus-visible,
.bpc-atc__btn:focus-visible {
  outline: 2px solid var(--bpc-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bpc-card {
    border: 2px solid #1c1c0d;
  }

  .bpc-badge {
    border: 1px solid currentColor;
  }

  .bpc-action-btn {
    border: 2px solid #1c1c0d;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .bpc-card,
  .bpc-card *,
  .bpc-quickview,
  .bpc-quickview *,
  .bpc-action-btn,
  .bpc-atc__btn,
  .bpc-notification {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .bpc-actions,
  .bpc-atc,
  .bpc-quickview,
  .bpc-notification {
    display: none !important;
  }

  .bpc-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================
   WOODMART SPECIFIC OVERRIDES
   ============================================ */

/* Reset Woodmart card styles when our card is active */
.bpc-card.product-grid-item,
.bpc-card.product {
  background: var(--bpc-bg, transparent) !important;
}

.bpc-card .product-element-top {
  margin: 0;
  padding: 0;
}

.bpc-card .product-information {
  padding: 0;
}

.bpc-card .wd-entities-title,
.bpc-card .wd-product-title {
  font-size: inherit;
  font-weight: inherit;
}

/* Hide Woodmart default elements */
.bpc-card .wd-buttons,
.bpc-card .wd-action-btn,
.bpc-card .wd-compare-btn,
.bpc-card .wd-wishlist-btn,
.bpc-card .hover-content,
.bpc-card .woodmart-hover-content,
.bpc-card .wd-product-grid-inner > .wd-product-bg,
.bpc-card .quick-shop-wrapper {
  display: none !important;
}

/* Ensure our card takes priority */
.bpc-card .bpc-card__media,
.bpc-card .bpc-card__content {
  display: flex !important;
}

.bpc-card,
.bpc-card-wrapper,
.bpc-card__content {
  min-width: 0;
}

/* ============================================
   BPC GRID SYSTEM - WOODMART OVERRIDE
   ============================================ */

/* Force CSS Grid for BPC - overrides Woodmart's flex grid */
.products.bpc-grid,
.wd-products.bpc-grid,
div.wd-products.bpc-grid,
div.products.bpc-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--bpc-grid-cols-mobile, 2), minmax(0, 1fr)) !important;
  gap: var(--bpc-grid-gap, 12px) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Force Woodmart CSS variable to match our setting */
.wd-products.bpc-grid[class*="wd-grid"] {
  --wd-col: var(--bpc-grid-cols-mobile, 2) !important;
  --wd-gap: var(--bpc-grid-gap, 12px) !important;
}

/* Woodmart Carousel — override inline --wd-gap-* variables */
.wd-carousel:has(.bpc-card) {
  --wd-gap-lg: var(--bpc-grid-gap, 12px) !important;
  --wd-gap-md: var(--bpc-grid-gap, 12px) !important;
  --wd-gap-sm: var(--bpc-grid-gap, 12px) !important;
  --wd-gap: var(--bpc-grid-gap, 12px) !important;
}

/* Product items inside grid */
.products.bpc-grid > .product,
.products.bpc-grid > li.product,
.wd-products.bpc-grid > .product,
.wd-products.bpc-grid > .wd-col,
.bpc-grid > .product,
.bpc-grid > .bpc-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  float: none !important;
  display: block !important;
}

.products.bpc-grid > *,
.wd-products.bpc-grid > *,
.bpc-grid > * {
  min-width: 0 !important;
}

.products.bpc-grid .wd-product,
.wd-products.bpc-grid .wd-product,
.bpc-grid .wd-product,
.products.bpc-grid .product-wrapper,
.wd-products.bpc-grid .product-wrapper,
.bpc-grid .product-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Remove Woodmart's width calculations */
.wd-products.bpc-grid > * {
  flex: unset !important;
  max-width: unset !important;
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
  .products.bpc-grid,
  .wd-products.bpc-grid,
  div.wd-products.bpc-grid,
  div.products.bpc-grid {
    grid-template-columns: repeat(var(--bpc-grid-cols-tablet, 3), minmax(0, 1fr)) !important;
  }

  .wd-products.bpc-grid[class*="wd-grid"] {
    --wd-col: var(--bpc-grid-cols-tablet, 3) !important;
  }
}

/* Desktop: 4 columns */
@media (min-width: 1025px) {
  .products.bpc-grid,
  .wd-products.bpc-grid,
  div.wd-products.bpc-grid,
  div.products.bpc-grid {
    grid-template-columns: repeat(var(--bpc-grid-cols-desktop, 4), minmax(0, 1fr)) !important;
  }

  .wd-products.bpc-grid[class*="wd-grid"] {
    --wd-col: var(--bpc-grid-cols-desktop, 4) !important;
  }
}

/* Grid height propagation - ensures cards stretch to fill row height */
.products.bpc-grid > .product,
.products.bpc-grid > li.product,
.wd-products.bpc-grid > .product,
.wd-products.bpc-grid > .wd-col,
.bpc-grid > .product,
.bpc-grid > li.product {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.products.bpc-grid .bpc-card-wrapper,
.wd-products.bpc-grid .bpc-card-wrapper,
.bpc-grid .bpc-card-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products.bpc-grid .bpc-card,
.wd-products.bpc-grid .bpc-card,
.bpc-grid .bpc-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Grid media - fixed aspect ratio so all images in a row match height */
.products.bpc-grid .bpc-card:not(.bpc-card--overlay):not(.bpc-card--social) .bpc-card__media,
.wd-products.bpc-grid .bpc-card:not(.bpc-card--overlay):not(.bpc-card--social) .bpc-card__media,
.bpc-grid .bpc-card:not(.bpc-card--overlay):not(.bpc-card--social) .bpc-card__media {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Overlay/social - media fills the entire card */
.products.bpc-grid .bpc-card--overlay .bpc-card__media,
.products.bpc-grid .bpc-card--social .bpc-card__media,
.wd-products.bpc-grid .bpc-card--overlay .bpc-card__media,
.wd-products.bpc-grid .bpc-card--social .bpc-card__media,
.bpc-grid .bpc-card--overlay .bpc-card__media,
.bpc-grid .bpc-card--social .bpc-card__media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.products.bpc-grid .bpc-card__media-wrapper,
.wd-products.bpc-grid .bpc-card__media-wrapper,
.bpc-grid .bpc-card__media-wrapper {
  /* Aspect ratio from CSS variable; zero padding-bottom prevents double-height */
  padding-bottom: 0 !important;
  flex: 0 0 auto;
  min-height: 0;
  position: relative;
  aspect-ratio: var(--bpc-card-aspect, 4 / 5);
}

/* Content section grows to fill remaining grid row space */
.products.bpc-grid .bpc-card:not(.bpc-card--overlay):not(.bpc-card--social) .bpc-card__content,
.wd-products.bpc-grid .bpc-card:not(.bpc-card--overlay):not(.bpc-card--social) .bpc-card__content,
.bpc-grid .bpc-card:not(.bpc-card--overlay):not(.bpc-card--social) .bpc-card__content {
  flex: 1 1 auto;
}

/* ============================================
   BADGE SLIDER SYSTEM
   ============================================ */

/* Default position fallback when position class is empty */
.bpc-badges {
  position: absolute;
  top: var(--bpc-badges-top, 12px);
  left: var(--bpc-badges-left, 12px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Slider container */
.bpc-badges--slider {
  position: absolute;
  z-index: 10;
  /* Slider badges are stacked, so don't use the base flex column layout */
  display: block;
}

/* OOS separate badge - ensure it doesn't cover slider */
.bpc-badges--oos-separate {
  z-index: 12;
}

/* When OOS is in center, the badge itself provides the styling (no container background) */
.bpc-badges--center.bpc-badges--oos-separate {
  background: transparent !important;
  padding: 0 !important;
}

/* Glass styling for center OOS badge - !important to override dynamic badge colors and edge style */
.bpc-badges--center.bpc-badges--oos-separate .bpc-badge--outofstock {
  /* Reset any fixed width from edge style */
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  /* Glass background */
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  /* Padding - generous lateral space */
  padding: 10px 28px !important;
  /* Typography */
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  /* Border and shadow */
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  /* Ensure text doesn't wrap */
  white-space: nowrap !important;
}

/* Social card specific - OOS separate positions */
.bpc-card--social .bpc-badges--oos-separate.bpc-badges--top-right {
  top: 8px;
  left: auto;
  right: 8px;
}

.bpc-card--social .bpc-badges--oos-separate.bpc-badges--bottom-left {
  top: auto;
  bottom: 60px; /* Above content */
  left: 8px;
}

.bpc-card--social .bpc-badges--oos-separate.bpc-badges--bottom-right {
  top: auto;
  bottom: 60px;
  left: auto;
  right: 8px;
}

/* ============================================
   BADGE SLIDER - Seamless Crossfade (No Gap)
   ============================================ */

.bpc-badges--slider .bpc-badge--slide {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  /* Keep badge visible during effect animation even when hidden */
  transform: translateZ(0);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    translate 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    scale 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.4s;
}

/* Active badge - always visible */
.bpc-badges--slider .bpc-badge--active {
  position: absolute;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    translate 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    scale 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
}

/* Entering badge stays on top (prevents last-to-first jump) */
.bpc-badges--slider .bpc-badge--entering {
  z-index: 4;
}

/* Slider transitions (opacity/transform) - avoids conflicts with badge effect animations */
.bpc-badges--slider .bpc-badge--exiting {
  z-index: 2;
}

/* Animation: Fade (default) */
.bpc-badges--slider[data-animation="fade"] .bpc-badge--slide,
.bpc-badges--slider[data-animation="fade"] .bpc-badge--active,
.bpc-badges--slider[data-animation="fade"] .bpc-badge--exiting {
  transform: translateY(0) translateZ(0);
}

/* Animation: Slide Up */
.bpc-badges--slider[data-animation="slide-up"] .bpc-badge--slide {
  transform: translateY(10px) translateZ(0);
}
.bpc-badges--slider[data-animation="slide-up"] .bpc-badge--active {
  transform: translateY(0) translateZ(0);
}
.bpc-badges--slider[data-animation="slide-up"] .bpc-badge--exiting {
  transform: translateY(-10px) translateZ(0);
}

/* Animation: Slide Down */
.bpc-badges--slider[data-animation="slide-down"] .bpc-badge--slide {
  transform: translateY(-10px) translateZ(0);
}
.bpc-badges--slider[data-animation="slide-down"] .bpc-badge--active {
  transform: translateY(0) translateZ(0);
}
.bpc-badges--slider[data-animation="slide-down"] .bpc-badge--exiting {
  transform: translateY(10px) translateZ(0);
}

/* Animation: Scale */
.bpc-badges--slider[data-animation="scale"] .bpc-badge--slide {
  transform: scale(0.85) translateZ(0);
}
.bpc-badges--slider[data-animation="scale"] .bpc-badge--active {
  transform: scale(1) translateZ(0);
}
.bpc-badges--slider[data-animation="scale"] .bpc-badge--exiting {
  transform: scale(1.08) translateZ(0);
}

/* Prefer individual transform properties when supported (avoids conflicts with badge effect animations on `transform`) */
@supports (translate: 0 0) {
  .bpc-badges--slider[data-animation="slide-up"] .bpc-badge--slide {
    transform: translateZ(0);
    translate: 0 10px;
  }
  .bpc-badges--slider[data-animation="slide-up"] .bpc-badge--active {
    transform: translateZ(0);
    translate: 0 0;
  }
  .bpc-badges--slider[data-animation="slide-up"] .bpc-badge--exiting {
    transform: translateZ(0);
    translate: 0 -10px;
  }

  .bpc-badges--slider[data-animation="slide-down"] .bpc-badge--slide {
    transform: translateZ(0);
    translate: 0 -10px;
  }
  .bpc-badges--slider[data-animation="slide-down"] .bpc-badge--active {
    transform: translateZ(0);
    translate: 0 0;
  }
  .bpc-badges--slider[data-animation="slide-down"] .bpc-badge--exiting {
    transform: translateZ(0);
    translate: 0 10px;
  }
}

@supports (scale: 1) {
  .bpc-badges--slider[data-animation="scale"] .bpc-badge--slide {
    transform: translateZ(0);
    scale: 0.85;
  }
  .bpc-badges--slider[data-animation="scale"] .bpc-badge--active {
    transform: translateZ(0);
    scale: 1;
  }
  .bpc-badges--slider[data-animation="scale"] .bpc-badge--exiting {
    transform: translateZ(0);
    scale: 1.08;
  }
}

/* Out-of-stock separate position */
.bpc-badges--oos-separate {
  z-index: 11;
}

.bpc-badges--oos-separate .bpc-badge--outofstock {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-weight: 600;
}

/* Center position for out-of-stock */
.bpc-badges--center {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
}

.bpc-badges--center .bpc-badge {
  font-size: 0.75rem;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paused state (hover) */
.bpc-badges--slider.bpc-badges--paused .bpc-badge--slide {
  transition-duration: 0s;
}

/* Fixed OOS badge styling - centered and prominent when alone */
.bpc-badges--oos-fixed {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  align-items: center;
}

.bpc-badges--oos-fixed .bpc-badge--outofstock {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================
   BADGE EFFECTS - Premium System
   Uses CSS custom property --bpc-badge-effect
   Effects use pseudo-elements to avoid slider animation conflicts
   ============================================ */

/* Base setup for all badges with effects */
.bpc-badge {
  position: relative;
  overflow: hidden;
}

/* Glow effect - uses box-shadow animation on the badge itself */
.bpc-badge[style*="--bpc-badge-effect:glow"],
.bpc-badges:not(.bpc-badges--slider) .bpc-badge--sale[style*="--bpc-badge-effect"],
[style*="--bpc-badge-effect:glow"] {
  animation: bpc-effect-glow 2s ease-in-out infinite !important;
}

@keyframes bpc-effect-glow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor, 0 0 10px rgba(255,255,255,0.3);
  }
  50% {
    box-shadow: 0 0 15px currentColor, 0 0 25px rgba(255,255,255,0.5), 0 0 35px currentColor;
  }
}

/* Pulse effect */
[style*="--bpc-badge-effect:pulse"] {
  animation: bpc-effect-pulse 1.5s ease-in-out infinite !important;
}

@keyframes bpc-effect-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Shine effect - uses ::after pseudo-element */
[style*="--bpc-badge-effect:shine"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: bpc-effect-shine 2.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes bpc-effect-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Bounce effect */
[style*="--bpc-badge-effect:bounce"] {
  animation: bpc-effect-bounce 2s ease-in-out infinite !important;
}

@keyframes bpc-effect-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* Shake effect - Premium */
[style*="--bpc-badge-effect:shake"] {
  animation: bpc-effect-shake 3s ease-in-out infinite !important;
}

@keyframes bpc-effect-shake {
  0%, 90%, 100% { transform: translateX(0); }
  92%, 96% { transform: translateX(-3px); }
  94%, 98% { transform: translateX(3px); }
}

/* Heartbeat effect - Premium */
[style*="--bpc-badge-effect:heartbeat"] {
  animation: bpc-effect-heartbeat 1.5s ease-in-out infinite !important;
}

@keyframes bpc-effect-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Swing effect - Premium */
[style*="--bpc-badge-effect:swing"] {
  transform-origin: top center;
  animation: bpc-effect-swing 2s ease-in-out infinite !important;
}

@keyframes bpc-effect-swing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(8deg); }
  40% { transform: rotate(-6deg); }
  60% { transform: rotate(4deg); }
  80% { transform: rotate(-2deg); }
}

/* Tada effect - Premium (attention grabber) */
[style*="--bpc-badge-effect:tada"] {
  animation: bpc-effect-tada 3s ease-in-out infinite !important;
}

@keyframes bpc-effect-tada {
  0%, 89%, 100% { transform: scale(1) rotate(0); }
  90% { transform: scale(0.95) rotate(-3deg); }
  92%, 96% { transform: scale(1.1) rotate(3deg); }
  94%, 98% { transform: scale(1.1) rotate(-3deg); }
}

/* Rubberband effect - Premium */
[style*="--bpc-badge-effect:rubber"] {
  animation: bpc-effect-rubber 3s ease-in-out infinite !important;
}

@keyframes bpc-effect-rubber {
  0%, 85%, 100% { transform: scaleX(1); }
  90% { transform: scaleX(1.25) scaleY(0.75); }
  95% { transform: scaleX(0.85) scaleY(1.15); }
  97% { transform: scaleX(1.1) scaleY(0.9); }
}

/* Jello effect - Premium */
[style*="--bpc-badge-effect:jello"] {
  animation: bpc-effect-jello 2.5s ease-in-out infinite !important;
}

@keyframes bpc-effect-jello {
  0%, 80%, 100% { transform: skewX(0) skewY(0); }
  82% { transform: skewX(-8deg) skewY(-3deg); }
  84% { transform: skewX(6deg) skewY(2deg); }
  86% { transform: skewX(-4deg) skewY(-1deg); }
  88% { transform: skewX(2deg) skewY(1deg); }
}

/* Flash effect - Premium */
[style*="--bpc-badge-effect:flash"] {
  animation: bpc-effect-flash 2s ease-in-out infinite !important;
}

@keyframes bpc-effect-flash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.4; }
}

/* Flip effect - Premium */
[style*="--bpc-badge-effect:flip"] {
  animation: bpc-effect-flip 4s ease-in-out infinite !important;
  backface-visibility: visible;
}

@keyframes bpc-effect-flip {
  0%, 80%, 100% { transform: perspective(400px) rotateY(0); }
  85% { transform: perspective(400px) rotateY(-180deg); }
  90% { transform: perspective(400px) rotateY(-360deg); }
}

/* Rainbow glow - Super Premium */
[style*="--bpc-badge-effect:rainbow"]::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff0080);
  background-size: 400% 400%;
  animation: bpc-effect-rainbow 3s ease infinite;
  border-radius: inherit;
  z-index: -1;
  filter: blur(4px);
  opacity: 0.8;
}

@keyframes bpc-effect-rainbow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Neon effect - Super Premium */
[style*="--bpc-badge-effect:neon"] {
  animation: bpc-effect-neon 1.5s ease-in-out infinite alternate !important;
}

@keyframes bpc-effect-neon {
  0% {
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px currentColor, 0 0 20px currentColor;
    text-shadow: 0 0 5px #fff;
  }
  100% {
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px currentColor, 0 0 40px currentColor;
    text-shadow: 0 0 10px #fff;
  }
}

/* Floating effect - Super Premium */
[style*="--bpc-badge-effect:float"] {
  animation: bpc-effect-float 3s ease-in-out infinite !important;
}

@keyframes bpc-effect-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-4px) rotate(1deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
}

/* 3D Rotate - Super Premium */
[style*="--bpc-badge-effect:rotate3d"] {
  animation: bpc-effect-rotate3d 4s linear infinite !important;
  transform-style: preserve-3d;
}

@keyframes bpc-effect-rotate3d {
  0% { transform: perspective(500px) rotateY(0); }
  100% { transform: perspective(500px) rotateY(360deg); }
}

/* Reduced motion - instant transitions */
@media (prefers-reduced-motion: reduce) {
  .bpc-badges--slider .bpc-badge--slide {
    transition: none !important;
  }

  [style*="--bpc-badge-effect"] {
    animation: none !important;
  }

  [style*="--bpc-badge-effect"]::before,
  [style*="--bpc-badge-effect"]::after {
    animation: none !important;
    display: none;
  }
}

/* ============================================
   GALLERY BADGES - Single Product Page
   Renders badges on the product gallery image
   ============================================ */

/* Hide default WooCommerce/Woodmart badges when using BPC gallery badges */
.bpc-badges--gallery ~ .onsale,
.bpc-badges--gallery ~ .product-labels,
.bpc-badges--gallery ~ .wd-product-labels,
.woocommerce-product-gallery:has(.bpc-badges--gallery) > .onsale,
.woocommerce-product-gallery:has(.bpc-badges--gallery) > .product-labels,
.woocommerce-product-gallery:has(.bpc-badges--gallery) > .wd-product-labels,
.wd-gallery:has(.bpc-badges--gallery) .onsale,
.wd-gallery:has(.bpc-badges--gallery) .product-labels,
.wd-gallery:has(.bpc-badges--gallery) .wd-product-labels,
.product-image-summary:has(.bpc-badges--gallery) .product-labels,
.product-image-summary:has(.bpc-badges--gallery) .wd-product-labels,
.product-image-summary:has(.bpc-badges--gallery) > .onsale {
  display: none !important;
}

.bpc-badges--gallery {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Position overrides for gallery context - use gallery-specific variables */
.woocommerce-product-gallery .bpc-badges--gallery,
.woocommerce-product-gallery__wrapper .bpc-badges--gallery,
.wd-gallery .bpc-badges--gallery,
.product-image-summary .bpc-badges--gallery {
  top: var(--bpc-badges-gallery-top, var(--bpc-badges-top, 12px));
  left: var(--bpc-badges-gallery-left, var(--bpc-badges-left, 12px));
}

/* Woodmart specific - inside image wrapper */
.wd-gallery-images .bpc-badges--gallery {
  top: var(--bpc-badges-gallery-top, var(--bpc-badges-top, 12px));
  left: var(--bpc-badges-gallery-left, var(--bpc-badges-left, 12px));
}

/* Badge sizes for gallery (uses gallery-specific variables with fallback to card variables) */
.bpc-badges--gallery .bpc-badge {
  font-size: var(--bpc-badge-font-size-gallery, var(--bpc-badge-font-size, 0.75rem));
  padding: var(--bpc-badge-padding-gallery, var(--bpc-badge-padding, 4px 12px));
  width: var(--bpc-badge-width-gallery, var(--bpc-badge-width, auto));
  pointer-events: auto;
}

/* Mobile gallery badges */
@media (max-width: 767px) {
  .bpc-badges--gallery .bpc-badge {
    font-size: var(--bpc-badge-font-size-gallery, var(--bpc-badge-font-size, 0.65rem));
    padding: var(--bpc-badge-padding-gallery, var(--bpc-badge-padding, 3px 10px));
    width: var(--bpc-badge-width-gallery, var(--bpc-badge-width, auto));
  }
}
