/* Custom Filter Menu Styles - Consolidated */


/* Main filter menu container */
#cfm-filter-menu { 
    margin-bottom: 20px; 
}

/* Filter buttons and dropdowns */
.cfm-filter-btn, .cfm-filter-dropdown { 
    margin-right: 10px; 
}

/* Load more button - hidden for automatic infinite scroll */
#cfm-load-more { 
    padding: 10px 20px; 
    margin-top: 20px;
    display: none !important; 
}

/* Hide skip default variations button toggle */
#cfm-skip-default-container { 
    display: none !important; 
}

/* Results container - flexbox layout */
#cfm-results {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

/* Individual filter items */
.cfm-item {
    position: relative; /* needed for positioning sale badge */
    width: 200px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background: #fff;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

/*container*/
div#cfm-results div.cfm-item.result-item {
	padding: 10px!important;
	max-width: 300px;
}

.noresults {
margin-top: auto!important;
  margin-bottom: auto!important;
}

.cfm-item:hover {
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Item link wrapper */
.cfm-item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cfm-item-link:hover {
    color: #981A1C;
}

/* Sale badge */
.cfm-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: white;
    font-weight: 700;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    pointer-events: none; /* so clicks pass through */
}

/* Item thumbnail */
.cfm-item-thumb {
    height: 100px;
    width: 100%;
    background-size: cover;
    background-position: center center;
    flex-shrink: 0;
}

/* Item title */
.cfm-item-title {
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.cfm-item-title a {
    text-decoration: none;
    color: #333;
    display: block;
}

.cfm-item-title a:hover {
    color: #981A1C;
}

/* Item price */
.cfm-item-price {
    font-weight: 700;
    color: #840405;
margin-top: auto!important;
    font-size: 14px;
}

/* Item categories */
.cfm-item-cats {
    font-size: 12px;
    margin: 5px 10px;
    color: #666;
    font-style: italic;
}

/* Item description */
.cfm-item-desc {
    font-size: 13px;
    margin: 0px;
    line-height: 1.4;
    color: #444;
}

/* Read more link */
.cfm-desc-readmore {
    cursor: pointer;
    color: #840405;
    text-decoration: underline;
    font-size: 12px;
}

.cfm-desc-readmore:hover {
    color: #981A1C;
}

/* Item date */
.cfm-item-date {
    font-size: 12px;
    color: #777;
margin-top: auto;
}

/* ==== ADDITIONAL CFM STYLES FROM MAIN THEME ==== */

/* Hide stock status and read more in CFM items */
.cfm-stock-status {
    display: none !important;
}

.cfm-desc-readmore {
    display: none !important;
}

/* Hide specific filter dropdowns and search - commented out for development */
/*
.cfm-toggle-variations {
   display: none !important;
}
#cfm-variations-toggle-container {
    display: none !important;
}*/
#cfm-search {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="product_visibility"] {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="pa_colour"] {
    display: none !important;
}
select.cfm-filter-dropdown[data-tax="pa_size"] {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="product_tag"] {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="results-list"] {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="product_type"] {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="product_brand"] {
  display: none !important;
}
select.cfm-filter-dropdown[data-tax="product_shipping_class"] {
  display: none !important;
}



/* Hide CFM dropdowns on specific pages */
div.newspage * select.cfm-filter-dropdown {
    display: none !important;
}
div.newspage * #cfm-search-container {
    display: none !important;
}
div.shoppage * select.cfm-filter-dropdown {
    display: none !important;
}

/* CFM item customizations */
.cfm-item {
    width: 200px !important;
    flex-grow: 1;
}

.cfm-item-price {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 0.6em !important;
    padding-left: 10px !important;
}

.cfm-item-cats {
    width: 100% !important;
    display: none !important;
}

.cfm-desc-short {
    width: 100% !important;
    display: none !important;
}

.cfm-item-thumb {
    height: 200px !important;
}

.cfm-item-title {
    margin-bottom: 10px !important;
}

.cfm-item-desc {
    padding-left: 10px;
    padding-right: 10px;
}

.cfm-item-date {
    padding-left: 10px;
    padding-right: 10px;
}

div.cfm-item * .cfm-item-date {
    text-emphasis: none !important;
}

/* CFM filter menu layout and styling */
#cfm-filter-menu > p {
    margin: 28px 10px auto !important;
}

#cfm-sort-container {
    margin-left: -10px !important;
}

.cfm-filter-btn, .cfm-filter-dropdown {
    margin-bottom: 10px;
}

#cfm-filter-menu {
    margin-bottom: 20px !important;
    flex-direction: row !important;
    width: 100% !important;
}

/* Price slider styling */
#cfm-price-slider {
    background-color: #CECACA !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    border-radius: 5px !important;
}

input[type=range]::-webkit-slider-runnable-track,
input[type=range]::-moz-range-track {
    background-color: #BBBBBB !important;
}

#cfm-price-value {
    font-size: 0.5em !important;
    font-weight: 400 !important;
    padding: 0px 10px 0px 10px !important;
}

/* CFM Results container */
#cfm-results {
    width: 100% !important;
}