.ds-shop-page > section[aria-labelledby="page-title"] > .uk-container {
    max-width: 1400px;
    text-align: left !important;
}

.ds-shop {
    margin-top: 8px;
}

.ds-shop-bar {
    position: sticky;
    top: 85px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-height: 52px;
    padding: 8px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.ds-shop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.ds-shop-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 5px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
}

.ds-shop-sidebar-host {
    min-width: 0;
}

.ds-shop-filter-modal {
    padding: 0;
}

.ds-shop-modal-dialog {
    width: min(100%, 520px);
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 0 0 auto;
    overflow: hidden;
    background: #fff;
}

[data-shop-modal-host],
.ds-shop-filter-modal .ds-shop-filters,
.ds-shop-filter-modal .ds-shop-form {
    height: 100%;
    min-height: 0;
}

.ds-shop-filters,
.ds-shop-form {
    height: 100%;
    min-height: 100dvh;
}

.ds-shop-form {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.ds-shop-filter-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
}

.ds-shop-filter-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.ds-shop-filter-close {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ds-shop-filter-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 20px 28px;
    overflow-y: auto;
}

.ds-shop-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ds-shop-group + .ds-shop-group {
    margin-top: 28px;
}

.ds-shop-legend {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.ds-shop-bodies {
    --ds-profile-scale: calc(132 / 300);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ds-shop-body {
    position: relative;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.ds-shop-body input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ds-shop-body-control {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 68px auto;
    align-items: end;
    width: 100%;
    min-height: 112px;
    padding: 0px 8px 9px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ds-shop-body-icon {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 68px;
}

.ds-shop-body-icon img {
    display: block;
    width: calc(var(--vehicle-width) * var(--ds-profile-scale));
    max-width: 100%;
    max-height: 62px;
    height: auto;
    object-fit: contain;
}

.ds-shop-body-label {
    align-self: end;
    margin-top: 8px;
    color: #111;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.ds-shop-body input:checked + .ds-shop-body-control {
    border-color: #000;
    background: #f7f7f7;
    box-shadow: inset 0 0 0 1px #000;
}

.ds-shop-body input:focus-visible + .ds-shop-body-control {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.ds-shop-body:hover input:not(:checked) + .ds-shop-body-control {
    border-color: #777;
}

.ds-shop-select {
    position: relative;
}

.ds-shop-select::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.ds-shop-select select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 14px;
    border: 1px solid #bfbfbf;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.ds-shop-select select:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.ds-shop-price-readout {
    display: block;
    min-height: 24px;
    margin: 0 0 12px;
    color: #111;
    font-size: 1rem;
    font-weight: 600;
}

.ds-shop-range {
    display: flex;
    align-items: center;
    height: 42px;
}

.ds-shop-range input[type="range"] {
    --ds-budget-progress: 100%;
    width: 100%;
    height: 6px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #000 0 var(--ds-budget-progress), #d7d7d7 var(--ds-budget-progress) 100%);
    -webkit-appearance: none;
    appearance: none;
}

.ds-shop-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.ds-shop-range input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #d7d7d7;
}

.ds-shop-range input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: #000;
}

.ds-shop-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -11px;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    cursor: grab;
}

.ds-shop-range input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    cursor: grab;
}

.ds-shop-range input[type="range"]:focus-visible {
    outline: 2px solid #000;
    outline-offset: 8px;
}

.ds-shop-range-limits {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    color: #666;
    font-size: 0.75rem;
}

.ds-shop-reset {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.ds-shop-filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e7e7e7;
    background: #fff;
}

.ds-shop-apply {
    min-width: 150px;
}

.ds-shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 20px;
}

.ds-shop-card.is-hidden {
    display: none;
}

.ds-shop-empty {
    max-width: 620px;
    margin: 48px auto;
    padding: 36px 24px;
    border: 1px solid #e2e2e2;
    text-align: center;
}

.ds-shop-empty h2 {
    margin: 0 0 12px;
}

.ds-shop-empty p {
    margin: 0 auto 24px;
}

.ds-shop-empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
}

.ds-shop-empty-reset {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.ds-shop-card .tm-product-short {
    margin-top: 4px;
    color: #666;
    font-size: 0.82rem;
}

@media (max-width: 959px) {
    .ds-shop-container,
    .ds-shop {
        margin-top: 0 !important;
    }

    .ds-shop-toggle {
        justify-content: center;
        width: 100%;
    }
}

@media (min-width: 640px) {
    .ds-shop-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .ds-shop-bar {
        display: none;
    }

    .ds-shop-layout {
        display: grid;
        grid-template-columns: 330px minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }

    .ds-shop-sidebar-host {
        display: block;
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        padding-right: 8px;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .ds-shop-filters,
    .ds-shop-form {
        height: auto;
        min-height: 0;
    }

    .ds-shop-filter-header {
        position: static;
        min-height: 0;
        padding: 0 0 18px;
        border-bottom: 0;
    }

    .ds-shop-filter-header h2 {
        font-size: 1.25rem;
    }

    .ds-shop-filter-close {
        display: none;
    }

    .ds-shop-filter-content {
        padding: 0;
        overflow: visible;
    }

    .ds-shop-bodies {
        --ds-profile-scale: calc(138 / 300);
    }

    .ds-shop-body-control {
        min-height: 116px;
    }

    .ds-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-shop-filter-actions {
        position: static;
        min-height: 0;
        margin-top: 26px;
        padding: 0;
        border-top: 0;
    }

    .ds-shop-apply {
        display: none;
    }
}

@media (min-width: 1280px) {
    .ds-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
