:root {
  --rst-input-background: rgba(255,255,255,.2);
  --rst-text-main: #1e293b;
}

#js-rst-open-filters {
    display: inline-flex;
}

.rst-advanced-filters-wrapper {
    --max-width: 80vw;
    position: fixed;
    top: 0;
    right: 0;
    max-width: var(--max-width);
    height: 100%;
    display: flex;
    padding: 15px;
    flex-direction: column;
    background: rgba(60,60,60,.8);
    backdrop-filter: blur(5px);
    transform: translateX(var(
    --max-width));
    transition: transform .3s ease;
    z-index: 5556;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.rst-advanced-filters-wrapper.is-open {
    transform: translateY(0);
}

.rst-filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 5556;
    backdrop-filter: blur(10px);
}

.rst-filters-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.rst-filters-trigger {
    display: flex;
}

.rst-filter-toggle-button {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 5px 10px;
    background: white;
    border: none;
    border-radius: 10px;
}

body.rst-filters-open {
    overflow: hidden;
}

.rst-filter-toolbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    gap: 5px;
}

.rst-filter-toolbar {
    display: flex;
    height: 30px;
    flex-shrink: 0;
    font-family: 'Atma', sans-serif;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
}

.rst-filter-title {
    font-size: 1.2rem;
}

.rst-filter-toolbar button{
    display: flex;
    background: none;
    border: none;
    gap: 5px;
}

.rst-filter-toolbar-button svg {
    width: 20px;
}

.rst-filter-toolbar-actions {
    display: flex;
    gap: 10px;
}

.rst-filter-toolbar-actions.is-hidden {
    display: none;
}

.rst-filter-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;

    overflow-y: auto;
    min-height: 0;
}

.rst-filter-footer {
    flex-shrink: 0;
}

.rst-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rst-filter-label {
    font-family: 'Atma', sans-serif;
    letter-spacing: .05rem;
    color: rgba(255,255,255,.4);
}

.rst-filter-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.rst-filter-option {
    display: flex;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    font-size: .75rem;
    align-items: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 4px black;
    backdrop-filter: blur(5px);
    transition: all 1s;
}

.rst-filter-option svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.rst-filter-option:has(input:checked) {
    background: var(--main-color);
    color: black;
}

.rst-filter-option input[type="radio"], .rst-filter-option input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* ==========================================================================
   CHECKBOX SELECCIONADO
   ========================================================================== */

.rst-custom-checkbox:checked + .rst-checkbox-label {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

/* ==========================================================================
   RADIO SELECCIONADO
   ========================================================================== */

.rst-custom-radio:checked + .rst-checkbox-label {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

/* ==========================================================================
   FOCUS
   ========================================================================== */

.rst-custom-checkbox:focus-visible + .rst-checkbox-label,
.rst-custom-radio:focus-visible + .rst-checkbox-label {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}






.rst-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  width: 100%;
}

.rst-switch-wrapper {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.rst-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.rst-switch-slider {
  position: absolute;
  inset: 0;
  background-color: var(--rst-slider-off);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.rst-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.rst-switch-input:checked + .rst-switch-slider {
  background-color: var(--rst-accent);
}

.rst-switch-input:focus-visible + .rst-switch-slider {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.rst-switch-input:checked + .rst-switch-slider:before {
  transform: translateX(18px);
}

.rst-switch-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--rst-text-main);
  line-height: 1.3;
}


/* ALFABETO */
.rst-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.rst-alphabet__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 6px 8px;
    background: black;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-family: 'Atma', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.rst-alphabet__item.active {
    background: var(--main-color);

    box-shadow: 0 0 12px var(--main-color);
    border: 2px solid var(--main-color);
    font-size: 1.1rem;
    transform: rotate(-3deg) scale(1.1);
}

.rst-alphabet__item.disabled {
    opacity: .15;
    cursor: default;
}

.rst-alphabet__letter {
    color: white;
    font-size: 1rem;
}

.rst-alphabet__item.active .rst-alphabet__letter, .rst-alphabet__item.active .rst-alphabet__count{
  color: black;
}

.rst-alphabet__count {
    padding: 3px;
    font-size: .8rem;
    color: white;
}


/* CUSTOM FILTERS */
.rst-custom-filters {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.rst-filter-option[data-filter="is_exclusive"] {
    background: rgba(60,60,0,.3);
    border: 1px solid gold;
    color: gold;
}

.rst-filter-option[data-filter="is_complete"] {
    background: rgba(0, 43, 60, 0.3);
    border: 1px solid rgb(0, 204, 255);
    color: cyan;
}

.rst-filter-option[data-filter="is_sealed"] {
    background: rgba(50, 0, 60, 0.3);
    border: 1px solid rgb(255, 0, 221);
    color: plum;
}

.rst-filter-option:has(input:checked){
    font-weight: 600;
}

.rst-filter-option[data-filter="is_exclusive"]:has(input:checked) {
    background: gold;
    box-shadow: 0 0 10px yellow;
    color: chocolate;
}
.rst-filter-option[data-filter="is_complete"]:has(input:checked) {
    background: cyan;
    box-shadow: 0 0 10px cyan;
    color: royalblue;
}
.rst-filter-option[data-filter="is_sealed"]:has(input:checked) {
    background: magenta;
    box-shadow: 0 0 10px magenta;
    color: white;
}

/* Tablet */
@media (width >= 768px) {
    #js-rst-open-filters {
        display: none;
    }

    #rst-advanced-filters {
        width: 300px;
        padding: 15px;
    }

    .rst-advanced-filters-wrapper {
        position: sticky;
        top: calc(var(--header-height) + 15px);
        right: auto;
        bottom: auto;
        width: auto;
        height: auto;
        overflow: visible;
        transform: none;
        transition: none;
        border-radius: 10px;
    }

    .rst-filters-trigger {
        display: none;
    }
}

/* Desktop */
@media (width >= 1024px) {
    .rst-filter-toolbar-toggle {
        display: none;
    }
}