

.romatex-filters-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.romatex-filters-mobile-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid currentColor;
    background: transparent;
    border-radius: 8px;
}

.romatex-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.romatex-filters-header__title-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.romatex-filters-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.romatex-filters-header__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.romatex-filters-mobile-close {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.romatex-active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
}

.romatex-active-filters-title {
    font-size: 13px;
    font-weight: 600;
}

.romatex-active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.08);
}

.romatex-active-filter-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.romatex-active-filters-reset-all {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    opacity: 0.8;
}

.romatex-filter-group {
    margin-bottom: 24px;
}

.romatex-filter-group:last-child {
    margin-bottom: 0;
}

.romatex-filter-group__title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
}

.romatex-filter-items-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.romatex-filter-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.romatex-filter-item__label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.romatex-filter-item__checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.romatex-filter-item__label {
    font-size: 14px;
    transition: color 0.2s ease;
}

.romatex-filter-item__count {
    font-size: 12px;
    opacity: 0.65;
    margin-inline-start: auto;
}

.romatex-swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.romatex-swatch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    min-width: 40px;
    height: 36px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.romatex-swatch-item:hover,
.romatex-swatch-item.active {
    border-color: currentColor;
    font-weight: 700;
}

.romatex-price-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.romatex-range-slider {
    position: relative;
    width: 100%;
    height: 6px;
    margin: 24px 0 0 0;
    direction: ltr !important;
}

.romatex-range-slider__track,
.romatex-range-slider__fill,
.romatex-range-slider__range {
    direction: ltr !important;
}

.romatex-range-slider__track {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.romatex-range-slider__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: currentColor;
    border-radius: 4px;
}

.romatex-range-slider__range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
    padding: 0;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.romatex-range-slider__range::-webkit-slider-runnable-track {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    height: 100% !important;
}

.romatex-range-slider__range::-moz-range-track {
    appearance: none;
    -moz-appearance: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    height: 100% !important;
}

.romatex-range-slider--single .romatex-range-slider__range--min {
    display: none !important;
}

.romatex-range-slider__custom-pin {
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: grab;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9800;
    transition: left 0.05s ease;
    user-select: none;
    -webkit-user-select: none;
}

.romatex-range-slider__custom-pin:active {
    cursor: grabbing;
}

.romatex-range-slider__custom-pin svg,
.romatex-range-slider__custom-pin i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    fill: currentColor;
    color: currentColor;
    display: block;
}

.romatex-range-slider__pin-bubble {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: currentColor;
    pointer-events: none;
    line-height: 1;
}

.romatex-range-slider__range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    pointer-events: auto;
}

.romatex-range-slider__range::-moz-range-thumb {
    appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    pointer-events: auto;
}

.romatex-price-range__values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    direction: ltr !important;
    margin-top: 0;
}

.romatex-price-val--min {
    color: inherit;
}

.romatex-price-val--bubble {
    color: inherit;
    font-weight: 700;
}

.romatex-price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.romatex-price-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 13px;
}

.romatex-filters-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.romatex-filters-submit-btn,
.romatex-filters-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    transition: all 0.2s ease;
    text-align: center;
}

.romatex-filters-submit-btn {
    background: #000;
    color: #fff;
}

.romatex-filters-reset-btn {
    background: transparent;
    border: 1px solid currentColor;
}

.romatex-submit-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: romatex-spin 0.8s linear infinite;
    margin-inline-start: 8px;
}

.romatex-filters-submit-btn.loading .romatex-submit-btn-spinner {
    display: inline-block;
}

@keyframes romatex-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .romatex-filters-mobile-trigger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .romatex-filters-mobile-trigger .romatex-filters-header__icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .romatex-filters-container {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 85% !important;
        max-width: 340px !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        transform: translateX(100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.18) !important;
    }

    [dir="ltr"] .romatex-filters-container,
    body:not(.rtl) .romatex-filters-container {
        left: 0 !important;
        right: auto !important;
        transform: translateX(-100%) !important;
    }

    .romatex-filters-wrapper.active .romatex-filters-container {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .romatex-filters-mobile-close {
        display: block !important;
    }

    .romatex-filters-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 999998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .romatex-filters-wrapper.active .romatex-filters-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Universal off-canvas drawer styles when active */
.romatex-filters-wrapper.active .romatex-filters-container {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.18) !important;
}

[dir="ltr"] .romatex-filters-wrapper.active .romatex-filters-container,
body:not(.rtl) .romatex-filters-wrapper.active .romatex-filters-container {
    left: 0 !important;
    right: auto !important;
    transform: translateX(0) !important;
}

.romatex-filters-wrapper.active .romatex-filters-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 999998 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.romatex-filters-wrapper.active .romatex-filters-mobile-close {
    display: block !important;
}

/* Empty State Centering */
.romatex-products-empty-state,
.romatex-empty-state {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 60px 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.romatex-products-empty-state .romatex-empty-icon,
.romatex-empty-state .romatex-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #F2F4F7;
    color: #191851;
    margin-bottom: 16px;
}

.romatex-products-empty-state .romatex-empty-icon svg,
.romatex-empty-state .romatex-empty-icon svg {
    width: 36px;
    height: 36px;
}

.romatex-products-empty-state h3,
.romatex-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: #191851;
    margin: 0 0 8px 0;
}

.romatex-products-empty-state p,
.romatex-empty-state p {
    font-size: 14px;
    color: #667085;
    max-width: 400px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.romatex-products-empty-state .romatex-empty-reset-btn,
.romatex-empty-state .romatex-empty-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    background: transparent;
    border: 1.5px solid #191851;
    color: #191851;
    cursor: pointer;
    transition: all 0.2s ease;
}

.romatex-products-empty-state .romatex-empty-reset-btn:hover,
.romatex-empty-state .romatex-empty-reset-btn:hover {
    background-color: #191851;
    color: #ffffff;
}

