/* Catalog controls retain Magma's white panels and warm red accent. */
.store-page [hidden] {
    display: none !important;
}

.store-page .store-detail:not(.is-open) {
    display: none;
}

.store-page .store-empty {
    grid-column: 1 / -1;
}

.store-page .store-toolbar {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
}

.store-page .store-toolbar__right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    min-width: 0;
}

.store-page .store-dropdown,
.store-page .store-toolbar__controls {
    min-width: 0;
}

.store-page .store-dropdown__panel {
    min-width: min(280px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
}

.store-page .store-toolbar__right .store-dropdown:nth-child(even) .store-dropdown__panel {
    left: auto;
    right: 0;
}

.store-page .store-toolbar__caption span {
    display: none;
}

.store-page .store-toolbar__caption strong {
    max-width: none;
    font-size: clamp(24px, 2.1vw, 31px);
    line-height: 1.2;
}

.store-page .store-toolbar__controls {
    grid-template-columns: minmax(135px, 0.4fr) minmax(0, 1fr);
}

.store-page .store-sidebar {
    order: 0;
}

.store-page .filter-block--price {
    background: #fffaf8;
}

.store-page .filter-title,
.store-page .price-filter__values span {
    text-transform: none;
    letter-spacing: 0;
}

.store-page .filter-title {
    min-height: 24px;
    font-size: 13px;
}

.store-page [data-price-currency] {
    color: #796b6b;
    font-size: 11px;
    font-weight: 600;
}

.store-page .price-filter {
    gap: 8px;
}

.store-page .price-filter__values span {
    color: #796063;
    font-size: 12px;
    line-height: 1.3;
}

.store-page .price-filter__values input {
    min-width: 0;
    height: 44px;
    padding: 0 9px;
    background: #ffffff;
    border-color: #d9c0bd;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.store-page .price-slider,
.store-page .price-slider input[type="range"] {
    height: 44px;
}

.store-page .price-slider__track,
.store-page .price-slider__range {
    top: 19px;
    left: 12px;
    right: 12px;
}

.store-page .price-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 24px;
}

.store-page .price-slider input[type="range"]::-moz-range-track {
    background: transparent;
}

.store-page .price-slider input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #ad2024, 0 2px 6px rgba(120, 18, 20, 0.15);
    cursor: ew-resize;
}

.store-page .price-slider input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #ad2024, 0 2px 6px rgba(120, 18, 20, 0.15);
    cursor: ew-resize;
}

.store-page .price-filter__values input:focus-visible,
.store-page .price-slider input:focus-visible,
.store-page .store-filter-reset:focus-visible,
.store-page .filter-title:focus-visible {
    outline: 2px solid #ad2024;
    outline-offset: 3px;
}

.store-page .store-filter-reset {
    min-height: 36px;
    padding: 6px 0;
    background: transparent;
    color: var(--red-main, #ad2024);
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

.store-page .store-filter-reset:hover:not(:disabled) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.store-page .store-filter-reset:disabled {
    color: #938384;
    cursor: default;
}

.store-page .store-filter-reset--all {
    width: 100%;
    padding: 12px 18px;
    min-height: 46px;
}

.store-page .store-empty .store-filter-reset {
    display: block;
    margin: 14px auto 0;
    text-align: center;
}

.store-page .skin-card__meta,
.store-page .skin-card__purchase,
.store-page .skin-card__pricing {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}

.store-page .skin-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    container-type: inline-size;
}

.store-page .skin-card__btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
}

.store-page .skin-card__btn i {
    flex-shrink: 0;
}

.store-page .skin-card__btn span {
    min-width: 0;
}

@container (max-width: 170px) {
    .store-page .skin-card__btn {
        flex-basis: 100%;
        flex-direction: column;
    }
}

@media (max-width: 1180px) {
    .store-page .store-toolbar {
        grid-template-columns: 1fr;
    }

    .store-page .store-toolbar__right {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .store-page .store-sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .store-page .filter-block--price,
    .store-page .store-filter-reset--all {
        grid-column: 1 / -1;
    }

    .store-page .filter-block--price .price-filter {
        grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto;
        align-items: end;
        gap: 18px;
    }

    .store-page .filter-block {
        min-width: 0;
    }

    .store-page .check-row {
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .store-page .store-toolbar__right,
    .store-page .store-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-page .store-toolbar__controls {
        grid-template-columns: 1fr;
    }

    .store-page .store-toolbar__controls .store-search {
        grid-row: 1;
    }

    .store-page .filter-block {
        padding: 12px 14px;
    }

    .store-page .filter-title {
        min-height: 32px;
    }

    .store-page .filter-block--price .price-filter {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .store-page .filter-block--price .store-filter-reset {
        justify-self: start;
    }

    .store-page .skin-card__price {
        font-size: clamp(16px, 5vw, 20px);
        overflow-wrap: anywhere;
    }

    .store-page .store-catalog__footer {
        flex-wrap: wrap;
        gap: 12px;
    }
}
