/* Container Layout */
.cppf-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.cppf-filter-sidebar {
  flex: 1;
  min-width: 250px;
}
.cppf-products-main {
  flex: 3;
}

/* Filter Groups */
.cppf-filters .filter-group {
  margin-bottom: 25px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 15px;
}
.cppf-filters .filter-group h4 {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  font-weight: 600;
}
.cppf-filters label {
  display: block;
  margin: 6px 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.cppf-filters input[type="checkbox"] {
  margin-right: 8px;
}

/* Price Slider */
.price-slider-wrapper {
  margin: 15px 0;
}
.price-slider {
  width: 100%;
  margin: 10px 0;
}
.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
}

/* Manual price inputs */
.price-manual-inputs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.price-manual-inputs input {
  width: 45%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Rating Stars */
.rating-filter label {
  display: inline-block;
  margin-right: 15px;
  cursor: pointer;
}
.rating-filter input {
  display: none;
}
.rating-filter input:checked + span {
  color: #ffb900;
}
.rating-filter span {
  font-size: 1.2rem;
  color: #ddd;
  letter-spacing: 2px;
}

/* Sorting options */
.sort-options {
  margin-bottom: 15px;
}
.sort-options label {
  display: inline-block;
  margin-right: 15px;
  cursor: pointer;
}

/* Mobile Filter Button - clean */
.cppf-mobile-filter-btn {
  display: none;
  width: 100%;
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
}
.cppf-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
}
.cppf-mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 99999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}
.cppf-mobile-sidebar.open {
  left: 0;
}
.cppf-close-filter {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
  width: 100%;
}

/* Responsive – mobile: 2 products per row */
@media (max-width: 768px) {
  .cppf-desktop-sidebar {
    display: none;
  }
  .cppf-mobile-filter-btn {
    display: block;
  }
  /* Force 2 columns on tablets and mobile devices */
  .cppf-products .products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}
/* For very small devices (≤480px) keep 2 columns, only reduce gap */
@media (max-width: 480px) {
  .cppf-products .products {
    gap: 10px !important;
  }
}

/* Infinite scroll loader */
.cppf-infinite-loader {
  text-align: center;
  padding: 20px;
  display: none;
}
.cppf-loader-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2c3e50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.cppf-end-of-products {
  text-align: center;
  padding: 20px;
  color: #888;
  display: none;
}

/* ========== HIDE HOT BADGE AND WISHLIST ICONS ========== */
/* Hide product labels (Hot, On Sale, etc.) */
.cppf-products .product-label,
.cppf-products .product-label .featured,
.cppf-products .product-label .onsale,
.cppf-products .product-label span {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hide wishlist button and tooltip */
.cppf-products .wishlist,
.cppf-products .ts-add-to-wishlist,
.cppf-products .button-in.wishlist,
.cppf-products .ts-tooltip,
.cppf-products .button-tooltip,
.cppf-products [class*="wishlist"],
.cppf-products [class*="tooltip"] {
  display: none !important;
}

/* Also hide compare and quick view if desired (optional) */
.cppf-products .compare,
.cppf-products .ts-add-to-compare,
.cppf-products .quickshop {
  display: none !important;
}

/* Product card base styling – matches theme, with full border fix */
.cppf-products .product {
  overflow: visible !important; /* prevent border clipping */
}
.cppf-products .product .product-wrapper {
  background: #fff;
  border: 1px solid #e2e2e2 !important;
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box !important;
}
.cppf-products .product .product-wrapper:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: #ccc !important;
}
.cppf-products .product .thumbnail-wrapper {
  padding: 0;
}
.cppf-products .product .meta-wrapper {
  padding: 10px 15px 15px;
}
/* Hide short description list */
.cppf-products .short-description,
.cppf-products .short-description ul,
.cppf-products .short-description li {
  display: none !important;
}
/* Title styling */
.cppf-products .product .heading-title.product-name a {
  line-height: 1.4 !important;
}
.cppf-mobile-filter-btn {
  pointer-events: auto !important;
  z-index: 100;
  position: relative;
}
/* Hide short description list (features) in product cards */
.cppf-products-main .short-description,
.cppf-products-main .short-description ul,
.cppf-products-main .short-description li {
  display: none !important;
}
