/* === PRODUCTS SECTION  === */
.products-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.products-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-section-link {
    align-items: center;
    border-bottom-color: rgb(255, 102, 0);
    border-bottom-style: solid;
    border-bottom-width: 0px;
    border-left-color: rgb(255, 102, 0);
    border-left-style: solid;
    border-left-width: 0px;
    border-right-color: rgb(255, 102, 0);
    border-right-style: solid;
    border-right-width: 0px;
    border-top-color: rgb(255, 102, 0);
    border-top-style: solid;
    border-top-width: 0px;
    box-sizing: border-box;
    color: rgb(255, 102, 0);
    color-scheme: light dark;
    column-gap: 2px;
    cursor: pointer;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-size: 16px;
    font-variation-settings: normal;
    font-weight: 400;
    height: 24px;
    line-height: 24px;
    overflow-wrap: break-word;
    row-gap: 2px;
    tab-size: 4;
    text-decoration: none;
    text-decoration-line: none;
    width: auto; /* убираем фиксированную ширину */
    max-width: 180px; /* ограничиваем максимальную ширину для адаптивности */
    -webkit-font-smoothing: antialiased;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-section-link-arrow {
    font-size: 1.2em;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.18s;
}

.products-section-link:hover {
    color: inherit; /* Цвет не меняется при наведении */
}

.products-section-link:hover .products-section-link-arrow {
    transform: translateX(1px); /* Меньше смещение, стрелка видна полностью */
}

.products-slider {
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 8px;
    min-height: 246px;
    background: #000;
    position: relative;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.products-section {
    overflow: hidden;
    margin-bottom: 20px;

}

/* --- Products Slider Arrows --- */
.products-slider-wrapper {
    position: relative;
}

.products-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #000;
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(.4, 0, .2, 1), background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.products-slider-arrow.left {
    left: 0;
}

.products-slider-arrow.right {
    right: 0;
}

.products-slider-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
    color: #fff;
}

.products-slider-arrow:active,
.products-slider-arrow:focus,
.products-slider-arrow:hover {
    background: #222;
}

.products-slider-wrapper:hover .products-slider-arrow,
.products-slider-wrapper:focus-within .products-slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.products-slider-arrow.disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}

.products-section.categories-section {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: none;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.categories-section .products-slider {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    align-items: flex-start;
    background: none;
    min-height: unset;
    height: auto;
    padding-bottom: 0;
    justify-content: flex-start;
}

.categories-section .category-card {
    margin: 0;
}

.products-slider-wrapper::before,
.products-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.25s;
}

.products-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #000 0%, transparent 100%);
    opacity: 0.85;
}

.products-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #000 0%, transparent 100%);
    opacity: 0.85;
}

/* Заглушка для ленивой загрузки ProductsRowSlider */
.lazy-products-slider {
    min-height: 320px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 32px auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}

.products-row-slider-skeleton {
    min-height: 246px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    border-radius: 14px;
    background: linear-gradient(90deg, #181818 25%, #232323 50%, #181818 75%);
    opacity: 0.7;
    animation: skeleton-loading 1.2s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.15);
    }

    100% {
        filter: brightness(1);
    }
}

.products-slider-wrapper .products-grid-categories {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px;
    justify-items: center;
    align-items: start;
    margin: 0 0 24px 0;
}

@media (max-width: 900px) {
    .products-slider-wrapper .products-grid-categories {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 18px 8px;
    }

    .categories-section .products-slider {
        gap: 18px 8px;
    }
}

@media (max-width: 600px) {
    .products-slider-wrapper .products-grid-categories {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px 4px;
    }

    .categories-section .products-slider {
        gap: 10px 4px;
    }

    .products-section-link {
        max-width: 110px;
        font-size: 14px;
    }
}