/* ================================================================
   SD AUCTION 24 — PREMIUM PRODUCT CATEGORY PAGE
   ================================================================ */

/* ── Hero Banner ── */
.pprod-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #020817;
}
.pprod-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 8s ease;
  display: block;
}
.pprod-hero:hover .pprod-hero-img { transform: scale(1.04); }
.pprod-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.55) 0%, rgba(2,8,23,0.65) 70%);
}
.pprod-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.pprod-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #C4B5FD;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.35);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-family: 'Inter', 'Poppins', sans-serif;
}
.pprod-hero-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.pprod-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', 'Poppins', sans-serif;
}
.pprod-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.18s;
}
.pprod-breadcrumb a:hover { color: #fff; }

/* ── Main Section ── */
.pprod-section {
  background: #F8FAFC;
  padding: 0 0 80px;
  font-family: 'Inter', 'Poppins', sans-serif;
}

/* ── Layout ── */
.pprod-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar: off-canvas on mobile, sticky column on desktop ── */
.pprod-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 300px;
  background: #fff;
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 24px;
  box-shadow: 4px 0 32px rgba(0,0,0,0.12);
}
.pprod-sidebar.open { transform: translateX(0); }

@media (min-width: 992px) {
  .pprod-sidebar {
    position: sticky;
    top: 88px;
    height: auto;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    transform: none !important;
    background: transparent;
    padding: 0;
    box-shadow: none;
    z-index: auto;
    width: auto;
  }
}

.pprod-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}
.pprod-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  font-family: 'Inter', 'Poppins', sans-serif;
}
.pprod-sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #F1F5F9;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  font-size: 18px;
  transition: all 0.18s;
}
.pprod-sidebar-close:hover { background: #F1F5F9; }
@media (min-width: 992px) {
  .pprod-sidebar-header { display: none; }
}

/* ── Sidebar Cards ── */
.pprod-scard {
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.pprod-scard-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.pprod-filter-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #7C3AED;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #F1F5F9;
  font-family: 'Inter', 'Poppins', sans-serif;
}
.pprod-filter-body { padding: 20px; }

/* Price inputs */
.pprod-price-labels {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.pprod-price-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #F1F5F9;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  text-align: center;
  background: #F8FAFC;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pprod-price-input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.pprod-price-sep {
  color: #CBD5E1;
  font-size: 18px;
  flex-shrink: 0;
}
.pprod-filter-btn {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pprod-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.3);
}

/* jQuery UI Slider overrides — scoped to filter body */
.pprod-filter-body .ui-slider-horizontal {
  height: 5px !important;
  background: #F1F5F9 !important;
  border: none !important;
  border-radius: 50px !important;
  margin: 2px 9px !important;
}
.pprod-filter-body .ui-slider .ui-slider-range {
  background: linear-gradient(90deg, #7C3AED, #06B6D4) !important;
  border-radius: 50px !important;
}
.pprod-filter-body .ui-slider .ui-slider-handle {
  width: 18px !important;
  height: 18px !important;
  top: -7px !important;
  border-radius: 50% !important;
  background: #7C3AED !important;
  border: 2.5px solid #fff !important;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4) !important;
  cursor: pointer !important;
  outline: none !important;
  transition: box-shadow 0.18s !important;
}
.pprod-filter-body .ui-slider .ui-slider-handle:focus,
.pprod-filter-body .ui-slider .ui-slider-handle:hover {
  box-shadow: 0 0 0 6px rgba(124,58,237,0.15), 0 2px 8px rgba(124,58,237,0.4) !important;
}

/* ── Backdrop ── */
.pprod-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1055;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.pprod-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Toolbar ── */
.pprod-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 24px rgba(15,23,42,0.06);
  flex-wrap: wrap;
}
.pprod-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pprod-sort-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
  font-family: 'Inter', 'Poppins', sans-serif;
}
.pprod-sort-select {
  border: 1.5px solid #F1F5F9;
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #0F172A;
  background-color: #F8FAFC;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.18s;
}
.pprod-sort-select:focus {
  outline: none;
  border-color: #7C3AED;
}
.pprod-mobile-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #F1F5F9;
  background: #fff;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s;
}
.pprod-mobile-filter-btn:hover {
  border-color: #7C3AED;
  color: #7C3AED;
}
@media (min-width: 992px) {
  .pprod-mobile-filter-btn { display: none !important; }
}
.pprod-view-btns {
  display: flex;
  gap: 4px;
}
.pprod-view-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #F1F5F9;
  background: transparent;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  font-size: 16px;
}
.pprod-view-btn.active,
.pprod-view-btn:hover {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
}

/* Product count badge in toolbar */
.pprod-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  font-family: 'Inter', 'Poppins', sans-serif;
  background: #F1F5F9;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.pprod-count-badge span { color: #7C3AED; }

/* Filter active indicator */
.pprod-filter-active-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #7C3AED;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Reset filter button */
.pprod-filter-reset {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #EF4444;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0 0;
  transition: opacity 0.18s;
}
.pprod-filter-reset:hover { opacity: 0.7; }
.pprod-filter-reset.hidden { display: none; }

/* Save badge on cards */
.pprod-save-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

/* Filter button loading state */
.pprod-filter-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}
.pprod-filter-btn.loading i { display: none; }

/* ── Product Grid Wrapper (loading overlay anchor) ── */
.pprod-grid-wrap {
  position: relative;
}
.pprod-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 16px;
  animation: pprod-fade-in 0.18s ease;
}
@keyframes pprod-fade-in { from { opacity: 0; } to { opacity: 1; } }
.pprod-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #EDE9FE;
  border-top-color: #7C3AED;
  border-radius: 50%;
  animation: pprod-spin 0.75s linear infinite;
}
@keyframes pprod-spin { to { transform: rotate(360deg); } }

/* ── Product Grid ── */
.pprod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pprod-grid.pprod-list-view {
  grid-template-columns: 1fr;
}
.pprod-grid.pprod-list-view .pc {
  flex-direction: row;
  height: auto;
}
.pprod-grid.pprod-list-view .pc-img {
  width: 220px;
  height: auto;
  min-height: 160px;
  flex-shrink: 0;
}

/* Override .pc image height — more compact on listing pages */
.pprod-page .pc-img { height: 200px; }

/* Card wrapper for badge positioning */
.pprod-card-wrap {
  position: relative;
}
/* Card entrance animation */
.pprod-card-wrap {
  animation: pprod-card-in 0.3s ease both;
}
@keyframes pprod-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pprod-auction-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 50px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
  text-transform: uppercase;
}

/* Quick-view button repurposes .pc-wish */
.pprod-qv-btn:hover {
  background: #7C3AED !important;
  color: #fff !important;
}

/* ── Quick View Modal ── */
.pprod-modal .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.pprod-modal .modal-body { padding: 0; }
.pprod-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.18s;
  line-height: 1;
}
.pprod-modal-close:hover { background: #7C3AED; }
.pprod-modal-img-pane {
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 24px;
}
.pprod-modal-img-pane .swiper { width: 100%; }
.all_product-modal_img {
  max-height: 330px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.pprod-modal-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.pprod-modal-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
  line-height: 1.3;
}
.pprod-modal-price-now {
  font-size: 28px;
  font-weight: 900;
  color: #7C3AED;
  font-family: 'Inter', 'Poppins', sans-serif;
  line-height: 1;
}
.pprod-modal-price-old {
  font-size: 15px;
  color: #64748B;
  text-decoration: line-through;
  font-family: 'Inter', 'Poppins', sans-serif;
  margin-left: 10px;
}
.pprod-modal-divider {
  border: none;
  border-top: 1px solid #F1F5F9;
  margin: 16px 0;
}
.pprod-modal-summary {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  flex: 1;
}
.pprod-modal-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #fff !important;
  border-radius: 12px;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.pprod-modal-detail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
}

/* ── Pagination ── */
.pprod-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.pprod-pagination .pagination { gap: 5px; }
.pprod-pagination .page-item .page-link {
  border-radius: 8px !important;
  border: 1.5px solid #F1F5F9 !important;
  color: #334155 !important;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  transition: all 0.18s;
  background: #fff;
}
.pprod-pagination .page-item.active .page-link {
  background: #7C3AED !important;
  border-color: #7C3AED !important;
  color: #fff !important;
}
.pprod-pagination .page-item .page-link:hover {
  background: #EDE9FE !important;
  border-color: #7C3AED !important;
  color: #7C3AED !important;
}

/* ── Empty State ── */
.pprod-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}
.pprod-empty > i {
  font-size: 56px;
  color: #CBD5E1;
  margin-bottom: 16px;
  display: block;
}
.pprod-empty-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}
.pprod-empty-sub {
  font-size: 14px;
  color: #64748B;
  font-family: 'Inter', 'Poppins', sans-serif;
}

/* ── Responsive ── */
@media (min-width: 1400px) {
  .pprod-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .pprod-layout { grid-template-columns: 1fr; }
  .pprod-grid { grid-template-columns: repeat(3, 1fr); }
  .pprod-hero { height: 240px; }
  .pprod-section { padding: 0 0 60px; }
}
@media (max-width: 767px) {
  .pprod-hero { height: 200px; }
  .pprod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pprod-sort-label { display: none; }
  .pprod-count-badge { display: none; }
}
@media (max-width: 480px) {
  .pprod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pprod-hero { height: 170px; }
  .pprod-hero-label { display: none; }
  .pprod-hero-title { font-size: 22px; }
  .pprod-modal-info { padding: 20px 18px; }
  .pprod-modal-price-now { font-size: 22px; }
  .pprod-page .pc-img { height: 140px; }
  .pprod-page .pc-body { padding: 12px 14px; }
  .pprod-page .pc-price-now { font-size: 16px; }
  .pprod-page .pc-title { font-size: 13px; }
  .pprod-page .pc-actions .pc-btn { font-size: 12px; padding: 9px; }
}
