/* =====================================================
   Alumeco — стильная таблица каталога + мобильные карточки
   Цвета сайта: белый, графитовый, красный акцент
   ===================================================== */

.alumeco-table-wrap {
    --alumeco-red: #e21b23;
    --alumeco-red-dark: #bf1118;
    --alumeco-dark: #151515;
    --alumeco-text: #2b2b2b;
    --alumeco-muted: #737373;
    --alumeco-line: #ececec;
    --alumeco-soft: #f8f8f8;
    --alumeco-white: #ffffff;

    width: 100%;
    margin: 22px 0 34px;
    font-family: inherit;
}

.alumeco-no-products {
    padding: 20px 0;
    color: var(--alumeco-muted);
}

/* =====================================================
   ДЕСКТОП — таблица
   ===================================================== */

.alumeco-cards {
    display: none !important;
}

.alumeco-product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--alumeco-white);
    border: 1px solid var(--alumeco-line);
    border-radius: 12px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.055);
}

/* Красная линия сверху */
.alumeco-product-table::before {
    content: "";
    display: table-caption;
    height: 4px;
    background: var(--alumeco-red);
    border-radius: 12px 12px 0 0;
}

/* Заголовок */
.alumeco-product-table thead {
    background: var(--alumeco-dark);
}

.alumeco-product-table thead th {
    padding: 15px 16px;
    text-align: left;
    color: var(--alumeco-white);
    background: var(--alumeco-dark);
    border: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.alumeco-product-table thead th:first-child {
    padding-left: 20px;
}

.alumeco-product-table thead th:last-child {
    padding-right: 20px;
}

/* Строки */
.alumeco-row {
    background: var(--alumeco-white);
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.alumeco-row:nth-child(even) {
    background: #fcfcfc;
}

.alumeco-row:hover {
    background: #fff7f7;
    box-shadow: inset 4px 0 0 var(--alumeco-red);
}

.alumeco-product-table td {
    padding: 15px 16px;
    color: var(--alumeco-text);
    border: 0;
    border-bottom: 1px solid var(--alumeco-line);
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.35;
}

.alumeco-product-table tbody tr:last-child td {
    border-bottom: 0;
}

.alumeco-product-table td:first-child {
    padding-left: 20px;
}

.alumeco-product-table td:last-child {
    padding-right: 20px;
}

/* Назва */
.col-name {
    width: 53%;
    min-width: 280px;
}

.col-name a {
    color: var(--alumeco-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.16s ease;
}

.col-name a:hover {
    color: var(--alumeco-red);
}

/* Марка */
.col-mark {
    color: var(--alumeco-muted) !important;
    white-space: nowrap;
}

/* Кількість */
.col-qty {
    color: var(--alumeco-text) !important;
    white-space: nowrap;
}

.col-qty::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--alumeco-red);
    vertical-align: 1px;
}

/* Ціна */
.col-price {
    color: var(--alumeco-dark) !important;
    font-size: 15px !important;
    font-weight: 700;
    white-space: nowrap;
}

.col-price .woocommerce-Price-amount {
    color: inherit;
}

/* Кнопка */
.col-order {
    text-align: right;
    white-space: nowrap;
}

.alumeco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 17px;
    color: var(--alumeco-red) !important;
    background: var(--alumeco-white);
    border: 1px solid var(--alumeco-red);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.alumeco-btn:hover {
    color: var(--alumeco-white) !important;
    background: var(--alumeco-red);
    border-color: var(--alumeco-red);
    box-shadow: 0 5px 12px rgba(226, 27, 35, 0.2);
    transform: translateY(-1px);
}

/* =====================================================
   ПЛАНШЕТ
   ===================================================== */

@media (max-width: 1024px) and (min-width: 768px) {

    .alumeco-product-table thead th,
    .alumeco-product-table td {
        padding-right: 12px;
        padding-left: 12px;
    }

    .alumeco-product-table thead th:first-child,
    .alumeco-product-table td:first-child {
        padding-left: 16px;
    }

    .alumeco-product-table thead th:last-child,
    .alumeco-product-table td:last-child {
        padding-right: 16px;
    }

    .col-name {
        min-width: 220px;
    }

    .col-name a {
        font-size: 14px;
    }

    .alumeco-btn {
        padding-right: 13px;
        padding-left: 13px;
    }
}

/* =====================================================
   МОБИЛКА — карточки
   ===================================================== */

@media (max-width: 767px) {

    .alumeco-table-wrap {
        margin: 16px 0 26px;
    }

    .alumeco-product-table {
        display: none !important;
    }

    .alumeco-cards {
        display: block !important;
    }

    .alumeco-card {
        position: relative;
        overflow: hidden;
        margin-bottom: 12px;
        padding: 15px 15px 14px 17px;
        background: var(--alumeco-white);
        border: 1px solid var(--alumeco-line);
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.045);
        transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.18s ease;
    }

    /* Акцентная полоска карточки */
    .alumeco-card::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        background: var(--alumeco-red);
    }

    .alumeco-card:hover {
        border-color: rgba(226, 27, 35, 0.28);
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.075);
        transform: translateY(-1px);
    }

    .alumeco-card__name {
        display: block;
        margin: 0 0 13px;
        color: var(--alumeco-dark);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        text-decoration: none !important;
        transition: color 0.16s ease;
    }

    .alumeco-card__name:hover {
        color: var(--alumeco-red);
    }

    .alumeco-card__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 13px;
    }

    .alumeco-card__meta-item {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 8px 10px;
        background: var(--alumeco-soft);
        border-radius: 6px;
    }

    .meta-label {
        color: #9a9a9a;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .meta-val {
        color: var(--alumeco-text);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
    }

    .alumeco-card__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--alumeco-line);
    }

    .alumeco-card__price {
        color: var(--alumeco-dark);
        font-size: 17px;
        font-weight: 800;
        line-height: 1.1;
        white-space: nowrap;
    }

    .alumeco-card__price .woocommerce-Price-amount {
        color: inherit;
    }

    .alumeco-btn--card {
        min-height: 40px;
        padding: 9px 16px;
        border-radius: 6px;
        font-size: 13px;
    }
}

/* =====================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ===================================================== */

@media (max-width: 380px) {

    .alumeco-card {
        padding-right: 12px;
        padding-left: 15px;
    }

    .alumeco-card__bottom {
        gap: 8px;
    }

    .alumeco-card__price {
        font-size: 15px;
    }

    .alumeco-btn--card {
        min-height: 38px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 12px;
    }
}
/* =====================================================
   DESKTOP OVERRIDE — светлая таблица с раздельными строками
   Добавить в самый конец alumeco-catalog.css
   ===================================================== */

@media (min-width: 768px) {

    .alumeco-table-wrap {
        margin-top: 20px;
    }

    .alumeco-product-table {
        width: 100%;
        overflow: visible;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 9px !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Убираем старую красную линию над всей таблицей */
    .alumeco-product-table::before {
        display: none !important;
        content: none !important;
    }

    /* =====================================================
       Светлая шапка
       ===================================================== */

    .alumeco-product-table thead {
        background: transparent !important;
    }

    .alumeco-product-table thead th {
        padding: 0 14px 11px !important;
        color: #353535 !important;
        border: 0 !important;
        border-bottom: 2px solid #e21b23 !important;
        background: transparent !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.2;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .alumeco-product-table thead th:first-child {
        padding-left: 18px !important;
    }

    .alumeco-product-table thead th:last-child {
        padding-right: 18px !important;
    }

    /* =====================================================
       Строки-карточки
       ===================================================== */

    .alumeco-row {
        background: transparent !important;
        box-shadow: none !important;
        transition: transform 0.18s ease;
    }

    .alumeco-row:nth-child(even) {
        background: transparent !important;
    }

    .alumeco-product-table td {
        padding: 14px !important;
        color: #2b2b2b;
        border-top: 1px solid #e7e7e7 !important;
        border-bottom: 1px solid #e7e7e7 !important;
        background: #ffffff !important;
        vertical-align: middle;
        transition:
            background-color 0.18s ease,
            border-color 0.18s ease;
    }

    .alumeco-product-table td:first-child {
        padding-left: 18px !important;
        border-left: 1px solid #e7e7e7 !important;
        border-radius: 9px 0 0 9px;
    }

    .alumeco-product-table td:last-child {
        padding-right: 18px !important;
        border-right: 1px solid #e7e7e7 !important;
        border-radius: 0 9px 9px 0;
    }

    /* Наведение на строку */
    .alumeco-row:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: translateY(-1px);
    }

    .alumeco-row:hover td {
        border-color: rgba(226, 27, 35, 0.35) !important;
        background: #fffafa !important;
    }

    .alumeco-row:hover td:first-child {
        box-shadow: inset 3px 0 0 #e21b23;
    }

    /* =====================================================
       Отдельные колонки
       ===================================================== */

    .col-name {
        width: 53%;
        min-width: 280px;
    }

    .col-name a {
        color: #202020 !important;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none !important;
    }

    .col-name a:hover {
        color: #e21b23 !important;
    }

    .col-mark {
        color: #747474 !important;
    }

    .col-qty {
        color: #343434 !important;
    }

    .col-price {
        color: #202020 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .col-order {
        text-align: right;
    }

    /* Кнопка чуть спокойнее, чтобы не спорила с таблицей */
    .alumeco-btn {
        min-height: 38px;
        padding: 8px 17px;
        color: #e21b23 !important;
        border: 1px solid #e21b23 !important;
        border-radius: 6px;
        background: #ffffff !important;
        font-size: 13px;
        font-weight: 600;
    }

    .alumeco-btn:hover {
        color: #ffffff !important;
        border-color: #e21b23 !important;
        background: #e21b23 !important;
        box-shadow: 0 5px 12px rgba(226, 27, 35, 0.18);
    }
}
/* =====================================================
   Alumeco — пагинация каталога
   ===================================================== */

.alumeco-table-wrap .woocommerce-pagination {
    margin: 26px 0 12px;
    text-align: center;
}

.alumeco-table-wrap .woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none;
}

.alumeco-table-wrap .woocommerce-pagination ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.alumeco-table-wrap .woocommerce-pagination .page-numbers li a,
.alumeco-table-wrap .woocommerce-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.alumeco-table-wrap .woocommerce-pagination .page-numbers li a:hover {
    color: #e21b23 !important;
    border-color: #e21b23 !important;
    background: #fffafa !important;
}

.alumeco-table-wrap .woocommerce-pagination .page-numbers li span.current {
    color: #fff !important;
    border-color: #e21b23 !important;
    background: #e21b23 !important;
}

@media (max-width: 767px) {
    .alumeco-table-wrap .woocommerce-pagination {
        margin-top: 20px;
    }

    .alumeco-table-wrap .woocommerce-pagination ul.page-numbers {
        gap: 5px;
    }

    .alumeco-table-wrap .woocommerce-pagination .page-numbers li a,
    .alumeco-table-wrap .woocommerce-pagination .page-numbers li span {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }
}
/* =====================================================
   Alumeco — стандартная пагинация WooCommerce
   ===================================================== */

body.woocommerce nav.woocommerce-pagination,
body.woocommerce .woocommerce-pagination {
    display: block !important;
    margin: 34px 0 12px !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Общий контейнер */
body.woocommerce nav.woocommerce-pagination ul.page-numbers,
body.woocommerce .woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px 12px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
}

/* Каждый отдельный пункт */
body.woocommerce nav.woocommerce-pagination ul.page-numbers li,
body.woocommerce .woocommerce-pagination ul.page-numbers li {
    display: block !important;
    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
}

/* Убираем пункты "Предыдущий" и "Следующий" целиком */
body.woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.prev),
body.woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.next),
body.woocommerce .woocommerce-pagination ul.page-numbers li:has(.prev),
body.woocommerce .woocommerce-pagination ul.page-numbers li:has(.next) {
    display: none !important;
}

/* Страховка для старых браузеров */
body.woocommerce nav.woocommerce-pagination .prev,
body.woocommerce nav.woocommerce-pagination .next,
body.woocommerce .woocommerce-pagination .prev,
body.woocommerce .woocommerce-pagination .next {
    display: none !important;
}

/* Обычные номера страниц */
body.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
body.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers,
body.woocommerce .woocommerce-pagination ul.page-numbers li a.page-numbers,
body.woocommerce .woocommerce-pagination ul.page-numbers li span.page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    min-width: 36px !important;
    height: 32px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #111111 !important;
    background: #f0f0f0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    transition:
        background-color 0.18s ease,
        color 0.18s ease !important;
}

/* Наведение */
body.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
body.woocommerce .woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
    color: #111111 !important;
    background: #dddddd !important;
}

/* Активная страница */
body.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current,
body.woocommerce .woocommerce-pagination ul.page-numbers li span.current {
    color: #ffffff !important;
    background: #f20d16 !important;
}

/* Мобильная версия */
@media (max-width: 767px) {

    body.woocommerce nav.woocommerce-pagination,
    body.woocommerce .woocommerce-pagination {
        margin-top: 24px !important;
    }

    body.woocommerce nav.woocommerce-pagination ul.page-numbers,
    body.woocommerce .woocommerce-pagination ul.page-numbers {
        gap: 8px !important;
    }

    body.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
    body.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers,
    body.woocommerce .woocommerce-pagination ul.page-numbers li a.page-numbers,
    body.woocommerce .woocommerce-pagination ul.page-numbers li span.page-numbers {
        width: 34px !important;
        min-width: 34px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
}
/* =====================================================
   Alumeco — хлебные крошки с фильтрами Premmerce
   ===================================================== */

.alumeco-filter-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    color: #222;
    font-size: 15px;
    line-height: 1.5;
}

.alumeco-filter-breadcrumbs__link {
    color: #222 !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.alumeco-filter-breadcrumbs__link:hover {
    color: #e20b14 !important;
}

.alumeco-filter-breadcrumbs__selected {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
}

.alumeco-filter-breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: #e20b14;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.alumeco-filter-breadcrumbs__filter {
    color: #e20b14;
}

@media (max-width: 767px) {
    .alumeco-filter-breadcrumbs {
        font-size: 14px;
    }

    .alumeco-filter-breadcrumbs__separator {
        margin: 0 7px;
        font-size: 21px;
    }
}
/* =====================================================
   Alumeco — выравнивание таблицы с фильтром + цветная шапка
   ===================================================== */

@media (min-width: 768px) {

    /* Выравниваем старт таблицы и фильтра */
    .alumeco-table-wrap {
        margin-top: -10px !important;
    }

    .premmerce-filter,
    .premmerce_filter,
    .widget_premmerce_filter {
        margin-top: 8px !important;
    }

    /* Таблица */
    .alumeco-product-table {
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Шапка таблицы */
    .alumeco-product-table thead {
        background: transparent !important;
    }

    .alumeco-product-table thead tr {
        background: transparent !important;
    }

    .alumeco-product-table thead th {
        background: #f9f9f9 !important;
        color: #c9171f !important;
        border-top: 1px solid #f3caca !important;
        border-bottom: 2px solid #e21b23 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        padding: 25px 16px 25px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .alumeco-product-table thead th:first-child {
        border-left: 1px solid #f3caca !important;
        border-radius: 10px 0 0 10px;
        padding-left: 18px !important;
    }

    .alumeco-product-table thead th:last-child {
        border-right: 1px solid #f3caca !important;
        border-radius: 0 10px 10px 0;
        padding-right: 18px !important;
    }

    /* Строки немного ближе к шапке */
    .alumeco-product-table tbody tr:first-child td {
        margin-top: 0 !important;
    }
}
/* =====================================================
   Мобилка — подпись и цена в одну строку
   ===================================================== */

@media (max-width: 767px) {

    .alumeco-card__price {
        display: flex;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
    }

    .alumeco-card__price::before {
        content: "Ціна (кг):";
        color: #9a9a9a;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}
/* =====================================================
   Alumeco — кнопка заказа на странице товара
   ===================================================== */

.alumeco-product-order-btn .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 40px;
    padding: 10px 28px;

    color: #ffffff !important;
    background: #e20b14 !important;

    border: 1px solid #e20b14 !important;
    border-radius: 6px !important;

    box-shadow: 0 6px 16px rgba(226, 11, 20, 0.16);

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1;
    letter-spacing: 0.01em;

    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* Наведение */
.alumeco-product-order-btn .elementor-button:hover {
    color: #ffffff !important;
    background: #bd0a11 !important;
    border-color: #bd0a11 !important;

    box-shadow: 0 9px 20px rgba(226, 11, 20, 0.24);

    transform: translateY(-2px);
}

/* Нажатие */
.alumeco-product-order-btn .elementor-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(226, 11, 20, 0.18);
}

/* Фокус с клавиатуры */
.alumeco-product-order-btn .elementor-button:focus-visible {
    outline: 3px solid rgba(226, 11, 20, 0.28);
    outline-offset: 3px;
}

/* Текст */
.alumeco-product-order-btn .elementor-button-text {
    color: inherit !important;
}

/* Мобилка */
@media (max-width: 767px) {

    .alumeco-product-order-btn .elementor-button {
        min-height: 52px;
        padding: 13px 20px;
        font-size: 15px !important;
        border-radius: 6px !important;
    }
}
/* =====================================================
   Alumeco — меню категорий WooCommerce
   Стиль под Premmerce-фильтр
   ===================================================== */
#woocommerce_product_categories-2 {
    margin: 0 0 24px;
    padding: 20px 22px;

    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

/* Заголовок */
#woocommerce_product_categories-2 .widget-title {
    margin: 0 0 18px;
    padding: 0;

    color: #4a4a4a;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

/* Список */
#woocommerce_product_categories-2 .product-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

/* Пункт */
#woocommerce_product_categories-2 .product-categories > li {
    position: relative;

    margin: 0;
    padding: 0 0 0 22px;

    list-style: none;
}

/* Круглый маркер */
#woocommerce_product_categories-2 .product-categories > li::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 14px;
    height: 14px;

    border: 1px solid #888888;
    border-radius: 50%;

    background: #ffffff;

    transform: translateY(-50%);
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

/* Ссылка */
#woocommerce_product_categories-2 .product-categories > li > a {
    display: inline-block;

    color: #444444 !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;

    text-decoration: none !important;

    transition: color 0.18s ease;
}

/* Количество */
#woocommerce_product_categories-2 .count {
    margin-left: 4px;

    color: #929292;
    font-size: 13px;
    font-weight: 400;
}

/* Наведение */
#woocommerce_product_categories-2 .product-categories > li:hover::before {
    border-color: #e20b14;
}

#woocommerce_product_categories-2 .product-categories > li:hover > a {
    color: #e20b14 !important;
}

/* Активная категория */
#woocommerce_product_categories-2 .product-categories > li.current-cat::before,
#woocommerce_product_categories-2 .product-categories > li.current-cat-parent::before {
    border-color: #e20b14;
    background: #e20b14;

    box-shadow: inset 0 0 0 3px #ffffff;
}

#woocommerce_product_categories-2 .product-categories > li.current-cat > a,
#woocommerce_product_categories-2 .product-categories > li.current-cat-parent > a {
    color: #e20b14 !important;
    font-weight: 600;
}

/* =====================================================
   Вложенные категории, если появятся
   ===================================================== */

#woocommerce_product_categories-2 .children {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin: 9px 0 0;
    padding: 0 0 0 10px;

    list-style: none;
}

#woocommerce_product_categories-2 .children li {
    position: relative;

    margin: 0;
    padding-left: 18px;

    list-style: none;
}

#woocommerce_product_categories-2 .children li::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 10px;
    height: 10px;

    border: 1px solid #aaaaaa;
    border-radius: 50%;

    background: #ffffff;

    transform: translateY(-50%);
}

#woocommerce_product_categories-2 .children li a {
    color: #666666 !important;
    font-size: 13px;
    text-decoration: none !important;
}

#woocommerce_product_categories-2 .children li:hover > a,
#woocommerce_product_categories-2 .children li.current-cat > a {
    color: #e20b14 !important;
}

/* =====================================================
   Мобильная версия
   ===================================================== */

@media (max-width: 767px) {

    #woocommerce_product_categories-2 {
        padding: 17px 18px;
        border-radius: 8px;
    }

    #woocommerce_product_categories-2 .widget-title {
        margin-bottom: 15px;
        font-size: 16px;
    }

    #woocommerce_product_categories-2 .product-categories {
        gap: 9px;
    }

    #woocommerce_product_categories-2 .product-categories > li > a {
        font-size: 14px;
    }
}
/* =====================================================
   Alumeco — меню категорий WooCommerce
   Прозрачный список в стиле фильтра Premmerce
   ===================================================== */

/* Убираем оформление с обёрток Elementor */

/* Сам виджет */
#woocommerce_product_categories-2 {
    margin: 0 0 22px 17px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Дополнительные внутренние обёртки */
#woocommerce_product_categories-2 > div,
#woocommerce_product_categories-2 .widget-content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Заголовок */
#woocommerce_product_categories-2 .widget-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: #555555 !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
}

/* Список */
#woocommerce_product_categories-2 .product-categories {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    list-style: none !important;
}

/* Пункты списка */
#woocommerce_product_categories-2 .product-categories > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    background: transparent !important;
    border: 0 !important;
    list-style: none !important;
}

/* Полностью убираем реальные checkbox и radio */
#woocommerce_product_categories-2 input,
#woocommerce_product_categories-2 input[type="checkbox"],
#woocommerce_product_categories-2 input[type="radio"],
#woocommerce_product_categories-2 .wc-layered-nav-term input {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем квадраты, которые могут рисоваться темой */
#woocommerce_product_categories-2 .product-categories > li > a::before,
#woocommerce_product_categories-2 .product-categories > li > a::after,
#woocommerce_product_categories-2 .product-categories > li label::before,
#woocommerce_product_categories-2 .product-categories > li label::after,
#woocommerce_product_categories-2 .product-categories > li span::before,
#woocommerce_product_categories-2 .product-categories > li span::after,
#woocommerce_product_categories-2 .checkbox,
#woocommerce_product_categories-2 .checkmark,
#woocommerce_product_categories-2 .custom-checkbox {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Убираем остаточные отступы у label */
#woocommerce_product_categories-2 label {
    margin: 0 !important;
    padding: 0 !important;
}

/* Наш единственный круглый маркер */
#woocommerce_product_categories-2 .product-categories > li::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    background: transparent !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

/* Ссылки */
#woocommerce_product_categories-2 .product-categories > li > a {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #555555 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

/* Счётчики */
#woocommerce_product_categories-2 .count {
    margin-left: 4px !important;
    color: #999999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Наведение */
#woocommerce_product_categories-2 .product-categories > li:hover::before {
    border-color: #e20b14 !important;
}

#woocommerce_product_categories-2 .product-categories > li:hover > a {
    color: #e20b14 !important;
}

/* Активная категория */
#woocommerce_product_categories-2 .product-categories > li.current-cat::before,
#woocommerce_product_categories-2 .product-categories > li.current-cat-parent::before {
    background: #e20b14 !important;
    border-color: #e20b14 !important;
    box-shadow: inset 0 0 0 3px #ffffff !important;
}

#woocommerce_product_categories-2 .product-categories > li.current-cat > a,
#woocommerce_product_categories-2 .product-categories > li.current-cat-parent > a {
    color: #e20b14 !important;
    font-weight: 600 !important;
}

/* Вложенные категории, если появятся */
#woocommerce_product_categories-2 .children {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 8px 0 0 !important;
    padding: 0 0 0 10px !important;
    list-style: none !important;
}
/* =====================================================
   Alumeco — вся строка категории кликабельна
   ===================================================== */

#woocommerce_product_categories-2 .product-categories > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Круг не должен перехватывать клик */
#woocommerce_product_categories-2 .product-categories > li::before {
    left: 0 !important;
    pointer-events: none !important;
}

/* Ссылка растягивается на всю строку */
#woocommerce_product_categories-2 .product-categories > li > a {
    display: block !important;
    width: 100% !important;
    min-height: 24px !important;

    margin: 0 !important;
    padding: 3px 6px 3px 20px !important;

    cursor: pointer !important;
}

/* Небольшая подсветка всей строки при наведении */
#woocommerce_product_categories-2 .product-categories > li:hover > a {
    color: #e20b14 !important;
    background: rgba(226, 11, 20, 0.045) !important;
    border-radius: 4px;
}
/* =====================================================
   Alumeco — таблицы с данными внутри текстов
   Статьи, страницы, описания категорий и товаров

   Обрабатываются:
   1. Таблицы с <thead>
   2. Таблицы с ручным классом .alumeco-text-table

   Не затрагиваются:
   - таблица каталога товаров
   - корзина и оформление заказа WooCommerce
   - технические таблицы темы
   ===================================================== */

:root {
    --alumeco-table-red: #e20b14;
    --alumeco-table-red-dark: #bd0a11;
    --alumeco-table-soft-red: #fff5f5;
    --alumeco-table-text: #555555;
    --alumeco-table-title: #2c2c2c;
    --alumeco-table-line: #e7e7e7;
    --alumeco-table-row-alt: #fcfcfc;
    --alumeco-table-row-hover: #fff8f8;
}

/* =====================================================
   Базовое оформление таблицы
   ===================================================== */

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
table.alumeco-text-table {
    width: 100% !important;
    max-width: 100% !important;

    margin: 15px 0 20px !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #ffffff !important;
    border: 1px solid var(--alumeco-table-line) !important;
    border-radius: 8px !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.045) !important;

    color: var(--alumeco-table-text) !important;

    font-size: 14px !important;
    line-height: 1.35 !important;

    overflow: hidden;
}

/* =====================================================
   Шапка таблицы
   ===================================================== */

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
table.alumeco-text-table thead th {
    padding: 13px 14px !important;

    color: var(--alumeco-table-red-dark) !important;
    background: var(--alumeco-table-soft-red) !important;

    border: 0 !important;
    border-right: 1px solid #f0dede !important;
    border-bottom: 2px solid var(--alumeco-table-red) !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;

    text-align: left !important;
    vertical-align: middle !important;
}

/* Убираем границу справа у последней колонки */
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tr > *:last-child,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tr > *:last-child,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tr > *:last-child,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tr > *:last-child,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tr > *:last-child,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tr > *:last-child,
table.alumeco-text-table tr > *:last-child {
    border-right: 0 !important;
}

/* =====================================================
   Обычные ячейки
   ===================================================== */

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
table.alumeco-text-table tbody td {
    padding: 12px 14px !important;

    color: var(--alumeco-table-text) !important;
    background: #ffffff !important;

    border: 0 !important;
    border-right: 1px solid #eeeeee !important;
    border-bottom: 1px solid #eeeeee !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;

    text-align: left !important;
    vertical-align: middle !important;
}

/* Последняя строка без нижней границы */
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:last-child td,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:last-child td,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:last-child td,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:last-child td,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:last-child td,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:last-child td,
table.alumeco-text-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* =====================================================
   Вложенные элементы внутри ячеек
   Перебивает размеры из старого HTML
   ===================================================== */

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th *,
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td *,

.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th *,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td *,

.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th *,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td *,

.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th *,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td *,

.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th *,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td *,

.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th *,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td *,

table.alumeco-text-table th *,
table.alumeco-text-table td * {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Убираем лишние отступы абзацев внутри таблиц */
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th p,
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td p,

.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th p,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td p,

.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th p,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td p,

.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th p,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td p,

.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) th p,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) td p,

table.alumeco-text-table th p,
table.alumeco-text-table td p {
    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================================
   Чередование строк и наведение
   ===================================================== */

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:nth-child(even) td,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:nth-child(even) td,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:nth-child(even) td,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:nth-child(even) td,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:nth-child(even) td,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:nth-child(even) td,
table.alumeco-text-table tbody tr:nth-child(even) td {
    background: var(--alumeco-table-row-alt) !important;
}

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:hover td,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:hover td,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:hover td,
.woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:hover td,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:hover td,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody tr:hover td,
table.alumeco-text-table tbody tr:hover td {
    background: var(--alumeco-table-row-hover) !important;
}

/* =====================================================
   Мобильная версия
   Горизонтальная прокрутка вместо поломанной верстки
   ===================================================== */

@media (max-width: 767px) {

    .entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
    .elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
    .elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
    .woocommerce-product-details__short-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
    .woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
    .term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations),
    table.alumeco-text-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        margin: 18px 0 22px !important;

        border-radius: 6px !important;

        -webkit-overflow-scrolling: touch;
    }

    .entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead,
    .entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody,

    .elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead,
    .elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody,

    .elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead,
    .elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody,

    .woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead,
    .woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody,

    .term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead,
    .term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody,

    table.alumeco-text-table thead,
    table.alumeco-text-table tbody {
        min-width: 680px !important;
    }

    .entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
    .elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
    .elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
    .woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
    .term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
    table.alumeco-text-table thead th {
        padding: 11px 12px !important;
        font-size: 12px !important;
    }

    .entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
    .elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
    .elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
    .woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
    .term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) tbody td,
    table.alumeco-text-table tbody td {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}
/* =====================================================
   Alumeco — исправление шапки старых текстовых таблиц
   Учитываем и <th>, и <td> внутри <thead>
   ===================================================== */

.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td,

.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td,

.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td,

.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td,

.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead th,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td,

table.alumeco-text-table thead th,
table.alumeco-text-table thead td {
    padding: 13px 14px !important;

    color: #000 !important;
    background: #fff !important;

    border: 0 !important;
    border-right: 1px solid #f0dede !important;
    border-bottom: 2px solid #e20b14 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;

    text-align: left !important;
    vertical-align: middle !important;
}

/* Жирный текст внутри шапки наследует нужный размер и цвет */
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td *,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td *,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td *,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td *,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead td *,
table.alumeco-text-table thead td * {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Убираем правую границу у последней ячейки шапки */
.entry-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead tr > *:last-child,
.elementor-widget-text-editor table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead tr > *:last-child,
.elementor-widget-theme-post-content table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead tr > *:last-child,
.woocommerce-Tabs-panel table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead tr > *:last-child,
.term-description table:has(> thead):not(.alumeco-product-table):not(.shop_table):not(.variations) thead tr > *:last-child,
table.alumeco-text-table thead tr > *:last-child {
    border-right: 0 !important;
}

