/* Tab Products Widget */
.tp-widget {
    position: relative;
}

/* Tabs Header */
.tp-tabs-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}

.tp-tab-item {
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.tp-tab-item:last-child {
    margin-right: 0 !important;
}

.tp-tab-item:hover,
.tp-tab-item.is-active {
    color: #fff;
    background-color: #3b4a6b;
}

/* Tab Panes */
.tp-tab-pane {
    display: none;
}

.tp-tab-pane.is-active {
    display: block;
}

/* Swiper Container */
.tp-swiper-container {
    position: relative;
    padding: 0 15px;
}

/* Product Card */
.tp-product-card {
    display: block;
    text-decoration: none;
}

.tp-product-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8e8e8;
    overflow: hidden;
}

.tp-product-title {
    margin: 12px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: center;
    line-height: 1.5;
}

/* Navigation Buttons */
.tp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    z-index: 10;
    cursor: pointer;
    padding: 6px;
    color: #333;
    transition: color 0.3s ease;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tp-nav-btn:hover {
    color: #000;
}

.tp-nav-btn svg {
    width: 28px;
    height: 28px;
}

.tp-nav-prev {
    left: -36px;
}

.tp-nav-next {
    right: -36px;
}

/* Responsive */
@media (max-width: 991px) {
    .tp-nav-prev {
        left: -10px;
    }
    .tp-nav-next {
        right: -10px;
    }
    .tp-nav-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 767px) {
    .tp-tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .tp-tab-item {
        flex-shrink: 0;
    }

    .tp-swiper-container {
        padding: 0 30px;
    }

    .tp-nav-btn {
        padding: 0;
    }

    .tp-nav-prev {
        left: 0;
    }
    .tp-nav-next {
        right: 0;
    }

    .tp-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .tp-product-title {
        font-size: 12px;
        margin-top: 8px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

}
