.tne-rpc,
.tne-rpc * {
    box-sizing: border-box;
}

.tne-rpc {
    --tne-rpc-cols: 5;
    --tne-rpc-gap: 18px;
    position: relative;
    width: 100%;
    direction: rtl;
}

.tne-rpc-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 22px;
    line-height: 1.35;
}

.tne-rpc-title-text {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.tne-rpc-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 22px;
    color: currentColor;
    flex: 0 0 auto;
}

.tne-rpc-heading-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.tne-rpc-heading-icon-end {
    transform: scaleX(-1);
}

.tne-rpc-carousel-wrap {
    position: relative;
    width: 100%;
}

.tne-rpc-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    direction: ltr;
}

.tne-rpc-viewport::-webkit-scrollbar {
    display: none;
}

.tne-rpc-track {
    display: flex;
    gap: var(--tne-rpc-gap);
    align-items: stretch;
    width: 100%;
    min-width: 100%;
    flex-wrap: nowrap;
}

.tne-rpc-slide {
    flex: 0 0 calc((100% - (var(--tne-rpc-gap) * (var(--tne-rpc-cols) - 1))) / var(--tne-rpc-cols));
    min-width: 0;
    direction: rtl;
}

.tne-rpc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.tne-rpc-product-card:hover {
    transform: translateY(-3px);
}

.tne-rpc-product-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f5f3;
    text-decoration: none;
}

.tne-rpc-product-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.tne-rpc-image-zoom .tne-rpc-product-card:hover .tne-rpc-product-image-wrap img {
    transform: scale(1.06);
}

.tne-rpc-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #d83b3b;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
}

.tne-rpc-product-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 12px 14px;
    flex: 1 1 auto;
}

.tne-rpc-product-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 500;
}

.tne-rpc-product-title a {
    color: #3e3e46;
    text-decoration: none;
    transition: color .2s ease;
}

.tne-rpc-product-title a:hover {
    color: #7c65a5;
}

.tne-rpc-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.6;
    color: #2f2f35;
}

.tne-rpc-price ins {
    text-decoration: none;
}

.tne-rpc-price del {
    opacity: .65;
}

.tne-rpc-rating {
    display: flex;
    justify-content: center;
    line-height: 1;
}

.tne-rpc-rating .star-rating {
    float: none;
    margin: 0;
}

.tne-rpc-product-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.tne-rpc-add-to-cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px !important;
    border-radius: 999px;
    border: 0;
    background: #7c65a5;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.tne-rpc-add-to-cart:hover {
    background: #67518f;
    color: #fff;
    transform: translateY(-1px);
}

.tne-rpc-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.tne-rpc-wishlist:empty {
    display: none;
}

.tne-rpc-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    color: #3c3c46;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    transform: translateY(-50%);
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.tne-rpc-arrow:hover {
    background: #7c65a5;
    color: #fff;
}

.tne-rpc-arrow-prev {
    left: -58px;
}

.tne-rpc-arrow-next {
    right: -58px;
}

.tne-rpc-arrow:disabled,
.tne-rpc-arrow.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.tne-rpc-empty {
    padding: 16px;
    border-radius: 12px;
    background: #fff7e6;
    color: #7a4b00;
    text-align: center;
}

@media (max-width: 1024px) {
    .tne-rpc {
        --tne-rpc-cols: 3;
    }

    .tne-rpc-arrow-prev {
        left: -18px;
    }

    .tne-rpc-arrow-next {
        right: -18px;
    }
}

@media (max-width: 767px) {
    .tne-rpc {
        --tne-rpc-cols: 2;
        --tne-rpc-gap: 12px;
    }

    .tne-rpc-arrow {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .tne-rpc-arrow-prev {
        left: -8px;
    }

    .tne-rpc-arrow-next {
        right: -8px;
    }

    .tne-rpc-product-image-wrap {
        height: 140px;
    }
}
