/* Сторінка обладнання — світлий фон, білі картки, фільтр sidebar / mobile dialog */
body.page-equipment {
    --eq-bg: #f5f5f2;
    --eq-card-radius: 24px;
    --eq-lime: #d4e157;
    --eq-card-radius: 24px;
    background-color: var(--eq-bg);
    color: var(--sw-black);
    min-height: 100vh;
}

body.page-equipment .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eq-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px 48px;
}

.eq-breadcrumb {
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 20px;
}

.eq-breadcrumb a {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.eq-breadcrumb a:hover {
    color: var(--sw-black);
}

.eq-breadcrumb__sep {
    margin: 0 6px;
    opacity: 0.5;
}

.eq-breadcrumb__current {
    color: rgba(0, 0, 0, 0.65);
    font-weight: 600;
}

.eq-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 1024px) {
    .eq-layout {
        grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
        gap: 28px 36px;
    }
}

.eq-filters--desktop {
    display: none;
}

@media (min-width: 1024px) {
    .eq-filters--desktop {
        display: block;
        position: sticky;
        top: calc(var(--header-h) + 20px);
        align-self: start;
    }
}

.eq-filters__inner {
    background: var(--sw-white);
    border-radius: 24px;
    padding: 22px 20px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.eq-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.eq-filters__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.eq-filters__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: grid;
    place-items: center;
    color: var(--sw-black);
}

.eq-filters__icon svg {
    width: 20px;
    height: 20px;
}

.eq-filters__group--price {
    margin-bottom: 18px;
}

/* Рядок «Ціна» + поточне значення (каталог, max-only) */
.eq-filters__price-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.eq-filters__price-head .eq-filters__label {
    margin-bottom: 0;
}

.eq-filters__range-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    text-align: right;
}

.eq-filters__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--sw-black);
}

.eq-filters__group--sort {
    margin-bottom: 18px;
}

.eq-filters__group--sort:last-of-type {
    margin-bottom: 12px;
}

.eq-filters__select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font: inherit;
    font-size: 0.9rem;
    background: var(--sw-white);
    color: var(--sw-black);
}

.eq-price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.eq-price-inputs__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eq-price-inputs__hint {
    display: none;
}

.eq-price-inputs__sep {
    color: #9cb0cc;
    font-weight: 600;
    line-height: 1;
    align-self: center;
}

.eq-price-inputs__field input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d8e7ff;
    font: inherit;
    font-size: 13px;
    color: #8ea3c2;
}

.eq-price-range {
    position: relative;
    margin-top: 2px;
}

/* Спільний слайдер ціни: світла доріжка, лаймовий повзунок з чорним ободом */
.eq-filters__range {
    --eq-range-lime: #d4e157;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    background: rgba(0, 0, 0, 0.08);
    accent-color: var(--sw-black);
}

.eq-filters__range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--eq-range-lime);
    border: 3px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.eq-filters__range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--eq-range-lime);
    border: 3px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.eq-price-range__thumb {
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d4e157;
    border: 3px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
    pointer-events: none;
}

.eq-price-scale {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8ea3c2;
}

.eq-acc {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

.eq-acc:last-of-type {
    border-bottom: none;
}

.eq-acc__summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sw-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.eq-acc__summary::-webkit-details-marker {
    display: none;
}

.eq-acc__summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.4;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.eq-acc[open] .eq-acc__summary::after {
    transform: rotate(230deg);
    margin-top: 4px;
}

.eq-acc__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 16px;
}

.eq-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.eq-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--sw-black);
}

.eq-filters__clear {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: none;
    border-radius: 999px;
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.eq-filters__clear--dialog {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--sw-black);
}

.eq-main {
    min-width: 0;
}

.eq-filter-open {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: none;
    border-radius: 50px;
    background: var(--sw-white);
    color: var(--sw-black);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.eq-filter-open svg {
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

@media (min-width: 1024px) {
    .eq-filter-open {
        display: none;
    }
}

.eq-toolbar__count {
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
    .eq-toolbar__count {
        margin-top: 0;
    }
}

.eq-toolbar__count strong {
    color: var(--sw-black);
    font-weight: 700;
}

.eq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .eq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .eq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.eq-card {
    background: var(--sw-white);
    border-radius: var(--eq-card-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.eq-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.eq-card[hidden] {
    display: none !important;
}

.eq-card__media {
    position: relative;
    margin-bottom: 12px;
}

.eq-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eq-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--sw-white);
    color: var(--sw-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.eq-badge--hit {
    background: #fff8e6;
}

.eq-badge--new {
    background: #e8f8ef;
    color: #0d5c2e;
}

.eq-card__img {
    aspect-ratio: 1.15;
    margin: 0 auto;
    border-radius: 18px;
    background: #ecece8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.eq-card__img svg {
    width: 100%;
    height: auto;
    max-height: 120px;
}

.eq-card__cat {
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
}

.eq-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--sw-black);
}

.eq-card__title-link {
    color: inherit;
    text-decoration: none;
}

.eq-card__title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eq-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 10px;
}

.eq-card__desc {
    margin: 0 0 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.52);
}

.eq-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.45);
}

.eq-card__stars {
    color: var(--sw-black);
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.eq-card__stars--4 .eq-star-muted {
    color: rgba(0, 0, 0, 0.15);
}

.eq-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.eq-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sw-black);
}

.eq-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.eq-card__btn .eq-card__btn-badge {
    display: none;
}

.eq-card__btn-ic {
    width: 22px;
    height: 22px;
}

.eq-card__btn-text--mob {
    display: none;
}

.eq-card__btn-text--desk {
    display: inline;
}

@media (min-width: 1024px) {
    .eq-card__desc {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .eq-card__btn .eq-card__btn-ic {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1024px) {
    .eq-card__rating {
        margin-bottom: 4px;
    }
}

/* Filter dialog */
.eq-filter-dialog {
    padding: 0;
    border: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    background: var(--eq-bg);
    box-sizing: border-box;
}

.eq-filter-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.eq-filter-dialog__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.eq-filter-dialog__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sw-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.eq-filter-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.eq-filter-dialog__close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--sw-black);
}

.eq-filter-dialog__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 100px;
    -webkit-overflow-scrolling: touch;
}

.eq-filters__inner--dialog {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.eq-filter-dialog__foot {
    flex-shrink: 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0));
    background: var(--sw-white);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eq-filter-dialog__apply {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.page-equipment .site-footer {
    padding-bottom: 64px;
}

@media (max-width: 1023px) {
    .page-equipment .site-footer {
        padding-bottom: 120px;
    }

    .eq-page {
        padding-bottom: 100px;
    }
}
