.wpct-trending {
    --wpct-blue: #2b8fe0;
    --wpct-blue-dark: #1a4d80;
    --wpct-star: #f5a623;
    --wpct-star-empty: #dde4f0;
    --wpct-text: #1a2a45;
    --wpct-muted: #5b7090;
    --wpct-line: #e6edf6;
    --wpct-bg: #f4f8fd;
    position: relative;
    box-sizing: border-box;
}

.wpct-trending *,
.wpct-trending *::before,
.wpct-trending *::after {
    box-sizing: inherit;
}

.wpct-trending-viewport {
    overflow: hidden;
    width: 100%;
}

.wpct-trending-track {
    display: flex;
    gap: 20px;
}

.wpct-trending-grid .wpct-trending-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.wpct-trending-carousel .wpct-trending-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
}

.wpct-trending-carousel .wpct-trending-track {
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.wpct-trending-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(5, 35, 85, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.wpct-trending-desc {
    display: none;
}

.wpct-trending-thumb {
    position: relative;
    margin: 12px 12px 0;
    aspect-ratio: 19 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.wpct-trending-badge {
   position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f04438;
    border: 1px solid #f04438;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.wpct-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpct-trending-noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e7f0fb, #f4f8fd);
}

.wpct-trending-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 20px;
    flex: 1 1 auto;
}

.wpct-trending-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wpct-trending-stars {
    display: inline-flex;
    gap: 1px;
}

.wpct-trending-star {
    width: 15px;
    height: 15px;
    fill: var(--wpct-star-empty);
}

.wpct-trending-star.is-full {
    fill: var(--wpct-star);
}

.wpct-trending-star.is-half {
    fill: url(#wpct-trending-half);
}

.wpct-trending-trusted {
    font-size: 12px;
    color: var(--wpct-muted);
    font-weight: 500;
}

.wpct-trending-title {
    margin: 2px 0 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--wpct-text);
}

.wpct-trending-desc p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--wpct-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpct-trending-desc.is-open p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.wpct-trending-more {
    align-self: flex-start;
    margin-top: 2px;
    padding: 0;
    border: none;
    background: none !important;
    color: var(--wpct-blue) !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wpct-trending-more:hover {
    text-decoration: underline;
}

.wpct-trending-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.wpct-trending-price-new {
    font-size: 20px;
    font-weight: 800;
    color: var(--wpct-text);
}

.wpct-trending-price-old {
    font-size: 15px;
    font-weight: 500;
    color: var(--wpct-muted);
    text-decoration: line-through;
}

.wpct-trending-btn {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--wpct-blue);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease;
}

.wpct-trending-btn:hover {
    background: var(--wpct-blue-dark);
    color: #fff;
}

.wpct-trending-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.wpct-trending-arrow,
.wpct-deal-arrow {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid var(--wpct-line, #e6edf6) !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: var(--wpct-text, #1a2a45) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(5, 35, 85, .10) !important;
    padding: 0 !important;
    outline: none !important;
    transition: all .2s ease !important;
}

.wpct-trending-arrow:hover,
.wpct-trending-arrow:focus,
.wpct-deal-arrow:hover,
.wpct-deal-arrow:focus {
    background: #EAF4FF !important;
    color: #1a4d80 !important;
    border-color: #C7DDF8 !important;
    box-shadow: 0 6px 16px rgba(5, 35, 85, .18) !important;
}

.wpct-trending-arrow svg,
.wpct-deal-arrow svg {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    margin: auto !important;
    color: var(--wpct-blue-dark)
}

.wpct-trending-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.wpct-trending-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cdd7e5 !important;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.wpct-trending-dot.is-active {
    width: 24px;
    height: 8px;
    border-radius: 999px;
    background: var(--wpct-blue-dark) !important;
    transform: none;
}

@media (max-width: 1024px) {
    .wpct-trending-carousel .wpct-trending-card { flex-basis: calc((100% - 20px) / 2); }
    .wpct-trending-grid .wpct-trending-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wpct-trending-carousel .wpct-trending-card { flex-basis: 100%; }
    .wpct-trending-grid .wpct-trending-track { grid-template-columns: 1fr; }
    .wpct-trending-prev { left: 2px; }
    .wpct-trending-next { right: 2px; }
}

/* Deal of the Month — [wpct_deal] */
.wpct-deal-wrapper {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.wpct-deal-wrapper *,
.wpct-deal-wrapper *::before,
.wpct-deal-wrapper *::after {
    box-sizing: inherit;
}

.wpct-deal-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.wpct-deal-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
}

.wpct-deal-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.wpct-deal-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.wpct-deal-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.wpct-deal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cdd7e5 !important;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.wpct-deal-dot.is-active {
    width: 24px;
    height: 8px;
    border-radius: 999px;
    background: #1a4d80 !important;
    transform: none;
}

.wpct-deal {
    --wpct-blue: #2b8fe0;
    --wpct-blue-dark: #1a4d80;
    --wpct-text: #0f2138;
    --wpct-muted: #64748b;
    display: grid;
    grid-template-columns: minmax(300px, 440px) 1fr;
    gap: 0;
    align-items: stretch;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, #1c3f6e 0%, #12294a 45%, #0b1a30 100%);
    box-shadow: 0 18px 48px rgba(5, 20, 45, .32);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.wpct-deal *,
.wpct-deal *::before,
.wpct-deal *::after {
    box-sizing: inherit;
}

.wpct-deal-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: linear-gradient(150deg, #29579a 0%, #1b3d6e 55%, #16345f 100%);
}

.wpct-deal-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 90% at 50% 30%, rgba(255, 255, 255, .12), transparent 60%);
    pointer-events: none;
}

.wpct-deal-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    transition: transform .45s ease;
}

.wpct-deal-media:hover img {
    transform: scale(1.05);
}

.wpct-deal-noimg {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    background: linear-gradient(135deg, #2c5896, #1a3a68);
}

.wpct-deal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    z-index: 2;
    border-radius: 999px;
    background: var(--wpct-blue);
    border: 1.5px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.wpct-deal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 34px 40px;
    color: #fff;
}

.wpct-deal-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff !important;
}

.wpct-deal-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
    max-width: 80ch;
}

.wpct-deal-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.wpct-deal-price-new {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
}

.wpct-deal-price-old {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    text-decoration: line-through;
}

.wpct-deal-save {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(46, 204, 113, .16);
    color: #34d17f;
    font-size: 13px;
    font-weight: 700;
}

.wpct-deal-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.wpct-deal-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    background: var(--wpct-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s ease;
}

.wpct-deal-btn:hover {
    background: var(--wpct-blue-dark);
    color: #fff;
}

.wpct-deal-code {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wpct-deal-code-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border: 1px dashed rgba(255, 255, 255, .45);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.wpct-deal-code-box code {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    background: none;
    padding: 0;
}

.wpct-deal-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.wpct-deal-copy:hover {
    background: rgba(255, 255, 255, .24);
}

.wpct-deal-copy:focus {
    background: rgba(255, 255, 255, .24);
}

.wpct-deal-copy svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.wpct-deal-copy.is-copied {
    background: rgba(46, 204, 113, .28);
    color: #34d17f;
}

.wpct-deal-copied {
    font-size: 12px;
    font-weight: 600;
    color: #34d17f;
    opacity: 0;
    transition: opacity .2s ease;
}

.wpct-deal-copied.show {
    opacity: 1;
}

@media (max-width: 640px) {
    .wpct-deal {
        grid-template-columns: 1fr;
    }

    .wpct-deal-body {
        padding: 24px;
    }
}