/* =====================================================================
   MFCLIMAT UI FIXES — Каролина, 2026-06-09
   Цель: моб. товар, корзина/чекаут, 404, hero на внутренних страницах
   ===================================================================== */

/* ===== 0. Глобально: padding-top для страниц без hero (шапка absolute) ===== */
body.mfc.error404 .mfc-main,
body.mfc.error404 main.mfc-main {
    padding-top: 140px !important;
}
@media (max-width: 768px) {
    body.mfc.error404 .mfc-main,
    body.mfc.error404 main.mfc-main {
        padding-top: 100px !important;
    }
}
body.mfc.error404 .mfc-404 {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}

/* ===== 1. SINGLE PRODUCT — мобильный layout =====
   У темы базовые правила mfc-pdp имеют specificity (0,0,3,1)
   из-за `body.mfc.woocommerce .mfc-pdp` — поэтому media query со
   specificity (0,0,2,1) их не пробивал. Префиксуем `html` для веса. */
@media (max-width: 900px) {
    html body.mfc .mfc-pdp,
    html body.mfc.woocommerce .mfc-pdp,
    html body.mfc.single-product .mfc-pdp,
    html body.mfc .mfc-shop .mfc-pdp {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        align-items: stretch !important;
    }
    html body.mfc.single-product .mfc-pdp__gallery,
    html body.mfc .mfc-pdp__gallery {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
        order: 1 !important;
    }
    html body.mfc.single-product .mfc-pdp__summary,
    html body.mfc .mfc-pdp__summary {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }

    /* Шрифты -20% (бьём собственную clamp темы) */
    html body.mfc .mfc-pdp__summary .product_title,
    html body.mfc.woocommerce div.product .product_title {
        font-size: clamp(1.05rem, 0.7rem + 1.7vw, 1.5rem) !important;
        line-height: 1.2 !important;
        margin: 4px 0 12px !important;
    }
    html body.mfc .mfc-pdp__summary p.price,
    html body.mfc .mfc-pdp__summary span.price,
    html body.mfc .mfc-pdp__summary .woocommerce-Price-amount {
        font-size: clamp(1.1rem, 0.85rem + 1.3vw, 1.45rem) !important;
        line-height: 1.2 !important;
        margin: 0 0 14px !important;
    }
    html body.mfc .mfc-pdp__summary .woocommerce-product-details__short-description,
    html body.mfc .mfc-pdp__summary .woocommerce-product-details__short-description p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin: 0 0 16px !important;
        padding-bottom: 14px !important;
    }
    html body.mfc .mfc-pdp__summary .quantity .qty {
        width: 70px !important;
        padding: 12px 8px !important;
        font-size: 16px !important;
        text-align: center !important;
    }

    /* Хлебные крошки мельче и в одну колонку */
    html body.mfc .mfc-crumbs,
    html body.mfc nav.mfc-crumbs,
    html body.mfc .breadcrumb_last {
        font-size: 12px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    /* Логотип ощутимо меньше чтобы не залезал на крошки */
    html body.mfc .mfc-logo {
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0 !important;
        background-size: contain !important;
    }

    /* Больше отступа под плавающую шапку */
    html body.mfc.single-product .mfc-pdp {
        padding-top: 16px !important;
    }
    /* Главный контейнер контента — отступ под шапку (для всех типов страниц) */
    html body.mfc .mfc-shop__wrap,
    html body.mfc .mfc-main > .mfc-container,
    html body.mfc.single-product .mfc-main > .mfc-container,
    html body.mfc.woocommerce-cart .mfc-main > .mfc-container,
    html body.mfc.woocommerce-checkout .mfc-main > .mfc-container {
        padding-top: 120px !important;
    }
    /* На всех страницах с mfc-pagehead — оттолкнём контент от шапки */
    html body.mfc .mfc-pagehead {
        padding-top: 90px !important;
        min-height: 240px !important;
    }
    html body.mfc .mfc-pagehead .mfc-crumbs {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        opacity: .9 !important;
    }
    html body.mfc .mfc-pagehead__title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    /* Шапка — компактнее + лого по центру вертикально */
    html body.mfc .mfc-header__inner {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        align-items: center !important;
        min-height: 68px !important;
    }
    html body.mfc .mfc-logo {
        align-self: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* На страницах с белым контентным фоном (товар, 404) — иконки тёмные */
    html body.mfc.single-product .mfc-cart,
    html body.mfc.error404 .mfc-cart,
    html body.mfc:not(.woocommerce-cart):not(.woocommerce-checkout):not(.page-id-19):not(.page-id-768) .mfc-cart {
        color: #11333C !important;
        background: transparent !important;
    }
    html body.mfc.single-product .mfc-cart svg,
    html body.mfc.error404 .mfc-cart svg,
    html body.mfc:not(.woocommerce-cart):not(.woocommerce-checkout):not(.page-id-19):not(.page-id-768) .mfc-cart svg {
        stroke: #11333C !important;
    }
    html body.mfc.single-product .mfc-burger__line,
    html body.mfc.single-product .mfc-burger__line::before,
    html body.mfc.single-product .mfc-burger__line::after,
    html body.mfc.error404 .mfc-burger__line,
    html body.mfc.error404 .mfc-burger__line::before,
    html body.mfc.error404 .mfc-burger__line::after,
    html body.mfc:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout) .mfc-burger__line,
    html body.mfc:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout) .mfc-burger__line::before,
    html body.mfc:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout) .mfc-burger__line::after {
        background: #11333C !important;
    }
    /* Каунтер в корзине — контрастный кружок */
    html body.mfc.single-product .mfc-cart__count,
    html body.mfc.error404 .mfc-cart__count {
        background: #11333C !important;
        color: #fff !important;
    }
}

/* ===== 1.1 КНОПКА «В корзину» — везде тёмная ===== */
html body.mfc button.single_add_to_cart_button,
html body.mfc.woocommerce button.single_add_to_cart_button,
html body.mfc .single_add_to_cart_button.button.alt,
html body.mfc .mfc-pdp__summary form.cart button.single_add_to_cart_button {
    background: #11333C !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.06) !important;
    transition: background .15s, transform .12s !important;
    cursor: pointer !important;
}
html body.mfc button.single_add_to_cart_button:hover {
    background: #0a1f25 !important;
    transform: translateY(-1px) !important;
}
@media (max-width: 768px) {
    html body.mfc button.single_add_to_cart_button,
    html body.mfc .single_add_to_cart_button.button.alt {
        width: 100% !important;
        padding: 16px !important;
    }
    html body.mfc .mfc-pdp__summary form.cart {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    html body.mfc .mfc-pdp__summary form.cart .quantity {
        flex: 0 0 80px !important;
    }
    html body.mfc .mfc-pdp__summary form.cart button.single_add_to_cart_button {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* ===== 2. HERO / PAGEHEAD — картинка cover, без пустот ===== */
body.mfc .mfc-pagehead {
    position: relative !important;
    overflow: hidden !important;
    min-height: 220px !important;
    display: flex !important;
    align-items: flex-end !important;
}
body.mfc .mfc-pagehead .mfc-container {
    width: 100% !important;
}
body.mfc .mfc-pagehead__bg {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
    pointer-events: none !important;
    max-width: none !important;
}
body.mfc .mfc-pagehead > *:not(.mfc-pagehead__bg):not(img) {
    position: relative !important;
    z-index: 2 !important;
}
/* dark overlay для читабельности */
body.mfc .mfc-pagehead::after {
    content: "";
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(10,30,40,0.35) 0%, rgba(10,30,40,0.6) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Тоже для mfc-lead (hero О компании) */
body.mfc .mfc-lead {
    position: relative !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 280px !important;
}
body.mfc .mfc-lead > img,
body.mfc .mfc-lead .mfc-lead__bg {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 0 !important;
}
body.mfc .mfc-lead > *:not(img):not(.mfc-lead__bg) {
    position: relative !important;
    z-index: 2 !important;
}

/* ===== 3. CART / CHECKOUT (WC Blocks, React) — нормальные стили ===== */
body.mfc.woocommerce-cart .mfc-section,
body.mfc.woocommerce-checkout .mfc-section {
    padding: 30px 0 60px !important;
}

/* Главные блоки в две колонки (или одну на моб.) */
body.mfc .wp-block-woocommerce-cart .wc-block-cart,
body.mfc .wp-block-woocommerce-checkout .wc-block-checkout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
    align-items: flex-start !important;
}
@media (max-width: 900px) {
    body.mfc .wp-block-woocommerce-cart .wc-block-cart,
    body.mfc .wp-block-woocommerce-checkout .wc-block-checkout {
        flex-direction: column !important;
        gap: 20px !important;
    }
}
body.mfc .wc-block-cart__main,
body.mfc .wc-block-checkout__main {
    flex: 1 1 60% !important;
    min-width: 0 !important;
    background: #fff !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 2px 14px rgba(20,40,80,.06) !important;
}
body.mfc .wc-block-cart__sidebar,
body.mfc .wc-block-checkout__sidebar {
    flex: 0 0 400px !important;
    min-width: 360px !important;
    background: #f3f7fc !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 2px 14px rgba(20,40,80,.06) !important;
    position: sticky !important;
    top: 120px !important;
}
@media (max-width: 900px) {
    body.mfc .wc-block-cart__sidebar,
    body.mfc .wc-block-checkout__sidebar {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }
}

/* Cart line item */
body.mfc .wc-block-cart-items__row,
body.mfc table.wc-block-cart-items tbody tr {
    padding: 16px 0 !important;
    border-bottom: 1px solid #e9eef5 !important;
}
body.mfc table.wc-block-cart-items th {
    background: transparent !important;
    color: #5a6478 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    padding-bottom: 10px !important;
}
body.mfc .wc-block-cart-item__image img,
body.mfc table.wc-block-cart-items img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}
body.mfc .wc-block-components-product-name,
body.mfc a.wc-block-components-product-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #11333C !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}
body.mfc a.wc-block-components-product-name:hover {
    color: #6dc9ec !important;
}

/* Quantity selector */
body.mfc .wc-block-components-quantity-selector {
    border: 1px solid #d6dde6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    max-width: 110px !important;
}
body.mfc .wc-block-components-quantity-selector__button {
    background: transparent !important;
    color: #11333C !important;
    border: none !important;
    width: 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
}
body.mfc .wc-block-components-quantity-selector__input {
    border: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #11333C !important;
    padding: 8px 0 !important;
}

/* Totals */
body.mfc .wc-block-components-totals-item {
    font-size: 15px !important;
    padding: 8px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}
body.mfc .wc-block-components-totals-item__label {
    color: #5a6478 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
body.mfc .wc-block-components-totals-item__value,
body.mfc .wc-block-components-totals-item__description {
    color: #11333C !important;
    font-weight: 600 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}
body.mfc .wc-block-formatted-money-amount,
body.mfc .wc-block-components-formatted-money-amount {
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}
/* Пустой description-div вытесняет label, скрываем */
body.mfc .wc-block-components-totals-item__description:empty {
    display: none !important;
}
body.mfc .wc-block-components-totals-footer-item {
    font-size: 18px !important;
    font-weight: 700 !important;
    border-top: 2px solid #11333C !important;
    margin-top: 8px !important;
    padding-top: 14px !important;
}

/* Кнопки */
body.mfc .wc-block-components-button,
body.mfc button.wc-block-components-button,
body.mfc a.wc-block-components-button,
body.mfc .wp-block-button .wp-block-button__link {
    background: #11333C !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: none !important;
    border: 0 !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: background .15s, transform .12s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.04) !important;
}
body.mfc .wc-block-components-button.contained,
body.mfc .wc-block-cart__submit-button,
body.mfc .wc-block-components-checkout-place-order-button {
    width: 100% !important;
    padding: 18px !important;
    font-size: 16px !important;
}
body.mfc .wc-block-components-button:hover,
body.mfc button.wc-block-components-button:hover {
    background: #0a1f25 !important;
    transform: translateY(-1px) !important;
}
body.mfc .wc-block-components-button.outlined {
    background: transparent !important;
    color: #11333C !important;
    border: 2px solid #11333C !important;
}

/* Поля ввода */
body.mfc .wc-block-components-text-input input,
body.mfc input.wc-block-components-text-input,
body.mfc .wc-block-components-text-input,
body.mfc .wc-block-components-select select,
body.mfc .wc-block-components-textarea,
body.mfc .wc-block-checkout textarea {
    border: 1px solid #d6dde6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 15px !important;
}
body.mfc .wc-block-components-text-input input {
    padding: 14px 16px !important;
}
body.mfc .wc-block-components-text-input input:focus,
body.mfc input.wc-block-components-text-input:focus {
    border-color: #11333C !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(17,51,60,.12) !important;
}
body.mfc .wc-block-components-form-row,
body.mfc .wc-block-components-address-form > div,
body.mfc .wc-block-components-text-input {
    margin-bottom: 14px !important;
}

/* Заголовки секций checkout */
body.mfc .wc-block-components-title,
body.mfc h2.wc-block-components-title {
    font-size: 20px !important;
    color: #11333C !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
}
body.mfc .wc-block-components-checkout-step__heading,
body.mfc h3.wc-block-components-checkout-step__title {
    font-size: 18px !important;
    color: #11333C !important;
    font-weight: 700 !important;
    margin: 24px 0 10px !important;
}
body.mfc .wc-block-components-checkout-step__description {
    color: #5a6478 !important;
    font-size: 14px !important;
    margin-bottom: 14px !important;
}

/* Сводка заказа в чекауте */
body.mfc .wc-block-components-order-summary-item {
    display: flex !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #e9eef5 !important;
}
body.mfc .wc-block-components-order-summary-item__image img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Радио способов оплаты/доставки */
body.mfc .wc-block-components-radio-control__option {
    background: #fff !important;
    border: 1px solid #e0e6ee !important;
    border-radius: 10px !important;
    padding: 14px 16px 14px 46px !important;
    margin-bottom: 10px !important;
    position: relative !important;
    transition: border-color .15s, background .15s !important;
    min-height: 56px !important;
    display: block !important;
}
body.mfc .wc-block-components-radio-control__option:hover {
    border-color: #11333C !important;
}
body.mfc .wc-block-components-radio-control__option--checked {
    border-color: #11333C !important;
    background: #f3f7fc !important;
}
body.mfc .wc-block-components-radio-control__input {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex: none !important;
    z-index: 2 !important;
    accent-color: #11333C !important;
}
body.mfc .wc-block-components-radio-control__option-layout,
body.mfc .wc-block-components-radio-control__label-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
body.mfc .wc-block-components-radio-control__label {
    font-weight: 600 !important;
    color: #11333C !important;
    flex: 1 1 auto !important;
}
body.mfc .wc-block-components-radio-control__secondary-label,
body.mfc .wc-block-components-radio-control__description {
    color: #5a6478 !important;
    flex: 0 0 auto !important;
    text-align: right !important;
    white-space: nowrap !important;
}
body.mfc .wc-block-components-radio-control__option > div {
    margin-left: 0 !important;
}
body.mfc .wc-block-components-radio-control__option-content-wrapper {
    margin-top: 8px !important;
    color: #5a6478 !important;
    font-size: 13px !important;
}

/* Empty cart */
body.mfc .wp-block-woocommerce-empty-cart-block {
    text-align: center !important;
    padding: 40px 20px !important;
}
body.mfc .wc-block-cart__empty-cart__title {
    font-size: 24px !important;
    color: #11333C !important;
    margin: 20px 0 !important;
    font-weight: 700 !important;
}

/* ===== 4. Мобильные правки для cart/checkout ===== */
@media (max-width: 768px) {
    body.mfc .wc-block-cart__main,
    body.mfc .wc-block-checkout__main,
    body.mfc .wc-block-cart__sidebar,
    body.mfc .wc-block-checkout__sidebar {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    body.mfc.woocommerce-cart .mfc-section,
    body.mfc.woocommerce-checkout .mfc-section {
        padding: 16px 12px 40px !important;
    }
    body.mfc .wc-block-cart-item__image img,
    body.mfc table.wc-block-cart-items img {
        width: 64px !important;
        height: 64px !important;
    }
    body.mfc .wc-block-components-product-name {
        font-size: 15px !important;
    }
    body.mfc .wc-block-components-totals-footer-item {
        font-size: 16px !important;
    }
}

/* ===== 5. 404 страница — кнопки и сетка ===== */
body.mfc .mfc-404 {
    text-align: center !important;
}
body.mfc .mfc-404__code {
    font-size: 96px !important;
    font-weight: 800 !important;
    color: #6dc9ec !important;
    line-height: 1 !important;
    margin: 12px 0 8px !important;
}
body.mfc .mfc-404__title {
    font-size: 28px !important;
    color: #11333C !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}
body.mfc .mfc-404__text {
    color: #5a6478 !important;
    font-size: 15px !important;
    margin-bottom: 24px !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.mfc .mfc-404__actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin: 20px 0 24px !important;
}
body.mfc .mfc-404__links {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media (max-width: 768px) {
    body.mfc .mfc-404__code { font-size: 64px !important; }
    body.mfc .mfc-404__title { font-size: 22px !important; }
    body.mfc .mfc-404__text { font-size: 14px !important; }
}

/* ===== 6. Hero (main) на остальных страницах — общий cover fix ===== */
body.mfc section[class*="hero"] > img:first-child,
body.mfc section[class*="hero"] > .bg-img,
body.mfc section[class*="banner"] > img:first-child {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 0 !important;
}
body.mfc section[class*="hero"],
body.mfc section[class*="banner"] {
    position: relative !important;
    overflow: hidden !important;
}


/* =====================================================================
   MFCLIMAT UI FIXES — Catalog v2, 2026-06-19 (Каролина)
   1) Грид 4 в ряд на десктопе + меньше карточки + ровная сетка
   2) Скрытие категории "Сервис и ремонт" из сайдбара /shop/
   ===================================================================== */

/* ===== 7. SHOP LOOP — 4 колонки на десктопе, ровный грид ===== */
html body.mfc.woocommerce .mfc-shop__main ul.products,
html body.mfc .mfc-shop .mfc-shop__main ul.products,
html body.mfc.mfc-shop-page .mfc-shop__main ul.products,
html body.mfc.tax-product_cat .mfc-shop__main ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 16px 0 0 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

body.mfc ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
body.mfc ul.products li.product .mfc-product {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 6px rgba(20,40,80,.06) !important;
    padding: 12px !important;
    transition: box-shadow .15s, transform .12s !important;
}
body.mfc ul.products li.product .mfc-product:hover {
    box-shadow: 0 4px 16px rgba(20,40,80,.10) !important;
    transform: translateY(-1px) !important;
}
body.mfc ul.products li.product .mfc-product__media {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #f6f9fb !important;
    margin-bottom: 10px !important;
}
body.mfc ul.products li.product .mfc-product__img,
body.mfc ul.products li.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    padding: 6px !important;
}
body.mfc ul.products li.product .mfc-product__body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
}
body.mfc ul.products li.product .mfc-product__cat {
    font-size: 11px !important;
    color: #6b7787 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    line-height: 1.2 !important;
}
body.mfc ul.products li.product .mfc-product__title,
body.mfc ul.products li.product h3.woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.32 !important;
    margin: 2px 0 2px !important;
    color: #11333C !important;
    font-weight: 600 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: calc(3 * 1.32em) !important;
}
body.mfc ul.products li.product .price,
body.mfc ul.products li.product .mfc-product__price {
    font-size: 15px !important;
    color: #11333C !important;
    font-weight: 700 !important;
    margin: 6px 0 8px !important;
}
body.mfc ul.products li.product .button,
body.mfc ul.products li.product .mfc-product__btn,
body.mfc ul.products li.product a.add_to_cart_button,
body.mfc ul.products li.product a.added_to_cart {
    margin-top: auto !important;
    background: #11333C !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    border: 0 !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
body.mfc ul.products li.product .button:hover,
body.mfc ul.products li.product .mfc-product__btn:hover,
body.mfc ul.products li.product a.add_to_cart_button:hover {
    background: #0a1f25 !important;
}

/* Responsive: 3 / 2 / 1 */
@media (max-width: 1180px) {
    html body.mfc.woocommerce .mfc-shop__main ul.products,
    html body.mfc .mfc-shop .mfc-shop__main ul.products,
    html body.mfc.mfc-shop-page .mfc-shop__main ul.products,
    html body.mfc.tax-product_cat .mfc-shop__main ul.products {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 16px !important;
    }
}
@media (max-width: 820px) {
    html body.mfc.woocommerce .mfc-shop__main ul.products,
    html body.mfc .mfc-shop .mfc-shop__main ul.products,
    html body.mfc.mfc-shop-page .mfc-shop__main ul.products,
    html body.mfc.tax-product_cat .mfc-shop__main ul.products {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 12px !important;
    }
    body.mfc ul.products li.product .mfc-product__title {
        font-size: 12.5px !important;
        min-height: calc(3 * 1.32em) !important;
    }
    body.mfc ul.products li.product .mfc-product {
        padding: 10px !important;
    }
}
@media (max-width: 420px) {
    html body.mfc.woocommerce .mfc-shop__main ul.products,
    html body.mfc .mfc-shop .mfc-shop__main ul.products,
    html body.mfc.mfc-shop-page .mfc-shop__main ul.products,
    html body.mfc.tax-product_cat .mfc-shop__main ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ===== 8. Скрыть категорию "Сервис и ремонт" из сайдбара ===== */
body.mfc .mfc-catbox__list li:has(a[href*="servisnoe-obsluzhivanie"]) {
    display: none !important;
}


/* ===== 9. Brands block on home — link hover state ===== */
body.mfc .mfc-partners__item .mfc-partners__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 12px !important;
    transition: background .15s, transform .15s, box-shadow .15s !important;
    cursor: pointer !important;
}
body.mfc .mfc-partners__item .mfc-partners__link:hover {
    background: rgba(109,201,236,.08) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(20,40,80,.08) !important;
}
body.mfc .mfc-partners__item .mfc-partners__link:focus-visible {
    outline: 2px solid #6dc9ec !important;
    outline-offset: 2px !important;
}
body.mfc .mfc-partners__item .mfc-partners__link .mfc-partners__name {
    transition: color .15s !important;
}
body.mfc .mfc-partners__item .mfc-partners__link:hover .mfc-partners__name {
    color: #11333C !important;
}


/* ===== 10. Subcategory chips above shop loop ===== */
body.mfc .mfc-subcat-chips {
    display: block !important;
    margin: 14px 0 18px !important;
}
body.mfc .mfc-subcat-chips__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}
body.mfc .mfc-subcat-chips__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    line-height: 1 !important;
}
body.mfc .mfc-subcat-chips__chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #11333C !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: background .15s, color .15s, border-color .15s, transform .12s !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
body.mfc a.mfc-subcat-chips__chip:hover {
    background: #e0eaff !important;
    border-color: #6dc9ec !important;
    color: #11333C !important;
    transform: translateY(-1px) !important;
}
body.mfc .mfc-subcat-chips__chip.is-active,
body.mfc .mfc-subcat-chips__item.is-active .mfc-subcat-chips__chip {
    background: #11333C !important;
    color: #fff !important;
    border-color: #11333C !important;
    cursor: default !important;
}
body.mfc .mfc-subcat-chips__count {
    display: inline-block !important;
    background: rgba(17,51,60,.10) !important;
    color: inherit !important;
    border-radius: 999px !important;
    padding: 1px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    min-width: 22px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}
body.mfc .mfc-subcat-chips__chip.is-active .mfc-subcat-chips__count,
body.mfc .mfc-subcat-chips__item.is-active .mfc-subcat-chips__count {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}
@media (max-width: 768px) {
    body.mfc .mfc-subcat-chips__list {
        gap: 6px !important;
    }
    body.mfc .mfc-subcat-chips__chip {
        font-size: 12px !important;
        padding: 7px 12px !important;
    }
    body.mfc .mfc-subcat-chips__count {
        font-size: 10px !important;
        padding: 1px 6px !important;
    }
}


/* ===== 11. Sidebar category order — types first, brands second ===== */
/* Make list flex so CSS order property works */
body.mfc .mfc-catbox__list {
    display: flex !important;
    flex-direction: column !important;
}
body.mfc .mfc-catbox__list li {
    display: block !important;
}

/* Types: order 1-5 */
body.mfc .mfc-catbox__list > li:has(a[href*="/nastennye-konditsionery/"]:not([href*="duke"])) { order: 1 !important; }
body.mfc .mfc-catbox__list > li:has(a[href*="/kassetnye-konditsionery/"]) { order: 2 !important; }
body.mfc .mfc-catbox__list > li:has(a[href*="/napolnye-konditsionery/"]) { order: 3 !important; }
body.mfc .mfc-catbox__list > li:has(a[href*="/napolno-potolochnye-konditsionery/"]) { order: 4 !important; }
body.mfc .mfc-catbox__list > li:has(a[href*="/mobilnye-konditsionery/"]) { order: 5 !important; }

/* Brands: order 10-15 */
body.mfc .mfc-catbox__list > li:has(a[href$="/almacom/"]) { order: 10 !important; }
body.mfc .mfc-catbox__list > li:has(a[href$="/gree-2/"]) { order: 11 !important; }
body.mfc .mfc-catbox__list > li:has(a[href$="/duke/"]) { order: 12 !important; }
body.mfc .mfc-catbox__list > li:has(a[href$="/otex-2/"]) { order: 13 !important; }
body.mfc .mfc-catbox__list > li:has(a[href$="/samsung-2/"]) { order: 14 !important; }
body.mfc .mfc-catbox__list > li:has(a[href$="/thaicon/"]) { order: 15 !important; }

/* Hide Misc from sidebar */
body.mfc .mfc-catbox__list > li:has(a[href$="/misc/"]) { display: none !important; }
/* Hide Misc from chips too */
body.mfc .mfc-subcat-chips__item:has(a[href$="/misc/"]) { display: none !important; }

/* "Все товары" stays at top */
body.mfc .mfc-catbox__list > li:first-child { order: 0 !important; }

/* ===== 28.10.2026: на мобильных товары первыми, список каталога — после них ===== */
@media (max-width: 1080px) {
    body.mfc .mfc-shop__main { order: 1; }
    body.mfc .mfc-shop__aside { order: 2; }
}

/* =====================================================================
   12.11.2026: оформление статей блога (.mfc-art), описаний товаров и карточек каталога
   ===================================================================== */

/* --- Статьи --- */
body.mfc .mfc-prose .mfc-art { font-size: 1.05rem; line-height: 1.75; color: #34444C; }
body.mfc .mfc-prose .mfc-art > * + * { margin-top: 1.1em; }
body.mfc .mfc-prose .mfc-art h2 {
  font-family: var(--mfc-display); font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.25;
  color: var(--mfc-ink); margin: 2.2em 0 .7em; scroll-margin-top: calc(var(--mfc-head-h) + 24px);
}
body.mfc .mfc-prose .mfc-art h3 { font-size: 1.15rem; line-height: 1.35; color: var(--mfc-ink2); margin: 1.6em 0 .5em; font-weight: 700; }
body.mfc .mfc-prose .mfc-art p { margin: 0 0 1em; }
body.mfc .mfc-prose .mfc-art a { color: var(--mfc-teal-700); text-decoration: underline; text-decoration-color: rgba(20, 87, 102, .35); text-underline-offset: 3px; }
body.mfc .mfc-prose .mfc-art a:hover { text-decoration-color: currentColor; }
body.mfc .mfc-prose .mfc-art ul { margin: 0 0 1.1em; padding: 0; list-style: none; }
body.mfc .mfc-prose .mfc-art ul li { list-style: none; position: relative; padding-left: 1.6em; margin-bottom: .55em; }
body.mfc .mfc-prose .mfc-art ul li::before {
  content: ""; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 50%;
  background: var(--mfc-teal-600); box-shadow: 0 0 0 4px var(--mfc-teal-050);
}

/* Коротко */
body.mfc .mfc-art__lead {
  background: var(--mfc-grad-soft); border-radius: var(--mfc-radius); padding: 24px 28px; border: 1px solid var(--mfc-line);
}
body.mfc .mfc-art__lead-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mfc-teal-700); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
body.mfc .mfc-prose .mfc-art .mfc-art__lead ul { margin: 0; }
body.mfc .mfc-prose .mfc-art .mfc-art__lead li { margin-bottom: .4em; }

/* Содержание */
body.mfc .mfc-art__toc { border: 1px solid var(--mfc-line); border-radius: var(--mfc-radius); padding: 22px 26px; background: #fff; box-shadow: var(--mfc-shadow-sm); }
body.mfc .mfc-art__toc-title { font-family: var(--mfc-display); font-size: 1rem; color: var(--mfc-ink); margin-bottom: 12px; }
body.mfc .mfc-prose .mfc-art .mfc-art__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
body.mfc .mfc-prose .mfc-art .mfc-art__toc li { counter-increment: toc; list-style: none; break-inside: avoid; padding: 6px 0 6px 2.1em; position: relative; margin: 0; }
body.mfc .mfc-prose .mfc-art .mfc-art__toc li::before {
  content: counter(toc); position: absolute; left: 0; top: 6px; width: 1.55em; height: 1.55em; border-radius: 50%;
  background: var(--mfc-teal-050); color: var(--mfc-teal-700); font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
body.mfc .mfc-prose .mfc-art .mfc-art__toc a { text-decoration: none; color: var(--mfc-ink2); }
body.mfc .mfc-prose .mfc-art .mfc-art__toc a:hover { color: var(--mfc-teal-700); text-decoration: underline; }

/* Советы и предупреждения */
body.mfc .mfc-art__note { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--mfc-radius-sm); padding: 18px 22px; background: var(--mfc-teal-050); border-left: 4px solid var(--mfc-teal-600); }
body.mfc .mfc-art__note--warn { background: #FFF7E8; border-left-color: #E3A33A; }
body.mfc .mfc-art__note-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mfc-teal-700); font-weight: 800; font-size: .95rem; }
body.mfc .mfc-art__note--warn .mfc-art__note-icon { color: #B97812; }
body.mfc .mfc-prose .mfc-art .mfc-art__note p { margin: 0; }
body.mfc .mfc-art__note b { color: var(--mfc-ink); }

/* Таблицы */
body.mfc .mfc-art__table { overflow-x: auto; border-radius: var(--mfc-radius-sm); border: 1px solid var(--mfc-line); box-shadow: var(--mfc-shadow-sm); -webkit-overflow-scrolling: touch; }
body.mfc .mfc-art__table table { width: 100%; border-collapse: collapse; margin: 0; font-size: .97rem; min-width: 520px; }
body.mfc .mfc-art__table th { background: var(--mfc-navy); color: #fff; text-align: left; font-weight: 600; padding: 13px 16px; border: 0; }
body.mfc .mfc-art__table td { padding: 12px 16px; border: 0; border-top: 1px solid var(--mfc-line); vertical-align: top; }
body.mfc .mfc-art__table tr:nth-child(even) td { background: var(--mfc-tint-2); }
body.mfc .mfc-art__table td:first-child { font-weight: 600; color: var(--mfc-ink2); }

/* Шаги */
body.mfc .mfc-prose .mfc-art ol.mfc-art__steps { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: st; display: grid; gap: 12px; }
body.mfc .mfc-prose .mfc-art ol.mfc-art__steps > li { counter-increment: st; list-style: none; position: relative; padding: 16px 18px 16px 64px; border: 1px solid var(--mfc-line); border-radius: var(--mfc-radius-sm); background: #fff; margin: 0; }
body.mfc .mfc-prose .mfc-art ol.mfc-art__steps > li::before {
  content: counter(st); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mfc-grad); color: #fff; font-weight: 700; display: grid; place-items: center;
}
body.mfc .mfc-art__steps b { display: block; color: var(--mfc-ink); margin-bottom: 2px; }

/* Чипы-ссылки */
body.mfc .mfc-art__chips { display: flex; flex-wrap: wrap; gap: 10px; }
body.mfc .mfc-prose .mfc-art .mfc-art__chips a {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--mfc-pill); background: var(--mfc-tint);
  color: var(--mfc-teal-700); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid transparent; transition: .2s;
}
body.mfc .mfc-prose .mfc-art .mfc-art__chips a:hover { background: #fff; border-color: var(--mfc-teal-600); }

/* Карточки товаров */
body.mfc .mfc-art__products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.mfc .mfc-art__product { display: flex; flex-direction: column; border: 1px solid var(--mfc-line); border-radius: var(--mfc-radius-sm); background: #fff; overflow: hidden; box-shadow: var(--mfc-shadow-sm); transition: .25s var(--mfc-ease); }
body.mfc .mfc-art__product:hover { transform: translateY(-3px); box-shadow: var(--mfc-shadow); }
body.mfc .mfc-art__product-img { aspect-ratio: 4 / 3; background: var(--mfc-tint-2); display: grid; place-items: center; padding: 14px; }
body.mfc .mfc-prose .mfc-art .mfc-art__product-img img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; }
body.mfc .mfc-art__product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
body.mfc .mfc-art__product-brand { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mfc-muted); font-weight: 600; }
body.mfc .mfc-art__product-name { font-weight: 700; color: var(--mfc-ink); line-height: 1.3; font-size: .98rem; }
body.mfc .mfc-art__product-meta { font-size: .88rem; color: var(--mfc-muted); line-height: 1.45; }
body.mfc .mfc-prose .mfc-art .mfc-art__product-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--mfc-teal-700); text-decoration: none; }
body.mfc .mfc-prose .mfc-art a.mfc-art__product { text-decoration: none; color: inherit; }

/* FAQ */
body.mfc .mfc-art__faq { display: grid; gap: 10px; }
body.mfc .mfc-art__faq details { border: 1px solid var(--mfc-line); border-radius: var(--mfc-radius-sm); background: #fff; padding: 0 20px; transition: .2s; }
body.mfc .mfc-art__faq details[open] { background: var(--mfc-tint-2); border-color: #CFE5E8; }
body.mfc .mfc-art__faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; color: var(--mfc-ink); position: relative; }
body.mfc .mfc-art__faq summary::-webkit-details-marker { display: none; }
body.mfc .mfc-art__faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--mfc-teal-050); color: var(--mfc-teal-700); display: grid; place-items: center; font-weight: 700; }
body.mfc .mfc-art__faq details[open] summary::after { content: "−"; }
body.mfc .mfc-prose .mfc-art .mfc-art__faq details p { margin: 0 0 16px; }

/* Призыв */
body.mfc .mfc-art__cta { background: var(--mfc-grad-navy); color: #DCEBEE; border-radius: var(--mfc-radius); padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
body.mfc .mfc-art__cta-title { font-family: var(--mfc-display); color: #fff; font-size: 1.25rem; line-height: 1.3; margin-bottom: 6px; }
body.mfc .mfc-prose .mfc-art .mfc-art__cta p { margin: 0; color: #C7DCE0; font-size: .98rem; }
body.mfc .mfc-art__cta-actions { display: flex; flex-direction: column; gap: 10px; }
body.mfc .mfc-prose .mfc-art .mfc-art__cta-actions a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--mfc-pill); font-weight: 600; text-decoration: none; white-space: nowrap; }
body.mfc .mfc-prose .mfc-art .mfc-art__cta-actions a.is-primary { background: var(--mfc-teal); color: var(--mfc-navy); }
body.mfc .mfc-prose .mfc-art .mfc-art__cta-actions a.is-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }

/* Фото */
body.mfc .mfc-art figure { margin: 1.6em 0; }
body.mfc .mfc-prose .mfc-art figure img { width: 100%; border-radius: var(--mfc-radius-sm); margin: 0; }
body.mfc .mfc-art figcaption { font-size: .88rem; color: var(--mfc-muted); margin-top: 8px; text-align: center; }

@media (max-width: 767px) {
  body.mfc .mfc-prose .mfc-art { font-size: 1rem; }
  body.mfc .mfc-art__lead, body.mfc .mfc-art__toc { padding: 18px 18px; }
  body.mfc .mfc-prose .mfc-art .mfc-art__toc ol { columns: 1; }
  body.mfc .mfc-art__products { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.mfc .mfc-art__product-body { padding: 10px 12px 12px; }
  body.mfc .mfc-art__product-name { font-size: .9rem; }
  body.mfc .mfc-art__cta { grid-template-columns: 1fr; padding: 24px 20px; }
  body.mfc .mfc-prose .mfc-art ol.mfc-art__steps > li { padding: 14px 14px 14px 58px; }
}

/* Комментарии в статьях закрыты — убираем пустой блок */
body.single-post #comments, body.single-post .comments-area, body.single-post #respond { display: none !important; }

/* --- Описание товара --- */
body.mfc .woocommerce-Tabs-panel--description > h2:first-child { display: none; }
body.mfc .woocommerce-Tabs-panel--description h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.3; margin: 0 0 .7em; }
body.mfc .woocommerce-Tabs-panel--description h3 { font-size: 1.08rem; margin: 1.3em 0 .5em; }
body.mfc .woocommerce-Tabs-panel--description ul { margin: 0 0 1em; padding: 0; list-style: none; }
body.mfc .woocommerce-Tabs-panel--description ul li { position: relative; padding-left: 1.4em; margin-bottom: .45em; list-style: none; }
body.mfc .woocommerce-Tabs-panel--description ul li::before { content: ""; position: absolute; left: .15em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--mfc-teal-600); }
body.mfc .woocommerce-Tabs-panel--description p { margin: 0 0 1em; max-width: 900px; }

/* --- Карточки каталога: цена и кнопка не налезают --- */
body.mfc .mfc-product__foot { flex-wrap: wrap; gap: 8px 10px; }
body.mfc .mfc-product__price { white-space: nowrap; }
body.mfc .mfc-product__title, body.mfc .mfc-product__title a { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }

/* Шапка на телефонах и планшетах: значки в одну строку (столбиком из трёх значков шапка перекрывала заголовок) */
@media (max-width: 920px) {
  html body.mfc .mfc-header .mfc-header__actions { flex-direction: row !important; align-items: center !important; gap: 4px !important; }
  html body.mfc .mfc-header .mfc-header__inner { padding-bottom: 12px !important; }
}

/* Статьи: отступ под баннером, обложка без лишних полей, светлые крошки на тёмном баннере */
html body.mfc.single-post .mfc-container.mfc-section { padding-top: clamp(28px, 4vw, 56px) !important; }
html body.mfc .mfc-prose img.mfc-article__cover-img { margin: 0 !important; display: block; border-radius: 0; }
body.mfc .mfc-pagehead .mfc-crumbs a { color: rgba(255, 255, 255, .78) !important; }
body.mfc .mfc-pagehead .mfc-crumbs a:hover { color: #fff !important; }
body.mfc .mfc-pagehead .mfc-crumbs .breadcrumb_last { color: #fff !important; }

/* Блог, каталог, страницы с баннером: без пустого поля 120px под баннером */
html body.mfc .mfc-pagehead + .mfc-container.mfc-section,
html body.mfc .mfc-pagehead + .mfc-container.mfc-shop__wrap { padding-top: clamp(28px, 4vw, 56px) !important; }

/* Пагинация каталога: на телефоне номера переносятся и не наезжают на текст ниже */
body.mfc .woocommerce-pagination,
body.mfc .woocommerce-pagination ul.page-numbers { height: auto !important; }
body.mfc .woocommerce-pagination ul.page-numbers { flex-wrap: wrap !important; row-gap: 8px !important; }
body.mfc .woocommerce-pagination { margin-bottom: 32px !important; }
body.mfc .mfc-prose .mfc-art .mfc-art__toc li::before { top: 50%; transform: translateY(-50%); line-height: 1; }
@media (max-width: 767px) {
  body.mfc .mfc-art__products { grid-template-columns: 1fr; gap: 10px; }
  body.mfc .mfc-art__product { flex-direction: row; align-items: stretch; }
  body.mfc .mfc-art__product-img { flex: 0 0 112px; aspect-ratio: auto; padding: 10px; }
  body.mfc .mfc-art__product-body { padding: 12px 14px; }
  body.mfc .mfc-art__chips { gap: 8px; }
  body.mfc .mfc-prose .mfc-art .mfc-art__chips a { padding: 8px 13px; font-size: .88rem; }
  /* Таблицы в статьях целиком в экран телефона, без горизонтальной прокрутки */
  body.mfc .mfc-art__table table { min-width: 0; font-size: .86rem; }
  body.mfc .mfc-art__table th, body.mfc .mfc-art__table td { padding: 10px 10px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}
