/* STICKY STYLES (desktop only) */
.filter-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #032651;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* BASE FORM LAYOUT */
#wc-product-filters-form {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* HIDE TOGGLE BUTTON BY DEFAULT */
.filter-toggle-btn {
    display: none;
}

/* SELECTS AND RESET LINK STYLING */
#wc-product-filters-form select,
#wc-product-filters-form a {
    min-width: 180px !important;
    margin: 0 !important;
    padding: 10px 20px;
    background: transparent;
    color: #c38d1d;
    border: 1px solid #c38d1d;
    -webkit-border-radius: var(--radius-size);
    -moz-border-radius: var(--radius-size);
    border-radius: var(--radius-size);
}

/* CUSTOM ARROW ON SELECT */
#wc-product-filters-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path fill='%23c69f5c' d='M0 0l5 6 5-6' /></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px 6px;
    padding-right: 2.5rem;
    border: 1px solid #c38d1d;
    color: #c38d1d;
    background-color: transparent;
}

/* HIDE IE/EDGE DEFAULT ARROW */
#wc-product-filters-form select::-ms-expand {
    display: none;
}

/* OFF-CANVAS FILTER (mobile <768px) */
@media (max-width: 767px) {
    .filter-container.sticky {
        position: static !important;
        top: auto;
        left: auto;
        width: auto;
    }
    .filter-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background-color: #032651;
        padding: 30px;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
        transform: translateX(-100%); /* slide off-canvas to the left */
    }
    .filter-container.open {
        display: flex;
        transform: translateX(0);
    }
    #filter-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    #filter-overlay.active {
        display: block;
    }
    .filter-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 30px;
        bottom: 30px;
        z-index: 1002;
        background: #c38d1d;
        border: none;
        padding: 0.5rem;
        border-radius: 4px;
        color: #ffffff;
        font-size: 1em !important;
        cursor: pointer;
    }
    .filter-toggle-btn .dashicons {
        font-size: 20px;
    }
}

/* GENERAL: spacer height handled via JS */
@media (min-width: 768px) {
    /* nothing extra here */
}
