.tpab-product-archive {
    position: relative;
    width: 100%;
}

.tpab-product-archive .tpab-heading {
    margin: 0 0 1rem;
}

.tpab-product-archive ul.products.tpab-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tpab-product-archive ul.products.tpab-products::before,
.tpab-product-archive ul.products.tpab-products::after {
    display: none;
}

.tpab-product-archive ul.products.tpab-products li.product {
    clear: none !important;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

.tpab-carousel-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.tpab-carousel-button {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 4px;
    color: #122033;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    font-weight: 600;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 38px;
}

.tpab-carousel-button:hover,
.tpab-carousel-button:focus {
    border-color: #00baff;
    color: #00baff;
    outline: none;
}

.tpab-carousel-button:disabled {
    cursor: default;
    opacity: .35;
}

.tpab-category-checklist {
    border: 1px solid #dcdcde;
    border-radius: 2px;
    max-height: 280px;
    overflow: auto;
    padding: 8px 10px;
}

.tpab-category-checklist .components-base-control {
    margin-bottom: 6px;
}

.tpab-category-tools {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: -4px 0 8px;
}

.tpab-category-count {
    color: #646970;
    font-size: 12px;
}

.tpab-category-pager {
    display: flex;
    gap: 4px;
}

.tpab-category-empty {
    color: #646970;
    margin: 8px 0 0;
}

.tpab-editor-preview {
    min-height: 120px;
}

.tpab-editor-preview a,
.tpab-editor-preview a * {
    pointer-events: none;
}

.tpab-debug-console p {
    margin: 0 0 8px;
}

.tpab-debug-output {
    background: #111827;
    border-radius: 4px;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    max-height: 340px;
    overflow: auto;
    padding: 12px;
    white-space: pre-wrap;
}

@media (max-width: 767px) {
    .tpab-product-archive ul.products.tpab-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .tpab-carousel-controls {
        margin-bottom: 10px;
    }
}
