/* Sunshine Jewels | Filter beside Featured / V3. Does not alter native sort or form. */
body.sj3-ready {
  --sj3-plum: #572821;
  --sj3-berry: #792c26;
  --sj3-copper: #b86c46;
  --sj3-border: #e5cbbd;
}
body.sj3-ready .sj3-layout {
  grid-template-columns: minmax(0,1fr) !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
body.sj3-ready .sj3-main {
  box-sizing:border-box!important;
  grid-column: 1 / -1 !important;
  width:100%!important;
  min-width:0!important;
  flex:1 1 100%!important;
}
body.sj3-ready .sj3-sort-container {
  display:flex!important;
  flex-wrap:wrap;
  align-items:center!important;
  column-gap:11px!important;
  row-gap:9px;
}
body.sj3-ready .sj3-sort-container > .sj3-filter-toggle {
  margin-inline-start:auto!important;
}
body.sj3-ready .sj3-filter-toggle {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:45px;
  padding:10px 17px;
  white-space:nowrap;
  border:1px solid #d5ab95;
  border-radius:13px;
  color:var(--sj3-plum);
  background:linear-gradient(115deg,#fffdfb,#fff4ec);
  font:750 14px/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.015em;
  box-shadow:0 3px 8px rgba(83,43,28,.04);
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
  flex:0 0 auto;
}
body.sj3-ready .sj3-filter-toggle:hover,
body.sj3-ready .sj3-filter-toggle:focus-visible {
  background:#f8e4d6;
  border-color:var(--sj3-copper);
  box-shadow:0 5px 15px rgba(83,43,28,.10);
}
body.sj3-ready .sj3-filter-toggle[aria-expanded="true"] {
  background:var(--sj3-plum);
  color:#fff;
  border-color:var(--sj3-plum);
}
body.sj3-ready .sj3-filter-icon{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body.sj3-ready .sj3-filter-pill {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 5px;border-radius:50px;
  background:#a95435;color:#fff;font-size:11px;font-weight:850;
}
body.sj3-ready .sj3-filter-toggle[aria-expanded="true"] .sj3-filter-pill {background:#fff;color:var(--sj3-plum);}
/* The old floating filter button and its backdrop belong to V2; disable only after V3 initializes. */
body.sj3-ready .sj2-floating-trigger,
body.sj3-ready .sj2-drawer-backdrop,
body.sj3-ready .sj-mobile-filter-toggle { display:none!important; }
/* The filter is a removable overlay; it must never consume a grid column. */
body.sj3-ready .sj3-sidebar,
body.sj3-ready.sj2-collection-ready .sj2-sidebar.sj3-sidebar {
  box-sizing:border-box!important;
  display:block!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  position:fixed!important;
  z-index:2147482002!important;
  width:min(404px,calc(100vw - 28px))!important;
  max-width:min(404px,calc(100vw - 28px))!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  top:14px!important;
  right:14px!important;
  bottom:14px!important;
  left:auto!important;
  margin:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  border-radius:21px!important;
  box-shadow:0 25px 85px rgba(35,21,16,.28)!important;
  transform:translateX(calc(100% + 34px))!important;
  transition:transform .27s cubic-bezier(.2,.8,.25,1),opacity .23s ease,visibility .23s ease!important;
  overscroll-behavior:contain;
}
body.sj3-ready.sj3-open .sj3-sidebar,
body.sj3-ready.sj2-collection-ready.sj3-open .sj2-sidebar.sj3-sidebar {
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  transform:translateX(0)!important;
}
body.sj3-ready .sj3-backdrop {
  display:block;position:fixed;inset:0;z-index:2147482001;
  background:rgba(24,15,13,.44);
  backdrop-filter:blur(3px);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .23s ease,visibility .23s ease;
}
body.sj3-ready.sj3-open .sj3-backdrop{opacity:1;visibility:visible;pointer-events:auto;}
body.sj3-ready.sj3-open{overflow:hidden!important;}
body.sj3-ready .sj3-sidebar .sj2-panel-head,
body.sj3-ready .sj3-sidebar .sj3-panel-head {
  display:flex!important;
  align-items:center;
  position:sticky!important;
  top:-22px!important;
  z-index:4!important;
  gap:9px;
}
body.sj3-ready .sj3-sidebar .sj2-drawer-close {display:none!important;}
body.sj3-ready .sj3-sidebar .sj3-close {
  appearance:none;
  flex:0 0 34px;
  display:grid!important;
  place-items:center;
  width:34px;
  height:34px;
  min-height:34px;
  border:1px solid rgba(255,255,255,.38);
  color:#fff;
  border-radius:50px;
  background:rgba(255,255,255,.12);
  font:normal 25px/1 system-ui,sans-serif;
  cursor:pointer;
  margin-inline-start:auto;
}
body.sj3-ready .sj3-sidebar .sj3-close:hover,
body.sj3-ready .sj3-sidebar .sj3-close:focus-visible{background:rgba(255,255,255,.25);outline:2px solid #fff;outline-offset:2px;}
body.sj3-ready .sj3-sidebar .sj3-panel-head {
  padding:17px 18px;margin:-22px -19px 18px;
  background:linear-gradient(105deg,#4c2421,#783a30);
  border-radius:18px 18px 0 0;color:#fff;
}
body.sj3-ready .sj3-sidebar .sj3-panel-head strong{color:#fff;font:750 14px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;}
@media(max-width:700px){
  body.sj3-ready .sj3-sort-container > :first-child:not(.sj3-filter-toggle):not(select):not(label) {
    flex:1 1 100% !important;
    width:100%;
    margin:0 !important;
  }
  body.sj3-ready .sj3-sidebar,
  body.sj3-ready.sj2-collection-ready .sj2-sidebar.sj3-sidebar{
    width:100%!important;
    max-width:100%!important;
    left:0!important;right:0!important;
    top:auto!important;bottom:0!important;
    height:min(86dvh,780px)!important;
    max-height:min(90dvh,820px)!important;
    border-radius:21px 21px 0 0!important;
    transform:translateY(110%)!important;
  }
  body.sj3-ready.sj3-open .sj3-sidebar,
  body.sj3-ready.sj2-collection-ready.sj3-open .sj2-sidebar.sj3-sidebar{
    transform:translateY(0)!important;
  }
  body.sj3-ready .sj3-filter-toggle {min-height:44px;padding:9px 13px;font-size:13px;gap:7px;}
  body.sj3-ready .sj3-sort-container {gap:8px!important;}
  body.sj3-ready .sj3-sort-container > select {max-width:min(100%,175px);}
  body.sj3-ready .sj3-sidebar .sj2-panel-head,
  body.sj3-ready .sj3-sidebar .sj3-panel-head{top:-21px!important;}
}
@media(max-width:420px){
  body.sj3-ready .sj3-sort-container {justify-content:flex-end!important;}
  body.sj3-ready .sj3-sort-container .sj3-filter-toggle {margin-left:auto!important;}
  body.sj3-ready .sj3-sort-container select {max-width:145px!important;min-width:0!important;}
}
@media(prefers-reduced-motion:reduce){
  body.sj3-ready .sj3-sidebar,
  body.sj3-ready .sj3-backdrop,
  body.sj3-ready .sj3-filter-toggle {transition:none!important;}
}