/* ============================================================================
   Collection hero
   ============================================================================
   The beige header on collection pages - title, description, Quick Search
   chips, Advanced Search, price slider, Submit / Reset, and the image on the
   right. Lifted verbatim out of the inline <style> block that sat at the top
   of template-shop-archive.php, so it can be shared with the shop and shop
   search pages through includes/collection-hero.php.

   The one change: the hero image was a PHP echo inside the CSS
   (background-image: url('<banner_url>')), which a static file cannot do.
   It is now var(--rk-hero-image), set inline on .collection-hero-image by
   the partial.
   ============================================================================ */

.collection-hero-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #f2ece1; 
    margin-bottom: 40px;
    align-items: stretch;
    padding: 40px; 
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 2em;
}

.woo-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

.collection-hero-content {
    flex: 1.2;
    padding: 20px 60px 20px 20px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}
.collection-hero-image {
    flex: 1;
    min-width: 350px;
    background-image: var(--rk-hero-image, none);
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

/* Typography Adjustments */
.collection-hero-content h1 {
    font-family: "Futura Light BT", serif;
    font-size: 3rem; /* Reduced from 4rem */
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
    display: inline-block;
    margin-bottom: 30px;
    padding-right: 10px; 
    letter-spacing: -0.5px;
}

.hero-accordion-item {
    border-bottom: none; /* Removed the row border */
    padding: 8px 0;
}

.hero-acc-trigger {
    display: flex; 
    justify-content: flex-start; /* Aligns items to the left */
    align-items: center;
    cursor: pointer;
    font-family: "Futura Light BT", serif;
    font-size: 1.6rem; /* Reduced from 2rem */
    color: #444;
    transition: color 0.3s;
}

.hero-acc-trigger:hover { color: #000; }

/* Icon positioning right next to text */
.hero-acc-trigger span { 
    font-size: 0.6rem; 
    margin-left: 12px; /* Pulls icon close to the label */
    transition: transform 0.3s; 
}

.hero-acc-trigger.active span { transform: rotate(180deg); }

.hero-acc-content {
    display: none;
    padding: 10px 0 20px 0;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
}

/* Price Bar styling remained consistent but tightened padding */
.hero-price-slider {
    margin-top: auto; 
    padding-top: 0;
}
.price-track {
    height: 2px; 
    background: #b5b5b5; 
    position: relative; 
    margin-bottom: 15px;
}
.price-handle {
    width: 14px; 
    height: 14px; 
    background: #777; 
    border: 2px solid #f2ece1;
    border-radius: 50%; 
    position: absolute; 
    top: -6px;
}
.price-labels {
    display: flex; 
    justify-content: space-between; 
    font-size: 9px; 
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

/* Pill List Layout */
.sizing-list, 
.sizing-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px 8px !important;
    padding: 0 !important;
    margin: 0 0 5px 0 !important;
    list-style: none !important;
}

/* Individual Pill Styling */
.sizing-list li, 
.sizing-cats li {
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #5e5e5e !important;
    background-color: #e0ddd5 !important; /* Light stone background */
    border-radius: 6px !important;
    padding: 8px 20px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}

/* Hover & Active States */
.section_wrapper .sizing-list li:hover, 
.section_wrapper .sizing-cats li:hover {
    background-color: #d1cfc7 !important;
    color: #000 !important;
}

/* Active state matches the "ACCENT" button in your design */
.sizing-list li.active, 
.sizing-cats li.active {
    background-color: #5e5e5e !important; /* Dark charcoal */
    color: #ffffff !important;
}

/* Sizing Cats 6 items: 3 per row */
@media (min-width: 768px) {
    .sizing-cats:has(li:nth-child(6)):not(:has(li:nth-child(7))) li {
        flex: 1 1 calc(33.333% - 3px);
        max-width: calc(33.333% - 3px);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sizing-list li, 
    .sizing-cats li {
        flex: 1 1 45%; /* Two pills per row on mobile */
        padding: 5px 5px !important;
    }

    /* Pill List Layout */
    .sizing-list, 
    .sizing-cats {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1!important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
}

@media (max-width: 768px) {
    .collection-hero-container { padding: 20px; flex-direction: column-reverse; }
    .collection-hero-content { padding: 30px 0; }
    .collection-hero-content h1 { font-size: 2.4rem; }
}
.sizing-list li, .sizing-cats li { border: 1px solid #838383; cursor: pointer; list-style-type: none; width: 10%; padding: 5px 10px; text-align: center; margin: 0 11px !important; color: #252525; margin:0!important;text-decoration:none;display:flex; align-items:center;justify-content:center;}
.sizing-list li:hover, .sizing-cats li:hover { text-decoration:none!important; }
.sizing-list li.active, .sizing-cats li.active { border: 1px solid #000 !important; background-color: #e2a727 !important; color: #000 !important; }
.section_wrapper .sizing-list li:hover, 
.section_wrapper .sizing-list li.active,
.section_wrapper .sizing-cats li:hover,
.section_wrapper .sizing-cats li.active {
background-color: #5a574e !important;
color: #ffffff !important;
transform: none !important;
}

.sizing-list, 
.sizing-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important; /* Spreads items to edges */
    gap: 4px !important; /* Consistent spacing between wrapped rows and items */
    padding: 0 !important;
    margin: 0 0 5px 0 !important;
    list-style: none !important;
}

/* Individual Pill Styling - Refined to fill space */
.sizing-list li, 
.sizing-cats li {
    flex: 1 1; /* Allows pills to grow and take up all available horizontal space */
    min-width: 120px; /* Prevents text from squishing on small screens */
    /* max-width: calc(25% - 10px); Limits growth so a single word doesn't span the whole row */

    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #5e5e5e !important;
    background-color: #e0ddd5 !important; /* Light stone background per brand guidelines */
    border-radius: 6px !important;
    padding: 5px 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

/* Specific logic for mobile: 2 items per row */
@media (max-width: 768px) {
    .sizing-list li, 
    .sizing-cats li {
        flex: 1 1 calc(50% - 10px);
        max-width: 48%;
        padding: 6px 5px !important;
        margin-bottom: 0!important;
    }
    #Content .sizing-list li { margin-bottom: 0!important; }
}

/* Hover State */
.sizing-list li:hover, 
.sizing-cats li:hover {
    background-color: #d1cfc7 !important;
    color: #000 !important;
}

/* Active State - Matches 'ACCENT' in image_d69174.png */
.sizing-list li.active, 
.sizing-cats li.active {
    background-color: #5e5e5e !important; /* Dark charcoal */
    color: #ffffff !important;
}


/* Price Slider */
.ais-RangeSlider-custom.noUi-target {
    height: 3px !important; /* Extremely thin line */
    background: #ebebe6 !important; /* Light cream/gray track */
    border: none !important;
    box-shadow: none !important;
    margin: 40px auto 60px auto!important; /* Added bottom margin for labels */
    /* max-width: 90%;
    width: 630px; */
    margin-left: 15px!important;
    margin-right: 0!important;
    width: 100%;
}

.ais-RangeSlider-custom .noUi-pips-horizontal {
top: -3px!important;
}

/* 2. The Active Range (The Gray Bar) */
.ais-RangeSlider-custom .noUi-connect {
    background: #8e8e8e !important; /* Solid medium gray */
}

/* 3. The Handles (Triple-Ring Effect) */
.ais-RangeSlider-custom .noUi-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    cursor: pointer;

    /* The layers: Dark Center -> White Ring -> Gray Outer Ring */
    background: #5e5e5e !important; 
    border: 3px solid #fff !important; 
    box-shadow: 0 0 0 1.5px #8e8e8e !important; 

    /* Centering logic */
    top: -9px !important; 
    right: -10px !important;

    transition: transform 0.2s ease;
}

/* Clear default noUiSlider decorations */
.ais-RangeSlider-custom .noUi-handle::before,
.ais-RangeSlider-custom .noUi-handle::after {
    display: none !important;
}

/* 4. Labels Below the Slider (Tooltips) */
.ais-RangeSlider-custom .noUi-tooltip {
    background: transparent !important;
    border: none !important;
    color: #5e5e5e !important;

    /* Design Requirements: Blair, Uppercase, Kerning */
    font-family: 'Blair', sans-serif !important;
    font-size: 10px !important;
    font-weight: bold;
    letter-spacing: 1.5px;

    /* Move below the track */
    bottom: 10px !important; 
    /* bottom: auto !important; */
    display: block !important;
}
.noUi-tooltip::after {
    display: none!Important;
}
/* Style the static milestone labels (Pips) */
.noUi-pips-horizontal {
    height: 40px !important;
    padding: 0 !important;
}

.noUi-value-horizontal {
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    color: #8e8e8e !important;
    letter-spacing: 1px;
    transform: translate(-50%, 25px) !important; /* Aligns them under the track */
}

/* 1. Hide all intermediate/density ticks */
.ais-RangeSlider-custom .noUi-marker-normal {
    display: none !important;
}

/* 2. Show only the milestone ticks (Large Markers) */
.ais-RangeSlider-custom .noUi-marker-large {
    display: block !important;
    background: #8e8e8e !important; /* Match your gray theme */
    width: 1px !important;
    height: 10px !important; /* Adjust height as needed */
    top: 3px !important; /* Adjust to sit perfectly above/on the track */
}

/* 3. Optional: Hide sub-markers if they appear */
.ais-RangeSlider-custom .noUi-marker-sub {
    display: none !important;
}



/* 5. Mobile Adjustments */
@media only screen and (max-width: 767px) {
    .ais-RangeSlider-custom.noUi-target {
        max-width: 80%;
    }
}
.search-content--price {
    padding-bottom: 0;
    justify-content:start!important;
}

/* Update this class in your <style> block */
.hero-acc-content {
    display: none;
    padding: 10px 15px 20px 0; /* Added right padding for scrollbar space */
    padding-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;

    /* NEW: Constrain height and allow scrolling */
    max-height: 150px!important;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar Styling (Webkit) */
.hero-acc-content::-webkit-scrollbar {
    width: 4px;
}
.hero-acc-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.hero-acc-content::-webkit-scrollbar-thumb {
    background: #8e8e8e; /* Match your gray theme */
    border-radius: 10px;
}
.hero-acc-content::-webkit-scrollbar-thumb:hover {
    background: #5e5e5e;
}

/* Ensure the image doesn't shrink smaller than the text column */
.collection-hero-image {
    flex: 1;
    min-width: 350px;
    background-image: var(--rk-hero-image, none);
    background-size: cover;
    background-position: center;
    min-height: 550px; /* Increased slightly to give the layout room */
}

/* Description Layout */
.hero-description-container {
    margin-bottom: 15px;
    position: relative;
}

.hero-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    transition: max-height 0.3s ease;
    font-family: "Futura Light BT", serif;
    line-height: unset;
}

/* Expanded State */
.hero-description-text.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    max-height: 70px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
}

/* Read More Button */
.hero-read-more-trigger {
    /* display: none; */
    opacity: 0;
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    /* font-family: 'Blair', sans-serif; */
    font-size: 10px;
    /* text-transform: uppercase;
    letter-spacing: 2px; */
    color: #777;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.hero-read-more-trigger:hover {
    background: none;
    color: #000;
    border-bottom-color: #000;
}
/* --- Advanced Search Layout --- */
.hero-acc-content .adv-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
    align-items: center;
}

/* 1. INPUT STYLING (Reused from Advanced Search) */
/* SKU Input */
.search-section-content--sku input {
    /* background: transparent !important;
    border: 1px solid #5e5e5e !important;
    border-radius: 0 !important;
    padding: 10px 15px !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    width: 100% !important;
    min-width: 200px; */

    background: none;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #686868;
    padding-left: 1em !important;
    padding-right: 1em !important;
    padding-top: 1em !important;
    text-transform: capitalize;
    font-size: 10px;
    box-sizing: content-box;
    font-family: 'Blair', sans-serif;
}

/* Dimension Inputs (Width/Length/Height) */
.dimensions-module {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dim-group {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

/* Specific styling for the number inputs to match image_8c5b30.png */
.dimensions-module input[type="number"] {
    width: 50px !important;
    height: 35px !important;
    border: 1px solid #5e5e5e !important;
    background: transparent !important;
    text-align: center !important;
    padding: 5px !important;
    font-family: 'Blair', sans-serif !important;
    font-size: 10px !important;
    -moz-appearance: textfield;
    margin: 0;
}
.dimensions-module input::-webkit-outer-spin-button,
.dimensions-module input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide the "FT" and "IN" labels if they are text nodes, 
or style them if they are elements. Assuming standard Algolia structure: */
.dimensions-module .ais-rangeFtInSelects {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 2. DROPDOWN STYLING */
.dropdowns-row {
    justify-content: flex-start;
    gap: 20px;
    position: relative; /* Context for z-index */
}

.custom-dropdown {
    position: relative;
    /* min-width: 150px; */
}

/* The Clickable Header */
.custom-dropdown h5.dropdown-trigger {
    border-bottom: 1px solid #5e5e5e;
    padding-bottom: 8px;
    margin-bottom: 0 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.custom-dropdown h5.dropdown-trigger:hover {
    color: #000;
    border-bottom-color: #000;
}

.custom-dropdown h5.dropdown-trigger span {
    font-size: 8px;
    transition: transform 0.3s ease;
}

.custom-dropdown.active h5.dropdown-trigger span {
    transform: rotate(180deg);
}

/* The Dropdown List (Hidden by default) */
.custom-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    z-index: 100;
    /* padding: 15px; */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-height: 250px;
    overflow-y: auto;
}
.dropdown-content [class^=ais-] {
    font-size: 9px!important;
}

.dropdown-content .search-content--origin {
    max-height: unset;
    overflow-y: unset;
}


/* Styling the Algolia List inside the dropdown */
.custom-dropdown .ais-RefinementList-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-dropdown .ais-RefinementList-item {
    margin-bottom: 8px;
    font-family: 'Blair', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-dropdown .ais-RefinementList-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-dropdown .ais-RefinementList-checkbox {
    border: 1px solid #ccc;
    width: 12px;
    height: 12px;
}
@media (max-width: 1024px) {

.collection-hero-image { display: none; }

}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-acc-content .search-filter-module.sku-module {width: 100%;}
    .section_wrapper .sizing-list li:hover, 
    .section_wrapper .sizing-cats li:hover {
        color: #5e5e5e !important;
        background-color: #e0ddd5 !important;
    }

    .section_wrapper .sizing-list li.active:hover, 
    .section_wrapper .sizing-cats li.active:hover {
        background-color: #5a574e !important;
        color: #ffffff !important;
        transform: none !important;
    }



    .hero-acc-content .adv-search-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .custom-dropdown {
        width: 100%;
    }
    .custom-dropdown .dropdown-content {
        width: 100%;
        position: relative; /* Push content down on mobile instead of floating */
        border: none;
        box-shadow: none;
        padding-left: 0;
    }

    .hero-acc-content {
        max-height: unset!important;
    }
    #Content .sizing-cats li {
        margin-bottom: 0!important;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    #Content .sizing-cats {
        margin-top: 5px!important;
    }
    #submit-refinements, #clear-refinements { text-align: center!important; width: unset!important;}
    .collection-hero-content { min-width: unset!important; }
}
/* --- Advanced Search Layout --- */
.adv-search-layout {
    display: flex;
    justify-content: space-between; /* Pushes columns apart */
    gap: 30px; 
    padding-bottom: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 auto; /* Centers the layout in the accordion */
}

/* LEFT COLUMN (Search & Dropdowns) */
.adv-left-col {
    /* CHANGED: Flex basis 45% prevents it from hogging all space */
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* min-height: 140px;  */
    gap: 15px; /* Minor tweak for optical alignment */
}

/* RIGHT COLUMN (Dimensions) */
.adv-right-col {
    /* CHANGED: Flex basis 45% ensures it gets equal visual weight */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px; 
    align-items: center; /* Keeps boxes aligned to the right */
}

/* --- LEFT COLUMN STYLES --- */

/* SKU Input */
.search-section-content--sku input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    font-family: "Futura Light BT", serif !important;
    font-size: 16px !important;
    font-style: italic !important;
    color: #333 !important;
    width: 100% !important;
    margin-bottom: auto; /* Pushes dropdowns to the bottom */
}

.search-section-content--sku input::placeholder {
    color: #888 !important;
    font-style: italic !important;
}

/* Dropdowns */
.adv-dropdowns-row {
    display: flex;
    justify-content: space-between; /* Ensures even spacing */
    gap: 10px; /* Slightly tighter gap */
    width: 100%;
    margin-top: 5px; /* Ensures gap between search and dropdowns */
}

.custom-dropdown {
    flex: 1;
    position: relative;
    min-width: 80px; /* Allow them to shrink slightly more */
}

.custom-dropdown h5.dropdown-trigger {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 0 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Blair', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    color: #5e5e5e !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-section-content { margin-top:0!important; margin-bottom: 0!important; margin: 0; padding-top: 0!important;}
/* --- RIGHT COLUMN STYLES --- */
.search-filter-module .sku-module {width: 100%}
.dim-group {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: auto;
}

body.archive.woocommerce .search-content--style {
    max-height: unset!important;
    overflow-y: unset!important;
}

.dim-group h5 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 2px !important;
    color: #5e5e5e !important;
    text-transform: uppercase;
    text-align: center;
}

.dim-group .search-section-content,
.dim-group .ais-RangeInput-form,
.dim-group .ais-rangeFtInSelects {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.ais-rangeFtInSelects input[type="number"].min-in, .ais-rangeFtInSelects input[type="number"].max-in {
    border-left: none !important;
    margin-left: 0 !important;
}

.dim-group input[type="number"] {
    width: 50px !important;
    height: 35px !important;
    /* background: #fff !important; */
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 5px !important;
    text-align: center !important;
    font-family: 'Blair', sans-serif !important;
    font-size: 10px !important;
    color: #000 !important;
    -moz-appearance: textfield;
    margin: 0 !important;
}

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

.dim-group span, 
.dim-group .ais-rangeInput-separator {
    font-family: 'Blair', sans-serif !important;
    font-size: 8px !important;
    color: #5e5e5e !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 2px;
}

/* --- MOBILE BREAKPOINT --- */
@media (max-width: 900px) {
    .adv-search-layout {
        flex-direction: column; /* Force stack on tablet portrait */
        gap: 40px;
        align-items: center;
    }

    .adv-left-col, .adv-right-col {
        flex: 1 1 auto;
        width: 100%;
        align-items: center; /* Center everything when stacked */
    }

    .adv-right-col {
        /* flex-direction: row; Put Width and Length Side-by-Side on Mobile */
        justify-content: space-around;
    }

    .search-section-content--sku input {
        text-align: center; /* Center placeholder on mobile */
    }
}
/* --- Submit & Clear Button Container --- */
.submit-clear-container {
    display: flex;
    justify-content: flex-start; /* LEFT ALIGNED */
    gap: 15px; 
    margin-top: 30px; 
    width: 100%;
    padding-left: 0;
}

/* Common Styles for Both Buttons */
#submit-refinements input, 
#clear-refinements button {
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important; /* Smaller, sharper text */
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: normal !important; /* Lighter weight for refinement */
    padding: 8px 0 !important; /* Much smaller padding */
    border-radius: 0px !important; /* Sharp corners match your input boxes */
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto !important; /* Let them shrink */
    outline: none;
    box-shadow: none !important;
    line-height: 1 !important;
    height: unset!important;
}

/* 1. The SUBMIT Button */
#submit-refinements input {
    background: none !important;
    color: #000000 !important;
    border: none;
    border-bottom: 1px solid #333 !important;
}

#submit-refinements input:hover {
    background: none!important;
    color: #000!important;
    font-weight: bold;
    border-color: #000 !important;
}

/* 2. The RESET Button */
#clear-refinements button {
    background-color: transparent !important;
    color: #888 !important; /* Subtler gray text */
    border: none !important; /* Very thin, light border */
}

#clear-refinements button:hover {
    border-color: #333 !important;
    color: #333 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .submit-clear-container {
        justify-content: center; /* Center on mobile usually looks better */
    }
}
#in-stock-toggle .mcb-wrap-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}
.in-stock-toggle-container {padding-left: 0!important;}

#in-stock-toggle .toggle-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 3px;
    justify-content: start;
    gap: 10px;
    align-items: baseline;
}

#in-stock-toggle .toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

#in-stock-toggle .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#in-stock-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: .3s;
}

#in-stock-toggle .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: .3s;
}

#in-stock-toggle input:checked + .slider {
    background-color: #1a1a1a;
}

#in-stock-toggle input:checked + .slider:before {
    transform: translateX(22px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #in-stock-toggle .toggle-container {
        flex-direction: column-reverse;
        align-items: center;
    }
}


/* ── No image ─────────────────────────────────────────────────────────────────
   The shop and shop search have no curated banner, so the partial renders the
   hero without the image half (.collection-hero-container--no-image). Rather
   than stretch the controls across the whole panel - they are designed for a
   half-width column, and a 1,400px price slider looks lost - the controls
   take the half the image would have had: title and description on the left
   (.hero-intro), Quick Search, Advanced Search, price and Submit / Reset on
   the right. Placement only; every mount point shop-2026.js uses is where it
   was in the markup. */
.collection-hero-container--no-image .collection-hero-content {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: start;
    padding-right: 20px;
}

.collection-hero-container--no-image .collection-hero-content > * {
    grid-column: 2;
    min-width: 0;
}

/* Spans every row the controls use, so the description sits right under the
   title instead of lining up with Advanced Search. */
.collection-hero-container--no-image .collection-hero-content > .hero-intro {
    grid-column: 1;
    grid-row: 1 / span 6;
}

/* A shorter measure than the column: the copy reads as a caption under the
   title rather than a paragraph running into the controls. */
.collection-hero-container--no-image .hero-intro .hero-description-text {
    max-width: 380px;
}

/* One column below the point where two no longer fit comfortably: intro,
   then the controls. */
@media (max-width: 1024px) {
    .collection-hero-container--no-image .collection-hero-content {
        grid-template-columns: minmax(0, 1fr);
    }
    .collection-hero-container--no-image .collection-hero-content > *,
    .collection-hero-container--no-image .collection-hero-content > .hero-intro {
        grid-column: 1;
        grid-row: auto;
    }
}

/* A search result page looks curated without it. The small label above the
   title, and the query in quotes in the title itself, say this is something
   someone typed rather than a collection. Same Blair caps as the SKU labels
   on the tiles. Collection pages pass no eyebrow and are unaffected. */
.hero-eyebrow {
    font-family: 'Blair', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    color: #8a8178;
    margin: 0 0 14px;
}

/* style.css gives the shop page a 75px gap under the header, there for the
   old refine panel. With the hero on top it is just empty space; collection
   pages have none. This file only loads where the hero renders. */
body.woocommerce-shop #Content:has(.collection-hero-container),
body.tax-pa_classification #Content:has(.collection-hero-container) {
    margin-top: 0;
}


/* A search term with no spaces (a long design code, a pasted URL) cannot
   wrap and ran out of the left column over the controls. Break it inside
   the column instead. */
.collection-hero-container--no-image .hero-intro { min-width: 0; }
.collection-hero-container--no-image .hero-intro h1 { overflow-wrap: anywhere; }
