/* WeTheme Product Carousel v3 – Newest Products */

.wetheme-product-carousel-v3 {
    position: relative;
    direction: rtl;
}

/* Header */
.wetheme-product-carousel-v3 .wpcv3-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.wetheme-product-carousel-v3 .wpcv3-header-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wetheme-product-carousel-v3 .wpcv3-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #C19A6B;
    line-height: 1;
}

.wetheme-product-carousel-v3 .wpcv3-header-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.wetheme-product-carousel-v3 .wpcv3-header-icon i {
    font-size: 18px;
    color: inherit;
}

.wetheme-product-carousel-v3 .wpcv3-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #2D3E50;
}

.wetheme-product-carousel-v3 .wpcv3-header-line {
    flex: 1 1 auto;
    height: 1px;
    background: #E3E3E3;
    min-width: 24px;
}

.wetheme-product-carousel-v3 .wpcv3-header-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wetheme-product-carousel-v3 .wpcv3-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #8A8A8A;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.wetheme-product-carousel-v3 .wpcv3-view-all:hover {
    color: #2D3E50;
}

.wetheme-product-carousel-v3 .wpcv3-view-all-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wetheme-product-carousel-v3 .wpcv3-view-all-arrow svg {
    width: 14px;
    height: 14px;
    display: block;
}

.wetheme-product-carousel-v3 .wetheme-carousel-header .nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wetheme-product-carousel-v3 .wetheme-carousel-header .nav-buttons button,
.wetheme-product-carousel-v3 .wpc-nav .wpc-prev,
.wetheme-product-carousel-v3 .wpc-nav .wpc-next {
    background: #F0F0F0;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.wetheme-product-carousel-v3 .wetheme-carousel-header .nav-buttons button:hover,
.wetheme-product-carousel-v3 .wpc-nav .wpc-prev:hover,
.wetheme-product-carousel-v3 .wpc-nav .wpc-next:hover {
    background: #2D3E50;
    color: #fff;
}

@media (min-width: 1024px) {
    .wetheme-product-carousel-v3[data-arrows-desktop="false"] .wetheme-carousel-header .nav-buttons,
    .wetheme-product-carousel-v3[data-arrows-desktop="false"] .wpc-nav {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .wetheme-product-carousel-v3[data-arrows-tablet="false"] .wetheme-carousel-header .nav-buttons,
    .wetheme-product-carousel-v3[data-arrows-tablet="false"] .wpc-nav {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .wetheme-product-carousel-v3[data-arrows-mobile="false"] .wetheme-carousel-header .nav-buttons,
    .wetheme-product-carousel-v3[data-arrows-mobile="false"] .wpc-nav {
        display: none !important;
    }
}

/* Swiper */
.wetheme-product-carousel-v3 .wpc-swiper {
    overflow: hidden;
}

.wetheme-product-carousel-v3 .wpc-swiper .swiper-wrapper {
    display: flex;
}

.wetheme-product-carousel-v3 .wpc-swiper .swiper-slide {
    flex: 0 0 auto;
    width: auto;
    height: auto;
}

/* Card */
.wetheme-product-carousel-v3 .wpc-card {
    position: relative;
    background: #fff;
    border: 1px solid #35425A;
    border-radius: 28px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 390px;
    box-sizing: border-box;
}

.wetheme-product-carousel-v3 .wpcv3-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #C19A6B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wetheme-product-carousel-v3 .wpcv3-size-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F0F0F0;
    color: #8A8A8A;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-size-badge {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wetheme-product-carousel-v3 .wpcv3-colors {
    position: absolute;
    top: 56px;
    left: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-colors {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wetheme-product-carousel-v3 .wpcv3-colors .we-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wetheme-product-carousel-v3 .wpcv3-colors .we-color-more {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    line-height: 1;
}

.wetheme-product-carousel-v3 .wpc-thumb {
    margin: 0px 0 14px;
    text-decoration: none;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.wetheme-product-carousel-v3 .wpc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wetheme-product-carousel-v3 .wpcv3-category {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #A0A0A0;
    margin-bottom: 6px;
    text-align: right;
    line-height: 1.4;
}

.wetheme-product-carousel-v3 .wpc-title {
    margin: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: #2D3E50;
    text-align: right;
    min-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wetheme-product-carousel-v3 .wpc-title a {
    color: inherit;
    text-decoration: none;
}

/* Footer pill */
.wetheme-product-carousel-v3 .wpcv3-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #D5D5D5;
    border-radius: 999px;
    background: #fff;
    direction: ltr;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer {
    background: #2D3E50;
    border-color: #2D3E50;
}

.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price {
    margin: 0px 0 0 22px;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price .price.wpc-custom-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price del,
.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price .wpc-sale-price {
    color: #A8A8A8;
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price ins,
.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price .wpc-current-price {
    color: #2D3E50;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price del,
.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price .wpc-sale-price,
.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price ins,
.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price .wpc-current-price,
.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price .amount,
.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price .woocommerce-Price-currencySymbol {
    color: #fff !important;
}

.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price .woocommerce-Price-currencySymbol {
    font-size: 12px !important;
    font-weight: 500 !important;
}

.wetheme-product-carousel-v3 .wpcv3-footer .wpc-price.wpc-out-of-stock-message {
    font-size: 13px;
    color: #888;
}

.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-footer .wpc-price.wpc-out-of-stock-message {
    color: #fff;
}

.wetheme-product-carousel-v3 .wpcv3-cart-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #2D3E50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, color 0.25s ease;
}

.wetheme-product-carousel-v3 .wpcv3-cart-btn i,
.wetheme-product-carousel-v3 .wpcv3-cart-btn svg {
    font-size: 25px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.wetheme-product-carousel-v3 .wpcv3-cart-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.wetheme-product-carousel-v3 .wpc-card:hover .wpcv3-cart-btn {
    background: #fff;
    color: #2D3E50;
}

.wetheme-product-carousel-v3 .wpcv3-cart-btn.wpc-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.wetheme-product-carousel-v3 .wpcv3-cart-btn.wpc-v2-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 248deg,
        rgba(45, 62, 80, 0.25) 268deg,
        rgba(45, 62, 80, 0.85) 290deg,
        rgba(45, 62, 80, 0.85) 322deg,
        rgba(45, 62, 80, 0.25) 342deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: wpcv3-border-travel 1.1s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes wpcv3-border-travel {
    to {
        transform: rotate(360deg);
    }
}

.wetheme-product-carousel-v3 .swiper-pagination {
    display: none !important;
}

@media (max-width: 767px) {
    .wetheme-product-carousel-v3 .wpcv3-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .wetheme-product-carousel-v3 .wpcv3-title {
        font-size: 16px;
    }

    .wetheme-product-carousel-v3 .wpcv3-view-all {
        font-size: 13px;
    }

    .wetheme-product-carousel-v3 .wpc-card {
        min-height: 360px;
        border-radius: 22px;
        padding: 14px;
    }

    .wetheme-product-carousel-v3 .wpc-thumb {
        height: 160px;
    }

    .wetheme-product-carousel-v3 .wpc-title {
        font-size: 14px;
    }
}
