/* Gem Filter - instant shop filter UI */
.gemf-bar { margin: 0 0 20px; }
.gemf-bar .gemf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px !important; min-height: 0 !important; background: #e8f1fb !important; color: #1d2c5e !important; border: 0 !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important; box-shadow: none !important; cursor: pointer; transition: background .2s; }
.gemf-bar .gemf-btn:hover { background: #d8e7f8 !important; color: #1d2c5e !important; }
.gemf-btn.gemf-loading { opacity: .6; pointer-events: none; }
.gemf-noscroll, .gemf-noscroll body { overflow: hidden; }

.gemf-overlay { position: fixed; inset: 0; background: rgba(18, 24, 43, .45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 1400; }
.gemf-overlay.gemf-open { opacity: 1; visibility: visible; }

.gemf-panel { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 90vw); background: #fff; z-index: 1401; transform: translateX(-100%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: 6px 0 40px rgba(15, 20, 40, .16); }
.gemf-panel.gemf-open { transform: none; }

.gemf-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1d2c5e; }
.gemf-panel .gemf-x { background: none !important; border: 0 !important; font-size: 26px !important; line-height: 1 !important; color: #9aa0ab !important; cursor: pointer; padding: 0 2px !important; box-shadow: none !important; min-height: 0 !important; height: auto !important; transition: color .15s; }
.gemf-panel .gemf-x:hover { color: #1d2c5e !important; }

.gemf-body { flex: 1; overflow-y: auto; padding: 0 22px 22px; scrollbar-width: thin; }
.gemf-sec { margin-top: 20px; }
.gemf-sec h4 { margin: 0 0 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8f9a; }

/* Compact, soft inputs - override theme sizing */
.gemf-panel input[type=search], .gemf-panel input[type=number], .gemf-panel select { width: 100%; height: 36px; padding: 0 12px; border: 1px solid #e4e6ea; border-radius: 9px; font-size: 13px; color: #333; background: #fafbfc; box-shadow: none; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.gemf-panel input[type=search]:focus, .gemf-panel input[type=number]:focus, .gemf-panel select:focus { border-color: #1d2c5e; background: #fff; outline: none; }
.gemf-panel select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8f9a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }

.gemf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gemf-panel .gemf-chip { padding: 6px 13px !important; border: 1px solid #e4e6ea !important; border-radius: 999px !important; background: #fff !important; font-size: 12px !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: #555 !important; cursor: pointer; transition: all .15s; line-height: 1.4 !important; box-shadow: none !important; min-height: 0 !important; height: auto !important; }
.gemf-panel .gemf-chip:hover { border-color: #1d2c5e !important; color: #1d2c5e !important; }
.gemf-panel .gemf-chip.on { background: #1d2c5e !important; border-color: #1d2c5e !important; color: #fff !important; }
.gemf-panel .gemf-chip.off { opacity: .3; pointer-events: none; }

.gemf-check { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; font-size: 13px; color: #444; cursor: pointer; line-height: 1.4; }
.gemf-check input { width: 15px; height: 15px; margin: 0; accent-color: #1d2c5e; flex: 0 0 auto; }
.gemf-check.off { opacity: .35; }

.gemf-range-vals { display: flex; gap: 8px; margin-bottom: 8px; }
.gemf-slider { position: relative; height: 22px; }
.gemf-track { position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; height: 3px; border-radius: 2px; background: #e9ebef; }
.gemf-fill { position: absolute; top: 50%; transform: translateY(-50%); height: 3px; border-radius: 2px; background: #1d2c5e; }
.gemf-slider input[type=range] { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; margin: 0; height: 0; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; outline: none; }
.gemf-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 1.5px solid #1d2c5e; box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }
.gemf-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid #1d2c5e; box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }

.gemf-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid #f0f1f3; }
.gemf-panel .gemf-reset { padding: 0 16px !important; height: 38px !important; min-height: 0 !important; border: 1px solid #e4e6ea !important; border-radius: 9px !important; background: #fff !important; color: #666 !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer; transition: all .15s; }
.gemf-panel .gemf-reset:hover { border-color: #1d2c5e !important; color: #1d2c5e !important; }
.gemf-panel .gemf-view { flex: 1; height: 38px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 9px !important; background: #1d2c5e !important; color: #fff !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer; transition: background .2s; }
.gemf-panel .gemf-view:hover { background: #16224a !important; }

.gemf-more-wrap { text-align: center; margin: 6px 0 34px; }
.gemf-more-wrap .gemf-more { padding: 12px 34px !important; border: 0 !important; border-radius: 999px !important; background: #1d2c5e !important; color: #fff !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .04em !important; text-transform: uppercase !important; box-shadow: none !important; cursor: pointer; }
.gemf-more-wrap .gemf-more:hover { background: #16224a !important; }
.gemf-empty { width: 100%; padding: 50px 0; text-align: center; font-size: 15px; color: #666; }

/* Hide Woodmart's leftover sidebar filter toggles (old filter removed) */
.post-type-archive-product .wd-sidebar-opener,
.post-type-archive-product .wd-toolbar-sidebar,
.post-type-archive-product .wd-show-sidebar-btn,
.tax-product_cat .wd-sidebar-opener,
.tax-product_cat .wd-toolbar-sidebar,
.tax-product_cat .wd-show-sidebar-btn { display: none !important; }
/* gemf-search-cap: keep the search field compact */
.gemf-panel input[type=search] { max-width: 200px; height: 34px; }
