
/* =============================================
   Mobile Sticky Filter Button
   ============================================= */
@media screen and (max-width: 64rem) {

    /* Βγάζουμε το .mobile-filter από το flow */
    .before-shop-loop .mobile-filter {
        position: fixed !important;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
        margin: 0 !important;
        display: block !important;
    }

    /* Το κουμπί — κυκλικό, μόνο icon */
    .before-shop-loop .mobile-filter .filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background-color: var(--color-primary, #0a5c36);
        color: #fff !important;
        border-radius: 0 8px 8px 0;
        box-shadow: 2px 2px 8px rgba(0,0,0,.2);
        text-decoration: none;
        padding: 0;
        font-size: 1.1rem;
    }

    /* Κρύβουμε το κείμενο "Φίλτρα" */
    .before-shop-loop .mobile-filter .filter-toggle span {
        display: none !important;
    }

    /* Icon χρώμα */
    .before-shop-loop .mobile-filter .filter-toggle i {
        color: #fff;
        font-size: 1rem;
    }
}

/* =============================================
   GTH Category & Attributes Filter Widgets
   ============================================= */

/* --- Κουμπί Καθαρισμού Φίλτρων --- */
.gth-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-primary, #0a5c36);
    border: 1.5px solid var(--color-primary, #0a5c36);
    border-radius: 4px;
    padding: .35rem .75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: background .15s, color .15s;
    width: 100%;
    justify-content: center;
}

.gth-clear-filters:hover {
    background-color: var(--color-primary, #0a5c36);
    color: #fff;
    text-decoration: none;
}

.gth-clear-icon {
    font-size: .7rem;
}

/* --- Attributes --- */
.gth-attribute-filter {
    font-size: .875rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.gth-attribute-filter ul.gth-attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-info, #aaa) var(--color-info-light, #f0f0f0);
    padding-right: 4px;
}

.gth-attribute-filter ul.gth-attr-list::-webkit-scrollbar {
    width: 4px;
}

.gth-attribute-filter ul.gth-attr-list::-webkit-scrollbar-track {
    background: var(--color-info-light, #f0f0f0);
}

.gth-attribute-filter ul.gth-attr-list::-webkit-scrollbar-thumb {
    background-color: var(--color-info, #aaa);
    border-radius: 4px;
}

.gth-attribute-filter .gth-attr-item + .gth-attr-item {
    border-top: 1px solid var(--color-border, #f0f0f0);
}

.gth-attribute-filter .gth-cat-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
}

.gth-attribute-filter .gth-attr-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #c5cdd6;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, background .15s;
    margin: 0;
}

.gth-attribute-filter .gth-attr-checkbox:checked {
    background-color: var(--color-primary, #0a5c36);
    border-color: var(--color-primary, #0a5c36);
}

.gth-attribute-filter .gth-attr-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.gth-attribute-filter .gth-cat-row label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text);
    transition: color .15s;
    font-weight: 400;
}

.gth-attribute-filter .gth-cat-row label:hover,
.gth-attribute-filter .gth-attr-item.active > .gth-cat-row label {
    color: var(--color-primary, #0a5c36);
    font-weight: 600;
}

/* =============================================
   GTH Category Filter Widget
   ============================================= */

.gth-category-filter {
    font-size: .875rem;
    color: var(--color-text);
}

/* List reset */
.gth-category-filter ul.gth-cat-list,
.gth-category-filter ul.gth-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Children indented */
.gth-category-filter ul.gth-cat-children {
    padding-left: 1.25rem;
    border-left: 2px solid var(--color-border, #e8e8e8);
    margin-left: .45rem;
    margin-top: .25rem;
}

/* Row: checkbox + label + toggle */
.gth-category-filter .gth-cat-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
}

/* Checkbox */
.gth-category-filter .gth-cat-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #c5cdd6;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, background .15s;
    margin: 0;
}

.gth-category-filter .gth-cat-checkbox:checked {
    background-color: var(--color-primary, #0a5c36);
    border-color: var(--color-primary, #0a5c36);
}

.gth-category-filter .gth-cat-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Label */
.gth-category-filter .gth-cat-row label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text);
    transition: color .15s;
    font-weight: 400;
}

.gth-category-filter .gth-cat-row label:hover,
.gth-category-filter .gth-cat-item.current-cat > .gth-cat-row label {
    color: var(--color-primary, #0a5c36);
}

.gth-category-filter .gth-cat-item.current-cat > .gth-cat-row label {
    font-weight: 600;
}

/* Toggle button (+/−) */
.gth-category-filter .gth-toggle {
    background: none;
    border: 1px solid #c5cdd6;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-lighter, #666);
    padding: 0;
    transition: background .15s, color .15s, border-color .15s;
}

.gth-category-filter .gth-toggle:hover {
    background: var(--color-primary, #0a5c36);
    border-color: var(--color-primary, #0a5c36);
    color: #fff;
}

.gth-category-filter .gth-cat-item.open > .gth-cat-row .gth-toggle {
    background: var(--color-primary, #0a5c36);
    border-color: var(--color-primary, #0a5c36);
    color: #fff;
}

/* Spacing between top-level items */
.gth-category-filter ul.gth-cat-list > .gth-cat-item + .gth-cat-item {
    border-top: 1px solid var(--color-border, #f0f0f0);
}

/* Scroll για μεγάλη λίστα κατηγοριών */
.gth-category-filter ul.gth-cat-list {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-info, #aaa) var(--color-info-light, #f0f0f0);
    padding-right: 4px;
}

.gth-category-filter ul.gth-cat-list::-webkit-scrollbar {
    width: 4px;
}

.gth-category-filter ul.gth-cat-list::-webkit-scrollbar-track {
    background: var(--color-info-light, #f0f0f0);
}

.gth-category-filter ul.gth-cat-list::-webkit-scrollbar-thumb {
    background-color: var(--color-info, #aaa);
    border-radius: 4px;
}
