/* Printers Shop Phase 4 CSS — 2026-08-31 */

/* === Best-seller badge === */
.pt-p4-bestseller-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 9px !important;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 4px rgba(255, 107, 0, 0.3) !important;
  z-index: 2 !important;
  letter-spacing: -0.01em !important;
}
.pt-p4-bestseller-badge svg { color: #fff !important; }

.ptA-best-card-img { position: relative !important; overflow: hidden !important; }

/* === Stock chips === */
.pt-p4-stock-chip {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  z-index: 2 !important;
  letter-spacing: -0.01em !important;
}
.pt-p4-stock-low {
  background: rgba(255, 149, 0, 0.95) !important;
  color: #fff !important;
}
.pt-p4-stock-low .pt-p4-stock-dot {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #fff !important;
  animation: pt-p4-pulse 1.4s ease-in-out infinite !important;
}
@keyframes pt-p4-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.pt-p4-stock-backorder {
  background: rgba(11, 33, 240, 0.95) !important;
  color: #fff !important;
}
.pt-p4-stock-out {
  background: rgba(142, 142, 147, 0.95) !important;
  color: #fff !important;
}

.wcr-card-image-wrap { position: relative !important; overflow: hidden !important; }

/* === Sticky filter toolbar === */
.pt-p4-sticky-toolbar {
  position: fixed !important;
  top: -100px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9990 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid #e8e8ed !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.pt-p4-sticky-toolbar.pt-p4-sticky-visible {
  top: 0 !important;
}
.pt-p4-sticky-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 10px 20px !important;
}
.pt-p4-sticky-filter,
.pt-p4-sticky-sort,
.pt-p4-sticky-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  background: #f5f5f7 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1d1d1f !important;
  transition: background 0.15s ease !important;
}
.pt-p4-sticky-filter:hover,
.pt-p4-sticky-sort:hover {
  background: #e8e8ed !important;
}
.pt-p4-sticky-filter {
  background: #0b21f0 !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.pt-p4-sticky-filter:hover { background: #0014c8 !important; }

.pt-p4-sticky-count {
  background: transparent !important;
  color: #6e6e73 !important;
  font-size: 12px !important;
  padding: 8px 0 !important;
}

/* Hide original filter button when sticky is visible */
.pt-p4-sticky-toolbar.pt-p4-sticky-visible ~ * .wcr-filter-btn {
  visibility: hidden !important;
}

/* Sort dropdown styling */
.pt-p4-sticky-sort select {
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1d1d1f !important;
  cursor: pointer !important;
  padding: 0 !important;
  outline: none !important;
}

/* Mobile sticky */
@media (max-width: 768px) {
  .pt-p4-sticky-inner {
    gap: 10px !important;
    padding: 8px 16px !important;
  }
  .pt-p4-sticky-filter,
  .pt-p4-sticky-sort {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
  .pt-p4-sticky-count {
    font-size: 11px !important;
  }
}

/* === Fade-up entrance animation === */
.pt-p4-fade-up {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform !important;
}
.pt-p4-fade-up-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger by section order */
.pt-p4-fade-up:nth-of-type(1) { transition-delay: 0s !important; }
.pt-p4-fade-up:nth-of-type(2) { transition-delay: 0.05s !important; }
.pt-p4-fade-up:nth-of-type(3) { transition-delay: 0.1s !important; }
.pt-p4-fade-up:nth-of-type(4) { transition-delay: 0.15s !important; }
.pt-p4-fade-up:nth-of-type(5) { transition-delay: 0.2s !important; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pt-p4-fade-up,
  .pt-p4-fade-up-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pt-p4-sticky-toolbar {
    transition: none !important;
  }
}