/* ── Hide "Shop by Category" filter everywhere except /sale (category-62) ── */
#option-10087 {
  display: none !important;
}
body.product-category-62 #option-10087 {
  display: block !important;
}

/* ── SVG chevron arrow — replaces arrow.png on ALL filters (original + sticky) ── */
#ocfilter .ocfilter-option .ocf-option-name .filter-arrow,
.sticky-fi .ocf-option-name .filter-arrow {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><polyline points='0,0 5,5 10,0' fill='none' stroke='%23000' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
}

/* ── Sticky shrinking header — desktop only (≥992px) ── */

@media (min-width: 992px) {

  #sticky-wrap {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff !important;
    transition: box-shadow 0.45s ease;
  }

  #sticky-spacer {
    display: block;
  }

  /* Header inside wrap must be transparent so wrap's blur/opacity shows */
  #sticky-wrap header.header {
    background: transparent !important;
    transition: padding-top 0.45s ease, padding-bottom 0.45s ease;
  }

  /* ── Shrunk state ── */
  #sticky-wrap.shrunk {
    box-shadow: none;
  }
  #sticky-wrap.shrunk header.header {
    padding-top: 10px !important;
    padding-bottom: 9px !important;
  }

  /* ── Logo shrink — transform handled entirely by JS interpolation ── */
  #sticky-wrap .logo {
    transform-origin: top center;
    will-change: transform;
  }

  /* ── Compact filter bar ──
     Sibling of #sticky-wrap (not child) so backdrop-filter is independent
     and blurs real page content. Top set by JS (updateBarTop).           ── */
  #sticky-filter-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.06);
  }
  #sticky-filter-bar.visible {
    display: block;
    animation: sfb-fadein 0.3s ease forwards;
  }
  @keyframes sfb-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  /* Inner container mirrors the header's .container for identical alignment */
  #sticky-filter-bar .sticky-filter-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* ── Filter item: pure container, original ocf styles apply via cloneNode ── */
  .sticky-fi {
    position: relative;
    cursor: pointer;
    user-select: none;
  }

  /* ── Filter label: black, caps, 12px, flex (arrow sits inline with text) ── */
  .sticky-fi .ocf-option-name {
    color: #000 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* ── Filter arrow: show from cloned DOM ── */
  .sticky-fi .ocf-option-name .filter-arrow {
    display: block !important;
    width: 13px;
    height: 13px;
    cursor: pointer;
    margin-left: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    transition: transform 0.2s ease;
  }
  /* Rotate arrow when dropdown is open */
  .sticky-fi.open .ocf-option-name .filter-arrow {
    transform: rotate(180deg);
  }

  /* ── Dropdown panel ── */
  .sticky-fi .ocf-option-values {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    min-width: 180px;
    z-index: 1002;
    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  .sticky-fi.open .ocf-option-values {
    display: block;
  }
  .sticky-fi .ocf-option-values label {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 12px;
    gap: 6px;
    white-space: normal;
  }
  .sticky-fi .ocf-option-values label:hover {
    background: #f5f5f5;
  }

} /* end @media (min-width: 992px) */
