/* ================================================
   KLEN.IN – Category Page Custom CSS
   How to apply:
   Option A (No FTP): PrestaShop Admin → Design →
     Theme & Logo → Advanced Customization → Custom CSS
   Option B (FTP): Append to
     /themes/alysumchild/assets/css/custom.css
   ================================================ */

/* -----------------------------------------------
   1. STICKY FILTER SIDEBAR
----------------------------------------------- */
#search_filters_wrapper,
.elementor-filter-wrapper.sidebar {
  position: sticky !important;
  top: 80px !important;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0ddd8 transparent;
}
#search_filters_wrapper::-webkit-scrollbar { width: 4px; }
#search_filters_wrapper::-webkit-scrollbar-thumb {
  background: #e0ddd8;
  border-radius: 4px;
}

/* -----------------------------------------------
   2. FILTER SIDEBAR CARD
----------------------------------------------- */
#search_filters_wrapper {
  background: #fff !important;
  border-radius: 16px !important;
  border: 1px solid #e8e5e0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.07) !important;
}

.page-category #search_filters .module-title.facet-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.9px !important;
  text-transform: uppercase !important;
  color: #888 !important;
  padding: 12px 18px 10px !important;
  margin: 0 !important;
  border-bottom: 1px solid #f0ede8 !important;
}

.page-category #search_filters .facet-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background 0.18s ease !important;
  font-size: 13.5px !important;
  color: #333 !important;
  margin: 1px 6px !important;
}
.page-category #search_filters .facet-label:hover {
  background: rgba(0,0,0,.03) !important;
}

/* Custom checkboxes */
.page-category #search_filters .custom-checkbox span {
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #ccc !important;
  border-radius: 4px !important;
  transition: all 0.18s ease !important;
  flex-shrink: 0 !important;
}
.page-category #search_filters .custom-checkbox input:checked + span {
  background: #1a1a2e !important;
  border-color: #1a1a2e !important;
}

/* Count pill */
.page-category #search_filters .magnitude {
  display: inline-block !important;
  background: #f0ede8 !important;
  color: #888 !important;
  font-size: 11px !important;
  padding: 2px 7px !important;
  border-radius: 100px !important;
  margin-left: auto !important;
  font-weight: 500 !important;
}

/* Active filters area */
#js-active-search-filters {
  background: #f8f7f5 !important;
  border-radius: 10px !important;
  margin: 10px !important;
  padding: 10px 12px !important;
}
#js-active-search-filters .active-filter-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  color: #888 !important;
  margin-bottom: 8px !important;
}

/* Collapse chevron animation */
.page-category #search_filters .title .collapse-icons {
  transition: transform 0.22s ease !important;
}
.page-category #search_filters .title[aria-expanded="false"] .collapse-icons {
  transform: rotate(-90deg) !important;
}

/* Price slider thumb */
.page-category #search_filters input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #0f3460 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.2) !important;
  cursor: pointer !important;
}
.ui-slider .ui-slider-handle {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #0f3460 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.2) !important;
  top: -8px !important;
  cursor: pointer !important;
}
.ui-slider-range {
  background: linear-gradient(90deg, #0f3460, #e94560) !important;
}

/* -----------------------------------------------
   3. CATEGORY HERO DARK GRADIENT
----------------------------------------------- */
.page-category #wrapper .page-header,
.page-category .breadcrumb-row,
.page-category #main .page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}
.page-category #wrapper .page-header::before,
.page-category .breadcrumb-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(233,69,96,.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-category .breadcrumb li a,
.page-category .breadcrumb li span,
.page-category .breadcrumb .separator,
.page-category .breadcrumb-separator {
  color: rgba(255,255,255,.55) !important;
}
.page-category .breadcrumb li:last-child span,
.page-category .breadcrumb li.current span {
  color: rgba(255,255,255,.9) !important;
}

.page-category h1,
.page-category .page-header h1 {
  color: #fff !important;
  font-size: clamp(26px, 3.5vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.15 !important;
}

/* -----------------------------------------------
   4. PRODUCT CARD REDESIGN
----------------------------------------------- */
.page-category .product-miniature {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #e8e5e0 !important;
  background: #fff !important;
  transition:
    transform 0.22s cubic-bezier(.4,0,.2,1),
    box-shadow 0.22s cubic-bezier(.4,0,.2,1),
    border-color 0.22s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.055) !important;
}
.page-category .product-miniature:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.12) !important;
  border-color: rgba(26,26,46,.14) !important;
}

/* Image zoom */
.page-category .product-miniature .product-thumbnail img,
.page-category .product-miniature .cover-image img {
  transition: transform 0.55s cubic-bezier(.4,0,.2,1) !important;
}
.page-category .product-miniature:hover .product-thumbnail img,
.page-category .product-miniature:hover .cover-image img {
  transform: scale(1.06) !important;
}

/* Title */
.page-category .product-miniature .product-title a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  line-height: 1.4 !important;
  transition: color 0.18s ease !important;
}
.page-category .product-miniature:hover .product-title a {
  color: #0f3460 !important;
}

/* Price */
.page-category .product-miniature .price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}
.page-category .product-miniature .regular-price {
  font-size: 12.5px !important;
  color: #999 !important;
  text-decoration: line-through !important;
}

/* Badges */
.page-category .product-miniature .product-flags .discount,
.page-category .product-miniature .product-flags .on-sale {
  background: #e94560 !important;
  border-radius: 100px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  padding: 3px 9px !important;
  border: none !important;
}
.page-category .product-miniature .product-flags .new {
  background: #0f3460 !important;
  border-radius: 100px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border: none !important;
}

/* Add to Cart button */
.page-category .product-miniature .btn.add-to-cart,
.page-category .product-miniature button.add-to-cart {
  background: #1a1a2e !important;
  border-color: #1a1a2e !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: background 0.2s ease, transform 0.18s ease !important;
  width: 100% !important;
  padding: 10px !important;
}
.page-category .product-miniature .btn.add-to-cart:hover,
.page-category .product-miniature button.add-to-cart:hover {
  background: #e94560 !important;
  border-color: #e94560 !important;
  transform: translateY(-1px) !important;
}

/* Quick View button */
.page-category .product-miniature .quick-view {
  background: rgba(255,255,255,.2) !important;
  border: 1.5px solid rgba(255,255,255,.3) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(8px) !important;
  transition: background 0.18s ease !important;
}
.page-category .product-miniature .quick-view:hover {
  background: rgba(255,255,255,.4) !important;
}

/* -----------------------------------------------
   5. TOOLBAR (SORT + RESULTS COUNT)
----------------------------------------------- */
.page-category #js-product-list-top,
.page-category .products-selection {
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid #e8e5e0 !important;
  padding: 12px 18px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
.page-category .products-selection .showing {
  font-size: 13.5px !important;
  color: #888 !important;
  flex: 1 !important;
}
.page-category .products-selection select,
.page-category #js-product-list-top select {
  border: 1.5px solid #e8e5e0 !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  color: #333 !important;
  background: #f8f7f5 !important;
  outline: none !important;
  transition: border-color 0.15s !important;
}
.page-category .products-selection select:focus {
  border-color: #0f3460 !important;
}

/* -----------------------------------------------
   6. PRODUCT GRID SPACING
----------------------------------------------- */
.page-category #js-product-list .products,
.page-category .product_list.grid-container {
  gap: 18px !important;
}

/* -----------------------------------------------
   7. MOBILE FILTER
----------------------------------------------- */
@media (max-width: 1024px) {
  #search_filters_wrapper,
  .elementor-filter-wrapper.sidebar {
    position: relative !important;
    top: 0 !important;
    max-height: none !important;
  }

  /* Mobile filter trigger button */
  .pk-filter-trigger,
  [data-target="#search_filters_wrapper"],
  .btn-filter-trigger,
  #search-filter-toggler,
  [data-toggle="pk-filter"] {
    background: #1a1a2e !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background 0.2s ease !important;
  }
  .pk-filter-trigger:hover,
  [data-target="#search_filters_wrapper"]:hover {
    background: #e94560 !important;
  }

  /* Mobile filter drawer */
  #search_filters_wrapper.is-open,
  .pk-filter-wrapper.open {
    border-radius: 0 16px 16px 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 768px) {
  /* 2-column product grid */
  .page-category #js-product-list .products,
  .page-category .product_list.grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .page-category .product-miniature {
    border-radius: 12px !important;
  }
  .page-category .product-miniature .product-title a {
    font-size: 12.5px !important;
  }
  .page-category .product-miniature .price {
    font-size: 14px !important;
  }
  .page-category .product-miniature .btn.add-to-cart {
    font-size: 11.5px !important;
    padding: 8px !important;
  }
  .page-category h1,
  .page-category .page-header h1 {
    font-size: 26px !important;
  }
}

/* -----------------------------------------------
   8. PAGINATION
----------------------------------------------- */
.page-category .pagination .page-link {
  border: 1.5px solid #e8e5e0 !important;
  border-radius: 8px !important;
  color: #888 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  transition: all 0.18s ease !important;
  margin: 0 3px !important;
  min-width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
}
.page-category .pagination .page-link:hover {
  border-color: #0f3460 !important;
  color: #0f3460 !important;
  background: #fff !important;
}
.page-category .pagination .current .page-link,
.page-category .pagination .active .page-link {
  background: #1a1a2e !important;
  border-color: #1a1a2e !important;
  color: #fff !important;
}

/* -----------------------------------------------
   9. STAR RATINGS
----------------------------------------------- */
.page-category .product-miniature .star-full .svgic,
.page-category .product-miniature .star-on .svgic,
.page-category .product-miniature .star-content.star-full svg {
  color: #f5a623 !important;
  fill: #f5a623 !important;
}
.page-category .product-miniature .star-empty .svgic,
.page-category .product-miniature .star-content.star-empty svg {
  color: #e0ddd8 !important;
  fill: #e0ddd8 !important;
}

/* -----------------------------------------------
   10. SCROLL-TO-TOP BUTTON
----------------------------------------------- */
#pkToTop, #to-top, .scrolltop, .pk-totop {
  background: #1a1a2e !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  transition: background 0.2s ease, transform 0.18s ease !important;
}
#pkToTop:hover, #to-top:hover, .scrolltop:hover, .pk-totop:hover {
  background: #e94560 !important;
  transform: translateY(-2px) !important;
}

/* -----------------------------------------------
   11. WISHLIST / FAVORITES BUTTON
----------------------------------------------- */
.page-category .product-miniature .favoritesButton,
.page-category .product-miniature .favorites-button {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
  transition: all 0.18s ease !important;
}
.page-category .product-miniature .favoritesButton:hover,
.page-category .product-miniature .favorites-button:hover {
  background: #fff !important;
  color: #e94560 !important;
  transform: scale(1.1) !important;
}

/* -----------------------------------------------
   12. HOVER ACTIONS OVERLAY (SLIDE UP)
----------------------------------------------- */
.page-category .product-miniature .pm-actions {
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent) !important;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.4,0,.2,1) !important;
}