/* SHOP PAGE STYLES */

/* WooCommerce ordering select — styled to match template */
.woocommerce-ordering {
  margin: 0;
}
.woocommerce-ordering select.orderby {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23555' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--color-border, #e8edf2);
  border-radius: var(--rounded-md, 6px);
  color: var(--color-ink, #212529);
  cursor: pointer;
  font-family: var(--font-family, 'Poppins', sans-serif);
  font-size: 13px;
  font-weight: 500;
  height: 40px;
  padding: 0 36px 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 180px;
}
.woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select.orderby:focus {
  border-color: var(--color-primary, #4770c2);
  box-shadow: 0 0 0 3px rgba(71, 112, 194, 0.12);
  outline: none;
}

@media (max-width: 992px) {
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 24px;
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  .shop-sidebar.active {
    left: 0;
  }
  .filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .filters-overlay.active {
    display: block;
  }
}



/* --- SHOP HEADER --- */
.shop-header-card {
  background: linear-gradient(135deg, #f0f4f8 0%, #dce4ea 100%);
  border-radius: 32px;
  box-shadow:
    0 24px 48px rgba(18, 20, 24, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 2;
  text-align: center;
  margin: 100px 5% 25px;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px);
}

.shop-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
  pointer-events: none;
}

.shop-header-card > * {
  position: relative;
  z-index: 2;
}


/* Price range slider */
.ctx-range-slider-wrap { padding: 4px 0 8px; }
.range-slider-track {
  position: relative;
  height: 4px;
  background: rgba(18,20,24,.12);
  border-radius: 2px;
  margin: 26px 0 10px;
}
.range-slider-fill {
  position: absolute;
  top: 0; height: 100%;
  background: var(--color-primary,#4770c2);
  border-radius: 2px;
  pointer-events: none;
}
/*
 * Dual-range price slider — cross-browser approach.
 * Both inputs span the full track width; z-index (set by JS) controls
 * which thumb is grabbable at any position. pointer-events: none is
 * intentionally NOT used because Firefox ignores it on pseudo-elements.
 */
.range-slider-track input[type=range] {
  position: absolute;
  left: 0; width: 100%;
  top: 50%; transform: translateY(-50%);
  height: 20px;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  pointer-events: none; /* block track clicks; thumb re-enables via all */
  margin: 0; padding: 0; border: none; outline: none;
  touch-action: none; /* prevent scroll-hijack on mobile */
}
/* Firefox: pointer-events on pseudo-elements is not supported,
   so make the whole input interactive in Firefox only */
@supports (-moz-appearance: none) {
  .range-slider-track input[type=range] {
    pointer-events: all;
    cursor: pointer;
  }
}
/* WebKit / Blink thumb */
.range-slider-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  pointer-events: all;
  width: 20px; height: 20px;
  background: #fff;
  border: 2px solid var(--color-primary, #4770c2);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  transition: box-shadow .15s;
}
.range-slider-track input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(71, 112, 194, .18);
}
.range-slider-track input[type=range]:active::-webkit-slider-thumb {
  cursor: grabbing;
  box-shadow: 0 0 0 6px rgba(71, 112, 194, .25);
}
.range-slider-track input[type=range]::-webkit-slider-runnable-track {
  height: 0; background: transparent;
}
/* Firefox thumb */
.range-slider-track input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  background: #fff;
  border: 2px solid var(--color-primary, #4770c2);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}
.range-slider-track input[type=range]:active::-moz-range-thumb { cursor: grabbing; }
.range-slider-track input[type=range]::-moz-range-track { height: 0; background: transparent; }
.range-slider-track input[type=range]::-moz-range-progress { height: 0; background: transparent; }
.range-slider-track input[type=range]:focus { outline: none; }

/* Price range footer row: label + Filter button */
.price-range-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* ── Inline Style Migrations ── */
.shop-header-title { margin-bottom: 16px; font-size: clamp(32px, 5vw, 56px); }
.shop-header-desc { max-width: 600px; margin: 0 auto; }
.shop-layout-section { padding-top: var(--spacing-section-sm); }
.filter-drawer-header { display: none; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(18,20,24,.08); }
.filter-drawer-title { font-size: 18px; margin: 0; }
.filter-close-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--color-ink-deep); display: flex; }
.shop-toolbar-right { display: flex; align-items: center; gap: 12px; }
.mobile-filter-toggle { display: none; align-items: center; gap: 6px; }
