и/* =========================================================
   ГОРИЗОНТАЛЬНЫЙ БЫСТРЫЙ ФИЛЬТР КОРОБОК
   ========================================================= */
.box-quick-filter {
    background: #f8fafb;
    border: 1px solid #e1e6ea;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 20px 0;
    clear: both;
}

.bqf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.bqf-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bqf-reset {
    font-size: 12px;
    color: #c0392b;
    font-weight: 600;
}

.bqf-reset:hover {
    text-decoration: underline !important;
}

.bqf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.bqf-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.bqf-range {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
}

.bqf-range input[type="number"] {
    width: 50% !important;
    max-width: none !important;
    min-height: 36px !important;
    height: 36px !important;
    border: none !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 13px !important;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.bqf-range input[type="number"]:focus {
    outline: none;
    background: #f4fbf6 !important;
}

.bqf-sep {
    color: #999;
    font-size: 13px;
    padding: 0 2px;
    user-select: none;
}

.bqf-submit {
    height: 38px;
    padding: 0 20px !important;
    background-color: #4666c4 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.bqf-submit:hover {
    background-color: #e6b667 !important;
}

/* Чипсы марки картона */
.bqf-marks-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #dde3e8;
}

.bqf-marks-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}

.bqf-marks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bqf-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0 !important;
}

.bqf-chip input {
    display: none !important;
}

.bqf-chip span {
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid #cfd8dc;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: all 0.15s ease;
}

.bqf-chip:hover span {
    border-color: #4666c4;
    color: #4666c4;
}

.bqf-chip.is-active span {
    background: #4666c4;
    border-color: #4666c4;
    color: #fff;
}

@media (max-width: 959px) {
    .bqf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bqf-actions {
        grid-column: span 1;
    }
    .bqf-submit {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .bqf-grid {
        grid-template-columns: 1fr;
    }
}

/* Живая панель ближайших вариантов и неактивная кнопка */
.bqf-submit.is-empty {
    background-color: #95a5a6 !important;
    cursor: not-allowed;
}

.bqf-live-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dde3e8;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bqf-hint-ok {
    color: #1e7e34;
}

.bqf-hint-warn {
    color: #c0392b;
    font-weight: 600;
}

.bqf-nearest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bqf-nearest-pill {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #4666c4;
    color: #4666c4 !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.bqf-nearest-pill:hover {
    background: #4666c4;
    color: #fff !important;
}

/* Убираем системные стрелки в полях фильтра, чтобы цифры 1200 / 1070 не обрезались */
.bqf-range input[type="number"]::-webkit-outer-spin-button,
.bqf-range input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bqf-range input[type="number"] {
    padding: 0 4px !important;
    font-size: 12.5px !important;
}

/* Вертикальная адаптация фильтра для боковой колонки (Sidebar / Off-Canvas) */
.box-quick-filter.is-sidebar {
    padding: 12px;
    margin: 0 0 20px 0;
}

.box-quick-filter.is-sidebar .bqf-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.box-quick-filter.is-sidebar .bqf-submit {
    width: 100%;
    margin-top: 2px;
}

/* =========================================================
   УЛУЧШЕНИЕ БЛОКА "ВЫ СМОТРЕЛИ" (SIDEBAR PRODUCT LIST)
   ========================================================= */
.sidebar-box ul.product_list_widget,
.widget_recently_viewed_products ul.product_list_widget {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sidebar-box ul.product_list_widget li,
.widget_recently_viewed_products ul.product_list_widget li {
    position: relative !important;
    display: block !important;
    padding: 10px 8px 10px 72px !important;
    min-height: 76px;
    margin: 0 !important;
    border-bottom: 1px solid #eef1f4 !important;
    transition: background-color 0.15s ease;
    text-align: left !important;
}

.sidebar-box ul.product_list_widget li:last-child,
.widget_recently_viewed_products ul.product_list_widget li:last-child {
    border-bottom: none !important;
}

.sidebar-box ul.product_list_widget li:hover,
.widget_recently_viewed_products ul.product_list_widget li:hover {
    background-color: #f8fafb;
    border-radius: 8px;
}

/* Миниатюра фото слева в аккуратной рамке */
.sidebar-box ul.product_list_widget li img,
.widget_recently_viewed_products ul.product_list_widget li img {
    position: absolute !important;
    left: 4px !important;
    top: 10px !important;
    width: 58px !important;
    height: 58px !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 3px;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Заголовок товара в фирменном тёмном цвете */
.sidebar-box ul.product_list_widget li a,
.widget_recently_viewed_products ul.product_list_widget li a {
    display: block;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.35 !important;
    color: #2c3e50 !important;
    margin-bottom: 4px;
    padding: 0 !important;
    transition: color 0.15s ease;
}

.sidebar-box ul.product_list_widget li a:hover,
.widget_recently_viewed_products ul.product_list_widget li a:hover {
    color: #4666c4 !important;
}

/* Ограничиваем слишком длинные названия до 3 строк */
.sidebar-box ul.product_list_widget li a .product-title,
.widget_recently_viewed_products ul.product_list_widget li a .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Компактная цена, выровненная по левому краю под заголовком */
.sidebar-box ul.product_list_widget li .dyn-price-box,
.widget_recently_viewed_products ul.product_list_widget li .dyn-price-box {
    text-align: left !important;
    margin: 0 !important;
}

.sidebar-box ul.product_list_widget li .dyn-unit-price .amount,
.widget_recently_viewed_products ul.product_list_widget li .dyn-unit-price .amount {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #4666c4 !important;
}

.sidebar-box ul.product_list_widget li .dyn-unit-suffix,
.widget_recently_viewed_products ul.product_list_widget li .dyn-unit-suffix {
    font-size: 11px !important;
    color: #7f8c8d;
}

.sidebar-box ul.product_list_widget li .dyn-wholesale-hint,
.widget_recently_viewed_products ul.product_list_widget li .dyn-wholesale-hint {
    font-size: 14px !important;
    line-height: 1.25;
    margin-top: 2px;
    color: #666;
}

.sidebar-box ul.product_list_widget li .dyn-wholesale-hint .amount,
.widget_recently_viewed_products ul.product_list_widget li .dyn-wholesale-hint .amount {
    font-size: 14px !important;
    font-weight: 600;
    color: #4666c4;
}

/* =========================================================
   ТАБЛИЦА ХАРАКТЕРИСТИК ВО ВКЛАДКЕ "ОПИСАНИЕ"
   ========================================================= */
.uspeshny-specs-table {
    width: 100%;
    max-width: 760px;
    border-collapse: collapse;
    margin: 8px 0 16px;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 8px;
    overflow: hidden;
}

.uspeshny-specs-table tr:nth-child(odd) {
    background-color: #f8fafb;
}

.uspeshny-specs-table th,
.uspeshny-specs-table td {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #eef1f4;
    text-align: left !important;
}

.uspeshny-specs-table tr:last-child th,
.uspeshny-specs-table tr:last-child td {
    border-bottom: none;
}

.uspeshny-specs-table th {
    width: 44%;
    font-weight: 500;
    color: #5f6c7b;
}

.uspeshny-specs-table td {
    font-weight: 600;
    color: #222;
}

/* =========================================================
   БЫСТРЫЙ ВЫБОР КОЛИЧЕСТВА, КРАТНОСТЬ И ПОДСКАЗКА 5 000 ₽
   ========================================================= */
.catalog-step-note {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
    text-align: center;
}

.single-qty-tools {
    flex-basis: 100%;
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-qty-rule-note {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #555;
    background: #f8fafb;
    border: 1px solid #e4e8ec;
    padding: 6px 10px;
    border-radius: 6px;
}

.single-qty-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sqp-label {
    font-size: 15px;
    color: #666;
    margin-right: 4px;
}

.sqp-btn {
    padding: 5px 11px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    background: #fff !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sqp-btn:hover {
    border-color: #4666c4 !important;
    color: #4666c4 !important;
}

.sqp-btn.is-active {
    background: #4666c4 !important;
    border-color: #4666c4 !important;
    color: #fff !important;
}

/* Подсказка о минимальной сумме заказа */
.dyn-min-order-hint {
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.35;
    background: #fff9ec;
    border: 1px solid #f3e0b5;
    color: #7c5c19;
}

.dyn-min-order-hint.is-reached {
    background: #eef8f1;
    border-color: #ccebd6;
    color: #196f3d;
}

/* =========================================================
   КНОПКА ОЧИСТКИ ФИЛЬТРА + ЧЕК-ЛИСТ + БЛОКИ СОПУТСТВУЮЩИХ
   ========================================================= */
.bqf-reset {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    font-size: 12px !important;
    color: #c0392b !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-transform: none !important;
}

.bqf-reset:hover {
    text-decoration: underline !important;
}

/* Быстрый чек-лист под кнопкой "В корзину" на странице товара */
.uspeshny-quick-checklist {
    margin-top: 18px;
    padding: 12px 14px;
    background: #f8fafb;
    border: 1px solid #e4e8ec;
    border-radius: 10px;
}

.uqc-title {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.uqc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uqc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e9edf1;
    border-radius: 8px;
    padding: 6px 10px;
}

.uqc-thumb img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.uqc-info {
    flex-grow: 1;
    min-width: 0;
}

.uqc-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50 !important;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.uqc-name:hover {
    color: #4666c4 !important;
}

.uqc-price {
    font-size: 13px;
    font-weight: 700;
    color: #4666c4;
    margin-top: 2px;
}

.uqc-price span {
    font-size: 11px;
    font-weight: 400;
    color: #7f8c8d;
}

.uqc-add-btn {
    flex-shrink: 0;
    padding: 7px 12px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    background-color: #eef8f1 !important;
    color: #196f3d !important;
    border: 1px solid #b7e4c7 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    transition: all 0.15s ease;
}

.uqc-add-btn:hover {
    background-color: #4666c4 !important;
    border-color: #4666c4 !important;
    color: #fff !important;
}

/* Заголовок секции "С этим товаром покупают" */
.uspeshny-cross-sells-section {
    clear: both;
    margin-top: 35px;
    margin-bottom: 10px;
}

.uspeshny-cross-sells-section > h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* Блок добора в корзине */
.uspeshny-cart-upsell {
    margin: 25px 0 30px;
    padding: 18px;
    background: #f8fafb;
    border: 1px solid #dfe5ea;
    border-radius: 10px;
}

.uspeshny-cart-upsell.is-warn {
    border-color: #f0d7a0;
    background: #fffcf5;
}

.uspeshny-cart-upsell.is-done {
    border-color: #b7e4c7;
    background: #f3fbf6;
}

.ucu-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.ucu-progress-track {
    width: 100%;
    height: 8px;
    background: #e4e8ec;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ucu-progress-fill {
    height: 100%;
    background: #4666c4;
    border-radius: 99px;
    transition: width 0.3s ease;
}

.uspeshny-cart-upsell.is-warn .ucu-progress-fill {
    background: #f39c12;
}

.ucu-subtitle {
    font-size: 17px;
    color: #555;
    margin-bottom: 16px;
}

/* Чтобы карточки в корзине также ровно выстраивались в 3 колонки */
.uspeshny-cart-upsell ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    width: calc(33.333% - 12px) !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #e4e8ec !important;
    border-radius: 10px !important;
    background: #fff;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .uspeshny-cart-upsell ul.products li.product {
        width: 100% !important;
    }
    .uqc-row {
        flex-wrap: wrap;
    }
}

/* 4 карточки в ряд в корзине на ПК и ноутбуках */
.uspeshny-cart-upsell ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.uspeshny-cart-upsell ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    width: calc(25% - 10.5px) !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #e4e8ec !important;
    border-radius: 10px !important;
    background: #fff;
    box-sizing: border-box;
}

/* Чуть компактнее инпут и кнопка в 4-колоночной сетке корзины */
.uspeshny-cart-upsell .catalog-qty .catalog-qty-btn {
    flex: 0 0 24px !important;
    width: 24px !important;
}

.uspeshny-cart-upsell .catalog-qty .catalog-qty-input {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
}

.uspeshny-cart-upsell .catalog-buy-row .button {
    font-size: 11.5px !important;
    padding: 0 8px !important;
}

@media (max-width: 959px) {
    .uspeshny-cart-upsell ul.products li.product {
        width: calc(50% - 7px) !important;
    }
}

@media (max-width: 540px) {
    .uspeshny-cart-upsell ul.products li.product {
        width: 100% !important;
    }
    .uqc-row {
        flex-wrap: wrap;
    }
}

/* Убираем "Каждое Слово С Заглавной" в способах доставки и перенос суммы */
.woocommerce-checkout-review-order-table #shipping_method::before,
#shipping_method li label {
    text-transform: none !important;
}

#shipping_method li label .amount {
    white-space: nowrap;
}

/* Растягиваем блок доставки и Итого на 100% ширины на мобильных */
@media (max-width: 768px) {
    .woocommerce-checkout-review-order-table,
    .woocommerce-checkout-review-order-table thead,
    .woocommerce-checkout-review-order-table tbody,
    .woocommerce-checkout-review-order-table tfoot {
        display: block;
        width: 100%;
    }

    .woocommerce-checkout-review-order-table tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
        display: block;
    }

    .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .woocommerce-checkout-review-order-table tfoot tr.order-total th,
    .woocommerce-checkout-review-order-table tfoot tr.order-total td {
        width: 50%;
        box-sizing: border-box;
    }
}



/* Убираем дублирующую иконку WooCommerce после текста на добавленной кнопке */
.catalog-buy-row .button.added::after,
.uqc-add-btn.added::after,
form.cart .single_add_to_cart_button.added::after {
    display: none !important;
}

/* Аккуратный тёмно-зелёный статус при добавлении */
.catalog-buy-row .button.added,
.uqc-add-btn.added,
form.cart .single_add_to_cart_button.added {
    background-color: #1e8449 !important;
    border-color: #1e8449 !important;
    color: #fff !important;
}

/* Бейдж марки картона в правом верхнем углу фото */
ul.products li.product .uspeshny-mark-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

ul.products li.product .uspeshny-mark-badge strong {
    font-weight: 700;
}

ul.products li.product .uspeshny-mark-badge span {
    opacity: 0.85;
    font-weight: 500;
}

/* Обычный трехслойный (Т21-Т24) */
ul.products li.product .uspeshny-mark-badge.is-standard {
    background: #f1f4f6;
    border: 1px solid #d5dce2;
    color: #2c3e50;
}

/* Усиленный пятислойный (П31-П32) */
ul.products li.product .uspeshny-mark-badge.is-heavy {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

/* =========================================================
   КОМПАКТНЫЙ БЛОК ДОБОРА В КОРЗИНЕ РЯДОМ С "СУММА КОРЗИНЫ"
   ========================================================= */
.woocommerce-cart .cart-collaterals {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 20px;
}

.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after {
    display: none !important;
}

.woocommerce-cart .cart-collaterals .uspeshny-cart-upsell.is-compact {
    flex: 1 1 56%;
    width: auto !important;
    margin: 0 !important;
    padding: 14px 16px;
    float: none !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    flex: 0 0 41%;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.ucu-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ucu-compact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 8px;
    padding: 7px 10px;
    transition: border-color 0.15s ease;
}

.ucu-compact-row:hover {
    border-color: #b7e4c7;
}

.ucu-c-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid #eceff2;
    border-radius: 6px;
    padding: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ucu-c-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ucu-c-info {
    flex-grow: 1;
    min-width: 0;
}

.ucu-c-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #2c3e50 !important;
    margin-bottom: 3px;
}

.ucu-c-name:hover {
    color: #4666c4 !important;
}

.ucu-c-price {
    font-size: 13px;
    color: #555;
    line-height: 1.25;
}

.ucu-c-price strong .amount {
    font-size: 14px;
    font-weight: 700;
    color: #4666c4;
}

.ucu-c-opt {
    font-size: 14px;
    color: #7f8c8d;
}

.ucu-c-btn {
    flex-shrink: 0;
    padding: 7px 12px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    background-color: #eef8f1 !important;
    color: #196f3d !important;
    border: 1px solid #b7e4c7 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    white-space: nowrap;
}

.ucu-c-btn:hover {
    background-color: #4666c4 !important;
    border-color: #4666c4 !important;
    color: #fff !important;
}

/* На планшетах и телефонах: сначала "Сумма корзины + Оформить заказ", затем добор */
@media (max-width: 959px) {
    .woocommerce-cart .cart-collaterals {
        flex-direction: column;
    }
    .woocommerce-cart .cart-collaterals .cart_totals {
        order: -1;
        width: 100% !important;
    }
    .woocommerce-cart .cart-collaterals .uspeshny-cart-upsell.is-compact {
        width: 100% !important;
    }
}

@media (max-width: 540px) {
    .ucu-compact-row {
        flex-wrap: wrap;
    }
    .ucu-c-btn {
        width: 100%;
        text-align: center;
    }
}

body .ucu-compact-row a.button.ucu-c-btn {
    flex-shrink: 0;
    padding: 7px 14px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    background-color: #4666c4 !important;
    color: #ffffff !important;
    border: 1px solid #4666c4 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    white-space: nowrap;
}

body .ucu-compact-row a.button.ucu-c-btn:hover {
    background-color: #e6b667 !important;
    border-color: #e6b667 !important;
    color: #ffffff !important;
}



/* =========================================================
   ВИЗУАЛЬНЫЙ АКЦЕНТ НА ОПТОВОЙ ЦЕНЕ
   ========================================================= */

/* 1. Спокойная тёмная основная цена (перебивает зелёный из темы) */
ul.products li.product .dyn-unit-price .amount,
ul.products li.product .dyn-unit-price .amount bdi {
    color: #222222 !important;
    font-size: 21px !important;
}

/* 2. Выделяем оптовую цену мягкой зелёной плашкой */
.dyn-wholesale-hint {
    display: inline-block;
    margin-top: 5px !important;
    padding: 4px 10px;
    background: #eef8f1;
    border: 1px solid #ccebd6;
    border-radius: 6px;
    font-size: 12.5px !important;
    font-weight: 600;
    color: #196f3d !important;
}

.dyn-wholesale-hint .amount,
.dyn-wholesale-hint .amount bdi {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #167a41 !important;
}

.dyn-wholesale-hint span {
    color: #4f6d5a !important;
    font-weight: 400;
}

/* 3. Приглушаем активный заголовок 1-499 в таблице, чтобы не спорил с кнопкой и оптом */
.bulk_pricing_discounts table th.is-active-tier {
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #ffffff !important;
}

.bulk_pricing_discounts table td.is-active-tier {
    background-color: #f3f5f7 !important;
    box-shadow: inset 0 -2px 0 #2c3e50 !important;
}

.bulk_pricing_discounts table td.is-active-tier .amount {
    color: #2c3e50 !important;
}

ul.products li.product .dyn-unit-price.is-discounted .amount,
ul.products li.product .dyn-unit-price.is-discounted .amount bdi {
    color: #4666c4 !important;
}

/* =========================================================
   ЕДИНЫЙ КОМПАКТНЫЙ ВЫПАДАЮЩИЙ СПИСОК РАЗМЕРОВ (КРОССБРАУЗЕРНО)
   ========================================================= */
.bqf-field {
    position: relative;
}

.bqf-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    z-index: 999;
    padding: 8px;
    box-sizing: border-box;
}

.bqf-suggest-head {
    font-size: 11px;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-left: 2px;
}

.bqf-suggest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-height: 185px;
    overflow-y: auto;
    padding-right: 2px;
}

body .bqf-suggest-item {
    display: block !important;
    width: 100%;
    padding: 6px 4px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    background: #f5f7f9 !important;
    color: #2c3e50 !important;
    border: 1px solid #e1e6ea !important;
    border-radius: 5px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.12s ease;
}

body .bqf-suggest-item:hover {
    background: #eef8f1 !important;
    border-color: #4666c4 !important;
    color: #196f3d !important;
}

body .bqf-suggest-item.is-current {
    background: #4666c4 !important;
    border-color: #4666c4 !important;
    color: #ffffff !important;
}

/* Тонкий скроллбар внутри окошка */
.bqf-suggest-grid::-webkit-scrollbar {
    width: 5px;
}
.bqf-suggest-grid::-webkit-scrollbar-thumb {
    background: #cfd8dc;
    border-radius: 4px;
}

/* Спокойный вид кнопки "Обновить корзину" и выравнивание "Очистить корзину" */
.woocommerce-cart-form td.actions {
    padding: 14px 16px !important;
}

.uspeshny-clear-cart-link {
    float: left;
    line-height: 38px;
}

body .woocommerce-cart-form button[name="update_cart"] {
    background-color: #f1f4f6 !important;
    color: #2c3e50 !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

body .woocommerce-cart-form button[name="update_cart"]:hover {
    background-color: #e4e8ec !important;
}

/* =========================================================
   ПОДДЕРЖКА КАРТОЧЕК WOODMART (.wd-product)
   ========================================================= */
.wd-product .wd-product-thumb {
    position: relative;
}

.wd-product .uspeshny-mark-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.wd-product .uspeshny-mark-badge strong { font-weight: 700; }
.wd-product .uspeshny-mark-badge span   { opacity: 0.85; font-weight: 500; }

.wd-product .uspeshny-mark-badge.is-standard {
    background: #f1f4f6;
    border: 1px solid #d5dce2;
    color: #2c3e50;
}

.wd-product .uspeshny-mark-badge.is-heavy {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

/* Основная цена и таблица скидок в карточках Woodmart */
.wd-product .dyn-unit-price .amount,
.wd-product .dyn-unit-price .amount bdi {
    color: #222222 !important;
    font-size: 20px !important;
}

.wd-product .dyn-unit-price.is-discounted .amount,
.wd-product .dyn-unit-price.is-discounted .amount bdi {
    color: #4666c4 !important;
}

.wd-product .catalog-short-desc {
    margin: 6px 0 10px;
}

.wd-product .wd-add-btn {
    margin-top: auto;
}