/* Обёртка таблицы */
.hitech-product-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #2d2d2d;
}

/* Таблица */
.hitech-product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.hitech-product-table thead tr {
    border-bottom: 2px solid #e0e0e0;
}

.hitech-product-table th,
.hitech-product-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.hitech-product-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #555;
}

/* Зебра-строки */
.hitech-product-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.hitech-product-table tbody tr:hover {
    background-color: #f0f6ff;
}

/* Колонки */
.hitech-product-table .col-name a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.hitech-product-table .col-name a:hover {
    text-decoration: underline;
}

.hitech-product-table .col-code {
    font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    color: #444;
}

.hitech-product-table .col-price {
    white-space: nowrap;
}

.hitech-product-table .col-actions {
    text-align: right;
}

/* Блок "нет товаров" */
.hitech-no-products {
    text-align: center;
    padding: 24px 12px;
    font-style: italic;
    color: #777;
}

/* Availability */
.hitech-stock {
    display: flex;
    align-items: center;
    margin: 0;
    margin-right: 6px;
    font-size: 14px;
}

.hitech-stock i {
    font-size: 16px;
}

/* Текстовые классы availability */
.availability {
    font-weight: 500;
}

.availability--in-stock {
    color: #2e7d32;
}

.availability--backorder {
    color: #ff8f00;
}

.availability--out-of-stock {
    color: #b71c1c;
}

/* Placeholder для отсутствующих/невозможных к заказу товаров */
.hitech-out-of-stock-placeholder {
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* Пагинация */
.hitech-product-pagination {
    margin-top: 16px;
    text-align: center;
}

.hitech-pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.hitech-pagination-item .page-numbers {
    display: inline-block;
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.hitech-pagination-item .page-numbers.current {
    background-color: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.hitech-pagination-item .page-numbers:hover:not(.current) {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* Адаптив */
@media (max-width: 768px) {
    .hitech-product-table {
        min-width: 0;
        font-size: 13px;
    }

    .hitech-product-table th,
    .hitech-product-table td {
        padding: 8px 6px;
    }
}

/* ------- Решаем баг с View Cart ----------------- */

/* Полностью подавляем появление текста "View Cart" */
.hitech-add-to-cart .added_to_cart.wc-forward {
    display: none !important;
}

/* Убираем лишние отступы у кнопки, если они есть в теме */
.hitech-add-to-cart button.buy {
    padding: 10px !important; /* Настрой под себя размер кнопки */
    line-height: 0 !important;
}

.hitech-btn-success-badge {
    position: absolute !important;
    /* Регулируй эти два параметра, чтобы посадить галочку точно на угол иконки */
    top: 2px !important; 
    right: 15px !important; 
    
    background: #28a745 !important;
    color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    
    /* Анимация */
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Когда товар добавлен (класс от JS) */
.is-added .hitech-btn-success-badge {
    opacity: 1 !important;
    transform: scale(1) !important;
}