.cvpl-wrap {
    width: 100%;
}

.cvpl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cvpl-title {
    margin: 0;
}

.cvpl-header-button {
    text-decoration: none;
}

.cvpl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.cvpl-tab-button {
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 14px;
}

.cvpl-tab-button.is-active {
    border-color: #111;
}

.cvpl-tab-panel {
    display: none;
    position: relative;
}

.cvpl-tab-panel.is-active {
    display: block;
}

.cvpl-wrap.cvpl-js-pending .cvpl-tab-panel.is-active .cvpl-products {
    opacity: 0;
    visibility: hidden;
}

.cvpl-wrap.cvpl-js-pending .cvpl-tab-panel.is-active .cvpl-loader {
    display: flex;
}

.cvpl-loader {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    width: 100%;
}

.cvpl-tab-panel.cvpl-is-initializing .cvpl-loader {
    display: flex;
}

.cvpl-tab-panel.cvpl-is-initializing .cvpl-products {
    opacity: 0;
    visibility: hidden;
}

.cvpl-tab-panel .cvpl-products {
    transition: opacity 0.15s ease;
}

.lds-dual-ring,
.lds-dual-ring:after {
    box-sizing: border-box;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6.4px solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cvpl-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cvpl-product-card {
    display: block;
    text-decoration: none;
}

.cvpl-product-image-wrap {
    width: 100%;
    margin-bottom: 10px;
}

.cvpl-product-image {
    width: 100%;
    height: auto;
    display: block;
}

.cvpl-product-title {
    margin: 0 0 6px;
}

.cvpl-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1024px) {
    .cvpl-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) and (orientation: portrait), (max-width: 991px) and (orientation: landscape) {
    .cvpl-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cvpl-products {
        display: block;
    }

    .cvpl-product-card {
        padding: 0 6px;
    }

    .cvpl-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
