.stp-homepage-categories {
    padding-top: var(--wp--preset--spacing--40);
    padding-bottom: var(--wp--preset--spacing--40);
}

.stp-homepage-categories__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--wp--preset--spacing--24);
}
.stp-homepage-categories__header h2{
    flex: 1;
}

.stp-homepage-categories__nav {
    display: flex;
    gap: 8px;
}

.stp-homepage-categories__arrow {
    background: #f5f6fa;
    border: none;
    cursor: pointer;
    font-size: 12px;
    height: 40px;
    outline-offset: -2px;
    padding: 0;
    pointer-events: all;
    width: 40px;
    z-index: 22;
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.stp-homepage-categories__arrow.swiper-button-disabled{
    opacity: 0.4;
    cursor:not-allowed;
    pointer-events: none;
}


.stp-homepage-categories__card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    min-height: 320px;
}
.stp-homepage-categories__card br{
    display: none !important;
}

.stp-homepage-categories__image-wrap {
    display: block;
    position: absolute;
    inset: 0;
}

.stp-homepage-categories__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stp-homepage-categories__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.35) 100%);
}

.stp-homepage-categories__content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stp-homepage-categories__title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.stp-homepage-categories__button {
    display: inline-flex;
    width: fit-content;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .stp-homepage-categories__header {
        align-items: flex-start;
        flex-direction: column;
    }
}
