.slider-with-categories {
    background-color: var(--white);
    overflow-x: hidden;
}

.slider-with-categories__wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.33vw, 64px);
}

.slider-with-categories__header {
    margin-bottom: clamp(24px, 3.33vw, 64px);
}

.slider-with-categories__title {
    font-family: PP Neue Montreal;
    font-weight: 500;
    font-style: Medium;
    font-size: clamp(28px, 2.92vw, 56px);
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: var(--gray-100);
}

.slider-with-categories__categories {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: clamp(8px, 0.83vw, 16px);
    align-items: center;
    flex-wrap: wrap;
}

.slider-with-categories__categories-item {
    padding: clamp(10px, 1.25vw, 20px) 0;
    font-family: PP Neue Montreal;
    font-weight: 500;
    font-style: Regular;
    font-size: clamp(14px, 0.94vw, 18px);
    leading-trim: NONE;
    height: fit-content;
    line-height: 140%;
    text-transform: uppercase;
    letter-spacing: 0%;
    color: var(--gray-80);
    cursor: pointer;
    max-width: clamp(200px, 18vw, 345px);
    position: relative;
}

.slider-with-categories__categories-item.active-category {
    color: black;
}

.slider-with-categories__categories-item.active-category:after {
    width: 100%;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: black;
}

.slider-with-categories__subtabs-wrapper {
    margin-top: clamp(8px, 0.83vw, 16px);
    margin-bottom: clamp(16px, 2.5vw, 48px);
}

.slider-with-categories__divider {
    height: 1px;
    background-color: var(--gray-20);
    width: 100%;
}

.slider-with-categories__subtabs {
    display: flex;
    flex-direction: row;
    gap: clamp(8px, 0.83vw, 16px);
    align-items: center;
    padding-top: clamp(14px, 1.66vw, 32px);
    flex-wrap: wrap;
}

.slider-with-categories__subtabs-item {
    padding: clamp(10px, 1.25vw, 24px) clamp(14px, 1.45vw, 28px);
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(13px, 0.94vw, 18px);
    leading-trim: NONE;
    height: fit-content;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--gray-90);
    cursor: pointer;
    max-width: clamp(200px, 15vw, 290px);
}

.slider-with-categories__subtabs-item.active-subtab {
    background-color: var(--gray-60);
    color: var(--white);
}

.slider-with-categories__slider.swiper {
    margin-right: calc(50% - 50vw);
    width: auto;
    overflow: hidden;
    margin-top: clamp(32px, 5vw, 96px);
}

.slider-with-categories__slider .swiper-slide {
    width: calc((100vw - clamp(20px, 8.3vw, 160px) - 96px) / 3.5);
    height: auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
}

.product-card__image-wrapper {
    width: 100%;
    height: clamp(260px, 21.88vw, 420px);
    background-color: var(--gray-10);
    overflow: hidden;
    margin-bottom: clamp(12px, 1.25vw, 24px);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__info {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 0.83vw, 16px);
}

.product-card__title {
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(16px, 1.25vw, 24px);
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    color: var(--gray-100);
    margin: 0;
}

.product-card__brand {
    font-family: PP Neue Montreal;
    font-weight: 400;
    font-style: Regular;
    font-size: clamp(13px, 0.83vw, 16px);
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--gray-100);
}

@media (max-width: 1024px) {
    .slider-with-categories__wrapper {
        gap: 32px;
    }

    .slider-with-categories__header {
        margin-bottom: 24px;
    }

    .slider-with-categories__title {
        font-size: 32px;
    }

    .slider-with-categories__categories {
        justify-content: flex-start;
        gap: 16px 24px;
    }

    .slider-with-categories__categories-item {
        font-size: 16px;
        max-width: 100%;
        padding: 12px 0;
    }

    .slider-with-categories__subtabs-wrapper {
        margin-top: 12px;
        margin-bottom: 24px;
    }

    .slider-with-categories__subtabs {
        gap: 8px 12px;
        padding-top: 16px;
    }

    .slider-with-categories__subtabs-item {
        font-size: 14px;
        padding: 10px 18px;
        max-width: 100%;
    }

    .slider-with-categories__slider.swiper {
        margin-top: 32px;
    }

    .slider-with-categories__slider .swiper-slide {
        width: 280px;
    }

    .product-card__image-wrapper {
        height: 240px;
        margin-bottom: 16px;
    }

    .product-card__info {
        gap: 10px;
    }

    .product-card__title {
        font-size: 18px;
    }

    .product-card__brand {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .slider-with-categories__title {
        font-size: 26px;
    }

    .slider-with-categories__slider .swiper-slide {
        width: 240px;
    }

    .product-card__image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .slider-with-categories__wrapper {
        gap: 24px;
    }

    .slider-with-categories__title {
        font-size: 22px;
    }

    .slider-with-categories__categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 16px;
        scrollbar-width: none;
    }

    .slider-with-categories__categories::-webkit-scrollbar {
        display: none;
    }

    .slider-with-categories__categories-item {
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 0;
    }

    .slider-with-categories__subtabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 8px;
        scrollbar-width: none;
    }

    .slider-with-categories__subtabs::-webkit-scrollbar {
        display: none;
    }

    .slider-with-categories__subtabs-item {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
    }

    .slider-with-categories__slider.swiper {
        margin-top: 20px;
    }

    .slider-with-categories__slider .swiper-slide {
        width: calc(100vw - 32px - 20px);
        max-width: 290px;
    }

    .product-card__image-wrapper {
        height: 220px;
        margin-bottom: 12px;
    }

    .product-card__title {
        font-size: 16px;
    }

    .product-card__brand {
        font-size: 13px;
    }
}
