/* Category Slider for Elementor */

.cse-category-slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.cse-slider-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.cse-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.cse-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* --- Card --- */

.cse-card {
    background-color: #ffffff;
    border: 1px solid #EDEDED;
    border-radius: 12px;
    padding: 20px 15px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    height: 170px;
    box-sizing: border-box;
}

.cse-card:hover,
.cse-card.active {
    border-color: #FD4C31;
}

/* --- Image / Icon --- */

.cse-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 48px;
    height: 48px;
}

.cse-card-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.cse-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* --- Title --- */

.cse-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1E1E1E;
    margin: 0 0 10px 0;
    line-height: 24px;
    padding: 0;
    word-break: break-word;
}

/* --- Button --- */

.cse-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 100%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 11px 8px 12px;
    min-width: 120px;
    background: #EFEFEF;
    color: #333333;
    transition: background 0.25s ease, color 0.25s ease;
}

.cse-card-button svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.cse-card.active .cse-card-button,
.cse-card:hover .cse-card-button {
    background: #FD4C311A;
    color: #FD4C31;
}

.cse-card.active .cse-card-button svg path,
.cse-card:hover .cse-card-button svg path {
    stroke: #FD4C31;
}

.cse-card-button:hover svg {
    transform: translateX(3px);
}

/* --- Navigation Arrows (full reset to avoid theme conflicts) --- */

.cse-category-slider .cse-arrow {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
    padding: 0;
    margin: 0;
    line-height: 1;
    outline: none;
    box-shadow: none;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0;
    overflow: visible;
    transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

.cse-category-slider .cse-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.cse-category-slider .cse-arrow svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.cse-category-slider .cse-arrow-prev {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #EDEDED;
    background-color: #ffffff;
    color: #333333;
    margin-right: 12px;
}

.cse-category-slider .cse-arrow-prev:not(:disabled):hover {
    background-color: #f5f5f5;
}

.cse-category-slider .cse-arrow-prev svg path {
    stroke: #333333;
}

.cse-category-slider .cse-arrow-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    border: none;
    background-color: #FD4C31;
    color: #ffffff;
    margin-left: 12px;
}

.cse-category-slider .cse-arrow-next:not(:disabled):hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.cse-category-slider .cse-arrow-next svg path {
    stroke: #ffffff;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .cse-category-slider .cse-arrow {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    .cse-card {
        height: auto;
        min-height: 150px;
    }
}

@media (max-width: 767px) {
    .cse-category-slider .cse-arrow-prev {
        margin-right: 6px;
    }
    .cse-category-slider .cse-arrow-next {
        margin-left: 6px;
    }
    .cse-card {
        padding: 16px 10px 14px;
        height: auto;
        min-height: 140px;
    }
    .cse-card-title {
        font-size: 12px;
    }
    .cse-card-button {
        font-size: 11px;
        min-width: 100px;
        padding: 6px 8px;
    }
}
