/* Sidebar Widget Styling */
.widget_price_filter .price_slider {
    margin-bottom: 10px;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget_price_filter .button {
    background-color: #0d6efd;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.widget_rating_filter ul {
    list-style: none;
    padding: 0;
}

.widget_rating_filter li {
    margin-bottom: 0.5rem;
}

.widget_rating_filter a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.widget_rating_filter .star-rating {
    margin-right: 6px;
}

.widget_product_categories ul {
    padding-left: 0;
}

.widget_product_categories li {
    list-style: none;
    margin-bottom: 0.4rem;
}

/* Style Woo slider to look cleaner */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--wp--preset--color--secondary)!important; /* Filled */
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--wp--preset--color--secondary)!important; /* Dots */
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: var(--wp--preset--color--button-hover)!important; /* Fill in slider */
}


.widget_price_filter .ui-slider-horizontal {
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.widget_price_filter .ui-slider-range {
    background: #0d6efd;
}

.widget_price_filter .ui-slider-handle {
    background: #0d6efd;
    border: none;
    width: 16px;
    height: 16px;
    top: -5px;
    border-radius: 50%;
    cursor: pointer;
}

.widget_price_filter input[type="text"] {
    width: 40%;
    padding: 4px 8px;
    font-size: 0.85rem;
    text-align: center;
}

.tagcloud a {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 4px 10px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: 0.3s ease;
}

.tagcloud a:hover {
    background-color: var(--wp--preset--color--button-hover);
    color: #fff;
    border-color: var(--wp--preset--color--button-hover);
}

/* Active Filters Styling */
.woocommerce-active-filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.woocommerce-active-filters li {
    background: #f1f3f5;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.woocommerce-active-filters li a {
    text-decoration: none;
    margin-left: 8px;
    color: #dc3545;
    font-weight: bold;
    font-size: 1rem;
}

.woocommerce-active-filters li a:hover {
    color: #a71d2a;
}

/* Columns Grid */
.button .dropdown-item:link,
.columns-grid-archive .dropdown-item:visited {
  background-color: transparent;
}
.columns-grid-archive .dropdown-item:hover,
.columns-grid-archive .dropdown-item:focus {
  background-color: var(--wp--preset--color--secondary)!important;
  color:white;
}
.columns-grid-archive .dropdown-item:active {
  background-color: var(--wp--preset--color--secondary)!important;
  color:white;
}










/* Category Filter Inner Childs */
.widget_product_categories ul ul.children {
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid #ddd;
}
.widget_product_categories li {
    margin-bottom: 0.4rem;
}
/* Category Filter Inner Childs */





/* Sortby Dropdown Archive */
.custom-catalog-ordering select.orderby {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}
.custom-catalog-ordering select.orderby:hover,
.custom-catalog-ordering select.orderby:focus {
    border-color: #999;
    outline: none;
    background-color: #fff;
}

.custom-catalog-ordering label {
    font-weight: 500;
    margin-right: 8px;
    display: inline-block;
}
/* Sortby Dropdown Archive */






/* Ensure the flex container truly centers all children */
.d-flex.align-items-center {
  align-items: center !important; /* force vertical‐center */
}

/* Override the mt-2 on mobile selects so they don’t drop below */
.d-flex .d-block.d-sm-none.mt-2 {
  margin-top: 0 !important;
}

/* Make sure the selects themselves don’t add extra padding/margin */
.d-flex .form-select {
  align-self: center !important;   /* center within the flex line */
  margin-top: 0 !important;         /* remove any stray top margin */
}

/* If you still see a slight vertical offset on the dropdown button/icon,
   force it to use the same line‐height as the Filters button: */
.d-flex .dropdown-toggle {
  line-height: 1.5 !important;
  align-self: center !important;
}




/* Column & Grid Dropdowns */
/* 1) Focus state */
.form-select:focus {
  outline: none;  /* remove default focus ring */
  border-color: var(--wp--preset--color--secondary)!important;
  /* color:var(--wp--preset--color--secondary)!important; */
}

/* 2) Active (when you click & hold) */
.form-select:active {
  background-color: transparent!important;
}
