/*
 * Pepiniera Șoșa — WooCommerce archive hero v2
 * Save as: /wp-content/themes/woodmart-child/css/sosa-archive-hero.css
 * All selectors are isolated to this component.
 */

.sosa-archive-hero {
  --sosa-hero-green-950: #142b1c;
  --sosa-hero-gold: #c99a3d;
  --sosa-hero-text: #ffffff;
  --sosa-hero-border: rgba(255, 255, 255, 0.12);
  --sosa-hero-surface-active: rgba(255, 255, 255, 0.09);
  --sosa-hero-max-width: 1380px;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 420px;
  background: var(--sosa-hero-green-950);
  color: var(--sosa-hero-text);
}

.sosa-archive-hero__media,
.sosa-archive-hero__overlay {
  position: absolute;
  inset: 0;
}

.sosa-archive-hero__media {
  z-index: -3;
  overflow: hidden;
  background: var(--sosa-hero-green-950);
}

.sosa-archive-hero__background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.015);
}

.sosa-archive-hero__overlay {
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(20, 43, 28, 0.91) 0%,
    rgba(20, 43, 28, 0.64) 52%,
    rgba(20, 43, 28, 0.36) 100%
  );
}

.sosa-archive-hero__overlay::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 20, 11, 0.16) 100%
  );
}

.sosa-archive-hero__inner {
  width: min(100%, var(--sosa-hero-max-width));
  margin-inline: auto;
  padding: 52px 32px 28px;
}

.sosa-archive-hero__heading {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.sosa-archive-hero__gold-line {
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 15px;
  background: var(--sosa-hero-gold);
}

.sosa-archive-hero__eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sosa-archive-hero__title {
  margin: 0;
  color: var(--sosa-hero-text);
  font-family: var(--wd-title-font, Georgia, serif);
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.sosa-archive-hero__intro {
  max-width: 620px;
  margin: 13px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.sosa-archive-hero__categories-desktop {
  display: block;
  width: 100%;
  margin: 34px 0 0;
}

/* The native disclosure is reserved for tablet/mobile. */
.sosa-archive-hero__categories {
  display: none;
  width: 100%;
  margin: 34px 0 0;
}

.sosa-archive-hero__categories-summary {
  display: none;
}

.sosa-archive-hero__categories-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sosa-archive-hero__category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 110px;
  padding: 13px 12px;
  border-left: 1px solid var(--sosa-hero-border);
  background: transparent;
  color: var(--sosa-hero-text);
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.sosa-archive-hero__category:first-child {
  border-left: 0;
}

.sosa-archive-hero__category::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 0;
  left: 26px;
  height: 2px;
  background: var(--sosa-hero-gold);
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sosa-archive-hero__category-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}

.sosa-archive-hero__category-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.sosa-archive-hero__category-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.sosa-archive-hero__category-name {
  color: var(--sosa-hero-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 180ms ease;
}

.sosa-archive-hero__category-count {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}

.sosa-archive-hero__category-chevron {
  display: none;
}

.sosa-archive-hero__category:is(:hover, :focus-visible, .is-active) {
  background: var(--sosa-hero-surface-active);
  outline: none;
}

.sosa-archive-hero__category:is(:hover, :focus-visible, .is-active)::after {
  opacity: 1;
  transform: scaleX(1);
}

.sosa-archive-hero__category:is(:hover, :focus-visible, .is-active)
  .sosa-archive-hero__category-name {
  color: var(--sosa-hero-gold);
}

.sosa-archive-hero__category:is(:hover, :focus-visible, .is-active)
  .sosa-archive-hero__category-icon
  img {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(0) saturate(100%) invert(66%) sepia(45%) saturate(744%)
    hue-rotate(359deg) brightness(91%) contrast(87%);
}

.sosa-archive-hero__category:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sosa-hero-gold);
}

@media (max-width: 1024px) {
  .sosa-archive-hero {
    min-height: 0;
  }

  .sosa-archive-hero__inner {
    padding: 42px 20px 26px;
  }

  .sosa-archive-hero__categories-desktop {
    display: none;
  }

  .sosa-archive-hero__categories {
    display: block;
    width: min(100%, 680px);
    margin: 24px auto 0;
  }

  .sosa-archive-hero__categories-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: 156px;
    min-height: 46px;
    margin-inline: auto;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.31);
    border-radius: 999px;
    background: rgba(20, 43, 28, 0.4);
    box-shadow: 0 10px 30px rgba(7, 20, 11, 0.14);
    color: var(--sosa-hero-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }

  .sosa-archive-hero__categories-summary::-webkit-details-marker {
    display: none;
  }

  .sosa-archive-hero__categories-summary::marker {
    content: "";
  }

  .sosa-archive-hero__categories-summary:hover {
    transform: translateY(-1px);
  }

  .sosa-archive-hero__categories-summary:focus-visible {
    border-color: var(--sosa-hero-gold);
    outline: 2px solid var(--sosa-hero-gold);
    outline-offset: 3px;
  }

  .sosa-archive-hero__categories[open]
    > .sosa-archive-hero__categories-summary {
    border-color: rgba(201, 154, 61, 0.92);
    background: rgba(255, 255, 255, 0.11);
    color: var(--sosa-hero-gold);
  }

  .sosa-archive-hero__summary-chevron {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    transition: transform 220ms ease;
  }

  .sosa-archive-hero__summary-chevron::before,
  .sosa-archive-hero__summary-chevron::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 7px;
    height: 1.5px;
    background: currentColor;
  }

  .sosa-archive-hero__summary-chevron::before {
    left: 0;
    transform: rotate(45deg);
    transform-origin: right center;
  }

  .sosa-archive-hero__summary-chevron::after {
    right: 0;
    transform: rotate(-45deg);
    transform-origin: left center;
  }

  .sosa-archive-hero__categories[open] .sosa-archive-hero__summary-chevron {
    transform: rotate(180deg);
  }

  .sosa-archive-hero__categories:not([open])
    > .sosa-archive-hero__categories-grid {
    display: none !important;
  }

  .sosa-archive-hero__categories[open] > .sosa-archive-hero__categories-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(66vh, 560px);
    margin-top: 18px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 16px;
    background: rgba(10, 32, 17, 0.16);
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 154, 61, 0.55) rgba(255, 255, 255, 0.08);
    animation: sosa-archive-categories-in 220ms ease both;
  }

  .sosa-archive-hero__categories-grid::-webkit-scrollbar {
    width: 5px;
  }

  .sosa-archive-hero__categories-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
  }

  .sosa-archive-hero__categories-grid::-webkit-scrollbar-thumb {
    background: rgba(201, 154, 61, 0.55);
    border-radius: 999px;
  }

  .sosa-archive-hero__category {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    align-items: center;
    column-gap: 13px;
    width: 100%;
    min-height: 68px;
    padding: 9px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(13, 47, 26, 0.54);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.025),
      0 8px 22px rgba(7, 24, 12, 0.06);
    text-align: left;
  }

  .sosa-archive-hero__category::after {
    right: 14px;
    left: 14px;
  }

  .sosa-archive-hero__category-icon {
    grid-column: 1;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    justify-self: center;
  }

  .sosa-archive-hero__category-copy {
    grid-column: 2;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .sosa-archive-hero__category-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sosa-archive-hero__category-count {
    font-size: 11px;
    line-height: 1.15;
  }

  .sosa-archive-hero__category-chevron {
    grid-column: 3;
    display: block;
    width: 8px;
    height: 8px;
    justify-self: center;
    border-top: 1.5px solid rgba(255, 255, 255, 0.64);
    border-right: 1.5px solid rgba(255, 255, 255, 0.64);
    transform: rotate(45deg);
    transition:
      border-color 180ms ease,
      transform 180ms ease;
  }

  .sosa-archive-hero__category:is(:hover, :focus-visible, .is-active) {
    border-color: rgba(201, 154, 61, 0.52);
    background: linear-gradient(
      90deg,
      rgba(201, 154, 61, 0.16),
      rgba(255, 255, 255, 0.1)
    );
  }

  .sosa-archive-hero__category:is(:hover, :focus-visible, .is-active)
    .sosa-archive-hero__category-chevron {
    border-color: var(--sosa-hero-gold);
    transform: translateX(2px) rotate(45deg);
  }
}

@keyframes sosa-archive-categories-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .sosa-archive-hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(20, 43, 28, 0.94) 0%,
      rgba(20, 43, 28, 0.76) 58%,
      rgba(20, 43, 28, 0.57) 100%
    );
  }

  .sosa-archive-hero__background-image {
    object-position: 52% center;
    transform: scale(1.04);
  }

  .sosa-archive-hero__inner {
    padding: 34px 14px 22px;
  }

  .sosa-archive-hero__gold-line {
    width: 42px;
    margin-bottom: 13px;
  }

  .sosa-archive-hero__eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.18em;
  }

  .sosa-archive-hero__title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .sosa-archive-hero__intro {
    max-width: 500px;
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.6;
  }

  .sosa-archive-hero__categories {
    margin-top: 20px;
  }

  .sosa-archive-hero__categories-summary {
    min-width: 144px;
    min-height: 43px;
    padding: 10px 17px;
    font-size: 11px;
  }

  .sosa-archive-hero__categories[open] > .sosa-archive-hero__categories-grid {
    gap: 7px;
    max-height: min(62vh, 500px);
    margin-top: 15px;
    padding: 5px;
  }

  .sosa-archive-hero__category {
    grid-template-columns: 31px minmax(0, 1fr) 10px;
    column-gap: 12px;
    min-height: 64px;
    padding: 9px 14px;
  }

  .sosa-archive-hero__category-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .sosa-archive-hero__category-name {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .sosa-archive-hero__inner {
    padding-right: 11px;
    padding-left: 11px;
  }

  .sosa-archive-hero__intro {
    font-size: 12.5px;
  }

  .sosa-archive-hero__category {
    min-height: 61px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sosa-archive-hero *,
  .sosa-archive-hero *::before,
  .sosa-archive-hero *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * ============================================================
 * PEPINIERA ȘOȘA — SHOP FILTER SIDEBAR
 * Full hierarchy-safe version
 *
 * Add this class to the WPBakery sidebar column:
 *   sosa-shop-sidebar
 *
 * Built for the current staging markup:
 * - WooCommerce Product Filters block
 * - WoodMart Product Categories widget
 * - WooCommerce Product Filter Price block
 * - WoodMart Stock Status widget
 *
 * IMPORTANT:
 * Replace previous sidebar CSS completely with this file.
 * ============================================================
 */

.sosa-shop-sidebar {
  /* Brand */
  --sosa-filter-primary: #1d3c27;
  --sosa-filter-primary-dark: #142b1c;
  --sosa-filter-primary-light: #2c5639;
  --sosa-filter-secondary: #4e7235;
  --sosa-filter-accent: #c99a3d;

  /* Neutrals */
  --sosa-filter-bg: #ffffff;
  --sosa-filter-ivory: #f7f4ec;
  --sosa-filter-surface: #efeadf;
  --sosa-filter-muted-bg: #f3efe6;
  --sosa-filter-text: #29352d;
  --sosa-filter-muted: #687269;
  --sosa-filter-border: #d8d1c2;

  /* Geometry */
  --sosa-filter-radius: 14px;
  --sosa-filter-radius-sm: 10px;
  --sosa-filter-radius-xs: 7px;

  /* Motion */
  --sosa-filter-ease: cubic-bezier(0.22, 1, 0.36, 1);

  color: var(--sosa-filter-text);

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 14px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
 * 1. REMOVE UNWANTED WPBAKERY / WOODMART SPACING
 * ============================================================ */

.sosa-shop-sidebar,
.sosa-shop-sidebar > .vc_column-inner,
.sosa-shop-sidebar > .vc_column-inner > .wpb_wrapper {
  min-width: 0;
}

.sosa-shop-sidebar > .vc_column-inner {
  padding-top: 0 !important;
}

.sosa-shop-sidebar > .vc_column-inner > .wpb_wrapper > .wd-wpb {
  margin-bottom: 0 !important;
}

/* ============================================================
 * 2. MAIN FILTER CARD
 * ============================================================ */

.sosa-shop-sidebar > .vc_column-inner > .wpb_wrapper > .wd-wpb {
  position: relative;

  padding: 24px !important;

  overflow: hidden;

  border: 1px solid rgba(29, 60, 39, 0.13);
  border-radius: var(--sosa-filter-radius);

  background: var(--sosa-filter-bg);

  box-shadow:
    0 2px 4px rgba(29, 60, 39, 0.025),
    0 16px 40px -30px rgba(29, 60, 39, 0.28);
}

/* ============================================================
 * 3. NORMALIZE WOODMART WIDGET SPACING INSIDE CARD
 * ============================================================ */

.sosa-shop-sidebar .wd-widget,
.sosa-shop-sidebar .widget,
.sosa-shop-sidebar .widget_block {
  margin: 0 !important;
  padding: 0 !important;
}

.sosa-shop-sidebar .widget + .widget {
  margin-top: 0 !important;
}

/* ============================================================
 * 4. FLATTEN THE INNER WOOCOMMERCE PRODUCT FILTER OVERLAY
 *
 * WoodMart already handles the whole shop sidebar as off-canvas
 * on smaller screens, so the nested WooCommerce overlay would
 * create a duplicated filter drawer.
 * ============================================================ */

.sosa-shop-sidebar .wc-block-product-filters__open-overlay,
.sosa-shop-sidebar .wc-block-product-filters__overlay-header {
  display: none !important;
}

.sosa-shop-sidebar .wc-block-product-filters__overlay,
.sosa-shop-sidebar .wc-block-product-filters__overlay-wrapper,
.sosa-shop-sidebar .wc-block-product-filters__overlay-dialog,
.sosa-shop-sidebar .wc-block-product-filters__overlay-content {
  position: static !important;
  inset: auto !important;

  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: inherit !important;

  visibility: visible !important;
  opacity: 1 !important;

  transform: none !important;
}

/* ============================================================
 * 5. MAIN SIDEBAR TITLE
 * ============================================================ */

.sosa-shop-sidebar
  .wc-block-product-filters__overlay-content
  > .wp-block-heading:first-child {
  margin: 0 0 18px !important;

  color: var(--sosa-filter-primary) !important;

  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;

  text-transform: none !important;
}

/* ============================================================
 * 6. SEARCH FIELD
 * ============================================================ */

.sosa-shop-sidebar .widget_product_search {
  margin: 0 0 24px !important;
}

.sosa-shop-sidebar .widget_product_search .wd-search-form,
.sosa-shop-sidebar .widget_product_search .searchform {
  position: relative;

  width: 100%;
  margin: 0 !important;
}

/* Search icon on left */
.sosa-shop-sidebar .widget_product_search .searchform::before {
  content: "";

  position: absolute;
  z-index: 3;
  top: 50%;
  left: 13px;

  width: 16px;
  height: 16px;

  pointer-events: none;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687269' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.7-3.7'/%3E%3C/svg%3E")
    center / contain no-repeat;

  opacity: 0.72;

  transform: translateY(-50%);
}

.sosa-shop-sidebar .widget_product_search .searchform input.s {
  width: 100% !important;
  height: 42px !important;

  margin: 0 !important;
  padding: 0 42px 0 39px !important;

  border: 1px solid rgba(29, 60, 39, 0.14) !important;
  border-radius: var(--sosa-filter-radius-sm) !important;

  background: rgba(247, 244, 236, 0.72) !important;
  box-shadow: none !important;

  color: var(--sosa-filter-text) !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.sosa-shop-sidebar .widget_product_search .searchform input.s::placeholder {
  color: rgba(41, 53, 45, 0.42) !important;
}

.sosa-shop-sidebar .widget_product_search .searchform input.s:hover {
  border-color: rgba(29, 60, 39, 0.24) !important;
}

.sosa-shop-sidebar .widget_product_search .searchform input.s:focus {
  border-color: rgba(78, 114, 53, 0.72) !important;

  background: #fff !important;

  outline: 0 !important;

  box-shadow: 0 0 0 3px rgba(78, 114, 53, 0.1) !important;
}

/* Clear button */
.sosa-shop-sidebar .widget_product_search .wd-clear-search {
  right: 38px !important;
}

/* Hide default submit button visually, but keep it functional */
.sosa-shop-sidebar .widget_product_search .searchsubmit {
  position: absolute !important;
  z-index: 2;
  top: 0 !important;
  right: 0 !important;

  width: 40px !important;
  height: 42px !important;
  min-height: 42px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: transparent !important;
  font-size: 0 !important;
}

.sosa-shop-sidebar .widget_product_search .searchsubmit span,
.sosa-shop-sidebar .widget_product_search .searchsubmit::before,
.sosa-shop-sidebar .widget_product_search .searchsubmit::after {
  display: none !important;
}

/* ============================================================
 * 7. SECTION HEADINGS
 * ============================================================ */

.sosa-shop-sidebar .widget_product_categories .widgettitle,
.sosa-shop-sidebar
  .wp-block-woocommerce-product-filter-price
  > .wp-block-heading,
.sosa-shop-sidebar .wd-widget-stock-status > .widget-title {
  margin: 0 0 12px !important;

  color: var(--sosa-filter-primary) !important;

  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.012em !important;

  text-transform: none !important;
}

/* ============================================================
 * 8. TOP-LEVEL CATEGORY LIST
 * ============================================================ */

.sosa-shop-sidebar .widget_product_categories {
  margin: 0 !important;
}

.sosa-shop-sidebar .product-categories {
  display: flex !important;
  flex-direction: column !important;

  gap: 2px !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;
}

/*
 * Every li uses flex-wrap so the children <ul> occupies its own
 * row while the parent link, count and toggle remain aligned.
 */
.sosa-shop-sidebar .product-categories li {
  position: relative;

  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;

  list-style: none !important;
}

/* ============================================================
 * 9. TOP-LEVEL CATEGORY ROW
 * ============================================================ */

.sosa-shop-sidebar .product-categories > li > a {
  position: relative;

  display: flex !important;
  align-items: center !important;

  gap: 11px !important;

  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 38px !important;

  margin: 0 !important;
  padding: 7px 5px !important;

  border-radius: 8px;

  color: rgba(41, 53, 45, 0.75) !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 450 !important;
  line-height: 1.3 !important;

  text-decoration: none !important;

  transition:
    color 160ms ease,
    background-color 160ms ease;
}

/* Top-level faux checkbox */
.sosa-shop-sidebar .product-categories > li > a::before {
  content: "";

  display: block;

  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  border: 1px solid rgba(29, 60, 39, 0.27);
  border-radius: 5px;

  background: #fff;

  box-sizing: border-box;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.sosa-shop-sidebar .product-categories > li > a:hover {
  background: rgba(29, 60, 39, 0.035);

  color: var(--sosa-filter-primary) !important;
}

.sosa-shop-sidebar .product-categories > li > a:hover::before {
  border-color: rgba(29, 60, 39, 0.58);
}

/* ============================================================
 * 10. TOP-LEVEL ACTIVE CATEGORY
 * ============================================================ */

.sosa-shop-sidebar
  .product-categories
  > li:is(
    .current-cat,
    .current-cat-parent,
    .current-cat-ancestor,
    .wd-active,
    .wd-active-parent
  )
  > a {
  background: rgba(29, 60, 39, 0.055);

  color: var(--sosa-filter-primary) !important;

  font-weight: 600 !important;
}

.sosa-shop-sidebar
  .product-categories
  > li:is(
    .current-cat,
    .current-cat-parent,
    .current-cat-ancestor,
    .wd-active,
    .wd-active-parent
  )
  > a::before {
  border-color: var(--sosa-filter-primary);

  background: var(--sosa-filter-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat;

  box-shadow: 0 0 0 2px rgba(29, 60, 39, 0.07);
}

/* ============================================================
 * 11. PRODUCT COUNT PILLS — ALL LEVELS
 * ============================================================ */

.sosa-shop-sidebar .product-categories li > .count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 24px !important;
  height: 22px !important;
  flex: 0 0 auto !important;

  margin: 0 4px 0 7px !important;
  padding: 2px 7px !important;

  border: 0 !important;
  border-radius: 999px !important;

  background: var(--sosa-filter-ivory) !important;

  color: rgba(41, 53, 45, 0.52) !important;

  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  line-height: 1 !important;
}

/* ============================================================
 * 12. WOODMART CATEGORY EXPAND / COLLAPSE BUTTON
 * ============================================================ */

.sosa-shop-sidebar .product-categories .wd-cats-toggle {
  position: relative !important;
  inset: auto !important;

  display: grid !important;
  place-items: center !important;

  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  margin: 0 1px 0 0 !important;

  border: 0 !important;
  border-radius: 7px !important;

  background: transparent !important;

  color: rgba(41, 53, 45, 0.52) !important;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.sosa-shop-sidebar .product-categories .wd-cats-toggle:hover {
  background: rgba(29, 60, 39, 0.06) !important;

  color: var(--sosa-filter-primary) !important;
}

/*
 * Keep WoodMart's own icon behavior.
 * Only normalize its geometry.
 */
.sosa-shop-sidebar .product-categories .wd-cats-toggle::after,
.sosa-shop-sidebar .product-categories .wd-cats-toggle::before {
  transition: transform 180ms var(--sosa-filter-ease) !important;
}

/* ============================================================
 * 13. NESTED CATEGORY HIERARCHY
 * ============================================================ */

.sosa-shop-sidebar .product-categories ul.children {
  position: relative !important;

  display: none;

  flex: 0 0 100% !important;

  width: calc(100% - 7px) !important;

  margin: 3px 0 7px 7px !important;
  padding: 2px 0 2px 25px !important;

  border: 0 !important;

  list-style: none !important;
}

/* Vertical hierarchy guide */
.sosa-shop-sidebar .product-categories ul.children::before {
  content: "";

  position: absolute;
  top: 3px;
  bottom: 4px;
  left: 8px;

  width: 1px;

  background: rgba(29, 60, 39, 0.13);
}

/* Respect WoodMart open state */
.sosa-shop-sidebar .product-categories ul.children.list-shown,
.sosa-shop-sidebar .product-categories li.wd-active > ul.children,
.sosa-shop-sidebar .product-categories li.wd-active-parent > ul.children,
.sosa-shop-sidebar .product-categories li.current-cat > ul.children,
.sosa-shop-sidebar .product-categories li.current-cat-parent > ul.children,
.sosa-shop-sidebar .product-categories li.current-cat-ancestor > ul.children {
  display: flex !important;
  flex-direction: column !important;

  gap: 1px !important;
}

/* ============================================================
 * 14. NESTED CATEGORY ROWS
 * ============================================================ */

.sosa-shop-sidebar .product-categories ul.children li {
  position: relative;
}

/* Small horizontal connector */
.sosa-shop-sidebar .product-categories ul.children li::before {
  content: "";

  position: absolute;
  top: 17px;
  left: -17px;

  width: 10px;
  height: 1px;

  background: rgba(29, 60, 39, 0.13);
}

.sosa-shop-sidebar .product-categories ul.children li > a {
  position: relative;

  display: flex !important;
  align-items: center !important;

  gap: 8px !important;

  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 34px !important;

  padding: 5px 6px !important;

  border-radius: var(--sosa-filter-radius-xs);

  color: rgba(41, 53, 45, 0.66) !important;

  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;

  text-decoration: none !important;

  transition:
    color 160ms ease,
    background-color 160ms ease;
}

/* Dot instead of checkbox for children */
.sosa-shop-sidebar .product-categories ul.children li > a::before {
  content: "";

  display: block;

  width: 5px;
  height: 5px;
  flex: 0 0 5px;

  border: 0;
  border-radius: 50%;

  background: rgba(29, 60, 39, 0.26);

  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.sosa-shop-sidebar .product-categories ul.children li > a:hover {
  background: rgba(29, 60, 39, 0.035);

  color: var(--sosa-filter-primary) !important;
}

.sosa-shop-sidebar .product-categories ul.children li > a:hover::before {
  background: var(--sosa-filter-secondary);

  transform: scale(1.15);
}

/* ============================================================
 * 15. NESTED ACTIVE CATEGORY
 * ============================================================ */

.sosa-shop-sidebar
  .product-categories
  ul.children
  li:is(
    .current-cat,
    .current-cat-parent,
    .current-cat-ancestor,
    .wd-active,
    .wd-active-parent
  )
  > a {
  background: linear-gradient(
    90deg,
    rgba(201, 154, 61, 0.1),
    rgba(29, 60, 39, 0.035)
  );

  color: var(--sosa-filter-primary) !important;

  font-weight: 600 !important;
}

.sosa-shop-sidebar
  .product-categories
  ul.children
  li:is(
    .current-cat,
    .current-cat-parent,
    .current-cat-ancestor,
    .wd-active,
    .wd-active-parent
  )
  > a::before {
  background: var(--sosa-filter-accent);

  box-shadow: 0 0 0 3px rgba(201, 154, 61, 0.11);
}

/* ============================================================
 * 16. DEEPER CATEGORY LEVELS
 * ============================================================ */

.sosa-shop-sidebar .product-categories ul.children ul.children {
  width: calc(100% - 3px) !important;

  margin-left: 3px !important;
  padding-left: 20px !important;
}

.sosa-shop-sidebar .product-categories ul.children ul.children::before {
  left: 6px;
}

.sosa-shop-sidebar .product-categories ul.children ul.children li::before {
  left: -14px;

  width: 8px;
}

.sosa-shop-sidebar .product-categories ul.children ul.children li > a {
  font-size: 12.5px !important;
}

/* ============================================================
 * 17. CATEGORY SECTION BOTTOM RHYTHM
 * ============================================================ */

.sosa-shop-sidebar .widget_product_categories {
  padding-bottom: 0 !important;
}

/* ============================================================
 * 18. PRICE FILTER SECTION
 * ============================================================ */

.sosa-shop-sidebar .wp-block-woocommerce-product-filter-price {
  margin: 24px 0 0 !important;
  padding: 24px 0 0 !important;

  border-top: 1px solid rgba(29, 60, 39, 0.12) !important;
}

.sosa-shop-sidebar .wc-block-product-filter-price-slider__content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) !important;
  align-items: center !important;

  gap: 10px 8px !important;

  width: 100% !important;
}

/* ============================================================
 * 19. PRICE RANGE TRACK
 * ============================================================ */

.sosa-shop-sidebar .wc-block-product-filter-price-slider__range {
  position: relative !important;

  grid-column: 1 / -1 !important;

  height: 22px !important;

  margin: 1px 4px 4px !important;
}

.sosa-shop-sidebar .wc-block-product-filter-price-slider__range .range-bar {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  left: 0 !important;

  height: 6px !important;

  border-radius: 999px !important;

  background: linear-gradient(
    to right,
    #e8e3d8 0%,
    #e8e3d8 var(--low),
    var(--sosa-filter-primary) var(--low),
    var(--sosa-filter-primary) var(--high),
    #e8e3d8 var(--high),
    #e8e3d8 100%
  ) !important;

  transform: translateY(-50%);
}

/* ============================================================
 * 20. PRICE SLIDER HANDLES
 * ============================================================ */

.sosa-shop-sidebar
  .wc-block-product-filter-price-slider__range
  input[type="range"] {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 22px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;

  background: transparent !important;

  -webkit-appearance: none !important;
  appearance: none !important;

  pointer-events: none;
}

/* Chromium / Safari */
.sosa-shop-sidebar
  .wc-block-product-filter-price-slider__range
  input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;

  background: transparent;
}

.sosa-shop-sidebar
  .wc-block-product-filter-price-slider__range
  input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;

  margin-top: -6px;

  border: 2px solid var(--sosa-filter-primary);
  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 1px 3px rgba(29, 60, 39, 0.14),
    0 0 0 3px rgba(29, 60, 39, 0.04);

  -webkit-appearance: none;
  appearance: none;

  cursor: grab;

  pointer-events: auto;
}

.sosa-shop-sidebar
  .wc-block-product-filter-price-slider__range
  input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;

  background: var(--sosa-filter-ivory);

  box-shadow:
    0 1px 3px rgba(29, 60, 39, 0.16),
    0 0 0 5px rgba(78, 114, 53, 0.1);
}

/* Firefox */
.sosa-shop-sidebar
  .wc-block-product-filter-price-slider__range
  input[type="range"]::-moz-range-track {
  height: 6px;

  border: 0;

  background: transparent;
}

.sosa-shop-sidebar
  .wc-block-product-filter-price-slider__range
  input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;

  border: 2px solid var(--sosa-filter-primary);
  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 1px 3px rgba(29, 60, 39, 0.14),
    0 0 0 3px rgba(29, 60, 39, 0.04);

  cursor: grab;

  pointer-events: auto;
}

/* ============================================================
 * 21. PRICE VALUE BOXES
 * ============================================================ */

.sosa-shop-sidebar .wc-block-product-filter-price-slider__left {
  grid-column: 1 !important;
  grid-row: 2 !important;

  position: relative !important;

  width: 100% !important;

  text-align: left !important;
}

.sosa-shop-sidebar .wc-block-product-filter-price-slider__right {
  grid-column: 3 !important;
  grid-row: 2 !important;

  position: relative !important;

  width: 100% !important;

  text-align: right !important;
}

/* Dash between values */
.sosa-shop-sidebar .wc-block-product-filter-price-slider__content::after {
  content: "";

  grid-column: 2 !important;
  grid-row: 2 !important;

  width: 10px;
  height: 1px;

  justify-self: center;

  background: rgba(29, 60, 39, 0.2);
}

.sosa-shop-sidebar .wc-block-product-filter-price-slider__left input,
.sosa-shop-sidebar .wc-block-product-filter-price-slider__right input {
  width: 100% !important;
  max-width: 96px !important;
  height: 34px !important;

  margin: 0 !important;
  padding: 0 8px !important;

  border: 1px solid rgba(29, 60, 39, 0.13) !important;
  border-radius: 9px !important;

  background: var(--sosa-filter-ivory) !important;
  box-shadow: none !important;

  color: var(--sosa-filter-primary) !important;

  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  text-align: center !important;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.sosa-shop-sidebar .wc-block-product-filter-price-slider__right input {
  margin-left: auto !important;
}

.sosa-shop-sidebar .wc-block-product-filter-price-slider__left input:focus,
.sosa-shop-sidebar .wc-block-product-filter-price-slider__right input:focus {
  border-color: rgba(78, 114, 53, 0.62) !important;

  background: #fff !important;

  outline: 0 !important;

  box-shadow: 0 0 0 3px rgba(78, 114, 53, 0.08) !important;
}

/* ============================================================
 * 22. APPLY BUTTON
 * ============================================================ */

.sosa-shop-sidebar .wc-block-product-filters__overlay-footer {
  position: static !important;

  display: block !important;

  width: 100% !important;

  margin: 13px 0 0 !important;
  padding: 0 !important;

  border: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
}

.sosa-shop-sidebar .wc-block-product-filters__apply {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  height: 41px !important;
  min-height: 41px !important;

  margin: 0 !important;
  padding: 0 16px !important;

  border: 1px solid var(--sosa-filter-primary) !important;
  border-radius: var(--sosa-filter-radius-sm) !important;

  background: transparent !important;
  box-shadow: none !important;

  color: var(--sosa-filter-primary) !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;

  text-transform: none !important;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms var(--sosa-filter-ease);
}

.sosa-shop-sidebar .wc-block-product-filters__apply:hover {
  border-color: var(--sosa-filter-primary) !important;

  background: var(--sosa-filter-primary) !important;

  color: #fff !important;

  transform: translateY(-1px);
}

/* ============================================================
 * 23. STOCK STATUS / AVAILABILITY SECTION
 * ============================================================ */

.sosa-shop-sidebar .wd-widget-stock-status {
  margin: 24px 0 0 !important;
  padding: 24px 0 0 !important;

  border-top: 1px solid rgba(29, 60, 39, 0.12) !important;
}

.sosa-shop-sidebar .wd-widget-stock-status ul.wd-checkboxes-on {
  display: flex !important;
  flex-direction: column !important;

  gap: 2px !important;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;
}

.sosa-shop-sidebar .wd-widget-stock-status ul.wd-checkboxes-on > li {
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
}

.sosa-shop-sidebar .wd-widget-stock-status ul.wd-checkboxes-on > li > a {
  position: relative;

  display: flex !important;
  align-items: center !important;

  gap: 11px !important;

  min-height: 38px !important;

  padding: 7px 5px !important;

  border-radius: 8px;

  color: rgba(41, 53, 45, 0.75) !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 450 !important;
  line-height: 1.3 !important;

  text-decoration: none !important;

  transition:
    color 160ms ease,
    background-color 160ms ease;
}

/* Custom availability checkbox */
.sosa-shop-sidebar
  .wd-widget-stock-status
  ul.wd-checkboxes-on
  > li
  > a::before {
  content: "" !important;

  display: block !important;

  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;

  margin: 0 !important;

  border: 1px solid rgba(29, 60, 39, 0.27) !important;
  border-radius: 5px !important;

  background: #fff !important;

  box-shadow: none !important;

  box-sizing: border-box !important;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.sosa-shop-sidebar .wd-widget-stock-status ul.wd-checkboxes-on > li > a:hover {
  background: rgba(29, 60, 39, 0.035);

  color: var(--sosa-filter-primary) !important;
}

.sosa-shop-sidebar
  .wd-widget-stock-status
  ul.wd-checkboxes-on
  > li
  > a:hover::before {
  border-color: rgba(29, 60, 39, 0.58) !important;
}

/* ============================================================
 * 24. ACTIVE STOCK FILTER
 * ============================================================ */

.sosa-shop-sidebar
  .wd-widget-stock-status
  ul.wd-checkboxes-on
  > li:is(.chosen, .wd-active)
  > a {
  background: rgba(29, 60, 39, 0.055);

  color: var(--sosa-filter-primary) !important;

  font-weight: 600 !important;
}

.sosa-shop-sidebar
  .wd-widget-stock-status
  ul.wd-checkboxes-on
  > li:is(.chosen, .wd-active)
  > a::before {
  border-color: var(--sosa-filter-primary) !important;

  background: var(--sosa-filter-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat !important;

  box-shadow: 0 0 0 2px rgba(29, 60, 39, 0.07) !important;
}

/* ============================================================
 * 25. HIDE EMPTY WOOCOMMERCE FILTER BLOCKS
 * ============================================================ */

.sosa-shop-sidebar .wc-block-product-filter--hidden {
  display: none !important;
}

/* ============================================================
 * 26. DESKTOP STICKY SIDEBAR
 * ============================================================ */

@media (min-width: 1025px) {
  .sosa-shop-sidebar > .vc_column-inner {
    position: sticky;

    top: 22px;
  }
}

/* ============================================================
 * 27. TABLET / MOBILE
 *
 * WoodMart controls the main sidebar off-canvas state.
 * This CSS only styles its content.
 * ============================================================ */

@media (max-width: 1024px) {
  .sosa-shop-sidebar > .vc_column-inner > .wpb_wrapper > .wd-wpb {
    padding: 20px !important;

    border-radius: 12px;

    box-shadow: none;
  }

  .sosa-shop-sidebar
    .wc-block-product-filters__overlay-content
    > .wp-block-heading:first-child {
    font-size: 17px !important;
  }

  .sosa-shop-sidebar .product-categories > li > a {
    min-height: 40px !important;
  }

  .sosa-shop-sidebar .product-categories ul.children li > a {
    min-height: 36px !important;
  }
}

@media (max-width: 767px) {
  .sosa-shop-sidebar > .vc_column-inner > .wpb_wrapper > .wd-wpb {
    padding: 17px !important;

    border-radius: 0;
  }

  /* Avoid iOS zoom on focus */
  .sosa-shop-sidebar .widget_product_search .searchform input.s {
    font-size: 16px !important;
  }

  .sosa-shop-sidebar .product-categories ul.children {
    padding-left: 21px !important;
  }

  .sosa-shop-sidebar .product-categories ul.children li > a {
    font-size: 13px !important;
  }
}

/* ============================================================
 * 28. VERY SMALL PHONES
 * ============================================================ */

@media (max-width: 380px) {
  .sosa-shop-sidebar > .vc_column-inner > .wpb_wrapper > .wd-wpb {
    padding: 15px !important;
  }

  .sosa-shop-sidebar .wc-block-product-filter-price-slider__content {
    grid-template-columns:
      minmax(0, 1fr)
      16px
      minmax(0, 1fr) !important;

    gap: 9px 5px !important;
  }

  .sosa-shop-sidebar .wc-block-product-filter-price-slider__left input,
  .sosa-shop-sidebar .wc-block-product-filter-price-slider__right input {
    font-size: 12px !important;
  }
}

/* ============================================================
 * 29. ACCESSIBILITY
 * ============================================================ */

.sosa-shop-sidebar a:focus-visible,
.sosa-shop-sidebar button:focus-visible,
.sosa-shop-sidebar input:focus-visible,
.sosa-shop-sidebar .wd-cats-toggle:focus-visible {
  outline: 2px solid rgba(78, 114, 53, 0.58) !important;
  outline-offset: 2px !important;
}

/* ============================================================
 * 30. REDUCED MOTION
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .sosa-shop-sidebar *,
  .sosa-shop-sidebar *::before,
  .sosa-shop-sidebar *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
