/*
   Acacio Fumigation — Category Slider Component
   Matches the reference design: left tab list with a green "ribbon" arrow
   on the active item, right image stage with prev/next arrows and dots.
*/

/* Let the slider's section use a wider container than the site default */
.container-wide {
    max-width: 1700px !important;
}

.cat-slider {
    display: grid;
    grid-template-columns: 340px 1fr;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,0.08));
    overflow: hidden;
    min-height: 700px;
    max-height: 700px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

/* --- Left: category list --- */
.cat-slider-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 700px;
    padding-right: 22px;
}

.cat-slider-item {
    all: unset;
    cursor: pointer;
    padding: 24px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark, #121212);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    transition: background-color 0.25s ease, color 0.25s ease;
    line-height: 1.3;
}

.cat-slider-item:hover {
    background: rgba(0, 129, 72, 0.06);
}

.cat-slider-item.active {
    background: var(--primary, #008148);
    color: #fff;
}

/* The ribbon/arrow notch pointing into the image area */
.cat-slider-item.active::after {
    content: '';
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 34px solid transparent;
    border-bottom: 34px solid transparent;
    border-left: 22px solid var(--primary, #008148);
    z-index: 2;
}

/* --- Right: image stage --- */
.cat-slider-stage {
    position: relative;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-slider-images {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 650px;
    border-radius: 16px;
    overflow: hidden;
}

.cat-slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.cat-slider-img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Prev/Next arrows */
.cat-slider-arrow {
    display: none;
}

/* Dots */
.cat-slider-dots {
    display: none;
}

/* Mobile: stack list on top, hide the ribbon notch */
@media (max-width: 768px) {
    .cat-slider {
        grid-template-columns: 1fr;
    }
    .cat-slider-item.active::after {
        display: none;
    }
    .cat-slider-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cat-slider-item {
        flex: 1 1 50%;
        padding: 18px 16px;
        font-size: 0.9rem;
        text-align: center;
    }
    .cat-slider-images {
        min-height: 260px;
    }
}
