/* =============================================================================
   Pill Filter Bar — products-list (desktop md+)
   Header Restyling — all pages
   ============================================================================= */

/* ---- Pill bar layout ---- */
.pf-bar-wrap {
  position: relative;
  padding: 14px 0 8px;
  border-bottom: 1px solid #ededea;
  margin-bottom: 20px;
}

.pf-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pf-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #b0b0b0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Pills ---- */
.pf-pill-wrap {
  position: relative;
}

button.pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e0e0dc;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 14px;
  color: #3a3a3a;
  cursor: pointer;
  font-family: 'Jost', 'Open Sans', sans-serif;
  white-space: nowrap;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1;
  outline: none;
}

button.pf-pill:hover {
  border-color: #C2982B;
}

button.pf-pill.pf-active {
  border-color: #C2982B;
  color: #2e2e2e;
}

button.pf-pill.pf-open {
  border-color: #C2982B;
  box-shadow: 0 0 0 2px rgba(194,152,43,.18);
}

.pf-badge {
  background: #C2982B;
  color: #fff;
  border-radius: 9px;
  padding: 1px 7px;
  font-size: 11px;
  font-family: 'Oswald', sans-serif;
  line-height: 1.6;
}

.pf-arrow {
  font-size: 9px;
  color: #9a9a9a;
}

/* ---- Dropdown panels ---- */
.pf-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e8e8e4;
  padding: 8px 4px;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.pf-panel.pf-open {
  display: block;
}

/* Sort panel aligns right */
.pf-sort-wrap .pf-panel {
  left: auto;
  right: 0;
  padding: 6px 0;
}

/* ---- Filter option items (links) ---- */
a.pf-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #3a3a3a;
  font-family: 'Jost', 'Open Sans', sans-serif;
  border-radius: 4px;
  transition: background .1s;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}

a.pf-check-item:hover {
  background: #fafaf8;
  color: #2e2e2e;
}

.pf-check-box {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 1.5px solid #d0d0ca;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background .1s, border-color .1s;
  flex-shrink: 0;
}

a.pf-check-item.pf-selected .pf-check-box {
  background: #C2982B;
  border-color: #C2982B;
}

a.pf-check-item.pf-selected .pf-check-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* ---- Sort option items ---- */
.pf-sort-option {
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Jost', 'Open Sans', sans-serif;
  color: #3a3a3a;
  cursor: pointer;
  transition: background .1s;
  white-space: nowrap;
}

.pf-sort-option:hover {
  background: #fafaf8;
}

.pf-sort-option.pf-sort-active {
  color: #C2982B;
  font-weight: 500;
}

/* Sort pill at far right */
.pf-sort-wrap {
  margin-left: auto;
}

/* ---- Overlay for outside-click close ---- */
#pf-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 199;
  display: none;
}
#pf-overlay.active {
  display: block;
}

/* ---- Active filter chips ---- */
.pf-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

a.pf-chip,
span.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faf6ea;
  border: 1px solid #e6d9b4;
  color: #9a751c;
  border-radius: 24px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: 'Jost', 'Open Sans', sans-serif;
  white-space: nowrap;
  text-decoration: none;
}

a.pf-chip:hover {
  background: #f5edcd;
  color: #7a5a0e;
  text-decoration: none;
}

.pf-chip-remove {
  color: #b0881e;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
}

.pf-chip-remove:hover {
  color: #7a5a0e;
  text-decoration: none;
}

a.pf-chip-clear {
  background: #f7f7f5;
  border-color: #e0e0dc;
  color: #9a9a9a;
}

a.pf-chip-clear:hover {
  background: #faf6ea;
  border-color: #e6d9b4;
  color: #9a751c;
}

/* ---- Price panel ---- */
.pf-price-panel {
  min-width: 280px;
  padding: 16px 12px 12px;
  overflow: visible;
}

.pf-price-display {
  font-size: 14px;
  font-family: 'Jost', 'Open Sans', sans-serif;
  color: #3a3a3a;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 500;
}

.pf-price-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pf-price-input {
  flex: 1;
  border: 1px solid #e0e0dc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: 'Jost', 'Open Sans', sans-serif;
  text-align: center;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}

.pf-price-input:focus {
  border-color: #C2982B;
}

.pf-price-input::-webkit-outer-spin-button,
.pf-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pf-price-sep {
  color: #9a9a9a;
  font-size: 12px;
  white-space: nowrap;
}

.pf-price-apply {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #2e2e2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}

.pf-price-apply:hover {
  background: #C2982B;
}

.pf-range-wrap {
  margin: 0 2px 14px;
}
.pf-range {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0dc;
  border-radius: 2px;
  outline: none;
  display: block;
  margin: 10px 0;
  accent-color: #C2982B;
  cursor: pointer;
}
.pf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C2982B;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.pf-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C2982B;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

/* =============================================================================
   Header Restyle — Desktop
   (mobile_header_v2.css already hides .header-wrap at ≤991px)
   ============================================================================= */

/* Sticky main nav */
.header-wrap.upper-text {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  border-bottom: 1px solid #ededea;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Subtle topbar background */
.header-topbar {
  background: #f7f7f5;
  border-bottom: 1px solid #ededea;
}

/* Nav link gold hover */
.primary-navbar > li > a:hover,
.primary-navbar > li > a:focus {
  color: #C2982B !important;
  background: transparent !important;
}

/* Mega menu: gold top border + box shadow */
.mega-dropdown-menu {
  border-top: 2px solid #C2982B !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  border-radius: 0 0 6px 6px !important;
}

/* Category title gold in mega menu */
.title-subcat {
  color: #C2982B !important;
  font-family: 'Oswald', sans-serif !important;
  letter-spacing: 1px;
}

/* Offers label keeps red */
.offersLabel {
  color: inherit;
}

/* =============================================================================
   Sidebar Filter — accordion style (desktop sticky, mobile drawer)
   ============================================================================= */

.sidebar.with-border {
  top: 42px;
  overflow-y: auto;
  padding-right: 8px;
}

.sf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid #595959;
  margin-bottom: 6px;
}

.sf-title {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2e2e2e;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sf-clear {
  font-size: 12.5px;
  color: #9a9a9a;
  letter-spacing: .3px;
  text-decoration: none;
  border-bottom: 1px solid #c8c8c8;
}
.sf-clear:hover {
  color: #c0392b;
  border-color: #c0392b;
  text-decoration: none;
}

.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 0;
  border-bottom: 1px solid #ededea;
  margin-bottom: 4px;
}

.sf-section {
  border-bottom: 1px solid #ededea;
}

.sf-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2e2e2e;
  text-align: left;
  outline: none;
  transition: color .15s;
}
.sf-toggle:hover {
  color: #C2982B;
}

.sf-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #C2982B;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  text-transform: none;
}

.sf-caret {
  font-size: 10px;
  color: #b0b0b0;
  transition: transform .2s;
  display: inline-block;
  transform: rotate(0deg);
}
.sf-caret.sf-open {
  transform: rotate(180deg);
}

.sf-body {
  padding: 0 2px 16px;
}

a.sf-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 4px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  color: #3a3a3a;
  text-decoration: none;
  font-family: 'Jost', 'Open Sans', sans-serif;
  transition: background .1s;
}
a.sf-item:hover {
  background: #faf8f1;
  color: #2e2e2e;
  text-decoration: none;
}

.sf-check {
  position: relative;
  width: 17px;
  min-width: 17px;
  height: 17px;
  border: 1.5px solid #cfcfca;
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
  transition: background .1s, border-color .1s;
}
a.sf-item.sf-sel .sf-check {
  background: #C2982B;
  border-color: #C2982B;
}
a.sf-item.sf-sel .sf-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.sf-price-display {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: .5px;
  color: #2e2e2e;
  text-align: center;
  margin-bottom: 16px;
  padding-top: 6px;
}
