/* =======================================================================
   КАТАЛОГ: КАРТОЧКА ТОВАРА — БАЗА
   ======================================================================= */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    clear: none !important;
    list-style: none;
}

/* Search results (without sidebar): show one more column on desktop */
.related ul.products,
.x-woo-search-results ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    width: auto !important;
}

.woocommerce ul.products li.product.x-pcard {
    background: #f6f8fb;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.x-pcard__badges {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.x-pcard__media {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 10px 8px;
}

.x-pcard__media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
}
body.home .x-pcard__media {
    height: 450px;
}
body.home .x-home-new-slider .x-home-new-slider__viewport .x-pcard__media {
    height: 330px;
}
.x-pcard__title {
    display: block;
    height: 80px;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.x-pcard__price {
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 18px;
    align-items: center;
    gap: 8px;
}

.x-pcard__price del {
    order: 2;
    opacity: 1;
    color: var(--red);
    font-size: 13px;
}

.x-pcard__price del .amount,
.x-pcard__price del .woocommerce-Price-amount {
    font-weight: 400;
    color: #8f8f8f;
}

.x-discount {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.x-actions2 {
    display: flex;
    gap: 8px;
}

.x-actions2 .x-btn {
    height: 38px;
}

/*!* =======================================================================*/
/*   КАТАЛОГ: КАРТОЧКА АКСЕССУАРА*/
/*   ======================================================================= *!*/

/*.x-pcard--acc {*/
/*    padding: 16px 16px 16px;*/
/*}*/

/*.x-pcard__media--acc {*/
/*    height: 300px;*/
/*    padding: 26px 10px 8px;*/
/*}*/

/*.x-pcard__title--acc {*/
/*    font-size: 20px;*/
/*    line-height: 1.15;*/
/*    margin: 8px 6px 14px;*/
/*}*/

/*.x-pcard__price--acc {*/
/*    font-size: 18px;*/
/*    margin: 0 6px 16px;*/
/*}*/

/*.x-pcard__bar {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 12px;*/
/*    padding: 0 6px;*/
/*}*/

/*.x-pcard__buy {*/
/*    flex: 1;*/
/*}*/

/* =======================================================================
   КАТАЛОГ: ИКОНКИ И КНОПКИ В КАРТОЧКЕ
   ======================================================================= */

.x-iconpill {
    width: 64px;
    height: 44px;
    border-radius: 999px;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.x-iconpill--green {
    background: #01ba04;
}

.x-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.x-ico--ne::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #000000;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(45deg);
    border-radius: 2px;
}

.x-ico--cart::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 4px;
    width: 12px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 3px;
}

.x-ico--cart::after {
    content: "+";
    position: absolute;
    right: -2px;
    top: -2px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

/*!* =======================================================================*/
/*   КАТАЛОГ: СТРАНИЦА КАТЕГОРИИ И ФИЛЬТРЫ*/
/*   ======================================================================= *!*/

/*.x-cat {*/
/*    display: grid;*/
/*    grid-template-columns: 320px 1fr;*/
/*    gap: 24px;*/
/*    padding: 24px 0 10px;*/
/*}*/

/*.x-filter {*/
/*    background: #f6f8fb;*/
/*    border-radius: 18px;*/
/*    padding: 18px;*/
/*}*/

/*.x-filter__head {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    margin-bottom: 16px;*/
/*}*/

/*.x-filter__title {*/
/*    font-size: 16px;*/
/*    font-weight: 800;*/
/*    color: #000000;*/
/*}*/

/*.x-filter__clear {*/
/*    font-size: 14px;*/
/*    color: #2563eb;*/
/*    text-decoration: underline;*/
/*}*/

/*.x-wdg {*/
/*    padding: 14px 0;*/
/*    border-top: 1px solid #e9edf3;*/
/*}*/

/*.x-wdg:first-child {*/
/*    border-top: 0;*/
/*    padding-top: 0;*/
/*}*/

/*.x-wdg__title {*/
/*    font-size: 14px;*/
/*    font-weight: 800;*/
/*    margin-bottom: 12px;*/
/*    color: #000000;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*}*/

/*.x-cat__top {*/
/*    display: flex;*/
/*    align-items: flex-start;*/
/*    justify-content: space-between;*/
/*    gap: 18px;*/
/*    margin-bottom: 18px;*/
/*}*/

/*.x-cat__h1 {*/
/*    font-size: 44px;*/
/*    font-weight: 900;*/
/*    margin: 0;*/
/*    letter-spacing: -0.02em;*/
/*    color: #000000;*/
/*}*/

/*.x-cat__sort {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*}*/

/*.x-cat__sortlbl {*/
/*    color: #6b7280;*/
/*    font-size: 14px;*/
/*}*/

/*.x-cat__sortui .woocommerce-ordering {*/
/*    position: relative;*/
/*    margin: 0;*/
/*}*/

/*.x-cat__sortui .woocommerce-ordering::before {*/
/*    content: "⇅";*/
/*    position: absolute;*/
/*    left: 12px;*/
/*    top: 22px;*/
/*    transform: translateY(-50%);*/
/*    font-size: 14px;*/
/*    line-height: 1;*/
/*    color: #6b7280;*/
/*    pointer-events: none;*/
/*    z-index: 1;*/
/*}*/

/*.x-cat__sortui .woocommerce-ordering .orderby {*/
/*    height: 44px;*/
/*    border-radius: 10px;*/
/*    border: 1px solid #e9edf3;*/
/*    padding: 0 36px;*/
/*    font-size: 14px;*/
/*    background-color: #fff;*/
/*    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");*/
/*    background-repeat: no-repeat;*/
/*    background-position: right 14px center;*/
/*    background-size: 10px 6px;*/
/*    outline: none;*/
/*    cursor: pointer;*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    appearance: none;*/
/*}*/

/* =======================================================================
   КАТАЛОГ: СТРАНИЦА КАТЕГОРИИ И ФИЛЬТРЫ
   ======================================================================= */

.x-cat {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    padding: 28px 0 10px;
    align-items: start;
}

.x-filter {
    background: #f3f5fa;
    border-radius: 32px;
    padding: 24px;
}

.x-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.x-filter__title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.x-filter__clear {
    font-size: 14px;
    line-height: 1.2;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Иконка-бургер (три полоски) */
.x-filter__toggle-icon {
    display: none;
}
.x-filter__toggle-icon::before,
.x-filter__toggle-icon::after,
.x-filter__toggle-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: 0.2s;
}
.x-filter__toggle-icon::before {
    top: 0;
}
.x-filter__toggle-icon::after {
    bottom: 0;
}
.x-filter__toggle-icon span {
    top: 50%;
    transform: translateY(-50%);
}

/* Полоса заголовка всегда видна */
.x-filter__head {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.x-filter__head > .x-filter__title {
    flex: 1;
    margin: 0;
}
.x-filter__clear {
    margin-left: auto;
    text-decoration: none;
    font-size: 14px;
    color: #999;
}

/* Блок с виджетами скрыт по умолчанию, показывается только при is-open */
.x-filter__body {
    margin-top: 24px;
}

.x-wdg {
    padding: 22px 0;
    border-top: 1px solid #dde3ee;
}

.x-wdg:first-child {
    border-top: 0;
    padding-top: 0;
}

.x-wdg__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: #000;
}

@media (max-width: 768px) {
    /* Иконка-бургер (три полоски) */
    .x-filter__toggle-icon {
        display: inline-block;
        width: 20px;
        height: 16px;
        margin-right: 12px;
        position: relative;
        cursor: pointer;
        vertical-align: middle;
    }

    .x-filter__body {
        display: none;
        margin-top: 24px;
    }
    .x-filter.is-open .x-filter__body {
        display: block;
    }
}

/*.x-wdg__title::after {*/
/*    content: "^";*/
/*    font-size: 14px;*/
/*    line-height: 1;*/
/*    color: #8a94a8;*/
/*    transform: scaleX(1.1);*/
/*}*/

.x-cat__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.x-cat__h1,
.woocommerce-products-header__title.page-title {
    font-size: 42px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -2px;
    color: #000;
    margin: 0;
}

.x-cat__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.x-cat__sortlbl {
    color: #6b7280;
    font-size: 14px;
}

.x-cat__sortui .woocommerce-ordering {
    position: relative;
    margin: 0;
}

.x-cat__sortui .woocommerce-ordering::before {
    content: "⇅";
    position: absolute;
    left: 12px;
    top: 22px;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.x-cat__sortui .woocommerce-ordering .orderby {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e9edf3;
    padding: 0 36px 0 36px;
    font-size: 14px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 6px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* price filter */

.x-filter .widget_price_filter .price_slider_wrapper {
    margin: 0;
}

.x-filter .widget_price_filter .price_slider {
    margin: 14px 10px 18px;
    background: #d7dde8;
    border: 0;
    height: 6px;
    border-radius: 999px;
}

.x-filter .widget_price_filter .ui-slider .ui-slider-range {
    background: #000;
    border-radius: 999px;
}

.x-filter .widget_price_filter .ui-slider .ui-slider-handle {
    width: 24px;
    height: 24px;
    top: -9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d7dde8;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18);
}

.x-price-filter__values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.x-price-filter__inputs {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 14px;
}

.x-price-filter__input {
    width: 50%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #dde3ee;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    color: #4b5563;
}

.x-price-filter__sep {
    font-size: 18px;
    color: #6b7280;
    text-align: center;
}

.x-price-filter__submit,
.x-filter .widget_price_filter .button,
.x-filter .widget_price_filter .price_label {
    display: none !important;
}

/* layered nav / attributes */

.x-filter ul.children {
    padding-left: 24px;
}
.x-filter .product-categories ::before {
    display: none;
}

.x-filter .woocommerce-widget-layered-nav-list,
.x-filter .product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.x-filter .woocommerce-widget-layered-nav-list li,
.x-filter .product-categories li {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.x-filter .woocommerce-widget-layered-nav-list li:last-child,
.x-filter .product-categories li:last-child {
    margin-bottom: 0;
}

.x-filter .woocommerce-widget-layered-nav-list a,
.x-filter .product-categories a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-left: 36px !important;
    font-size: 14px;
    line-height: 1.3;
    color: #4b5563;
    text-decoration: none;
}

.x-filter .woocommerce-widget-layered-nav-list a::before,
.x-filter .product-categories a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #dde3ee;
    background: #f8fafc;
    box-sizing: border-box;
}

.x-filter .woocommerce-widget-layered-nav-list .chosen a,
.x-filter .product-categories .current-cat > a {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

.x-filter .woocommerce-widget-layered-nav-list .chosen a::after,
.x-filter .product-categories .current-cat > a::after {
    content: none !important;
    display: none !important;
}

.x-filter .woocommerce-widget-layered-nav-list .chosen::after,
.x-filter .woocommerce-widget-layered-nav-list .chosen::before,
.x-filter .product-categories .current-cat::after,
.x-filter .product-categories .current-cat::before {
    content: none !important;
    display: none !important;
}

.x-filter .woocommerce-widget-layered-nav-list .chosen a .remove,
.x-filter .woocommerce-widget-layered-nav-list .chosen a svg,
.x-filter .woocommerce-widget-layered-nav-list .chosen a i,
.x-filter .woocommerce-widget-layered-nav-list .chosen .remove,
.x-filter .woocommerce-widget-layered-nav-list .chosen svg,
.x-filter .woocommerce-widget-layered-nav-list .chosen i,
.x-filter .product-categories .current-cat > a .remove,
.x-filter .product-categories .current-cat > a svg,
.x-filter .product-categories .current-cat > a i {
    display: none !important;
}

.x-filter .woocommerce-widget-layered-nav-list .chosen a::before,
.x-filter .product-categories .current-cat > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #000;
    background: #000
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'><path d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>")
        center center / 10px 8px no-repeat;
    box-sizing: border-box;
}

.x-filter .woocommerce-widget-layered-nav-list .count,
.x-filter .product-categories .count {
    display: none;
}

/* result count */
.woocommerce-result-count {
    font-size: 14px;
    color: #6b7280;
}

/*!* =======================================================================*/
/*   КАТАЛОГ: МОДИФИКАТОРЫ КАРТОЧКИ ДЛЯ SHOP*/
/*   ======================================================================= *!*/

/*.x-pcard__media--shop img {*/
/*    width: auto;*/
/*}*/

/*.x-pcard__title--shop {*/
/*    display: block;*/
/*}*/

/*.x-pcard__price--shop {*/
/*    gap: 12px;*/
/*    font-size: 20px;*/
/*    font-weight: 600;*/
/*}*/

/*.x-pcard__price--shop del {*/
/*    opacity: 0.55;*/
/*    margin-right: 8px;*/
/*    font-size: 16px;*/
/*    font-weight: 400;*/
/*}*/

/*.x-pcard__price--shop ins {*/
/*    text-decoration: none;*/
/*}*/

/* ===== Shop / product notices ===== */
.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper {
    margin: 24px 0;
}

.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper > * {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border-radius: 20px;
    box-shadow: none;
    outline: none;
    text-align: left;
}

/* убрать дефолтные иконки Woo */
.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper > *::before {
    display: none !important;
    content: none !important;
}

/* success */
.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .woocommerce-message {
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: #f6f8fb;
    color: #111827;
}

/* info */
.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .woocommerce-info {
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: #f6f8fb;
    color: #111827;
}

/* error */
.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .woocommerce-error {
    list-style: none;
    border: 1px solid rgba(250, 77, 98, 0.18);
    background: #fff5f6;
    color: #fa4d62;
}

.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 180px;
    height: 54px;
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    background: #01ba04;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 0 24px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
}

.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .button:hover {
    background: #e5e7eb;
    color: #111827;
}

.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .woocommerce-error li {
    margin: 0;
    padding: 4px 0;
    font-weight: 400;
    line-height: 1.35;
}

.woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .woocommerce-error strong {
    font-weight: 400;
    color: inherit;
}

@media (max-width: 768px) {
    .woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper > * {
        display: block;
        padding: 16px;
        border-radius: 16px;
    }

    .woocommerce:not(.woocommerce-account) .woocommerce-notices-wrapper .button {
        display: inline-flex;
        margin: 14px 0 0;
        width: 100%;
        justify-content: center;
    }
}

/* =======================================================================
   КАТАЛОГ: ПАГИНАЦИЯ
   ======================================================================= */

.woocommerce nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 26px 0 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0;
    padding: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #cfd8e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #fff;
    color: #a7b4c7;
    font-weight: 800;
    text-decoration: none;
    box-sizing: border-box;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: #b8c4d6;
    color: #8fa0b7;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #98a8bb;
    color: #fff;
    border-color: #98a8bb;
}

.woocommerce nav.woocommerce-pagination ul li .prev,
.woocommerce nav.woocommerce-pagination ul li .next {
    color: #c2cbe0;
    font-size: 24px;
    padding: 0 18px;
}

/* =======================================================================
   КАТАЛОГ: ВИДЖЕТ ФИЛЬТРА ПО ЦЕНЕ
   ======================================================================= */

.widget_price_filter .price_slider_wrapper .ui-widget-content {
    height: 4px;
    background: #d9dee6;
    border-radius: 999px;
    border: 0;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: #000000;
    border-radius: 999px;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #000000;
    border-radius: 999px;
    top: -7px;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.widget_price_filter .price_slider_amount .button {
    height: 38px;
    border-radius: 10px;
    background: #000000;
    color: #fff;
    border: 0;
    padding: 0 12px;
    font-weight: 800;
    cursor: pointer;
}

/* =======================================================================
   ПОКУПАЮТ ВМЕСТЕ
   ======================================================================= */

.x-fbt {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.x-fbt__item {
    display: grid;
    grid-template-columns: 28px 78px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 8px;
    padding: 18px 20px;
    border: 1px solid #e6edf6;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.x-fbt__item::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #c9d2df;
    background: #fff;
    display: block;
    grid-column: 1;
    grid-row: 1;
}

.x-fbt__item.is-checked::before {
    background: #000000;
    border-color: #000000;
    box-shadow: inset 0 0 0 2px #000000;
}

.x-fbt__item.is-checked::after {
    content: "";
    grid-column: 1;
    grid-row: 1;
    width: 6px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 4px 0 0 8px;
}

.x-fbt__check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.x-fbt__box {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 24px;
    height: 24px;
}

.x-fbt__img {
    width: 78px;
    height: 78px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.x-fbt__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.x-fbt__name {
    grid-column: 3;
    grid-row: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.15;
    color: #000000;
}

.x-fbt__price {
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: flex-end;
}

/* Цены со скидкой в блоке "Покупают вместе" */
.x-fbt__price ins {
    order: 1;
    color: #fa4d62;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    text-align: right;
}
.x-fbt__price del {
    order: 2;
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
    text-align: right;
    text-decoration: line-through;
}

.x-fbt__price .screen-reader-text {
    display: none;
}

.x-fbt__desc {
    grid-column: 3 / 5;
    grid-row: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.x-fbt__item:hover {
    border-color: #d6e0ee;
    background: #fbfcfe;
}

.x-fbt__variation-select {
    width: 100%;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #cfd8e6;
    text-decoration: none;
    box-sizing: border-box;
}
.x-pcard.product .x-pcard__price ins{
	text-decoration: none;
}
/* =======================================================================
   МОБИЛЬНЫЕ СТИЛИ
   ======================================================================= */

@media (max-width: 1280px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related ul.products,
    .x-woo-search-results ul.products,
    .x-woo-search-results ul.products.columns-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .x-cat {
        grid-template-columns: 1fr;
    }

    .x-cat__h1 {
        font-size: 34px;
    }
}

/* mobile */
@media (max-width: 1024px) {
    .related ul.products,
    .x-woo-search-results ul.products,
    .x-woo-search-results ul.products.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .x-cat {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .x-filter {
        order: 2;
        border-radius: 28px;
    }

    .x-cat__top {
        flex-direction: column;
        align-items: stretch;
    }

    .x-cat__h1,
    .woocommerce-products-header__title.page-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .x-cat {
        padding-top: 18px;
    }

    .x-filter {
        padding: 20px 16px;
        border-radius: 24px;
    }

    .x-filter__title {
        font-size: 18px;
    }

    .x-wdg {
        padding: 18px 0;
    }

    .x-wdg__title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .x-cat__h1,
    .woocommerce-products-header__title.page-title {
        font-size: 28px;
    }

    .x-price-filter__inputs {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .x-price-filter__input {
        padding: 0 10px;
        font-size: 13px;
    }

    .woocommerce ul.products.columns-3,
    .woocommerce ul.products,
    .x-woo-search-results ul.products {
        grid-template-columns: 1fr;
    }

    .x-fbt__item {
        grid-template-columns: 24px 64px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }

    .x-fbt__price {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        margin-top: 2px;
    }

    .x-fbt__desc {
        grid-column: 3;
        grid-row: 3;
    }

    .x-fbt__img {
        width: 64px;
        height: 64px;
    }

    .x-actions2 {
        flex-direction: column;
    }
}
