/* Contextual category filter sidebar for WooCommerce category archives. */
body.tax-product_cat .pssk-category-archive-layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(210px, 245px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 34px);
  width: 100%;
  margin: 22px 0 42px;
}
body.tax-product_cat .pssk-category-filter {
  box-sizing: border-box;
  min-width: 0;
  border-radius:var(--pssk-ui-radius-md);
  box-shadow: 0 5px 18px var(--pssk-ui-shadow-foreground-subtle);
  overflow: hidden;
}
body.tax-product_cat .pssk-category-filter-panel {
  margin: 0;
}
body.tax-product_cat .pssk-category-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 15px 16px;
  background: var(--pssk-ui-muted);
  font: 700 14px/1.35 var(--pssk-ui-font-sans);
  cursor: pointer;
  list-style: none;
}
body.tax-product_cat .pssk-category-filter-heading::-webkit-details-marker {
  display: none;
}
body.tax-product_cat .pssk-category-filter-heading::marker {
  content: "";
}
body.tax-product_cat .pssk-category-filter-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--pssk-ui-border);
  border-radius: 50%;
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-primary);
  font: 400 15px/1 var(--pssk-ui-font-sans);
}

body.tax-product_cat .pssk-category-filter-panel[open] > .pssk-category-filter-heading .pssk-category-filter-heading-icon {
  transform: rotate(180deg);
}
body.tax-product_cat .pssk-category-filter-heading:focus-visible {
  outline: 2px solid var(--pssk-ui-primary);
  outline-offset: -3px;
}
body.tax-product_cat .pssk-category-filter-body {
  padding: 12px 12px 14px;
}
body.tax-product_cat .pssk-category-filter-all {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 7px;
  padding: 7px 10px;
  border: 1px solid var(--pssk-ui-border);
  border-radius: var(--pssk-ui-radius-form-button);
  background: var(--pssk-ui-muted);
  font: 700 12px/1.35 var(--pssk-ui-font-sans);
}
body.tax-product_cat .pssk-category-filter-all:hover {
  border-color: var(--pssk-ui-primary);
  background: var(--pssk-ui-secondary);
}


body.tax-product_cat .pssk-category-filter-list--depth-0 > .pssk-category-filter-item + .pssk-category-filter-item {
  border-top: 1px solid var(--pssk-ui-border-soft);
}
body.tax-product_cat .pssk-category-filter-item > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius:var(--pssk-ui-radius-sm);
  font: 400 12px/1.4 var(--pssk-ui-font-sans);
  overflow-wrap: anywhere;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}




body.tax-product_cat .pssk-category-filter-item.is-current > a:hover,
body.tax-product_cat .pssk-category-filter-item.is-ancestor > a:hover {
  color: var(--pssk-ui-primary-hover) !important;
}
body.tax-product_cat .pssk-category-filter-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font: 400 18px/1 var(--pssk-ui-font-sans);
}

body.tax-product_cat .pssk-category-filter-list--depth-1,
body.tax-product_cat .pssk-category-filter-list--depth-2,
body.tax-product_cat .pssk-category-filter-list--depth-3 {
  margin: 2px 0 6px 8px;
  padding: 2px 0 2px 8px;
}
body.tax-product_cat .pssk-category-filter-list--depth-1 .pssk-category-filter-item > a,
body.tax-product_cat .pssk-category-filter-list--depth-2 .pssk-category-filter-item > a,
body.tax-product_cat .pssk-category-filter-list--depth-3 .pssk-category-filter-item > a {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 11.5px;
}
body.tax-product_cat .pssk-category-archive-main {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}
body.tax-product_cat .pssk-category-archive-main > .woocommerce-notices-wrapper:first-child {
  margin-top: 0;
}
body.tax-product_cat .pssk-category-archive-main > ul.products {
  margin-top: 12px;
}
@media (max-width: 900px) {
  body.tax-product_cat .pssk-category-archive-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }
  body.tax-product_cat .pssk-category-filter {
    width: 100%;
  }

}
@media (max-width: 544px) {
  body.tax-product_cat .pssk-category-archive-layout {
    gap: 14px;
    margin: 14px 0 28px;
  }
  body.tax-product_cat .pssk-category-filter-heading {
    padding: 12px 14px;
  }
  body.tax-product_cat .pssk-category-filter-body {
    padding: 9px 9px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.tax-product_cat .pssk-category-filter-item > a {
    transition: none !important;
  }
}


/* Category archive sidebar: align with the PatternSouk catalogue template.
   Keep the category navigation and responsive layout; refine only its presentation. */
body.tax-product_cat .pssk-category-filter {
  border: 1px solid var(--pssk-ui-border);
  border-radius:var(--pssk-ui-radius-form-control);
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-foreground);
  box-shadow: none;
}
body.tax-product_cat .pssk-category-filter-panel {
  border: 0;
  background: var(--pssk-ui-card);
}
body.tax-product_cat .pssk-category-filter-heading {
  min-height: 0;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--pssk-ui-border);
  border-radius: 0;
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-foreground);
  font: 700 12px/1.4 var(--pssk-ui-font-sans);
  letter-spacing: 0;
}
body.tax-product_cat .pssk-category-filter-panel[open] > .pssk-category-filter-heading {
  border-bottom: 1px solid var(--pssk-ui-border);
}
body.tax-product_cat .pssk-category-filter-heading-icon {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pssk-ui-muted-foreground);
  font: 400 13px/1 var(--pssk-ui-font-sans);
  transition: color .14s ease, transform .14s ease;
}
body.tax-product_cat .pssk-category-filter-heading:hover .pssk-category-filter-heading-icon {
  color: var(--pssk-ui-primary);
}
body.tax-product_cat .pssk-category-filter-body {
  padding: 11px 12px 13px;
  max-height: none;
  overflow: visible;
}
body.tax-product_cat .pssk-category-filter-all {
  display: block;
  min-height: 0;
  margin: 0 0 8px;
  padding: 3px 5px 8px;
  border: 0;
  border-bottom: 1px solid var(--pssk-ui-border);
  border-radius: 0;
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-primary) !important;
  font: 700 11.5px/1.4 var(--pssk-ui-font-sans);
  text-decoration: none !important;
}
body.tax-product_cat .pssk-category-filter-all:hover {
  border-color: var(--pssk-ui-border);
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-primary-hover) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
body.tax-product_cat .pssk-category-filter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.tax-product_cat .pssk-category-filter-list--depth-0 > .pssk-category-filter-item + .pssk-category-filter-item {
  border-top: 0;
}
body.tax-product_cat .pssk-category-filter-item {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.tax-product_cat .pssk-category-filter-item > a {
  min-height: 30px;
  padding: 6px 7px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 3px;
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-foreground) !important;
  font: 400 11.5px/1.4 var(--pssk-ui-font-sans);
  text-decoration: none !important;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}
body.tax-product_cat .pssk-category-filter-item > a:hover {
  border-left-color: var(--pssk-ui-border);
  background: var(--pssk-ui-muted);
  color: var(--pssk-ui-primary) !important;
}
body.tax-product_cat .pssk-category-filter-item > a:focus-visible {
  outline: 2px solid var(--pssk-ui-primary);
  outline-offset: -2px;
}
body.tax-product_cat .pssk-category-filter-item.is-current > a {
  border-left-color: var(--pssk-ui-primary);
  background: var(--pssk-ui-muted);
  color: var(--pssk-ui-primary) !important;
  font-weight: 700;
}
body.tax-product_cat .pssk-category-filter-item.is-ancestor > a {
  border-left-color: transparent;
  background: var(--pssk-ui-card);
  color: var(--pssk-ui-foreground) !important;
  font-weight: 700;
}
body.tax-product_cat .pssk-category-filter-item.is-ancestor > a:hover {
  border-left-color: var(--pssk-ui-border);
  background: var(--pssk-ui-muted);
  color: var(--pssk-ui-primary) !important;
}
body.tax-product_cat .pssk-category-filter-chevron {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: var(--pssk-ui-muted-icon);
  font: 400 15px/1 var(--pssk-ui-font-sans);
}
body.tax-product_cat .pssk-category-filter-item.is-expanded > a .pssk-category-filter-chevron {
  color: var(--pssk-ui-primary);
  transform: rotate(90deg);
}
body.tax-product_cat .pssk-category-filter-list--depth-1,
body.tax-product_cat .pssk-category-filter-list--depth-2,
body.tax-product_cat .pssk-category-filter-list--depth-3 {
  margin: 2px 0 5px 9px;
  padding: 1px 0 1px 8px;
  border-left: 1px solid var(--pssk-ui-border);
}
body.tax-product_cat .pssk-category-filter-list--depth-1 .pssk-category-filter-item > a,
body.tax-product_cat .pssk-category-filter-list--depth-2 .pssk-category-filter-item > a,
body.tax-product_cat .pssk-category-filter-list--depth-3 .pssk-category-filter-item > a {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}
body.tax-product_cat .pssk-category-filter-item.is-current > a:hover {
  background: var(--pssk-ui-muted);
  color: var(--pssk-ui-primary-hover) !important;
}
@media (max-width: 900px) {
  body.tax-product_cat .pssk-category-filter-body {
    max-height: 42vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 544px) {
  body.tax-product_cat .pssk-category-filter-heading {
    padding: 12px 13px;
  }
  body.tax-product_cat .pssk-category-filter-body {
    padding: 9px 10px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.tax-product_cat .pssk-category-filter-heading-icon,
  body.tax-product_cat .pssk-category-filter-item > a {
    transition: none !important;
  }
}





/* Category filter arrows: replace text glyphs with precise CSS chevrons and smooth state transitions. */
body.tax-product_cat .pssk-category-filter-item > a .pssk-category-filter-chevron {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  margin: 0 1px 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pssk-ui-muted-icon) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: color .18s ease, transform .18s cubic-bezier(.2,.7,.2,1) !important;
  box-sizing: border-box !important;
}
body.tax-product_cat .pssk-category-filter-item > a .pssk-category-filter-chevron::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: transparent;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
  transition: border-color .18s ease;
  box-sizing: border-box;
}
body.tax-product_cat .pssk-category-filter-item > a:hover .pssk-category-filter-chevron,
body.tax-product_cat .pssk-category-filter-item > a:focus-visible .pssk-category-filter-chevron {
  color: var(--pssk-ui-primary) !important;
}
body.tax-product_cat .pssk-category-filter-item.is-expanded > a .pssk-category-filter-chevron {
  color: var(--pssk-ui-primary) !important;
  transform: rotate(90deg) !important;
}
body.tax-product_cat .pssk-category-filter-heading-icon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--pssk-ui-muted-foreground) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform-origin: 50% 50%;
  transition: color .18s ease, transform .18s cubic-bezier(.2,.7,.2,1) !important;
  box-sizing: border-box !important;
}
body.tax-product_cat .pssk-category-filter-heading-icon::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  box-sizing: border-box;
}
body.tax-product_cat .pssk-category-filter-heading:hover .pssk-category-filter-heading-icon {
  color: var(--pssk-ui-primary) !important;
}
@media (prefers-reduced-motion: reduce) {
  body.tax-product_cat .pssk-category-filter-item > a .pssk-category-filter-chevron,
  body.tax-product_cat .pssk-category-filter-item > a .pssk-category-filter-chevron::before,
  body.tax-product_cat .pssk-category-filter-heading-icon {
    transition: none !important;
  }
}


