/**
 * Category listing (PrestaShop category page).
 * Scoped to #wrapper.ps-category-listing to avoid impacting other pages.
 */

body.page-category #wrapper.ps-category-listing,
body#category #wrapper.ps-category-listing {
  padding-top: 0.25rem;
}

/* Category container width (1320px) */
body.page-category #wrapper.ps-category-listing > .container,
body#category #wrapper.ps-category-listing > .container {
  width: 100%;
  max-width: 1320px;
}

body.page-category #wrapper.ps-category-listing nav.breadcrumb,
body#category #wrapper.ps-category-listing nav.breadcrumb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-category #wrapper.ps-category-listing #js-product-list-header .block-category.card,
body#category #wrapper.ps-category-listing #js-product-list-header .block-category.card {
  border: 2px solid #c5daf5 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7fd 100%) !important;
  box-shadow: 0 6px 22px rgba(0, 43, 68, 0.12) !important;
  margin-bottom: 1.35rem !important;
  overflow: hidden !important;
}

/* Product list header: hide on category page */
body.page-category #wrapper.ps-category-listing #js-product-list-header,
body#category #wrapper.ps-category-listing #js-product-list-header {
  display: none !important;
}

body.page-category #wrapper.ps-category-listing #js-product-list-header .block-category .h1,
body#category #wrapper.ps-category-listing #js-product-list-header .block-category .h1 {
  color: #002b44 !important;
  font-weight: 800 !important;
}

body.page-category #wrapper.ps-category-listing #js-product-list-top.products-selection,
body#category #wrapper.ps-category-listing #js-product-list-top.products-selection {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.75rem 0 !important;
  margin-bottom: 1rem !important;
}

/* Hide grid/list view switcher on category page */
body.page-category #wrapper.ps-category-listing #btn_view_product,
body#category #wrapper.ps-category-listing #btn_view_product {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Subcategories block: hide on category page */
body.page-category #wrapper.ps-category-listing #subcategories,
body#category #wrapper.ps-category-listing #subcategories {
  display: none !important;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters_wrapper,
body#category #wrapper.ps-category-listing #left-column #search_filters_wrapper,
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted,
body#category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted {
  border: 2px solid #c5daf5 !important;
  border-left: 6px solid #0078ff !important;
  border-radius: 10px !important;
  padding: 1.1rem !important;
  margin-bottom: 1.35rem !important;
  background: #f5f9ff !important;
  box-shadow: 0 4px 16px rgba(0, 43, 68, 0.1) !important;
}

/* Typography: force Jost for these sidebar blocks */
body.page-category #wrapper.ps-category-listing #left-column #search_filters_wrapper,
body#category #wrapper.ps-category-listing #left-column #search_filters_wrapper,
body.page-category #wrapper.ps-category-listing #left-column #search_filters_wrapper *,
body#category #wrapper.ps-category-listing #left-column #search_filters_wrapper *,
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted,
body#category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted,
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted *,
body#category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted * {
  font-family: "Jost", sans-serif !important;
  font-style: normal;
}

/* Filters wrapper: keep theme default (no card background/border) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters_wrapper,
body#category #wrapper.ps-category-listing #left-column #search_filters_wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-bottom: 0.75rem !important;
}

/* Category tree block: keep theme default layout, but no outer border/background */
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block,
body#category #wrapper.ps-category-listing #left-column .block-categories.block {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  margin-bottom: 0.75rem !important;
}

/* Align block-categories content left with filters (remove theme's 20px/1.25rem side insets) */
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block .title_block,
body#category #wrapper.ps-category-listing #left-column .block-categories.block .title_block,
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted .title_block,
body#category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted .title_block {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories.block .block_content,
body#category #wrapper.ps-category-listing #left-column .block-categories.block .block_content,
body.page-category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted .block_content,
body#category #wrapper.ps-category-listing #left-column .block-categories.block-highlighted .block_content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Category tree (block-categories) layout polish */
body.page-category #wrapper.ps-category-listing #left-column .block-categories .title_block,
body#category #wrapper.ps-category-listing #left-column .block-categories .title_block {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 500;
  text-transform: none;
  padding-bottom: 0.625rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e1e1e1;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .title_block a,
body#category #wrapper.ps-category-listing #left-column .block-categories .title_block a {
  color: #262626;
  text-decoration: none;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .title_block a:hover,
body#category #wrapper.ps-category-listing #left-column .block-categories .title_block a:hover,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .title_block a:focus-visible,
body#category #wrapper.ps-category-listing #left-column .block-categories .title_block a:focus-visible {
  color: #ff6f61;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-top-menu > li,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-top-menu > li {
  margin: 0;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li {
  position: relative;
  padding: 0 1.5rem 0 1.25rem; /* keep room for right toggler, match reference */
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li[data-depth="0"] ul.category-sub-menu,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li[data-depth="0"] ul.category-sub-menu {
  padding-top: 0.625rem;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li[data-depth="1"],
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li[data-depth="1"] {
  padding-left: 1.75rem;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li[data-depth="2"],
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li[data-depth="2"] {
  padding-left: 2.25rem;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li::after,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e5e5e5;
  position: absolute;
  display: block;
  top: 16px; /* match reference */
  left: 0;
}

/* 圆点默认灰色；仅悬停/聚焦当前行链接或折叠按钮时高亮（避免子级悬停时父级 li:hover 误亮） */
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:hover)::after,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:hover)::after,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:hover)::after,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:hover)::after,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:focus-visible)::after,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:focus-visible)::after,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:focus-visible)::after,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:focus-visible)::after {
  background-color: #ff6f61;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li > a,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li > a {
  font-family: "Outfit", sans-serif;
  width: 100%;
  display: block;
  line-height: 20px;
  padding: 10px 0;
  font-weight: 400;
  font-size: 16px;
  text-transform: capitalize;
  color: #666;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li > a:hover,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li > a:hover {
  color: #ff6f61;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:hover) .collapse-icons::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:hover) .collapse-icons::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:hover) .collapse-icons::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:hover) .collapse-icons::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:hover) .arrows::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:hover) .arrows::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:hover) .arrows::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:hover) .arrows::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:focus-visible) .collapse-icons::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:focus-visible) .collapse-icons::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:focus-visible) .collapse-icons::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:focus-visible) .collapse-icons::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:focus-visible) .arrows::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> a:focus-visible) .arrows::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:focus-visible) .arrows::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .category-sub-menu li:has(> button:focus-visible) .arrows::before {
  color: #ff6f61;
}

/* Make collapse triggers consistent + larger hit area */
body.page-category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons,
body#category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .arrows,
body#category #wrapper.ps-category-listing #left-column .block-categories .arrows {
  position: absolute;
  top: 0;
  right: -16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  line-height: 40px;
  box-shadow: none;
  outline: none;
  transition: all 0.4s;
}

body.page-category #wrapper.ps-category-listing #left-column .rtl .block-categories .collapse-icons,
body#category #wrapper.ps-category-listing #left-column .rtl .block-categories .collapse-icons,
body.page-category #wrapper.ps-category-listing #left-column .rtl .block-categories .arrows,
body#category #wrapper.ps-category-listing #left-column .rtl .block-categories .arrows {
  left: -16px;
  right: auto;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons:focus,
body#category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons:focus,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .arrows:focus,
body#category #wrapper.ps-category-listing #left-column .block-categories .arrows:focus {
  outline: 0;
  box-shadow: none;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons:focus-visible,
body#category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons:focus-visible,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .arrows:focus-visible,
body#category #wrapper.ps-category-listing #left-column .block-categories .arrows:focus-visible {
  outline: 0;
  box-shadow: none;
}

/* Use reference-like Material Icons (+ / -) and hide inner <i> */
body.page-category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .arrows::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .arrows::before {
  font-family: "Material Icons";
  content: "add";
  font-size: 15px;
  position: absolute;
  inset: 0;
  text-align: center;
  line-height: 40px;
  color: #666;
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons[aria-expanded="true"]::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons[aria-expanded="true"]::before,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .arrows[aria-expanded="true"]::before,
body#category #wrapper.ps-category-listing #left-column .block-categories .arrows[aria-expanded="true"]::before {
  content: "remove";
}

body.page-category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons i,
body#category #wrapper.ps-category-listing #left-column .block-categories .collapse-icons i,
body.page-category #wrapper.ps-category-listing #left-column .block-categories .arrows i,
body#category #wrapper.ps-category-listing #left-column .block-categories .arrows i {
  opacity: 0;
  visibility: hidden;
}

/* Title case: HOME -> Home (match reference) */
body.page-category #wrapper.ps-category-listing #left-column .block-categories .title_block a,
body#category #wrapper.ps-category-listing #left-column .block-categories .title_block a {
  text-transform: capitalize;
}

/* Remove theme's blue accent bar on sidebar block titles */
body.page-category #wrapper.ps-category-listing #left-column.sidebar .block .title_block:before,
body#category #wrapper.ps-category-listing #left-column.sidebar .block .title_block:before {
  display: none !important;
  content: none !important;
}

/* Faceted block itself (#search_filters) has its own border/padding in theme.css */
body.page-category #wrapper.ps-category-listing #left-column #search_filters,
body#category #wrapper.ps-category-listing #left-column #search_filters {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* ----- Search filters (#search_filters_wrapper): semantic titles + Leo demo–aligned sidebar styles ----- */
body.page-category #wrapper.ps-category-listing #left-column #search_filters > .title_block,
body#category #wrapper.ps-category-listing #left-column #search_filters > .title_block {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 500;
  text-transform: none;
  padding: 0 0 0.625rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid #e1e1e1;
  color: #262626;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters > .title_block:first-child,
body#category #wrapper.ps-category-listing #left-column #search_filters > .title_block:first-child {
  padding-top: 0;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper {
  margin: 0 0 0.75rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all {
  color: #666;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:hover,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:hover,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:focus-visible,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:focus-visible {
  color: #ff6f61;
}

/* Clear all button: no background/border on category page */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all {
  background: transparent !important;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
}

/* Pressed state (mouse down): must beat the transparent reset above */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:active,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:active,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:active:focus,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:active:focus {
  background: #FF6F61 !important;
  background-color: #FF6F61 !important;
  color: #fff !important;
  text-decoration-color: #fff;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:active i.material-icons,
body#category #wrapper.ps-category-listing #left-column #search_filters .clear-all-wrapper .js-search-filters-clear-all:active i.material-icons {
  color: #fff !important;
}

/* Clear all button: match reference (sidebar underline text button) */
body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all {
  text-decoration: underline;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #333 !important;
  padding: 12px 15px !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  -webkit-appearance: none;
  appearance: none;
}

body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all i.material-icons,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all i.material-icons {
  font-size: 14px;
  line-height: 1;
  margin-right: 8px;
  vertical-align: middle;
}

body.rtl.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all i.material-icons,
body.rtl#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all i.material-icons {
  margin-right: 0;
  margin-left: 8px;
}

body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:hover,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:hover,
body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:focus-visible,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:focus-visible {
  color: #ff6f61 !important;
}

/* Pressed state (mouse down): match reference highlight */
body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all.btn:active,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all.btn:active,
body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:active,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:active {
  background: #FF6F61 !important;
  background-color: #FF6F61 !important;
  color: #fff !important;
  text-decoration-color: #fff;
  border-color: transparent !important;
}

body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all.btn:active i.material-icons,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all.btn:active i.material-icons,
body.page-category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:active i.material-icons,
body#category #wrapper.ps-category-listing .sidebar .js-search-filters-clear-all:active i.material-icons {
  color: #fff !important;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet {
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid #e1e1e1;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet:last-of-type,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-title.hidden-sm-down,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-title.hidden-sm-down {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 500;
  text-transform: none;
  color: #262626;
  margin: 0 0 0.5rem;
  padding: 0;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet ul,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 圆点仅用于复选/单选列表行，避免套在「下拉」类目的单条 li 上 */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label) {
  position: relative;
  margin: 0;
  padding: 0.35rem 0 0.35rem 1.25rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label)::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e5e5e5;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

body.rtl.page-category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label)::after,
body.rtl#category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label)::after {
  left: auto;
  right: 0;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label:hover)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label:hover)::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label:focus-within)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet ul.collapse > li:has(.facet-label:focus-within)::after {
  background-color: #ff6f61;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label a.search-link {
  margin-top: 0 !important;
  display: inline !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.35;
  color: #666;
  text-decoration: none;
  text-transform: capitalize;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label:hover a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label:hover a.search-link,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label a.search-link:hover,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label a.search-link:hover,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label a.search-link:focus-visible,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label a.search-link:focus-visible {
  color: #ff6f61;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label.active a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-label.active a.search-link {
  color: #ff6f61;
  font-weight: 500;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet .magnitude {
  color: #999;
  font-weight: 400;
}

/* Category facet: use round selector and remove extra grey bullet */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] ul.collapse > li,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] ul.collapse > li {
  padding-left: 0.125rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] ul.collapse > li::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] ul.collapse > li::after {
  content: none;
  display: none;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label {
  align-items: center;
  flex-wrap: nowrap;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > .custom-checkbox {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > a.search-link {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"] {
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"] + span,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"] + span {
  width: 16px;
  height: 16px;
  margin-right: 0.625rem;
  position: relative;
  top: 0;
  border: 1px solid #8d8d8d;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"] + span .checkbox-checked,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"] + span .checkbox-checked {
  display: none !important;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"]:checked + span::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .custom-checkbox input[type="checkbox"]:checked + span::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #FF6F61;
}

/* Facets layout (match Categories): attribute_group/feature/availability/manufacturer */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] ul.collapse > li,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] ul.collapse > li,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] ul.collapse > li,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] ul.collapse > li,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] ul.collapse > li,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] ul.collapse > li,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] ul.collapse > li,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] ul.collapse > li {
  padding-left: 0.125rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] ul.collapse > li::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] ul.collapse > li::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] ul.collapse > li::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] ul.collapse > li::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] ul.collapse > li::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] ul.collapse > li::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] ul.collapse > li::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] ul.collapse > li::after {
  content: none;
  display: none;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > a.search-link,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > a.search-link,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > a.search-link,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > a.search-link {
  display: flex !important;
  align-items: center;
  width: 100%;
  line-height: 20px;
  position: relative;
  padding-right: 36px;
  overflow: visible;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > a.search-link .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > a.search-link .magnitude,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > a.search-link .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > a.search-link .magnitude,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > a.search-link .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > a.search-link .magnitude,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > a.search-link .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > a.search-link .magnitude {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  color: #999;
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  line-height: 20px;
  text-align: right;
}

/* Facets selector UI (match Categories small round dot) - keep Color swatches intact */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"],
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"],
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"],
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] {
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) {
  width: 16px;
  height: 16px;
  margin-right: 0.625rem;
  border: 1px solid #8d8d8d;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) .checkbox-checked {
  display: none !important;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"]:checked + span:not(.color):not(.texture)::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #FF6F61;
}

/* Color facet: make swatches round + limit to 6 rows with inner scrollbar */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) {
  /* One row = one <li> height (avoid clipping from generic <li> padding rules) */
  --ps-color-facet-row-height: 36px;
  --ps-color-facet-scrollbar-gutter: 2px;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) ul.collapse,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) ul.collapse {
  max-height: calc(var(--ps-color-facet-row-height) * 6);
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 2px;
  padding-right: var(--ps-color-facet-scrollbar-gutter);
  padding-bottom: 0;
  box-sizing: border-box;
}

/* Color facet: neutralize generic row padding; make each row exactly row-height */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) ul.collapse > li:has(.facet-label),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) ul.collapse > li:has(.facet-label) {
  padding: 0 !important;
  margin: 0 !important;
  height: var(--ps-color-facet-row-height);
  box-sizing: border-box;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label {
  min-height: 0;
  height: 100%;
  align-items: center;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label > a.search-link {
  padding-right: calc(36px + var(--ps-color-facet-scrollbar-gutter));
  line-height: 18px;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label > a.search-link .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label > a.search-link .magnitude {
  right: calc(5px + var(--ps-color-facet-scrollbar-gutter));
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"] + span.color,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"] + span.color {
  width: 16px;
  height: 16px;
  margin: 0;
  margin-right: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.15);
  background-size: cover;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"] + span.texture,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"] + span.texture {
  border-radius: 50%;
  background-size: cover;
  border: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color facet swatch hover/active/focus outline (better affordance) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:hover .custom-checkbox input[type="checkbox"] + span.color,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:hover .custom-checkbox input[type="checkbox"] + span.color,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:focus-within .custom-checkbox input[type="checkbox"] + span.color,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:focus-within .custom-checkbox input[type="checkbox"] + span.color,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:hover .custom-checkbox input[type="checkbox"] + span.texture,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:hover .custom-checkbox input[type="checkbox"] + span.texture,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:focus-within .custom-checkbox input[type="checkbox"] + span.texture,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .facet-label:focus-within .custom-checkbox input[type="checkbox"] + span.texture {
  box-shadow:
    0 0 0 1px #2b2b2b,
    inset 0 0 0 1px #ffffff,
    0 0 3px 0 rgba(0, 0, 0, 0.15);
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"]:checked + span.color,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"]:checked + span.color,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"]:checked + span.texture,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"]:has(.custom-checkbox span.color) .custom-checkbox input[type="checkbox"]:checked + span.texture {
  box-shadow:
    0 0 0 1px #2b2b2b,
    inset 0 0 0 1px #ffffff,
    0 0 3px 0 rgba(0, 0, 0, 0.15);
}

/* Price facet (slider): jQuery UI range slider polish (scoped to category sidebar) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] {
  --ps-price-slider-accent: #000;
  --ps-price-slider-track: #222;
  --ps-price-slider-track-height: 2px;
  --ps-price-slider-handle-size: 12px;
  --ps-price-slider-shadow: 0 2px 10px rgba(0, 43, 68, 0.15);
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider {
  margin: 0.25rem 0 0;
  padding: 0;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider > li,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider > li {
  padding: 0;
}

/* "€10 - €100" label */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider p[id^="facet_label_"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider p[id^="facet_label_"] {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #666;
  font-weight: 400;
}

/* Slider root (id can be slider-range_123 or slider-range-123 depending on template/build) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"] {
  margin: 0.25rem 0 0.25rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider {
  position: relative;
  height: var(--ps-price-slider-track-height);
  border: 0;
  border-radius: 999px;
  background: var(--ps-price-slider-track);
  box-shadow: none;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-range,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-range {
  height: 100%;
  background: var(--ps-price-slider-accent);
  border: 0;
  border-radius: 999px;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-handle,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-handle {
  top: 50%;
  width: var(--ps-price-slider-handle-size);
  height: var(--ps-price-slider-handle-size);
  margin-top: calc(var(--ps-price-slider-handle-size) / -2);
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: var(--ps-price-slider-shadow);
  cursor: pointer;
  outline: none;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-handle:hover,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-handle:hover {
  box-shadow: 0 2px 12px rgba(0, 43, 68, 0.2);
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-handle:focus-visible,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"].ui-slider .ui-slider-handle:focus-visible {
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.22),
    var(--ps-price-slider-shadow);
}

/* Disabled slider */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"][aria-disabled="true"],
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="price"] ul.faceted-slider [id^="slider-range"][aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* Category facet row layout: dot | name ............ (count) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label {
  gap: 0.5rem;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > a.search-link,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > a.search-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  line-height: 20px;
  position: relative;
  padding-right: 36px;
  overflow: visible;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > a.search-link .magnitude,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > a.search-link .magnitude {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  color: #999;
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  line-height: 20px;
  text-align: right;
  padding-left: 0;
}

/* Visual centering tweak (font rendering may shift 1-2px) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="category"] .facet-label > .custom-checkbox {
  position: relative;
  top: 0;
  transform: translateY(0.5px);
}

/* Minor vertical nudge (match Categories) for other facets */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > .custom-checkbox,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > .custom-checkbox,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > .custom-checkbox,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > .custom-checkbox {
  position: relative;
  top: 0;
  transform: translateY(0);
}

/* Force checkbox container vertical centering (fix misalignment vs text) */
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .facet-label > .custom-checkbox,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .facet-label > .custom-checkbox,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .facet-label > .custom-checkbox,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > .custom-checkbox,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .facet-label > .custom-checkbox {
  display: inline-flex;
  align-items: center;
  height: 20px;
  flex: 0 0 auto;
  align-self: center;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="attribute_group"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="feature"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="availability"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture),
body#category #wrapper.ps-category-listing #left-column #search_filters .facet[data-type="manufacturer"] .custom-checkbox input[type="checkbox"] + span:not(.color):not(.texture) {
  margin-top: 0;
  vertical-align: middle;
}

/* Mobile facet row：Bootstrap .hidden-md-up 控制 ≥768 隐藏；此处只加强 <768 时的按钮布局 */
@media (max-width: 767px) {
  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0.625rem 0;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    color: #232323;
    outline: none;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle:focus-visible,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle:focus-visible {
    box-shadow: none;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-title--mobile,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .facet-title--mobile {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
    color: inherit;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    line-height: 40px;
    transition: color 0.25s;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons::before,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons::before {
    font-family: "Material Icons";
    content: "add";
    font-size: 15px;
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 40px;
    color: #666;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons::before,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons::before {
    content: "remove";
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle:hover .collapse-icons::before,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle:hover .collapse-icons::before,
  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle:focus-visible .collapse-icons::before,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet button.title.facet-mobile-toggle:focus-visible .collapse-icons::before {
    color: #ff6f61;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons i,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons i {
    opacity: 0;
    visibility: hidden;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons .add,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons .add {
    display: none;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons .remove,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons .remove {
    display: block;
  }

  body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons .remove,
  body#category #wrapper.ps-category-listing #left-column #search_filters .facet .collapse-icons .remove {
    display: none;
  }
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet-dropdown .select-title,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet-dropdown .select-title {
  color: #666;
  font-size: 1rem;
  font-weight: 400;
}

body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet-dropdown .select-title:hover,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet-dropdown .select-title:hover,
body.page-category #wrapper.ps-category-listing #left-column #search_filters .facet-dropdown .select-title:focus-visible,
body#category #wrapper.ps-category-listing #left-column #search_filters .facet-dropdown .select-title:focus-visible {
  color: #ff6f61;
}

/* ============================================
   PRODUCT LIST - LEO PLIST STYLE 3
   ============================================ */

#js-product-list .product_list .row {
  display: flex;
  flex-wrap: wrap;
}

#js-product-list .product_list.leo-plist-style-3 .row {
  margin-left: -10px;
  margin-right: -10px;
}

#js-product-list .ajax_block_product {
  clear: none;
}

#js-product-list .product_list.leo-plist-style-3 .ajax_block_product {
  padding-left: 10px;
  padding-right: 10px;
}

#js-product-list .product_list.leo-plist-style,
#js-product-list .product_list.leo-plist-style-3 {
  margin: 0;
}

#js-product-list .product_list.leo-plist-style .thumbnail-container,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container {
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 0;
  box-shadow: none;
  background-color: var(--product-background);
  transition: all 0.4s ease;
}

#js-product-list .product_list.leo-plist-style .thumbnail-container:hover,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container:hover {
  box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.15);
}

#js-product-list .thumbnail-container .product-image {
  position: relative;
  overflow: hidden;
}

#js-product-list .thumbnail-container .product-image .product-thumbnail {
  display: block;
  width: 100%;
  text-align: center;
}

#js-product-list .thumbnail-container .product-image img {
  transition: all 1s ease;
}

@media (min-width: 992px) {
  #js-product-list .thumbnail-container:hover .product-image img {
    transform: scale3d(1.1, 1.1, 1);
  }
}

#js-product-list .thumbnail-container .functional-buttons {
  position: absolute;
  z-index: 99;
  top: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

#js-product-list .thumbnail-container:hover .functional-buttons {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  #js-product-list .thumbnail-container .functional-buttons {
    opacity: 1;
    visibility: visible;
  }
}

#js-product-list .thumbnail-container .product-meta {
  padding: 20px 10px 10px;
}

#js-product-list .thumbnail-container .p-name {
  position: relative;
  margin: 0 0 10px;
  padding: 0 35px 0 0;
}

#js-product-list .thumbnail-container .product-title {
  margin: 0 0 10px;
}

#js-product-list .thumbnail-container .product-title a {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--product-name-color);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

#js-product-list .thumbnail-container .product-title a:hover {
  color: var(--product-name-color-hover);
}

#js-product-list .thumbnail-container .quickview {
  position: absolute;
  top: 0;
  right: 0;
}

#js-product-list .thumbnail-container .quickview span span {
  display: none;
}

#js-product-list .thumbnail-container .p-price {
  position: relative;
  padding: 0 40px 0 0;
  margin-top: 10px;
}

#js-product-list .thumbnail-container .p-price .add-to-cart {
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 1px;
  font-weight: 500;
}

@media (min-width: 992px) {
  #js-product-list .thumbnail-container .p-price .add-to-cart {
    transform: translateX(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s 0.1s ease;
  }

  #js-product-list .thumbnail-container:hover .p-price .add-to-cart {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  #js-product-list .product_list.leo-plist-style .thumbnail-container:hover .product-price-and-shipping,
  #js-product-list .product_list.leo-plist-style-3 .thumbnail-container:hover .product-price-and-shipping {
    opacity: 0;
    visibility: hidden;
    transform: translateX(70px);
  }
}

#js-product-list .thumbnail-container .p-price .add-to-cart:hover {
  background: var(--theme-color-default);
}

#js-product-list .thumbnail-container .product-price-and-shipping {
  display: block;
  margin: 0 0 10px;
  color: var(--product-price-color);
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s 0.1s ease;
}

#js-product-list .thumbnail-container .product-price-and-shipping .regular-price {
  margin: 0 5px 0 0;
  color: var(--product-regular-price-color);
  font-size: 14px;
  font-weight: 400;
  text-decoration: line-through;
}

/* Strong overrides for style-3 to neutralize theme defaults */
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .functional-buttons {
  top: 12px;
  right: 12px;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container:hover .functional-buttons {
  opacity: 0 !important;
  visibility: hidden !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-flags,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container:hover .product-flags {
  transform: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-flags {
  opacity: 1 !important;
  visibility: visible !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container:hover .product-flags {
  opacity: 0 !important;
  visibility: hidden !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .functional-buttons .leo-wishlist-button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b5b5b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .functional-buttons .leo-wishlist-button .name-btn-product {
  display: none !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .functional-buttons .leo-wishlist-button i {
  margin: 0;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .quickview .quick-view {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f8f8f;
  display: block;
  box-shadow: none;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .quickview .quick-view:hover,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .functional-buttons .leo-wishlist-button:hover {
  color: #111;
}

/* Re-apply product title optimization for style-3 cards */
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-title {
  margin-bottom: 10px !important;
  line-height: normal;
  font-family: "Jost", sans-serif !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container h3.product-title,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .h3.product-title {
  font-size: 1.125rem !important;
  font-family: "Jost", sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  color: var(--headings-color) !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-title a {
  display: -webkit-box !important;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--product-name-color);
  font-size: 14px !important;
  font-family: "Jost", sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-decoration: none;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-title a:hover {
  color: var(--product-name-color-hover);
}

/* Re-apply price color optimization for style-3 cards */
#js-product-list .product_list.leo-plist-style-3 {
  --product-price-color: #d55353;
  --product-regular-price-color: #777;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-price-and-shipping {
  color: var(--product-price-color);
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-price-and-shipping .regular-price {
  color: var(--product-regular-price-color);
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-price-and-shipping .price,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-price-and-shipping .price.has_discount,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-price-and-shipping .regular-price + .price,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-price-and-shipping .regular-price + .price.has_discount {
  color: var(--product-price-color) !important;
}

/* Cancel theme generic icon-only cart behavior */
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .leo-bt-cart-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .leo-bt-cart-content i {
  display: none !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .leo-bt-cart-content i::before {
  content: none !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .leo-bt-cart-content span {
  display: inline-block !important;
  vertical-align: middle !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .leo-bt-cart-content .name-btn-product::before {
  content: "\f290";
  font-family: "Font Awesome 5 Pro";
  font-weight: 300;
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  vertical-align: -1px;
  margin-right: 6px;
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .p-price .button-container.cart {
  position: absolute;
  left: 0;
  top: 0;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .p-price .add-to-cart {
  min-width: 150px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  letter-spacing: 2px;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .p-price .add-to-cart:hover,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .p-price .add-to-cart:focus,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .p-price .add-to-cart:active {
  background-color: #fb5d5d !important;
}

/* Fix image clipping + remove rounded corners */
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-image,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-image .product-thumbnail,
#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-image img {
  border-radius: 0 !important;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-image {
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: #f3f3f3;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-image .product-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
}

#js-product-list .product_list.leo-plist-style-3 .thumbnail-container .product-image img {
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

@media (min-width: 992px) {
  #js-product-list .product_list.leo-plist-style-3 .thumbnail-container .p-price .add-to-cart {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-20px);
  }

  #js-product-list .product_list.leo-plist-style-3 .thumbnail-container:hover .p-price .add-to-cart {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

/* Final lock: style-3 discount badge visual */
#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .product-flags {
  margin: 0 !important;
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  right: auto !important;
  font-size: 10px !important;
  z-index: 1 !important;
  pointer-events: none !important;
  text-align: center !important;
  padding: 0 !important;
}

#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .product-flags li.product-flag {
  margin: 0 0 5px !important;
  padding: 0 8px !important;
  text-align: center !important;
  display: inline-block !important;
  color: #fff !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.5 !important;
}

#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .product-flags li.product-flag.discount {
  display: inline-block !important;
  color: var(--sale-badge-color) !important;
  background-color: var(--sale-badge-background) !important;
}

#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .product-flags .product-flag.discount {
  color: var(--sale-badge-color) !important;
  background-color: var(--sale-badge-background) !important;
}

/* Hide wishlist button in style-3 product cards */
#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .functional-buttons,
#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .wishlist,
#js-product-list .product_list.grid.leo-plist-style-3 .thumbnail-container .leo-wishlist-button {
  display: none !important;
}

