/**
 * Premium WooCommerce Product Card — Frontend Styles
 *
 * Scoped strictly to .pwc-* namespace.
 */

:root {
  --pwc-bg: #f7f7f5;
  --pwc-surface: #ffffff;
  --pwc-text: #171717;
  --pwc-muted: #6d6d6d;
  --pwc-border: rgba(0, 0, 0, 0.12);
  --pwc-swatch-size: 18px;
  --pwc-swatch-gap: 8px;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.pwc-grid-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

.pwc-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--pwc-grid-cols-desktop, 2), minmax(0, 1fr));
  gap: var(--pwc-grid-gap, 24px);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .pwc-grid {
    grid-template-columns: repeat(var(--pwc-grid-cols-tablet, 2), minmax(0, 1fr)) !important;
    gap: var(--pwc-grid-gap-tablet, 16px);
  }
}

@media (max-width: 640px) {
  .pwc-grid {
    grid-template-columns: repeat(var(--pwc-grid-cols-mobile, 1), minmax(0, 1fr)) !important;
    gap: var(--pwc-grid-gap-mobile, 16px);
  }
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.pwc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pwc-card-bg, #f7f7f5);
  border-radius: var(--pwc-card-radius, 0px);
  padding: var(--pwc-card-pad, 0px);
  box-sizing: border-box;
  font-family: inherit;
  min-width: 0;
  width: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Media wrapper */
.pwc-card__media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--pwc-image-bg, transparent);
}

.pwc-card__media-link {
  display: block;
  width: 100%;
  text-decoration: none;
  outline: none;
}

.pwc-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--pwc-image-ratio, 1 / 1.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pwc-card__image {
  width: 100%;
  height: 100%;
  object-fit: var(--pwc-image-fit, contain);
  object-position: center;
  display: block;
  /* NOTE: No transform transition here — JS slide animation manages transforms directly.
     Adding transform here would conflict with the slider and break slide direction. */
  transition: opacity 180ms ease;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Incoming slide image — JS-managed, pointer events disabled during animation */
.pwc-gallery-slide-new {
  will-change: transform;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ==========================================================================
   Wishlist
   ========================================================================== */

.pwc-card__wishlist {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
}

.pwc-card__wishlist--top-left {
  right: auto;
  left: 18px;
}

.pwc-card__wishlist--bottom-right {
  top: auto;
  bottom: 18px;
  right: 18px;
}

.pwc-card__wishlist--bottom-left {
  top: auto;
  bottom: 18px;
  left: 18px;
  right: auto;
}

.pwc-card__wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--pwc-text, #171717);
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  outline: none;
  box-sizing: border-box;
}

.pwc-card__wishlist-btn--has-text {
  width: auto;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 4px;
  gap: 6px;
}

.pwc-card__wishlist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pwc-card__wishlist-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.pwc-card__wishlist-btn:hover {
  transform: scale(1.06);
  color: #c0392b;
}

.pwc-card__wishlist-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--pwc-text, #171717);
}

.pwc-card__wishlist-btn .pwc-icon--heart-filled {
  display: none;
}

.pwc-card__wishlist-btn.is-active {
  color: #c0392b;
}

.pwc-card__wishlist-btn.is-active .pwc-icon--heart-outline {
  display: none;
}

.pwc-card__wishlist-btn.is-active .pwc-icon--heart-filled {
  display: block;
}

.pwc-card__wishlist-btn.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Gallery Navigation Arrows
   ========================================================================== */

.pwc-card__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 4;
}

.pwc-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pwc-text, #171717);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity var(--pwc-arrow-transition, 180ms ease), transform var(--pwc-arrow-transition, 180ms ease), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  outline: none;
  box-sizing: border-box;
}

.pwc-card__arrow svg {
  display: block;
  transition: stroke 0.15s ease, fill 0.15s ease;
}

.pwc-card__arrow--style-circle {
  border-radius: 50%;
}

.pwc-card__arrow--style-square {
  border-radius: 0px;
}

.pwc-card__arrow--style-rounded {
  border-radius: 6px;
}

.pwc-card__arrow--style-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  box-shadow: none;
}

.pwc-card__arrow--style-minimal {
  background: transparent;
  box-shadow: none;
  border: none;
}

.pwc-card__arrow:hover {
  background: #ffffff;
  transform: scale(1.08);
}

.pwc-card__arrow:focus-visible {
  opacity: 1 !important;
  box-shadow: 0 0 0 2px var(--pwc-text, #171717);
}

/* Resting state: hidden on hover-enabled cards */
.pwc-card--arrow-hover .pwc-card__arrow {
  opacity: 0;
  transform: scale(0.92);
}

.pwc-card--arrow-hover:hover .pwc-card__arrow,
.pwc-card--arrow-hover:focus-within .pwc-card__arrow {
  opacity: 1;
  transform: scale(1);
}

/* Touch devices or always mode: arrows visible */
@media (hover: none) {
  .pwc-card--arrow-hover .pwc-card__arrow {
    opacity: 0.85;
    transform: scale(1);
  }
}

.pwc-card--arrow-always .pwc-card__arrow {
  opacity: 0.9;
  transform: scale(1);
}

/* ==========================================================================
   Product Information Area
   ========================================================================== */

.pwc-card__content {
  padding: 14px 4px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.pwc-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
}

.pwc-card__meta-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pwc-card__meta-right {
  display: flex;
  align-items: center;
}

/* Badge */
.pwc-card__badge {
  color: var(--pwc-badge-color, #171717);
  font-size: var(--pwc-badge-size, 11px);
  font-weight: var(--pwc-badge-weight, 500);
  text-transform: var(--pwc-badge-tt, uppercase);
  letter-spacing: var(--pwc-badge-ls, 0.08em);
  line-height: 1;
}

/* Category */
.pwc-card__category {
  color: var(--pwc-category-color, #6d6d6d);
  font-size: var(--pwc-category-size, 12px);
  font-weight: var(--pwc-category-weight, 400);
  line-height: 1;
}

.pwc-card__category-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pwc-card__category-link:hover {
  color: var(--pwc-text, #171717);
}

.pwc-card__category-sep {
  color: inherit;
}

/* Title */
.pwc-card__title-row {
  margin: 0;
}

.pwc-card__title {
  margin: 0;
  padding: 0;
  font-size: var(--pwc-title-size, 14px);
  font-weight: var(--pwc-title-weight, 400);
  line-height: var(--pwc-title-lh, 1.35);
  letter-spacing: var(--pwc-title-ls, 0.01em);
  display: -webkit-box;
  -webkit-line-clamp: var(--pwc-title-lines, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pwc-card__title-link {
  color: var(--pwc-title-color, #171717);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.pwc-card__title-link:hover {
  opacity: 0.75;
}

/* Price */
.pwc-card__price-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.pwc-card__price-row--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pwc-card__price-row--inline {
  flex-direction: row;
  align-items: center;
}

.pwc-card__price {
  color: var(--pwc-price-color, #171717);
  font-size: var(--pwc-price-size, 13px);
  font-weight: var(--pwc-price-weight, 500);
  line-height: 1.2;
}

.pwc-card__price del,
.pwc-price--regular {
  color: var(--pwc-muted, #6d6d6d);
  margin-right: 6px;
  font-weight: 400;
  text-decoration: line-through;
}

.pwc-card__price ins,
.pwc-price--sale {
  text-decoration: none;
  font-weight: var(--pwc-price-weight, 500);
}

.pwc-card__price .woocommerce-Price-currencySymbol,
.pwc-price__currency {
  font-size: inherit;
  color: inherit;
}

/* Description / Text */
.pwc-card__description {
  font-size: 13px;
  color: var(--pwc-muted, #6d6d6d);
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating */
.pwc-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  line-height: 1;
}

.pwc-card__stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: #d1d5db;
  letter-spacing: 2px;
  user-select: none;
}

.pwc-card__stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f59e0b;
}

.pwc-card__rating-count {
  font-size: 12px;
  color: var(--pwc-muted, #6d6d6d);
}

/* Actions Row */
.pwc-card__actions-row:empty {
  display: none !important;
}

/* Add to Cart */
.pwc-card__add-to-cart-wrap {
  margin-top: 8px;
}

.pwc-card__add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  background: var(--pwc-text, #171717);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.pwc-card__add-to-cart:hover {
  background: #333333;
  color: #ffffff;
  transform: translateY(-1px);
}

.pwc-card__add-to-cart.loading {
  opacity: 0.6;
}

.pwc-card__add-to-cart.added::after {
  content: ' ✓';
}

/* Extra Wishlist Positions */
.pwc-card__wishlist--bottom-left {
  top: auto;
  bottom: 18px;
  left: 18px;
  right: auto;
}

.pwc-card__wishlist--bottom-right {
  top: auto;
  bottom: 18px;
  right: 18px;
  left: auto;
}

/* Wishlist Animations */
.pwc-wishlist-anim--bounce:hover {
  animation: pwc-bounce 0.4s ease;
}

.pwc-wishlist-anim--rotate:hover {
  transform: rotate(20deg) scale(1.1);
}

.pwc-wishlist-anim--fade:hover {
  opacity: 0.65;
}

@keyframes pwc-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) scale(1.15); }
}

/* Image Hover Effects */
.pwc-img-effect--zoom-in:hover .pwc-card__image {
  transform: scale(1.08);
}

.pwc-img-effect--zoom-out:hover .pwc-card__image {
  transform: scale(0.95);
}

.pwc-img-effect--scale:hover .pwc-card__image {
  transform: scale(1.04);
}

.pwc-img-effect--fade:hover .pwc-card__image {
  opacity: 0.75;
}

.pwc-img-effect--translate-up:hover .pwc-card__image {
  transform: translateY(-6px);
}

/* ==========================================================================
   Color Swatches
   ========================================================================== */

.pwc-card__swatches {
  display: flex;
  align-items: center;
  gap: var(--pwc-swatch-gap, 8px);
}

.pwc-swatch {
  width: var(--pwc-swatch-size, 18px);
  height: var(--pwc-swatch-size, 18px);
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--pwc-swatch-border, rgba(0, 0, 0, 0.15));
  cursor: pointer;
  position: relative;
  outline: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwc-card__swatches--square .pwc-swatch {
  border-radius: 2px;
}

.pwc-swatch:hover {
  transform: scale(1.15);
}

.pwc-swatch.is-active {
  box-shadow: 0 0 0 1.5px var(--pwc-surface, #ffffff), 0 0 0 3px var(--pwc-swatch-active, #171717);
}

.pwc-swatch:focus-visible {
  box-shadow: 0 0 0 1.5px var(--pwc-surface, #ffffff), 0 0 0 3px var(--pwc-swatch-active, #171717);
}

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

.pwc-swatch-more {
  font-size: 11px;
  color: var(--pwc-muted, #6d6d6d);
  font-weight: 400;
  margin-left: 2px;
  line-height: 1;
  user-select: none;
}

/* ==========================================================================
   Carousel Mode
   ========================================================================== */

.pwc-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.pwc-carousel-track {
  display: flex;
  gap: var(--pwc-grid-gap, 24px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  box-sizing: border-box;
}

.pwc-carousel-track::-webkit-scrollbar {
  display: none;
}

.pwc-carousel-slide {
  flex: 0 0 calc((100% - (var(--pwc-grid-gap, 24px) * 3)) / 4);
  scroll-snap-align: start;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .pwc-carousel-slide {
    flex: 0 0 calc((100% - var(--pwc-grid-gap, 24px)) / 2);
  }
}

@media (max-width: 640px) {
  .pwc-carousel-slide {
    flex: 0 0 100%;
  }
}

.pwc-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pwc-text, #171717);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pwc-carousel-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.pwc-carousel-btn--prev {
  left: 12px;
}

.pwc-carousel-btn--next {
  right: 12px;
}

/* Pagination Dots */
.pwc-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.pwc-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.pwc-gallery-dot.is-active {
  background: var(--pwc-text, #171717);
  width: 14px;
  border-radius: 4px;
}

/* Swatch Active Underline Indicator (Screenshot #2 style) */
.pwc-swatch.is-active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 1px;
  right: 1px;
  height: 1.5px;
  background-color: var(--pwc-swatch-active, #171717);
  border-radius: 1px;
}

/* Image Animations & Movement */
.pwc-anim--hover-up:hover .pwc-card__image {
  transform: translateY(-8px);
}

.pwc-anim--hover-down:hover .pwc-card__image {
  transform: translateY(8px);
}

.pwc-anim--hover-left:hover .pwc-card__image {
  transform: translateX(-8px);
}

.pwc-anim--hover-right:hover .pwc-card__image {
  transform: translateX(8px);
}

.pwc-anim--continuous .pwc-card__image {
  animation: pwc-float 3s ease-in-out infinite;
}

@keyframes pwc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Design Presets */
.pwc-preset--modern-minimal .pwc-card {
  background: #f7f7f5;
  border: none;
}

.pwc-preset--luxury-fashion .pwc-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pwc-preset--clean-ecommerce .pwc-card {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.pwc-preset--editorial .pwc-card__title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.pwc-preset--bold .pwc-card__title {
  font-weight: 700;
}

.pwc-preset--soft-rounded .pwc-card {
  border-radius: 12px;
}

.pwc-preset--compact .pwc-card__content {
  padding: 8px 2px;
}

/* ==========================================================================
   Advanced Grid & Card Feature Styles
   ========================================================================== */

/* Equal Height */
.pwc-card--equal-height {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pwc-card--equal-height .pwc-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pwc-card--equal-height .pwc-card__actions-row {
  margin-top: auto;
}

/* Clickable Card Overlay */
.pwc-card--clickable {
  position: relative;
  cursor: pointer;
}

.pwc-card__clickable-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  border-radius: inherit;
}

.pwc-card--clickable .pwc-card__nav {
  z-index: 10;
  pointer-events: none;
}

.pwc-card--clickable .pwc-card__wishlist,
.pwc-card--clickable .pwc-card__arrow,
.pwc-card--clickable .pwc-gallery-dot,
.pwc-card--clickable .pwc-swatch,
.pwc-card--clickable .pwc-quantity,
.pwc-card--clickable .pwc-card__add-to-cart,
.pwc-card--clickable .pwc-btn {
  position: relative;
  z-index: 11;
  pointer-events: auto;
}

/* Image Overlay & Secondary Swap */
.pwc-card__image-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--pwc-overlay-bg, rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pwc-card:hover .pwc-card__image-overlay {
  opacity: 1;
}

.pwc-card__image--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pwc-card:hover .pwc-card__image--secondary {
  opacity: 1;
}

/* Price Granular Styles */
.pwc-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.pwc-card__price-row--stacked {
  flex-direction: column;
  gap: 2px;
}

.pwc-card__price-row--pos-above {
  flex-direction: column-reverse;
  gap: 2px;
}

.pwc-card__price-row--pos-below {
  flex-direction: column;
  gap: 2px;
}

.pwc-card__price-crossed {
  color: var(--pwc-muted, #9ca3af);
  font-size: 0.9em;
  text-decoration: line-through;
}

.pwc-card__price-sale {
  color: var(--pwc-accent, #171717);
  font-weight: 600;
  text-decoration: none;
}

/* Actions Row */
.pwc-card__actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.pwc-card__add-to-cart-wrap--full {
  width: 100%;
}

.pwc-card__add-to-cart-wrap--auto {
  width: auto;
}

/* Quantity Stepper */
.pwc-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.pwc-quantity__btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 32px;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #171717;
  transition: background 0.15s ease;
}

.pwc-quantity__btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.pwc-quantity__input {
  width: 36px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  -moz-appearance: textfield;
  padding: 0;
  background: transparent;
}

.pwc-quantity__input::-webkit-outer-spin-button,
.pwc-quantity__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action Buttons */
.pwc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #171717;
  color: #ffffff;
  border: 1px solid #171717;
}

.pwc-btn:hover {
  background: #333333;
  color: #ffffff;
}

.pwc-btn--view-product {
  background: transparent;
  color: #171717;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.pwc-btn--view-product:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #171717;
}

.pwc-btn--quick-view {
  background: rgba(255, 255, 255, 0.9);
  color: #171717;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pwc-btn--quick-view:hover {
  background: #ffffff;
  color: #000000;
}

.pwc-card__quick-view-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 4;
}

.pwc-card:hover .pwc-card__quick-view-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Quick View Lightbox Modal */
.pwc-quick-view-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.pwc-quick-view-dialog {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 30px;
}

.pwc-quick-view-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666666;
  z-index: 5;
}

.pwc-quick-view-close:hover {
  color: #000000;
}

.pwc-quick-view-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 767px) {
  .pwc-quick-view-body {
    grid-template-columns: 1fr;
  }
}

.pwc-quick-view-media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.pwc-quick-view-title {
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 12px;
}

.pwc-quick-view-desc {
  font-size: 14px;
  color: #4b5563;
  margin: 14px 0;
  line-height: 1.5;
}

.pwc-quick-view-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.pwc-quick-view-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pwc-qv-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

body.pwc-modal-open {
  overflow: hidden;
}

/* Pagination & Load More */
.pwc-pagination-wrapper {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pwc-pagination__nav {
  display: inline-flex;
  gap: 6px;
}

.pwc-pagination__page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #171717;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwc-pagination__page-btn:hover,
.pwc-pagination__page-btn.is-active {
  background: #171717;
  color: #ffffff;
  border-color: #171717;
}

.pwc-btn--load-more {
  padding: 10px 28px;
  font-size: 14px;
}

.pwc-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pwc-spin 0.7s linear infinite;
}

.pwc-btn.is-loading .pwc-btn__spinner {
  display: inline-block;
}

@keyframes pwc-spin {
  to { transform: rotate(360deg); }
}

/* Empty State Box */
.pwc-empty-box {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fafafa;
  margin: 20px 0;
}

.pwc-empty-box__icon {
  color: #9ca3af;
  margin-bottom: 14px;
}

.pwc-empty-box__title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.pwc-empty-box__desc {
  font-size: 14px;
  color: #6b7280;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .pwc-card,
  .pwc-card *,
  .pwc-card *::before,
  .pwc-card *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
