.nostalg-cat-slider-wrap {
    border-top: 0 solid #121212;
    border-bottom: 0 solid #121212;
    margin: 0;
    --nostalg-cat-slider-bg: #ffffff;
    background-color: var(--nostalg-cat-slider-bg);
    overflow: hidden;
}

.nostalg-cat-slider-wrap.alignfull {
    width: 100%;
}

.nostalg-cat-slider-settings {
    margin: 0 auto;
    padding-top: 27px;
    padding-bottom: 27px;
    text-align: center;
    position: relative;
}

.nostalg-cat-slider-title {
    margin: 0;
    font-size: 21px;
    color: #123f2d;
    line-height: 1.1;
    text-transform: none;
}

.nostalg-cat-slider-subtitle {
    margin: 12px auto 0;
    max-width: 640px;
    color: rgba(18, 18, 18, 0.7);
}

.nostalg-cat-slider-shell {
    position: relative;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 27px;
    overflow: hidden;
}

.nostalg-cat-slider-shell::before,
.nostalg-cat-slider-shell::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(32px, 7vw, 120px);
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.3s ease;
}

.nostalg-cat-slider-shell[data-slider-overflow="false"]::before,
.nostalg-cat-slider-shell[data-slider-overflow="false"]::after {
    opacity: 0;
}

.nostalg-cat-slider-shell[data-slider-has-prev="false"]::before {
    opacity: 0;
}

.nostalg-cat-slider-shell[data-slider-has-next="false"]::after {
    opacity: 0;
}

.nostalg-cat-slide[data-slider-clickable="false"] .nostalg-cat-slide-link {
    pointer-events: none;
}

.nostalg-cat-slide[data-slider-clickable="true"] .nostalg-cat-slide-link {
    pointer-events: auto;
}

.nostalg-cat-slide[data-slider-clickable="false"] {
    cursor: pointer;
}

.nostalg-cat-slider-shell::before {
    left: 0;
    background: linear-gradient(90deg, var(--nostalg-cat-slider-bg, #ffffff) 0%, rgba(255, 255, 255, 0) 100%);
}

.nostalg-cat-slider-shell::after {
    right: 0;
    background: linear-gradient(270deg, var(--nostalg-cat-slider-bg, #ffffff) 0%, rgba(255, 255, 255, 0) 100%);
}

.nostalg-cat-slider {
    width: 100%;
    overflow: visible;
}

.nostalg-cat-slider .swiper-wrapper {
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
    overflow: visible;
}

.nostalg-cat-slider:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(240px, 24vw, 360px);
    gap: clamp(18px, 3vw, 32px);
    overflow-x: auto;
    padding: 0 18px 1rem;
    scroll-snap-type: x mandatory;
}

.nostalg-cat-slider:not(.swiper-initialized) .swiper-slide {
    scroll-snap-align: center;
}

.nostalg-cat-slide {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    width: clamp(240px, 24vw, 360px);
    max-width: 360px;
    aspect-ratio: 5 / 6;
    box-shadow: 1px 1px 10px rgba(43, 44, 45, 0.26);
    background-color: #ffffff;
    text-align: center;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.nostalg-cat-slide-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.nostalg-cat-slide[data-slider-clickable="true"] {
    opacity: 1;
    cursor: pointer;
}

.nostalg-cat-slide[data-slider-clickable="true"] .nostalg-cat-slide-inner {
    transform: none;
}

.nostalg-cat-slide[data-slider-clickable="false"] {
    opacity: 0.6;
}

.nostalg-cat-slide[data-slider-clickable="false"] .nostalg-cat-slide-inner {
    transform: none;
}

.nostalg-cat-slide[data-slider-clickable="true"] .nostalg-cat-slide-link,
.nostalg-cat-slide[data-slider-clickable="true"] .nostalg-cat-slide-content,
.nostalg-cat-slide[data-slider-clickable="true"] .nostalg-cat-slide-title {
    cursor: pointer;
}

.nostalg-cat-slide-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.nostalg-cat-slide-link:focus-visible {
    outline: 2px solid rgba(18, 18, 18, 0.4);
    outline-offset: 4px;
}

.nostalg-cat-slide-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-color: transparent;
    overflow: hidden;
}

.nostalg-cat-slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(185deg, rgba(0, 0, 0, 0.0) 55%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.nostalg-cat-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transform-origin: center;
    transform: scale(1.08);
    transition: transform 0.35s ease;
}

.nostalg-cat-slide[data-slider-clickable="true"] .nostalg-cat-slide-image img {
    transform: scale(1.03);
}

.nostalg-cat-slide-inner:hover .nostalg-cat-slide-image img,
.nostalg-cat-slide-inner:focus-within .nostalg-cat-slide-image img {
    transform: scale(1.05);
}

.nostalg-cat-slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    padding: 24px 24px 20px;
    margin-top: auto;
}

.nostalg-cat-slide-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-wrap: balance;
}

.nostalg-cat-slide-button {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: fit-content;
    padding: 8px 18px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--nostalg-yellow, #ffd166), var(--nostalg-yellow-strong, #ffb400));
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.nostalg-cat-slide-inner:hover .nostalg-cat-slide-button,
.nostalg-cat-slide-inner:focus-within .nostalg-cat-slide-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--nostalg-yellow-strong, #ffb400), var(--nostalg-yellow, #ffd166));
}

.nostalg-cat-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 8;
    box-shadow: none;
}

.nostalg-cat-slider-prev {
    left: 10px;
}

.nostalg-cat-slider-next {
    right: 10px;
}

.nostalg-cat-slider-nav svg {
    width: 12px;
    height: 12px;
}

.nostalg-cat-slider-next svg {
    transform: rotate(270deg);
    margin-left: 2px;
}

.nostalg-cat-slider-prev svg {
    transform: rotate(90deg);
    margin-left: -2px;
}

.nostalg-cat-slider-nav svg path {
    fill: #123f2d;
    transition: fill 0.3s ease;
}

.nostalg-cat-slider-nav:hover,
.nostalg-cat-slider-nav:focus-visible {
    background-color: #121212;
    outline: none;
}

.nostalg-cat-slider-nav:hover svg path,
.nostalg-cat-slider-nav:focus-visible svg path {
    fill: #ffffff;
}

.nostalg-cat-slider-nav:focus-visible {
    box-shadow: 0 0 0 2px rgba(18, 18, 18, 0.2);
}

.nostalg-cat-slider-nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 1440px) {
    .nostalg-cat-slider:not(.swiper-initialized) .swiper-wrapper {
        gap: clamp(24px, 3vw, 36px);
    }

    .nostalg-cat-slide {
        width: clamp(300px, 22vw, 420px);
        max-width: 420px;
    }
}

@media (min-width: 1920px) {
    .nostalg-cat-slider:not(.swiper-initialized) .swiper-wrapper {
        gap: clamp(28px, 3vw, 40px);
    }

    .nostalg-cat-slide {
        width: clamp(320px, 20vw, 460px);
        max-width: 460px;
    }
}

@media (min-width: 1024px) {
    .nostalg-cat-slider-settings {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .nostalg-cat-slider-shell {
        padding-left: 5rem;
        padding-right: 5rem;
        padding-bottom: 36px;
    }

    .nostalg-cat-slide {
        padding: 0;
    }

    .nostalg-cat-slide-button {
        padding: 10px 24px;
        font-size: 19px;
    }

    .nostalg-cat-slider-nav {
        width: 48px;
        height: 48px;
    }

    .nostalg-cat-slider-prev {
        left: 24px;
    }

    .nostalg-cat-slider-next {
        right: 24px;
    }

    .nostalg-cat-slider-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .nostalg-cat-slider-nav {
        width: 40px;
        height: 40px;
    }
}
