table {
    border-collapse: collapse; 
}
bdi {
    color: var(--color-black);
}

.shop_table tbody tr {
    border-bottom: 1px solid var(--color-light-gray);
}
.variation {
    display: flex;gap: var(--offset-smallest);
    margin: 0px 0px 0px;
}
table.cart th, table.cart td {
    padding: 15px 40px;
}
dd p {
    font-size: 14px !important;
}
table.cart th, table.cart td, .product-thumbnail {
    padding: var(--offset-usual) var(--offset-smallest) var(--offset-usual) var(--offset-smallest);
}
.variation dt {
    font-weight: 400;
}
dt, dl.variation dd {
    margin: 0;
}
.main {
    overflow: hidden;
    margin-bottom: var(--offset-usual);
}
.entry-header {
    display: none;
    padding: 0 0 0;
}
table td, table th {
    vertical-align: middle;
}
.product-subtotal span bdi {
    font-weight: bold;
}
.product-price, .product-subtotal {
    white-space: nowrap;
}
.woocommerce-notices-wrapper {
    display: none;
}
table:not(.has-background) tbody td {
    background-color: transparent;
}
table:not(.has-background) th, .order-total {
    background-color: var(--color-box-top);
}
.cart-total-container {
    background-color: transparent !important;
    float: inherit !important;
    box-shadow: none;
}
.product-mobile-sku {
    display: none;
}
/*header item*/
thead tr th {
    padding: 20px 10px;
    border-bottom: 1px solid var(--color-light-gray);
    text-align: center;
    font-size: var(--fontsize-small);

}
.product-thumbnail,.heading-sku {
    padding-left: 20px !important;
}
.product-remove {
    padding-right: 20px !important;
}
/*line item*/
.wac-qty-button {
    display: inline-block;
    border-radius: 6px;
    text-align: center;
    line-height: 7px;
    background: transparent;
    border: 1px solid var(--color-gray);
}

.btn-clear-cart {
        padding: 14px;
    border-color: var(--color-red);
    color: var(--color-red);
    font-weight: 800;
    font-size: var(--fontsize-big);
}

td a img {
    max-width: 80px !important;
    /* background-color: var(--color-accent); */
    border: 1px solid transparent;
    border-radius: var(--radius-minimum);
    /* padding: 3px; */
    max-height: 100px;
    object-fit: contain;
    transition: all .1s;
}
td a img:hover {
    scale: 1.5;
    transition: all .1s;
}

table.cart td.product-quantity .quantity-flex-block .qty {
    background-color: var(--color-background);
    border-radius: var(--radius-minimum);
    border: 1px solid var(--color-light-gray);
    box-shadow: none;
    width: 70%;
    text-align: center;    -moz-appearance: textfield;
    appearance: textfield;
    -webkit-appearance: none;
    margin: 0;
}

.quantity-flex-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}
.product-quantity input.qty::-webkit-outer-spin-button,
.product-quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.product-quantity input.qty {
    -moz-appearance: textfield;
    appearance: textfield;
}

td span bdi {
    font-family: 'Akimow Sans';
}
.product-remove a {
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid var(--color-gray);
    color: var(--color-black);
    transition: all .1s;
}
.product-remove a:hover {
    background-color: var(--color-red-active);
    border-color: var(--color-red);
    color: var(--color-white);
    transition: all .1s;
}

.woocommerce-message, .cart-subtotal, td.actions{
    display: none!important;
}

.site-main {
    background-color: var(--color-box-middle);
    max-width: 1200px;
    margin: auto;
    border-radius: var(--radius-maximum);
}
.sortable:active {background: var(--color-red);}
table.shop_table_responsive tbody tr td {
    text-align: center;
}
.sortable:hover {
    background-color: var(--color-box-middle);
}
.product-name {
    text-align: center;
}
/* table:not(.has-background) tbody td, 
table:not(.has-background) th {
    background: transparent;
} */

table.cart {
    margin-bottom: 0;
}
/* thead tr th {
    background-color: var(--color-background) !important;
} */


/*btn and total*/
.order-total th {
    float: right;
}
table:not(.has-background) tbody tr:nth-child(2n) td {
    background-color: transparent;
}
.shop_table_responsive {
    margin-bottom: 0;
}
.sortable button {
    width: 100%;
    padding: 0px 20px;
    font-size: var(--fontsize-small);
}
.product-weight button {
    text-wrap: nowrap;
}

.cart_totals {
    border-radius: var(--radius-maximum);
    overflow: hidden;
    box-shadow: var(--shadow-round);
    width: 100%;
    float: right;
}
.cart_totals .shop_table_responsive {
    display: none;
}

.product-subtotal .woocommerce-Price-amount bdi {
    font-weight: 400;
}
.product-release-subtotal .woocommerce-Price-amount,
.cart-totals-summary-row td { 
    font-weight: 900;
    font-size: var(--fontsize-big);
    color: var(--color-black);
}
.cart_totals h2 {
    display: none;
}
.wc-proceed-to-checkout, .wc-proceed-to-checkout .button {
    margin-bottom: 0;
}
.wc-proceed-to-checkout .button {
    background-color: var(--color-black);
    border-radius: 0px 0px 20px 20px;
    width: 100%;
    text-align: center;
    padding: 14px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.04rem;
    font-size: var(--fontsize-biggest);
    transition: all .1s;
}
.wc-proceed-to-checkout .button:hover {
    background-color: var(--color-red-active);
    border-color: var(--color-red);
    transition: all .1s;
}

/*btn back*/
.wc-backward {
    background-color: var(--color-black);
    border-radius: var(--radius-minimum);
    color: var(--color-white);
}
.wc-backward:hover {
    color: var(--color-black);
    background-color: var(--color-white);
}
.wc-backward,.wc-backward:hover {
    transition: all .15s;
    border: 1px solid var(--color-black);
}
.return-to-shop,.cart-collaterals {
    float: right;
}
.cart-mobile-name {
    display: none;
}
.quanity-btn-up,.quanity-btn-down {
    font-weight: 900;
    font-size: var(--fontsize-button);
    cursor: pointer;
    color: var(--color-black);
    transition: all .1s;
}
.quanity-btn-up:hover, .quanity-btn-down:hover {
    color: var(--color-red);
    transition: all .1s;
}
.cart-variation-data-container{
    display: flex;
    gap: var(--offset-smallest);
}
.product-name {  
    width: 100%;
}

.input-text:focus {
    border-color: var(--color-red-active) !important;
}


@media screen and (max-width: 478px){ 
    .main {
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .product-mobile-sku {
        display: block;
    }
    .cart-min-container {
        display: flex;
        height: 100px;
        width: 100%;
        justify-content: space-between;
        border-radius: var(--radius-maximum);
        overflow: hidden;
    }
    .cart-min-img a img {
        height: 100px;
        padding: 10px;
        width: 100px;
        background-color: var(--color-accent);
    }
    .quanity-btn {
        height: 33%;
        background-color: var(--color-black);
    }
    tr td[data-title]::before {
        display: none !important;
    }
    .shop_table tbody tr {
        border-bottom: none;
    }
    .product-name, .product-price, .product-remove {
        display: none !important;
    }
    tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100px;
        margin-bottom: var(--offset-usual);
        background-color: var(--color-box-middle);
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-round);
        overflow: hidden;
    }
    .woocommerce-cart-form__contents tr:last-child {
        display: none;
    }
    table.cart td.product-subtotal {
        padding-bottom: 0;
    }
    .order-total th {
        display: block !important;
    }
    .input-text {
        box-shadow: none !important;
        border: none !important;
        background-color: var(--color-box-middle) !important;
    }

    .product-quantity {
        order: 3;
        height: 100%;
        padding: 0 !important;
    }
    table.cart td.product-quantity .qty {
        height: 33%;
        font-family: 'Akimow Sans';
        font-weight: 600;
        font-size: 14px;
        border-radius: 0px;
    }
    .quanity-btn-up, .quanity-btn-down {
        height: 33.3333%;
        background-color: var(--color-black);
        color: var(--color-white);
        font-weight: 600;
        cursor: pointer;
        padding: 5px 0px;
        display: block;
    }
    .quanity-btn-down {
        border-radius: 5px 5px 0px 0px;
    }
    .quanity-btn-up {
        border-radius: 0px 0px 0px 5px;
    }
    .order-total {
        height: 50px;
        border-radius: 20px 20px 0px 0px;
        margin: 0;
    }
    .cart-subtotal {
        display: none;
    }
    .cart_totals {
        width: 100%;
        max-width: 100%;
    }
    table.cart td {
        padding: 5px;
    }
    td a img {
        border-radius: 10px 0px 0px 10px;
        padding: 6px;
        min-height: 100px;
        min-width: 100px;
        border-right: 1px solid var(--color-light-gray);
    }
    table.cart .product-thumbnail img {
        object-fit: contain;
        height: 100px;
    }
}

 /* ---------- Переключение видимости ---------- */
    .cart-mobile-wrapper {
        display: none;
    }

    @media (max-width: 899px) {
        .cart-desktop-wrapper {
            display: none !important;
        }
        .cart-mobile-wrapper {
            display: block !important;
        }
    }

    /* ---------- Десктоп: сортировка ---------- */
    .sortable {
        cursor: pointer;
        user-select: none;
        transition: background-color 0.3s;
    }
    .sort-indicator {
        display: inline-block;
        margin-left: 5px;
        font-size: 12px;
    }
    .product-sku,
    .product-weight {
        font-weight: 500;
        color: var(--color-black);
    }
    .product-weight {
        text-align: center;
    }

    /* ================================================================ */
    /* МОБИЛЬНАЯ КОРЗИНА                                                */
    /* ================================================================ */

    .cart-mobile-wrapper {
        padding: var(--offset-smallest) 0 var(--offset-small);
    }

    /* --- Карточка товара --- */
    .mcart-item {
        background: var(--color-box-middle);
        border-radius: var(--offset-usual);
        margin-bottom: var(--offset-usual);
        overflow: hidden;
        transition: box-shadow 0.2s;
    }
    .mcart-item:active {
        
    }

    /* Шапка карточки */
    .mcart-item__header {
        display: flex;
        align-items: flex-start;
        gap: var(--offset-usual);
        padding: var(--offset-usual)  var(--offset-usual)  var(--offset-small);
    }

    .mcart-item__thumb {
        flex-shrink: 0;
        width: 75px;
        height: 75px;
        border-radius: var(--offset-smallest);
        overflow: hidden;
    }
    .mcart-item__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mcart-item__info {
        flex: 1;
        min-width: 0;
    }

    .mcart-item__name {
        font-size: var(--fontsize-big);
        font-weight: 600;
        color: var(--color-black);
        line-height: 1.35;
        margin-bottom: 5px;
        word-break: break-word;
    }
    .mcart-item__name a {
        color: inherit;
        text-decoration: none;
    }
    .mcart-item__name a:hover {
        text-decoration: underline;
    }

    .mcart-item__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
    }
    .mcart-item__sku,
    .mcart-item__weight {
        font-size: var(--fontsize-usual);
        color: var(--color-gray);
        line-height: 1.4;
    }

    .mcart-item__variations {
        margin-top: 4px;
        font-size: var(--fontsize-usual);
        color: var(--color-gray);
    }

    .mcart-item__remove {
        flex-shrink: 0;
        margin-top: 2px;
    }
    .mcart-item__remove .remove {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 10px;
        background: var(--color-red-active);
        color: var(--color-white);
        font-size: 22px;
        line-height: 1;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .mcart-item__remove .remove:hover,
    .mcart-item__remove .remove:active {
        background: #fdecea;
        color: #c0392b;
    }

    /* Тело карточки */
    .mcart-item__body {
        padding: 10px 14px 14px;
        border-top: 1px solid #f2f3f5;
    }

    .mcart-item__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 0;
    }

    .mcart-item__label {
        font-size: 14px;
        color: var(--color-gray);
        flex-shrink: 0;
    }

    .mcart-item__value {
        font-size: 15px;
        font-weight: 600;
        color: var(--color-black);
        text-align: right;
    }

    /* Кнопки количества */
    .mcart-item__qty {
        display: flex;
        align-items: center;
        border: 1px solid var(--color-gray);
        border-radius: 10px;
        overflow: hidden;
        background: transparent;
    }

    .mcart-qty-btn {
        width: 42px;
        height: 40px;
        border: none;
         background: transparent;
        font-size: 20px;
        font-weight: 500;
        color: #4a4f5e;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    .mcart-qty-btn:active, .mcart-qty-btn:hover {
        background: var(--color-red-active);
        color: var(--color-white);
    }

    .mcart-qty-input {
        width: 54px;
        height: 40px;
        border: none;
        border-left: 1px solid var(--color-light-gray) !important;
        border-right: 1px solid var(--color-light-gray) !important;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: var(--color-black);
        outline: none;
        -moz-appearance: textfield;
        appearance: textfield;
        background: var(--color-background) !important;
        box-shadow:none !important;
    }
    .mcart-qty-input::-webkit-inner-spin-button,
    .mcart-qty-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    .mcart-qty-input[readonly] {
        
        color: #999;
    }

    /* Подытог */
    .mcart-item__row--subtotal {
        margin-top: 4px;
        padding-top: 11px;
        border-top: 1px dashed #e8eaef;
    }
    .mcart-item__subtotal {
        font-size: 17px;
        font-weight: 700;
        color: var(--color-black);
    }

    /* Backorder */
    .mcart-item .backorder_notification {
        font-size: 12px;
        color: #e67700;
        margin: 5px 0 0;
        padding: 4px 8px;
        background: #fff8e1;
        border-radius: 6px;
        display: inline-block;
    }

    /* --- Итоги по корзине --- */
    .mcart-summary {
        background: var(--color-box-top);
        border-radius: 14px;

        padding: 16px;
        margin-bottom: 12px;
    }
    .mcart-summary__title {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-black);
        margin-bottom: 10px;
    }
    .mcart-summary__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0;
    }
    .mcart-summary__label {
        font-size: 14px;
        color: var(--color-black);
    }
    .mcart-summary__value {
        font-size: 15px;
        font-weight: 600;
        color: var(--color-black);
    }
    .mcart-summary__row--total {
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--color-black);
    }
    .mcart-summary__row--total .mcart-summary__label,
    .mcart-summary__row--total .mcart-summary__value {
        font-size: 17px;
        font-weight: 700;
    }

    /* --- Действия: промокод + обновить --- */
    .mcart-actions {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
        padding: 16px;
        margin-bottom: 12px;
    }

    .mcart-coupon {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }
    .mcart-coupon__input {
        flex: 1;
        min-width: 0;
        height: 46px;
        padding: 0 14px;
        border: 1px solid #e0e3e8;
        border-radius: 10px;
        font-size: 14px;
        color: var(--color-black);
        outline: none;
        transition: border-color 0.2s;
        background: #fff;
    }
    .mcart-coupon__input:focus {
        border-color: #adb5bd;
    }
    .mcart-coupon__input::placeholder {
        color: #adb5bd;
    }
    .mcart-coupon__btn {
        height: 46px;
        padding: 0 18px;
        border: 1px solid #e0e3e8;
        border-radius: 10px;
        background: #f5f6f8;
        font-size: 14px;
        font-weight: 600;
        color: #4a4f5e;
        cursor: pointer;
        transition: background 0.15s;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }
    .mcart-coupon__btn:active {
        background: #e8eaef;
    }

    .mcart-update-btn {
        width: 100%;
        height: 50px;
        border: none;
        border-radius: 12px;
        background: var(--color-black);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    .mcart-update-btn:active {
        background: #33334d;
    }

    /* --- Очень маленькие экраны --- */
    @media (max-width: 374px) {
        .mcart-item__header {
            padding: 12px 12px 8px;
            gap: 10px;
        }
        .mcart-item__thumb {
            width: 60px;
            height: 60px;
        }
        .mcart-item__body {
            padding: 8px 12px 12px;
        }
        .mcart-item__name {
            font-size: 14px;
        }
        .mcart-qty-btn {
            width: 38px;
            height: 36px;
        }
        .mcart-qty-input {
            width: 48px;
            height: 36px;
        }
        .mcart-summary,
        .mcart-actions {
            padding: 14px;
        }
    }

    /* ---------- Десктоп: скрытие мобильных элементов в таблице ---------- */
    @media (min-width: 900px) {
        .product-mobile-sku,
        .product-mobile-weight {
            display: none;
        }
    }

    @media (max-width: 899px) {
        .shop_table thead {
            display: none;
        }
        .shop_table tbody td.product-sku,
        .shop_table tbody td.product-weight {
            display: none;
        }
    }
