/* ── WidgetProductFilters ─────────────────────────────────────────────
   ΣΗΜΕΙΩΣΗ: Class-based selectors με scope `.owf-wrap`. Το per-instance
   brand color `--owf-brand` ορίζεται inline στο widget wrapper.
   Mobile sidebar CSS παραμένει inline (dynamic breakpoint/side/width). */

/* Group */
.owf-wrap .owf-group { box-sizing: border-box; }

/* Title */
.owf-wrap .owf-title {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; cursor: pointer; user-select: none;
    transition: background .15s ease, color .15s ease;
}
.owf-wrap .owf-title-text { flex: 1; min-width: 0; }
.owf-wrap .owf-title-icon {
    flex-shrink: 0; font-size: 11px; opacity: .55;
    transition: transform .2s ease, opacity .15s ease;
}
.owf-wrap .owf-group.owf-open .owf-title-icon {
    transform: rotate(180deg); opacity: 1;
}

/* Badge */
.owf-wrap .owf-badge {
    display: none; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    font-size: 11px; font-weight: 700; line-height: 1;
    border-radius: 10px; background: var(--owf-brand, #268CCD); color: #fff;
}
.owf-wrap .owf-badge.owf-vis { display: inline-flex; }

/* Accordion body */
.owf-wrap .owf-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
}
.owf-wrap .owf-group.owf-open .owf-body { max-height: 3000px; }

/* Scroll wrapper inside body */
.owf-wrap .owf-body-scroll {
    overflow-y: auto;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f0f0f0;
}
.owf-wrap .owf-body-scroll::-webkit-scrollbar       { width: 5px; }
.owf-wrap .owf-body-scroll::-webkit-scrollbar-track  { background: #f0f0f0; border-radius: 3px; }
.owf-wrap .owf-body-scroll::-webkit-scrollbar-thumb  { background: #c0c0c0; border-radius: 3px; }

/* Options */
.owf-wrap .owf-body-inner { padding: 8px 12px 12px; }
.owf-wrap .owf-options-list { display: flex; flex-direction: column; gap: 2px; }
.owf-wrap .owf-option {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 8px; border-radius: 4px;
    cursor: pointer; text-decoration: none !important;
    color: inherit; transition: background .12s, color .12s;
}

/* Custom checkbox */
.owf-wrap .owf-checkbox {
    width: 16px; height: 16px; min-width: 16px; flex-shrink: 0;
    border: 1.5px solid #ccc; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, border-color .12s;
}
.owf-wrap .owf-checkbox::after {
    content: ""; display: block;
    width: 4px; height: 8px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0; transition: opacity .1s;
}
.owf-wrap .owf-option.owf-active .owf-checkbox {
    background-color: var(--owf-brand, #268CCD);
    border-color: var(--owf-brand, #268CCD);
}
.owf-wrap .owf-option.owf-active .owf-checkbox::after { opacity: 1; }

.owf-wrap .owf-option-label { flex: 1; min-width: 0; }
.owf-wrap .owf-mag {
    font-size: .8em; color: #999; flex-shrink: 0; margin-left: auto;
}

/* Brand logos */
.owf-wrap .owf-brand-logo {
    width: 60px; max-height: 60px; object-fit: contain;
    flex-shrink: 0; border-radius: 4px;
}

/* Color swatches */
.owf-wrap .owf-swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; }
.owf-wrap .owf-swatch {
    display: block; width: 28px; height: 28px;
    border-radius: 50%; border: 2px solid #ddd;
    cursor: pointer; overflow: hidden;
    transition: border-color .12s, outline .12s;
}
.owf-wrap .owf-swatch:hover { border-color: #aaa; }
.owf-wrap .owf-swatch.owf-active {
    border-color: var(--owf-brand, #268CCD);
    outline: 2px solid var(--owf-brand, #268CCD);
    outline-offset: 2px;
}
.owf-wrap .owf-swatch-fill {
    display: block; width: 100%; height: 100%;
    background-size: cover; background-position: center;
}

/* Price slider */
.owf-wrap .owf-price-slider { padding: 8px 12px 14px; }
.owf-wrap .owf-price-track {
    position: relative; height: 4px; border-radius: 2px;
    background: #e0e0e0; margin: 16px 8px;
}
.owf-wrap .owf-price-range {
    position: absolute; top: 0; height: 100%;
    background: var(--owf-brand, #268CCD); border-radius: 2px;
}
.owf-wrap .owf-price-handle {
    position: absolute; top: 50%;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--owf-brand, #268CCD);
    cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.18);
    touch-action: none;
}
.owf-wrap .owf-price-handle:hover { box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.owf-wrap .owf-price-handle:active { cursor: grabbing; }
.owf-wrap .owf-price-inputs {
    display: flex; align-items: center; gap: 8px; font-size: .875em;
}
.owf-wrap .owf-price-input {
    flex: 1; min-width: 0; padding: 4px 8px;
    border: 1px solid #ddd; border-radius: 4px; text-align: center;
    font: inherit;
    -moz-appearance: textfield;
}
.owf-wrap .owf-price-input::-webkit-outer-spin-button,
.owf-wrap .owf-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.owf-wrap .owf-price-input:focus {
    outline: none;
    border-color: var(--owf-brand, #268CCD);
}
.owf-wrap .owf-price-sep      { color: #aaa; }
.owf-wrap .owf-price-currency { color: #888; font-size: 0.875em; }

/* Clear button */
.owf-wrap .owf-clear { margin-bottom: 10px; }
.owf-wrap .owf-clear[hidden] { display: none !important; }
.owf-wrap .owf-clear-btn {
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none !important; cursor: pointer;
    padding: 6px 14px; border-radius: 4px; border: none;
    background: transparent; font-size: inherit; color: inherit;
    transition: background .15s, color .15s;
}

/* Mobile sidebar — default state (desktop) */
.owf-wrap .owf-mob-btn { display: none; }
.owf-wrap .owf-mob-backdrop { display: none; }
.owf-wrap .owf-mob-header { display: none; }
.owf-wrap .owf-mob-footer { display: none; }
.owf-wrap .owf-mob-btn-count { display: none; }
.owf-wrap .owf-mob-btn-count.owf-has-count { display: inline-flex; }
