/* PWB.KZ — отдельный файл переопределений тёмной темы
   Подключать ПОСЛЕ основных okay.css и theme.css.
   Переключение выполняется атрибутом html[data-theme="dark"] из head.tpl.
*/
/* ============================================================
   PWB.KZ — ДОПОЛНИТЕЛЬНЫЕ ЦВЕТА ДЛЯ ПОЛНОЙ ТЁМНОЙ ТЕМЫ
   ============================================================ */
html[data-theme="dark"] {
    --pwb-bd-c2c2c2: #41414b;
    --pwb-bd-d1d1d1: #41414b;
    --pwb-bd-dbdbdb: #41414b;
    --pwb-bd-e3e3e3: #41414b;
    --pwb-bd-e9eaed: #41414b;
    --pwb-bd-ebebeb: #41414b;
    --pwb-bd-eeeeee: #41414b;
    --pwb-bd-f0f0f0: #41414b;
    --pwb-bg-eeeeee: #292930;
    --pwb-bg-f0f0f0: #292930;
    --pwb-bg-f4f6f9: #292930;
    --pwb-bg-f7f7f7: #292930;
    --pwb-bg-f8f8f8: #292930;
    --pwb-bg-fffdfd: #222228;
    --pwb-bg-ffffff: #222228;
    --pwb-tx-000000: #eeeeF2;
    --pwb-tx-222222: #eeeeF2;
    --pwb-tx-333333: #e4e4e8;
    --pwb-tx-363636: #e4e4e8;
    --pwb-tx-454545: #c4c4cd;
    --pwb-tx-4a4a4a: #c4c4cd;
    --pwb-tx-575757: #b8b8c2;
    --pwb-tx-5e5e5e: #b8b8c2;
    --pwb-tx-666666: #b8b8c2;
    --pwb-tx-696868: #b8b8c2;
    --pwb-tx-6f6f6f: #b8b8c2;
    --pwb-tx-777777: #b8b8c2;
    --pwb-tx-7a7a7a: #b8b8c2;
    --pwb-tx-808080: #b8b8c2;
    --pwb-tx-888888: #b8b8c2;
}

/* Фон и текст контентных блоков */
html[data-theme="dark"] .post_container__body,
html[data-theme="dark"] .post_container__wrapper,
html[data-theme="dark"] .post_container__wallpaper,
html[data-theme="dark"] .post__table_contents,
html[data-theme="dark"] .post_information,
html[data-theme="dark"] .post_tags,
html[data-theme="dark"] .post_tags__inner,
html[data-theme="dark"] .post_share,
html[data-theme="dark"] .post_author,
html[data-theme="dark"] .post_author__info,
html[data-theme="dark"] .post_author__description,
html[data-theme="dark"] .promo-content,
html[data-theme="dark"] .audience-section,
html[data-theme="dark"] .audience-card,
html[data-theme="dark"] .audience-text,
html[data-theme="dark"] .audience-left,
html[data-theme="dark"] .audience-right {
    background-color: #222228;
    color: #e4e4e8;
}

html[data-theme="dark"] .audience-section,
html[data-theme="dark"] .audience-card {
    border-color: #41414b;
}
html[data-theme="dark"] .audience-left p,
html[data-theme="dark"] .audience-text,
html[data-theme="dark"] .post_container__body p,
html[data-theme="dark"] .post_container__body li {
    color: #c4c4cd;
}

/* Плашки, кнопки и мелкие карточки */
html[data-theme="dark"] .post_tag,
html[data-theme="dark"] .post_tags a,
html[data-theme="dark"] .filter__tag_link,
html[data-theme="dark"] .browsed__link,
html[data-theme="dark"] .partner-btn,
html[data-theme="dark"] .partner-note {
    background-color: #292930;
    color: #e4e4e8;
    border-color: #41414b;
}
html[data-theme="dark"] .post_tag:hover,
html[data-theme="dark"] .filter__tag_link:hover {
    background-color: #373740;
    color: #ffffff;
}

/* Заголовки/текст, которые раньше оставались почти чёрными */
html[data-theme="dark"] .block_explanation__header,
html[data-theme="dark"] .promo-title,
html[data-theme="dark"] .boxed_no_comments__title,
html[data-theme="dark"] .boxed_no_comments__text,
html[data-theme="dark"] .comment__name,
html[data-theme="dark"] .comment__body,
html[data-theme="dark"] .post_container__body,
html[data-theme="dark"] .post_container__body h1,
html[data-theme="dark"] .post_container__body h2,
html[data-theme="dark"] .post_container__body h3,
html[data-theme="dark"] .post_container__body h4 {
    color: #e4e4e8;
}

/* Градиентные белые подложки статей в тёмной теме */
html[data-theme="dark"] .article__footer::after {
    background-image: linear-gradient(to bottom, rgba(34,34,40,0), #222228 50%, #222228);
}

/* Разделители */
html[data-theme="dark"] .post_container__body hr,
html[data-theme="dark"] .post_container__body table,
html[data-theme="dark"] .post_container__body td,
html[data-theme="dark"] .post_container__body th,
html[data-theme="dark"] .post_container__body figure {
    border-color: #41414b;
}


/* ============================================================
   PWB.KZ — ДОПОЛНИТЕЛЬНАЯ КОРРЕКЦИЯ ТЁМНОЙ ТЕМЫ
   Исправляет участки, где светлые фоны и тёмный текст оставались
   из-за жёстко заданных цветов в исходных стилях.
   Переключатель и JavaScript в head.tpl / index.tpl не меняются.
   ============================================================ */

html[data-theme="dark"] {
    color-scheme: dark;
    --okay-bg: #17171b;
    --okay-boxed-color: #222228;
    --okay-boxed-text: #e8e8ed;
    --okay-body-text: #e4e4e8;
    --okay-body-heading: #f4f4f7;
    --okay-border-color: #3b3b44;
    --okay-basic-company: #cf3b8a;
    --okay-basic-company-text: #ffffff;
    --okay-second-company: #292930;
    --okay-second-company-text: #f4f4f7;
    --okay-button-color: #b92c79;
    --okay-button-text: #ffffff;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: #17171b !important;
    color: #e4e4e8;
}

/* Основные поверхности страницы */
html[data-theme="dark"] .main,
html[data-theme="dark"] main,
html[data-theme="dark"] .main_content,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .content,
html[data-theme="dark"] .content-wrapper,
html[data-theme="dark"] .page,
html[data-theme="dark"] .page-wrapper,
html[data-theme="dark"] .wrapper,
html[data-theme="dark"] .container:not(.header__top):not(.header__center):not(.header__bottom),
html[data-theme="dark"] .block--boxed,
html[data-theme="dark"] .block__header--boxed,
html[data-theme="dark"] .products_container__boxed,
html[data-theme="dark"] .post_container__wrapper {
    background-color: #17171b;
    color: #e4e4e8;
}

/* Каталог и выпадающее меню категорий — исправление чёрного текста */
html[data-theme="dark"] .categories_nav,
html[data-theme="dark"] .categories_nav .categories_nav__menu,
html[data-theme="dark"] .categories_nav .categories_menu,
html[data-theme="dark"] .categories_nav .subcategory,
html[data-theme="dark"] .categories_nav .categories_menu__item,
html[data-theme="dark"] .categories_nav .categories_menu__link,
html[data-theme="dark"] .categories_nav .categories_menu__name,
html[data-theme="dark"] .categories_nav .categories_menu__link span,
html[data-theme="dark"] .categories_nav .categories_menu__link i {
    background-color: #222228;
    color: #eeeeF2 !important;
}
html[data-theme="dark"] .categories_nav .categories_menu__link:hover,
html[data-theme="dark"] .categories_nav .categories_menu__item:hover > .categories_menu__link {
    background-color: #303039 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .categories_nav .arrow_right,
html[data-theme="dark"] .categories_nav svg {
    color: #d8d8df;
}
html[data-theme="dark"] .categories_nav .subcategory {
    border-left-color: #3b3b44;
}

/* Карточки, списки и информационные блоки */
html[data-theme="dark"] .product_preview,
html[data-theme="dark"] .product_item,
html[data-theme="dark"] .product_preview__content,
html[data-theme="dark"] .product_preview__bottom,
html[data-theme="dark"] .article__preview,
html[data-theme="dark"] .article__body,
html[data-theme="dark"] .article__title,
html[data-theme="dark"] .article__footer,
html[data-theme="dark"] .brand__preview,
html[data-theme="dark"] .author_list__preview,
html[data-theme="dark"] .blog_catalog__item,
html[data-theme="dark"] .details_boxed,
html[data-theme="dark"] .details_boxed__item,
html[data-theme="dark"] .comment__boxed,
html[data-theme="dark"] .post_container__boxed,
html[data-theme="dark"] .post_container__body,
html[data-theme="dark"] .features__wrap,
html[data-theme="dark"] .purchase__item,
html[data-theme="dark"] .purchase_discount__item,
html[data-theme="dark"] .profile,
html[data-theme="dark"] .cart_header,
html[data-theme="dark"] .cart_footer,
html[data-theme="dark"] .table_wrapper,
html[data-theme="dark"] .tabs__content,
html[data-theme="dark"] .tabs__navigation,
html[data-theme="dark"] .tabs__navigation--user,
html[data-theme="dark"] .popup-content,
html[data-theme="dark"] .popup__heading,
html[data-theme="dark"] .promo-content,
html[data-theme="dark"] .contact-right.contact-card {
    background-color: #222228;
    color: #e4e4e8;
}

/* Заголовки и обычный текст в блоках */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .block__title,
html[data-theme="dark"] .block__heading,
html[data-theme="dark"] .product_preview__name,
html[data-theme="dark"] .product_preview__name a,
html[data-theme="dark"] .article__title,
html[data-theme="dark"] .article__title a,
html[data-theme="dark"] .brand__name,
html[data-theme="dark"] .categories_menu__name,
html[data-theme="dark"] .comment__name,
html[data-theme="dark"] .profile__name,
html[data-theme="dark"] .purchase__name,
html[data-theme="dark"] .details_boxed__item,
html[data-theme="dark"] .block__description,
html[data-theme="dark"] .block__description p,
html[data-theme="dark"] .block__description li {
    color: #e8e8ed;
}

/* Формы, поиск, фильтры, сортировка */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .search__input,
html[data-theme="dark"] .form__input,
html[data-theme="dark"] .form__textarea,
html[data-theme="dark"] .filter__tag_link,
html[data-theme="dark"] .product_sort__link,
html[data-theme="dark"] .pagination__link,
html[data-theme="dark"] .pager a {
    background-color: #292930;
    color: #eeeeF2;
    border-color: #45454f;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .search__input::placeholder {
    color: #a3a3ad;
}
html[data-theme="dark"] .filter__group,
html[data-theme="dark"] .products_container__sort,
html[data-theme="dark"] .product_sort,
html[data-theme="dark"] .mobile_tab_title {
    background-color: #222228;
    color: #e4e4e8;
}

/* Таблицы и разделители */
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .table,
html[data-theme="dark"] .table_wrapper {
    color: #e4e4e8;
    border-color: #3b3b44;
}
html[data-theme="dark"] hr,
html[data-theme="dark"] .block__header--border,
html[data-theme="dark"] .block__comment,
html[data-theme="dark"] .comment__boxed {
    border-color: #3b3b44;
}

/* Блоки с уведомлениями сохраняют смысловые цвета, но не слепят */
html[data-theme="dark"] .boxed,
html[data-theme="dark"] .boxed--notify {
    background-color: #292930;
    color: #d5d5dc;
    border-left-color: #666675;
}
html[data-theme="dark"] blockquote {
    background-color: #292930;
    color: #d5d5dc;
    border-left-color: #666675;
}

/* Подложка изображений товара остаётся светлой для корректного отображения упаковки */
html[data-theme="dark"] .product_preview__image,
html[data-theme="dark"] .product-page__image,
html[data-theme="dark"] .product-page__images-item,
html[data-theme="dark"] .product-page__img .swiper-slide,
html[data-theme="dark"] .purchase__image {
    background-color: #ffffff;
}

/* Мобильная навигация и боковые панели */
html[data-theme="dark"] .mobile_menu,
html[data-theme="dark"] .mobile_menu__inner,
html[data-theme="dark"] .mobile_navigation,
html[data-theme="dark"] .mobile_tab,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sidebar_card,
html[data-theme="dark"] .sidebar_card__link {
    background-color: #222228;
    color: #e4e4e8;
}

/* Ссылки и второстепенный текст */
html[data-theme="dark"] .main a:not(.button):not(.btn_order),
html[data-theme="dark"] .content a:not(.button):not(.btn_order) {
    color: #d98ab5;
}
html[data-theme="dark"] .main a:hover,
html[data-theme="dark"] .content a:hover {
    color: #f0b5d2;
}

/* Фирменная шапка и баннеры остаются в исходных цветах */
html[data-theme="dark"] header,
html[data-theme="dark"] .header__top,
html[data-theme="dark"] .header__center,
html[data-theme="dark"] .header__bottom,
html[data-theme="dark"] .fn_header__sticky,
html[data-theme="dark"] .main_banner {
    color: inherit;
}


/* ============================================================
   ДОПОЛНИТЕЛЬНО ПО СКРИНШОТАМ:
   1) Убираем фирменный градиент в тёмном режиме.
      В светлой теме исходный градиент остаётся без изменений.
   2) Убираем белую подложку названия товара и белый градиент
      в карточках каталога.
   ============================================================ */

/* В тёмной теме шапка и её внешние полосы становятся однотонными */
html[data-theme="dark"] header,
html[data-theme="dark"] .header,
html[data-theme="dark"] .header__top,
html[data-theme="dark"] .header__center,
html[data-theme="dark"] .header__bottom,
html[data-theme="dark"] .fn_header__sticky,
html[data-theme="dark"] .header__bottom_panel {
    background: #17171b !important;
}

/* Внутренние панели шапки */
html[data-theme="dark"] .header__top .container,
html[data-theme="dark"] .header__center .container,
html[data-theme="dark"] .header__bottom .container,
html[data-theme="dark"] .fn_header__sticky .container {
    background-color: transparent;
}

/* Карточки товаров в каталоге */
html[data-theme="dark"] .product_preview,
html[data-theme="dark"] .product_preview__content,
html[data-theme="dark"] .product_preview__name,
html[data-theme="dark"] .product_preview__prices,
html[data-theme="dark"] .product_preview__annotation,
html[data-theme="dark"] .product_preview__variants,
html[data-theme="dark"] .product_preview__bottom {
    background-color: #222228 !important;
    color: #e8e8ed !important;
}

/* Белая полупрозрачная подложка под названием товара */
html[data-theme="dark"] .product_preview__name a {
    background: #292930 !important;
    color: #e8e8ed !important;
}

/* Сброс белого затухания внизу описания товара */
html[data-theme="dark"] .product_preview__annotation::after {
    background-image: linear-gradient(to right, rgba(41,41,48,0), #292930 40%, #292930) !important;
}

/* Цена, артикул и второстепенная информация */
html[data-theme="dark"] .product_preview__sku,
html[data-theme="dark"] .product_preview__annotation,
html[data-theme="dark"] .product_preview__annotation p,
html[data-theme="dark"] .product_preview__annotation li {
    color: #c4c4cd !important;
}
html[data-theme="dark"] .product_preview__prices .old_price {
    color: #a8a8b2 !important;
}

/* Границы карточек */
html[data-theme="dark"] .products_list:not(.no_gutters) .product_preview {
    border-color: #41414b !important;
}


/* ============================================================
   PWB.KZ — ФИНАЛЬНАЯ КОРРЕКЦИЯ: ШАПКА, ПОДВАЛ И ОФОРМЛЕНИЕ
   ============================================================ */

/* Шапка и подвал немного светлее основного фона */
html[data-theme="dark"] header,
html[data-theme="dark"] .header,
html[data-theme="dark"] .header__top,
html[data-theme="dark"] .header__center,
html[data-theme="dark"] .header__bottom,
html[data-theme="dark"] .fn_header__sticky {
    background: #292930 !important;
    color: #eeeeF2;
}

/* Отдельные панели внутри шапки */
html[data-theme="dark"] .header__top .container,
html[data-theme="dark"] .header__center .container,
html[data-theme="dark"] .header__bottom .container,
html[data-theme="dark"] .fn_header__sticky .container {
    background-color: transparent !important;
}

/* Весь подвал — единая чуть более светлая поверхность */
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer__top,
html[data-theme="dark"] .footer__bottom,
html[data-theme="dark"] .footer__middle,
html[data-theme="dark"] .footer__copyright {
    background: #292930 !important;
    color: #e4e4e8 !important;
}
html[data-theme="dark"] .footer__title {
    background: #34343d !important;
    color: #f0f0f4 !important;
}
html[data-theme="dark"] .footer a,
html[data-theme="dark"] .footer__copyright a {
    color: #dedee5 !important;
}

/* Область оформления заказа: убираем белые большие панели */
html[data-theme="dark"] .form--boxed,
html[data-theme="dark"] .form--boxed_cart,
html[data-theme="dark"] .order_payment,
html[data-theme="dark"] .order_payment__description,
html[data-theme="dark"] .order_payment__form,
html[data-theme="dark"] .order_payment__checkout,
html[data-theme="dark"] .payment_method,
html[data-theme="dark"] .payment_method__item,
html[data-theme="dark"] .delivery,
html[data-theme="dark"] .delivery__item,
html[data-theme="dark"] .cart,
html[data-theme="dark"] .cart__inner,
html[data-theme="dark"] .cart__form,
html[data-theme="dark"] .cart__content,
html[data-theme="dark"] .purchases,
html[data-theme="dark"] .purchase,
html[data-theme="dark"] .purchase__inner,
html[data-theme="dark"] .checkout,
html[data-theme="dark"] .checkout__inner,
html[data-theme="dark"] .checkout__form,
html[data-theme="dark"] .order,
html[data-theme="dark"] .order__inner,
html[data-theme="dark"] .order__form {
    background-color: #222228 !important;
    color: #e8e8ed !important;
    border-color: #41414b !important;
}

/* Подписи секций формы (например, «Контактные данные», «Способы доставки») */
html[data-theme="dark"] .form__title,
html[data-theme="dark"] .form__header,
html[data-theme="dark"] .form__header span,
html[data-theme="dark"] .order__title,
html[data-theme="dark"] .checkout__title,
html[data-theme="dark"] .delivery__title,
html[data-theme="dark"] .payment_method__title {
    background-color: #222228 !important;
    color: #eeeeF2 !important;
}

/* Поля заказа остаются темнее панелей */
html[data-theme="dark"] .form--boxed input,
html[data-theme="dark"] .form--boxed textarea,
html[data-theme="dark"] .form--boxed select,
html[data-theme="dark"] .form--boxed_cart input,
html[data-theme="dark"] .form--boxed_cart textarea,
html[data-theme="dark"] .form--boxed_cart select,
html[data-theme="dark"] .checkout input,
html[data-theme="dark"] .checkout textarea,
html[data-theme="dark"] .checkout select,
html[data-theme="dark"] .order input,
html[data-theme="dark"] .order textarea,
html[data-theme="dark"] .order select {
    background-color: #292930 !important;
    color: #eeeeF2 !important;
    border-color: #494953 !important;
}

/* Текстовые подписи и способы оплаты/доставки */
html[data-theme="dark"] .delivery__name,
html[data-theme="dark"] .delivery__name_price,
html[data-theme="dark"] .delivery__description,
html[data-theme="dark"] .payment_method__item,
html[data-theme="dark"] .order_payment__name,
html[data-theme="dark"] .order_payment__description,
html[data-theme="dark"] .checkbox,
html[data-theme="dark"] .checkbox__text,
html[data-theme="dark"] .form__label,
html[data-theme="dark"] .form__group label {
    color: #dedee5 !important;
}

/* Убираем светлые фоны у разделителей/псевдоэлементов заголовков форм */
html[data-theme="dark"] .form__header::after,
html[data-theme="dark"] .comment_heading::after {
    background-color: #41414b !important;
}
html[data-theme="dark"] .form__title::before,
html[data-theme="dark"] .form__title::after {
    background-color: #222228 !important;
}

/* Белые контейнеры, которые встречаются в блоках заказа */
html[data-theme="dark"] .cart .block--boxed,
html[data-theme="dark"] .cart .block__header--boxed,
html[data-theme="dark"] .order .block--boxed,
html[data-theme="dark"] .checkout .block--boxed,
html[data-theme="dark"] .purchase_detail,
html[data-theme="dark"] .purchase_detail__inner,
html[data-theme="dark"] .purchase_detail_popup,
html[data-theme="dark"] .purchase_detail_popup_total {
    background-color: #222228 !important;
    color: #e8e8ed !important;
    border-color: #41414b !important;
}


/* ============================================================
   PWB.KZ — ДОПОЛНЕНИЕ ПО СКРИНШОТАМ:
   боковые фильтры/категории и содержимое статей
   ============================================================ */

/* Боковые белые карточки «Категории», «Цена» и подобные */
html[data-theme="dark"] .sidebar .block--boxed,
html[data-theme="dark"] .sidebar .block__header--boxed,
html[data-theme="dark"] .sidebar .block__body,
html[data-theme="dark"] .sidebar .block__content,
html[data-theme="dark"] .sidebar .categories,
html[data-theme="dark"] .sidebar .categories_block,
html[data-theme="dark"] .sidebar .filters,
html[data-theme="dark"] .sidebar .filter,
html[data-theme="dark"] .sidebar .filter__group,
html[data-theme="dark"] .sidebar .filter__content,
html[data-theme="dark"] .sidebar .filter__name,
html[data-theme="dark"] .sidebar .block,
html[data-theme="dark"] .sidebar .boxed,
html[data-theme="dark"] .sidebar .boxed--notify {
    background-color: #292930 !important;
    color: #eeeeF2 !important;
    border-color: #41414b !important;
}

/* Внутренние списки категорий и подкатегорий */
html[data-theme="dark"] .sidebar .categories_menu,
html[data-theme="dark"] .sidebar .categories_menu__item,
html[data-theme="dark"] .sidebar .categories_menu__link,
html[data-theme="dark"] .sidebar .categories_menu__name,
html[data-theme="dark"] .sidebar .categories_nav,
html[data-theme="dark"] .sidebar .categories_nav__menu,
html[data-theme="dark"] .sidebar .categories_nav__subcategory,
html[data-theme="dark"] .sidebar .subcategory {
    background-color: #222228 !important;
    color: #e8e8ed !important;
}
html[data-theme="dark"] .sidebar .categories_menu__link,
html[data-theme="dark"] .sidebar .categories_menu__link span,
html[data-theme="dark"] .sidebar .categories_menu__name,
html[data-theme="dark"] .sidebar .filter__name,
html[data-theme="dark"] .sidebar .filter__name span {
    color: #e8e8ed !important;
}
html[data-theme="dark"] .sidebar .categories_menu__link:hover,
html[data-theme="dark"] .sidebar .categories_menu__item:hover > .categories_menu__link {
    background-color: #383840 !important;
}

/* Поля цены и область ползунка фильтра */
html[data-theme="dark"] .sidebar .filter input,
html[data-theme="dark"] .sidebar .filter select,
html[data-theme="dark"] .sidebar .filter__price input,
html[data-theme="dark"] .sidebar .price_range input,
html[data-theme="dark"] .sidebar .filter__tag_link,
html[data-theme="dark"] .sidebar .filter__selected_feature .filter__sf_link {
    background-color: #222228 !important;
    color: #eeeeF2 !important;
    border-color: #494953 !important;
}
html[data-theme="dark"] .sidebar .noUi-target,
html[data-theme="dark"] .sidebar .noUi-base,
html[data-theme="dark"] .sidebar .noUi-connects {
    background-color: #41414b !important;
}

/* Статьи/описания: белые области с очень светлым текстом */
html[data-theme="dark"] .post_container,
html[data-theme="dark"] .post_container__wrapper,
html[data-theme="dark"] .post_container__body,
html[data-theme="dark"] .post_container__body > div,
html[data-theme="dark"] .post_container__body > section,
html[data-theme="dark"] .post_container__body .post_content,
html[data-theme="dark"] .post_container__body .post_content__inner,
html[data-theme="dark"] .post_container__body .article_content,
html[data-theme="dark"] .post_container__body .article_content__inner,
html[data-theme="dark"] .post_container__body .description,
html[data-theme="dark"] .post_container__body .description__inner {
    background-color: #222228 !important;
    color: #dedee5 !important;
    border-color: #41414b !important;
}

/* Вложенные блоки текста в статье — убираем светлые фоны,
   но не трогаем iframe, видео и изображения */
html[data-theme="dark"] .post_container__body p,
html[data-theme="dark"] .post_container__body li,
html[data-theme="dark"] .post_container__body ul,
html[data-theme="dark"] .post_container__body ol,
html[data-theme="dark"] .post_container__body h1,
html[data-theme="dark"] .post_container__body h2,
html[data-theme="dark"] .post_container__body h3,
html[data-theme="dark"] .post_container__body h4,
html[data-theme="dark"] .post_container__body h5,
html[data-theme="dark"] .post_container__body h6,
html[data-theme="dark"] .post_container__body span:not(.button):not(.badge),
html[data-theme="dark"] .post_container__body div:not(.video):not(.video-container) {
    color: #dedee5;
}
html[data-theme="dark"] .post_container__body a {
    color: #e18ab8;
}

/* Общие текстовые блоки редактора, которые могли получить белый фон */
html[data-theme="dark"] .post_container__body [style*="background-color: #fff"],
html[data-theme="dark"] .post_container__body [style*="background-color:#fff"],
html[data-theme="dark"] .post_container__body [style*="background: #fff"],
html[data-theme="dark"] .post_container__body [style*="background:#fff"],
html[data-theme="dark"] .post_container__body [style*="background-color: rgb(255"],
html[data-theme="dark"] .post_container__body [style*="background: rgb(255"] {
    background-color: #222228 !important;
}

/* Превью статей и белый градиент-затухание */
html[data-theme="dark"] .article__preview,
html[data-theme="dark"] .article__title,
html[data-theme="dark"] .article__body {
    background-color: #222228 !important;
    color: #dedee5 !important;
}
html[data-theme="dark"] .article__body::after {
    background-image: linear-gradient(to bottom, rgba(34,34,40,0), #222228 50%, #222228) !important;
}


/* ============================================================
   PWB.KZ — КОРЗИНА И ПОДВАЛ: УБИРАЕМ ЧЁРНЫЕ РАМКИ
   ============================================================ */

/* Корзина: вместо почти чёрных контуров — мягкие серые разделители */
html[data-theme="dark"] .cart,
html[data-theme="dark"] .cart_body,
html[data-theme="dark"] .cart_body > .container,
html[data-theme="dark"] .cart_body .row,
html[data-theme="dark"] .cart_body [class*="col-"],
html[data-theme="dark"] .cart_header,
html[data-theme="dark"] .cart_footer,
html[data-theme="dark"] .cart_header__inner,
html[data-theme="dark"] .cart_footer__copyright {
    border-color: #393941 !important;
    outline: 0 !important;
    box-shadow: none;
}

/* Контейнеры доставки/оплаты и корзины */
html[data-theme="dark"] .cart_body .block--boxed,
html[data-theme="dark"] .cart_body .block__header--boxed,
html[data-theme="dark"] .cart_body .block__body,
html[data-theme="dark"] .cart_body .block__content,
html[data-theme="dark"] .cart_body .boxed,
html[data-theme="dark"] .cart_body .purchase_detail,
html[data-theme="dark"] .cart_body .purchase_detail__inner,
html[data-theme="dark"] .cart_body .order_payment,
html[data-theme="dark"] .cart_body .delivery,
html[data-theme="dark"] .cart_body .payment_method {
    background-color: #25252c !important;
    color: #e5e5eb !important;
    border-color: #393941 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Сами позиции товара и разделители между ними */
html[data-theme="dark"] .purchase__item,
html[data-theme="dark"] .purchase__content,
html[data-theme="dark"] .purchase__information,
html[data-theme="dark"] .purchase__details,
html[data-theme="dark"] .cart_body .table_wrapper,
html[data-theme="dark"] .cart_body table,
html[data-theme="dark"] .cart_body th,
html[data-theme="dark"] .cart_body td {
    border-color: #393941 !important;
}

/* Убираем чёрные обводки у рамок блоков, но оставляем поля ввода */
html[data-theme="dark"] .cart_body .block,
html[data-theme="dark"] .cart_body .block--boxed,
html[data-theme="dark"] .cart_body .boxed,
html[data-theme="dark"] .cart_body .purchase_detail,
html[data-theme="dark"] .cart_body .order_payment__description,
html[data-theme="dark"] .cart_body .delivery__description {
    outline: none !important;
    box-shadow: none !important;
}

/* Подвал: цельная поверхность без чёрных полос по краям и между колонками */
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer__inner,
html[data-theme="dark"] .footer__top,
html[data-theme="dark"] .footer__middle,
html[data-theme="dark"] .footer__bottom,
html[data-theme="dark"] .footer .container,
html[data-theme="dark"] .footer .row,
html[data-theme="dark"] .footer [class*="col-"] {
    background-color: #292930 !important;
    border-color: #393941 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Заголовки в подвале немного выделяются, но без резких прямоугольников */
html[data-theme="dark"] .footer__title {
    background-color: #34343c !important;
    color: #eeeeF2 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Убираем тёмные рамки вокруг нижней строки копирайта */
html[data-theme="dark"] .footer__copyright {
    background-color: #292930 !important;
    border-top: 1px solid #393941 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

/* Белые плитки преимуществ внизу страницы */
html[data-theme="dark"] .features,
html[data-theme="dark"] .features__item,
html[data-theme="dark"] .features__wrap,
html[data-theme="dark"] .features__name,
html[data-theme="dark"] .features__value,
html[data-theme="dark"] .advantage-item,
html[data-theme="dark"] .advantages,
html[data-theme="dark"] .advantages__item,
html[data-theme="dark"] .benefits,
html[data-theme="dark"] .benefits__item,
html[data-theme="dark"] .benefit-item {
    background-color: #292930 !important;
    color: #e5e5eb !important;
    border-color: #393941 !important;
}

/* Если плитки преимуществ сделаны ссылками или отдельными карточками */
html[data-theme="dark"] .features a,
html[data-theme="dark"] .advantage-item a,
html[data-theme="dark"] .advantages__item a,
html[data-theme="dark"] .benefits__item a,
html[data-theme="dark"] .benefit-item a {
    color: #e5e5eb !important;
}

/* Иконки преимуществ сохраняют фирменный розовый цвет */
html[data-theme="dark"] .features svg,
html[data-theme="dark"] .advantage-item svg,
html[data-theme="dark"] .advantages svg,
html[data-theme="dark"] .benefits svg,
html[data-theme="dark"] .benefit-item svg {
    color: #c12b82;
}

/* Платёжные логотипы остаются на светлой подложке для корректной видимости */
html[data-theme="dark"] .payments__item {
    background-color: #f4f4f4 !important;
    border-color: #d0d0d0 !important;
}


/* ============================================================
   PWB.KZ — ТОЧЕЧНЫЕ ПРАВКИ ПО banners.css И theme.css
   ============================================================ */

/* Боковые белые карточки «Категории», «Цена»:
   в theme.css их внешний контейнер — .sidebar__boxed */
html[data-theme="dark"] .sidebar__boxed {
    background: #292930 !important;
    color: #eeeeF2 !important;
    border: 1px solid #393941 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] .sidebar__boxed .sidebar_heading,
html[data-theme="dark"] .sidebar__boxed .filter__name,
html[data-theme="dark"] .sidebar__boxed .sidebar_heading span,
html[data-theme="dark"] .sidebar__boxed .filter__name span {
    color: #eeeeF2 !important;
}

/* Выпадающий список категорий и вложенные уровни */
html[data-theme="dark"] .categories_nav,
html[data-theme="dark"] .categories_nav .categories_nav__menu,
html[data-theme="dark"] .categories_nav .categories_menu,
html[data-theme="dark"] .categories_nav .subcategory,
html[data-theme="dark"] .categories_nav .categories_nav__subcategory {
    background: #222228 !important;
    color: #eeeeF2 !important;
}

/* Фильтры внутри боковых карточек */
html[data-theme="dark"] .sidebar__boxed .filters,
html[data-theme="dark"] .sidebar__boxed .filter__group,
html[data-theme="dark"] .sidebar__boxed .filter__content {
    background: transparent !important;
    border-color: #41414b !important;
}

/* Баннеры преимуществ — исходный banners.css задаёт белый фон
   через .banner_advantages__preview */
html[data-theme="dark"] .banner_advantages__preview,
html[data-theme="dark"] .banner_advantages__item:hover .banner_advantages__preview {
    background: #292930 !important;
    border-color: #41414b !important;
    box-shadow: none !important;
    color: #e5e5eb !important;
}
html[data-theme="dark"] .banner_advantages__title,
html[data-theme="dark"] .banner_advantages__description {
    color: #e5e5eb !important;
}

/* Баннеры без JS: в исходном banners.css у них белая подложка */
html[data-theme="dark"] .banner_group.no_js,
html[data-theme="dark"] .banner_group.no_js .banner_group__item {
    background-color: #222228 !important;
}
html[data-theme="dark"] .banner_group__title,
html[data-theme="dark"] .banner_group__description,
html[data-theme="dark"] .banner_group__variant3 .banner_group__title,
html[data-theme="dark"] .banner_group__variant4 .banner_group__title,
html[data-theme="dark"] .banner_group__variant3 .banner_group__description,
html[data-theme="dark"] .banner_group__variant4 .banner_group__description {
    color: #eeeeF2;
}
html[data-theme="dark"] .banner_group__variant2 .banner_group__title,
html[data-theme="dark"] .banner_group__variant2 .banner_group__description {
    background: rgba(34, 34, 40, 0.86) !important;
    color: #eeeeF2 !important;
}


/* ============================================================
   PWB.KZ — ВЕРСИЯ 7: ФИЛЬТРЫ, ОПЛАТА/ДОСТАВКА, ИЗБРАННОЕ
   Селекторы сверены с theme(1).css
   ============================================================ */

/* Фильтры: невыбранные пункты и названия производителей */
html[data-theme="dark"] .filter__link,
html[data-theme="dark"] .filter__link .filter__label,
html[data-theme="dark"] .filter__link:not(.checked) .filter__label,
html[data-theme="dark"] .filter__selected_feature_reset .filter__sf_reset,
html[data-theme="dark"] .view_all_feature {
    color: #dedee5 !important;
}
html[data-theme="dark"] .filter__link:hover .filter__label {
    color: #ffffff !important;
}
html[data-theme="dark"] .filter__link .filter__checkbox {
    background: #292930 !important;
    border-color: #494953 !important;
}
html[data-theme="dark"] .filter__link.checked .filter__label {
    color: var(--okay-basic-company, #c12b82) !important;
}
html[data-theme="dark"] .filter__link.checked .filter__checkbox {
    border-color: var(--okay-basic-company, #c12b82) !important;
}

/* Заголовки секций фильтров */
html[data-theme="dark"] .filter__name,
html[data-theme="dark"] .sidebar_heading,
html[data-theme="dark"] .filter__name_arrow,
html[data-theme="dark"] .sidebar_heading_arrow {
    color: #eeeeF2 !important;
}
html[data-theme="dark"] .filters .filter__group {
    border-bottom-color: #41414b !important;
}

/* Заголовки «Способы оплаты» и «Способы доставки» */
html[data-theme="dark"] .order_payment__title,
html[data-theme="dark"] .order_payment__name,
html[data-theme="dark"] .delivery__name,
html[data-theme="dark"] .delivery__name_price,
html[data-theme="dark"] .delivery__description,
html[data-theme="dark"] .delivery__description *,
html[data-theme="dark"] .order_payment__description,
html[data-theme="dark"] .order_payment__description *,
html[data-theme="dark"] .payment_method__item,
html[data-theme="dark"] .payment_method__item *,
html[data-theme="dark"] .delivery__item,
html[data-theme="dark"] .delivery__item * {
    color: #e4e4e8;
}

/* Информационные панели доставки/оплаты — без белого фона */
html[data-theme="dark"] .delivery__description,
html[data-theme="dark"] .order_payment__description {
    background: #292930 !important;
    border-left-color: #b52a7b !important;
    color: #dedee5 !important;
}
html[data-theme="dark"] .delivery__description a,
html[data-theme="dark"] .order_payment__description a {
    color: #d77ab0 !important;
}

/* Скрывающиеся заголовки и accordion-панели в корзине */
html[data-theme="dark"] .cart_body .block__title,
html[data-theme="dark"] .cart_body .block__heading,
html[data-theme="dark"] .cart_body .block__header,
html[data-theme="dark"] .cart_body .block__header--boxed,
html[data-theme="dark"] .cart_body .mobile_tab_title,
html[data-theme="dark"] .cart_body .mobile_tab_title *,
html[data-theme="dark"] .cart_body .tabs__link,
html[data-theme="dark"] .cart_body .accordion__title {
    color: #eeeeF2 !important;
    background-color: transparent;
}

/* Кнопка избранного и сравнения: убираем серую/белую заливку */
html[data-theme="dark"] .product-page__wishlist,
html[data-theme="dark"] .product-page__compare,
html[data-theme="dark"] .details_boxed__other .fast_order_button {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #555560 !important;
    color: #dedee5 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .product-page__wishlist i,
html[data-theme="dark"] .product-page__compare i {
    color: #dedee5 !important;
}
html[data-theme="dark"] .product-page__wishlist.selected,
html[data-theme="dark"] .product-page__compare.selected {
    color: #d12b89 !important;
    border-color: #d12b89 !important;
}
html[data-theme="dark"] .product-page__wishlist.selected i {
    color: #d12b89 !important;
}

/* Текст и характеристики в карточке/странице товара */
html[data-theme="dark"] .product-page__name,
html[data-theme="dark"] .product-page__sku,
html[data-theme="dark"] .product-page__annotation,
html[data-theme="dark"] .product-page__description,
html[data-theme="dark"] .product-page__features,
html[data-theme="dark"] .product-page__price,
html[data-theme="dark"] .product-page__price *,
html[data-theme="dark"] .details_boxed__item,
html[data-theme="dark"] .details_boxed__item * {
    color: #e4e4e8;
}
html[data-theme="dark"] .product-page__price .price,
html[data-theme="dark"] .product-page__price .price *,
html[data-theme="dark"] .details_boxed__price {
    color: var(--okay-basic-company, #c12b82) !important;
}

/* Не перекрашиваем фирменные кнопки оформления и оплаты */
html[data-theme="dark"] .order_payment__checkout .button,
html[data-theme="dark"] .cart_body .button,
html[data-theme="dark"] .cart_body button[type="submit"] {
    background-color: var(--okay-button-color, #b62475) !important;
    color: #ffffff !important;
    border-color: var(--okay-button-color, #b62475) !important;
}


/* ============================================================
   PWB.KZ — ВЕРСИЯ 8: ЕДИНЫЙ ЦВЕТ ВСЕЙ ШАПКИ
   Верхняя строка, основное меню и строка поиска — один фон.
   ============================================================ */

html[data-theme="dark"] header,
html[data-theme="dark"] header .header__top,
html[data-theme="dark"] header .header__center,
html[data-theme="dark"] header .header__bottom,
html[data-theme="dark"] header .header__short,
html[data-theme="dark"] header .fn_header__sticky,
html[data-theme="dark"] header .header__bottom_panel,
html[data-theme="dark"] header .header__bottom_panel .container,
html[data-theme="dark"] header .header__bottom_panel .row {
    background: #292930 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
}

/* Убираем отдельную чёрную подложку у поля быстрого поиска */
html[data-theme="dark"] header .search,
html[data-theme="dark"] header .search__input,
html[data-theme="dark"] header .search input,
html[data-theme="dark"] header .search__form {
    background: #292930 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
    border-color: #292930 !important;
    box-shadow: none !important;
}

/* Placeholder поиска */
html[data-theme="dark"] header .search__input::placeholder,
html[data-theme="dark"] header .search input::placeholder {
    color: #a9a9b3 !important;
    opacity: 1;
}

/* Кнопка поиска остаётся фирменной */
html[data-theme="dark"] header .search__button {
    background: #713078 !important;
    color: #ffffff !important;
}

/* Внутренние обёртки шапки не должны возвращать градиент */
html[data-theme="dark"] header .header__top *,
html[data-theme="dark"] header .header__center *,
html[data-theme="dark"] header .header__bottom * {
    background-image: none;
}


/* PWB.KZ — HEADER COLOR FIX v9
   Direct selectors: the search row is not necessarily nested inside header.
   All three header bands and the search field use the same surface color.
*/
html[data-theme="dark"] .header__top,
html[data-theme="dark"] .header__center,
html[data-theme="dark"] .header__bottom,
html[data-theme="dark"] .fn_header__sticky,
html[data-theme="dark"] .header__bottom_panel,
html[data-theme="dark"] .header__bottom_panel > .container,
html[data-theme="dark"] .header__bottom_panel .row,
html[data-theme="dark"] .header__bottom_panel .search,
html[data-theme="dark"] .header__bottom_panel .search__input,
html[data-theme="dark"] .header__bottom_panel input.search__input,
html[data-theme="dark"] .header__bottom_panel .search input,
html[data-theme="dark"] .header__bottom_panel .search__form {
    background-color: #292930 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
    border-color: #292930 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .header__bottom_panel .search__input::placeholder,
html[data-theme="dark"] .header__bottom_panel .search input::placeholder {
    color: #a9a9b3 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] .header__bottom_panel .search__button {
    background: #713078 !important;
    color: #ffffff !important;
    border-color: #713078 !important;
}


/* ============================================================
   PWB.KZ — V10: BLOG + SEARCH ROW CONTRAST
   Exact selectors confirmed in theme(1).css and index(1).tpl
   ============================================================ */

/* BLOG: the large white wrapper around the blog listing */
html[data-theme="dark"] .blog_container__boxed,
html[data-theme="dark"] .blog_container__boxed > .boxed,
html[data-theme="dark"] .blog_container__boxed .boxed {
    background: #222228 !important;
    background-color: #222228 !important;
    color: #e8e8ed !important;
    border-color: #393941 !important;
}

/* Blog page heading and content */
html[data-theme="dark"] .blog_container__boxed h1,
html[data-theme="dark"] .blog_container__boxed h2,
html[data-theme="dark"] .blog_container__boxed h3,
html[data-theme="dark"] .blog_container__boxed .page_title,
html[data-theme="dark"] .blog_container__boxed .page_heading {
    color: #e8e8ed !important;
}

/* Article cards in blog listing */
html[data-theme="dark"] .blog_container__boxed .article_item,
html[data-theme="dark"] .blog_container__boxed .article__preview {
    background: #292930 !important;
    background-color: #292930 !important;
    color: #e8e8ed !important;
    border-color: #393941 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .blog_container__boxed .article__title,
html[data-theme="dark"] .blog_container__boxed .article__footer {
    background: #292930 !important;
    background-color: #292930 !important;
    color: #e8e8ed !important;
    border-color: #393941 !important;
}
html[data-theme="dark"] .blog_container__boxed .article__title:hover {
    color: #ffffff !important;
}
html[data-theme="dark"] .blog_container__boxed .article__annotation,
html[data-theme="dark"] .blog_container__boxed .article__annotation p,
html[data-theme="dark"] .blog_container__boxed .article__info_item,
html[data-theme="dark"] .blog_container__boxed .article__author {
    color: #c7c7d0 !important;
}

/* Remove the original white fade at the bottom of article cards */
html[data-theme="dark"] .blog_container__boxed .article__body::after,
html[data-theme="dark"] .blog_container__boxed .article__footer::after {
    background-image: linear-gradient(
        to bottom,
        rgba(41, 41, 48, 0),
        #292930 55%,
        #292930
    ) !important;
}

/* Blog category labels keep their branded pink/purple colors */
html[data-theme="dark"] .blog_container__boxed .article__label {
    color: #f2d9eb !important;
}

/* Individual blog post page */
html[data-theme="dark"] .post_container__wrapper,
html[data-theme="dark"] .post_container__boxed,
html[data-theme="dark"] .post_container__body,
html[data-theme="dark"] .post_container__body > div {
    background-color: #222228 !important;
    color: #dedee5 !important;
    border-color: #393941 !important;
}
html[data-theme="dark"] .post_container__body h1,
html[data-theme="dark"] .post_container__body h2,
html[data-theme="dark"] .post_container__body h3,
html[data-theme="dark"] .post_container__body h4,
html[data-theme="dark"] .post_container__body p,
html[data-theme="dark"] .post_container__body li {
    color: #dedee5 !important;
}
html[data-theme="dark"] .post_container__body a {
    color: #d77ab0 !important;
}

/* Header: keep top/logo/menu bands on one surface */
html[data-theme="dark"] .header__top,
html[data-theme="dark"] .header__center,
html[data-theme="dark"] .fn_header__sticky {
    background: #292930 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
}

/* Search strip is intentionally a different shade to separate it
   from the logo/navigation row. Search input is slightly brighter. */
html[data-theme="dark"] .header__bottom {
    background: #202027 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
}
html[data-theme="dark"] .header__bottom .header__bottom_panel {
    background: transparent !important;
}
html[data-theme="dark"] .header__bottom .search,
html[data-theme="dark"] .header__bottom .search__input,
html[data-theme="dark"] .header__bottom .search input {
    background: #292930 !important;
    background-color: #292930 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
    border-color: #393941 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .header__bottom .search__input::placeholder,
html[data-theme="dark"] .header__bottom .search input::placeholder {
    color: #a9a9b3 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] .header__bottom .search__button {
    background: #713078 !important;
    color: #ffffff !important;
    border-color: #713078 !important;
}


/* ============================================================
   PWB.KZ — V11: HEADER SEARCH, FOOTER TITLES, SKU, HEADER CONTACT
   ============================================================ */

/* 1. Полоса поиска темнее основной шапки */
html[data-theme="dark"] .header__bottom,
html[data-theme="dark"] .header__bottom_panel,
html[data-theme="dark"] .header__bottom_panel > .container,
html[data-theme="dark"] .header__bottom_panel .row,
html[data-theme="dark"] .header__bottom .container,
html[data-theme="dark"] .header__bottom .row {
    background-color: #1d1d23 !important;
    background-image: none !important;
    border-color: #1d1d23 !important;
}

/* Поле поиска — чуть светлее полосы, чтобы оно читалось */
html[data-theme="dark"] .header__bottom .search,
html[data-theme="dark"] .header__bottom .search__input,
html[data-theme="dark"] .header__bottom .search input,
html[data-theme="dark"] .header__bottom_panel .search,
html[data-theme="dark"] .header__bottom_panel .search__input,
html[data-theme="dark"] .header__bottom_panel .search input {
    background-color: #292930 !important;
    background-image: none !important;
    color: #eeeeF2 !important;
    border-color: #393941 !important;
}
html[data-theme="dark"] .header__bottom .search input::placeholder,
html[data-theme="dark"] .header__bottom_panel .search input::placeholder {
    color: #a9a9b3 !important;
    opacity: 1 !important;
}

/* 2. Все заголовки колонок подвала — одинаковая заливка */
html[data-theme="dark"] footer .footer__title,
html[data-theme="dark"] .footer .footer__title,
html[data-theme="dark"] footer .footer__title_arrow,
html[data-theme="dark"] .footer .footer__title_arrow {
    background-color: #34343c !important;
    background-image: none !important;
    color: #eeeeF2 !important;
    border-color: #34343c !important;
}

/* 3. Артикул товара — фирменный фиолетовый, не бежевый */
html[data-theme="dark"] .product-page__sku,
html[data-theme="dark"] .product-page__sku .sku_nubmer,
html[data-theme="dark"] .product-page__sku span,
html[data-theme="dark"] .product-page__sku a {
    background-color: #762b80 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #762b80 !important;
}

/* 4. Контакты в шапке: все вложенные элементы должны быть видимы */
html[data-theme="dark"] .header-contact,
html[data-theme="dark"] .header-contact__inner,
html[data-theme="dark"] .header-contact__item,
html[data-theme="dark"] .header-contact__section,
html[data-theme="dark"] .header-contact__section *,
html[data-theme="dark"] .header-contact--phone,
html[data-theme="dark"] .header-contact--email,
html[data-theme="dark"] .header-contact--time,
html[data-theme="dark"] .header-contact--time p,
html[data-theme="dark"] .header-contact--time span,
html[data-theme="dark"] .header-contact a,
html[data-theme="dark"] .header-contact__inner--adress {
    color: #eeeeF2 !important;
}
html[data-theme="dark"] .header-contact__inner {
    background-color: #292930 !important;
    border: 1px solid #393941 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.28) !important;
}
html[data-theme="dark"] .header-contact__inner .header-contact__item--visible:after {
    color: #eeeeF2 !important;
}
html[data-theme="dark"] .header-contact svg,
html[data-theme="dark"] .header-contact__section svg {
    color: #eeeeF2 !important;
    fill: currentColor;
}


/* ============================================================
   PWB.KZ — V12: CLEAN HEADER + FOOTER HEADINGS
   Требование: один цвет всей шапки; отдельный цвет только у поиска.
   Заголовки подвала без цветных прямоугольных подложек.
   ============================================================ */

/* Вся шапка, включая верхнюю строку, логотип, меню, каталог и иконки */
html[data-theme="dark"] header,
html[data-theme="dark"] .header,
html[data-theme="dark"] .header__top,
html[data-theme="dark"] .header__center,
html[data-theme="dark"] .header__bottom,
html[data-theme="dark"] .header__top .container,
html[data-theme="dark"] .header__center .container,
html[data-theme="dark"] .header__bottom .container,
html[data-theme="dark"] .header__bottom .row,
html[data-theme="dark"] .header__bottom_panel,
html[data-theme="dark"] .header__bottom_panel > .container,
html[data-theme="dark"] .header__bottom_panel .row,
html[data-theme="dark"] .fn_header__sticky {
    background: #292930 !important;
    background-color: #292930 !important;
    background-image: none !important;
    border-color: #292930 !important;
}

/* Снимаем отдельную заливку с элементов строки каталога и иконок */
html[data-theme="dark"] .header__bottom .fn_categories,
html[data-theme="dark"] .header__bottom .catalog,
html[data-theme="dark"] .header__bottom .header__catalog,
html[data-theme="dark"] .header__bottom .header__actions,
html[data-theme="dark"] .header__bottom .header__icons,
html[data-theme="dark"] .header__bottom .header__item {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Отличается по цвету ТОЛЬКО блок быстрого поиска */
html[data-theme="dark"] .header__bottom .search,
html[data-theme="dark"] .header__bottom .search__form,
html[data-theme="dark"] .header__bottom .search form,
html[data-theme="dark"] .header__bottom_panel .search,
html[data-theme="dark"] .header__bottom_panel .search__form,
html[data-theme="dark"] .header__bottom_panel .search form {
    background: #1d1d23 !important;
    background-color: #1d1d23 !important;
    background-image: none !important;
    border: 1px solid #1d1d23 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

/* Поле внутри поиска прозрачное — общий тёмный фон принадлежит блоку поиска */
html[data-theme="dark"] .header__bottom .search input,
html[data-theme="dark"] .header__bottom .search__input,
html[data-theme="dark"] .header__bottom_panel .search input,
html[data-theme="dark"] .header__bottom_panel .search__input {
    background: transparent !important;
    background-color: transparent !important;
    color: #eeeeF2 !important;
    border: 0 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .header__bottom .search input::placeholder,
html[data-theme="dark"] .header__bottom_panel .search input::placeholder {
    color: #a9a9b3 !important;
    opacity: 1 !important;
}

/* Кнопка поиска сохраняет фирменную фиолетовую заливку */
html[data-theme="dark"] .header__bottom .search__button,
html[data-theme="dark"] .header__bottom_panel .search__button {
    background: #713078 !important;
    color: #ffffff !important;
    border-color: #713078 !important;
}

/* Заголовки футера: убрать прямоугольный фон полностью */
html[data-theme="dark"] footer .footer__title,
html[data-theme="dark"] .footer .footer__title,
html[data-theme="dark"] footer .footer__title_arrow,
html[data-theme="dark"] .footer .footer__title_arrow {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #eeeeF2 !important;
}

/* Убираем фон, если он задан ссылке/внутреннему элементу заголовка */
html[data-theme="dark"] footer .footer__title *,
html[data-theme="dark"] .footer .footer__title * {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}


/* ============================================================
   PWB.KZ — V13: HEART POSITION + MENU HIGHLIGHT + DROPDOWN TEXT
   ============================================================ */

/* Сердечко в карточке товара: смещение работает в обеих темах */
.product_preview__center .wishlist_button,
.product_preview__center .wishlist_button__remove {
    top: 4px !important;
    color: #292930 !important;
}
.product_preview__center .wishlist_button::before {
    color: #292930 !important;
}

/* В тёмной теме — прозрачная кнопка без светлой подложки */
html[data-theme="dark"] .product_preview__center .wishlist_button,
html[data-theme="dark"] .product_preview__center .wishlist_button__remove {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Каталог: одинаковое выделение всех пунктов меню */
html[data-theme="dark"] .categories_nav .categories_menu__item:hover,
html[data-theme="dark"] .categories_nav .categories_menu__item.active,
html[data-theme="dark"] .categories_nav .categories_menu__item.selected,
html[data-theme="dark"] .categories_nav .categories_menu__link:hover,
html[data-theme="dark"] .categories_nav .categories_menu__link:focus,
html[data-theme="dark"] .categories_nav .categories_menu__item:hover > .categories_menu__link {
    background: #34343c !important;
    background-color: #34343c !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .categories_nav .categories_menu__link,
html[data-theme="dark"] .categories_nav .categories_menu__name,
html[data-theme="dark"] .categories_nav .categories_menu__link .categories_menu__name {
    color: #eeeeF2 !important;
    background: transparent !important;
}
html[data-theme="dark"] .categories_nav .categories_menu__item:hover .categories_menu__name,
html[data-theme="dark"] .categories_nav .categories_menu__link:hover .categories_menu__name {
    color: #ffffff !important;
    background: transparent !important;
}
html[data-theme="dark"] .categories_nav .categories_menu__link .arrow_right {
    color: #eeeeF2 !important;
}

/* Верхнее выпадающее меню «Покупателям»: единый фон и читаемый текст */
html[data-theme="dark"] .menu_group--header .menu_eventer .menu_group__list--2,
html[data-theme="dark"] .menu_group--header .menu_eventer .menu_group__list--3 {
    background: #292930 !important;
    background-color: #292930 !important;
    color: #eeeeF2 !important;
    border: 1px solid #393941 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.3) !important;
}
html[data-theme="dark"] .menu_group--header .menu_group__item--2,
html[data-theme="dark"] .menu_group--header .menu_group__item--3 {
    background: transparent !important;
    color: #eeeeF2 !important;
}
html[data-theme="dark"] .menu_group--header .menu_group__item--2 .menu_group__link,
html[data-theme="dark"] .menu_group--header .menu_group__item--3 .menu_group__link,
html[data-theme="dark"] .menu_group--header .menu_group__list--2 a,
html[data-theme="dark"] .menu_group--header .menu_group__list--3 a {
    display: block;
    background: transparent !important;
    background-color: transparent !important;
    color: #eeeeF2 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html[data-theme="dark"] .menu_group--header .menu_group__item--2:hover,
html[data-theme="dark"] .menu_group--header .menu_group__item--3:hover,
html[data-theme="dark"] .menu_group--header .menu_group__item--2:hover > .menu_group__link,
html[data-theme="dark"] .menu_group--header .menu_group__item--3:hover > .menu_group__link,
html[data-theme="dark"] .menu_group--header .menu_group__list--2 a:hover,
html[data-theme="dark"] .menu_group--header .menu_group__list--3 a:hover {
    background: #34343c !important;
    background-color: #34343c !important;
    color: #ffffff !important;
}

/* Светлая тема: только единый hover для выпадающего меню,
   исходные светлые цвета фона и текста сохраняются */
.menu_group--header .menu_group__item--2:hover,
.menu_group--header .menu_group__item--2:hover > .menu_group__link {
    background-color: #f0e8f0;
}


/* ============================================================
   PWB.KZ — V14: DESCRIPTION / WHATSAPP BUTTON / BREADCRUMBS
   ============================================================ */

/* Описание товара и блок описания со стилем */
html[data-theme="dark"] .block__description.block__description--style,
html[data-theme="dark"] .block__description--style {
    background: #24242a !important;
    background-color: #24242a !important;
    color: #e9e9ef !important;
    border-color: #393941 !important;
}
html[data-theme="dark"] .block__description.block__description--style *,
html[data-theme="dark"] .block__description--style * {
    color: #e9e9ef !important;
}
html[data-theme="dark"] .block__description.block__description--style a,
html[data-theme="dark"] .block__description--style a {
    color: #e34b9a !important;
}
html[data-theme="dark"] .block__description.block__description--style iframe,
html[data-theme="dark"] .block__description--style iframe {
    border-color: #393941 !important;
}

/* Кнопка WhatsApp: зелёная кнопка, белые надпись и иконка */
html[data-theme="dark"] a.whatsapp-btn,
html[data-theme="dark"] .whatsapp-btn,
html[data-theme="dark"] a.whatsapp-btn:visited,
html[data-theme="dark"] .whatsapp-btn:visited,
html[data-theme="dark"] a.whatsapp-btn:hover,
html[data-theme="dark"] .whatsapp-btn:hover,
html[data-theme="dark"] a.whatsapp-btn:focus,
html[data-theme="dark"] .whatsapp-btn:focus {
    background: #25d366 !important;
    background-color: #25d366 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}
html[data-theme="dark"] .whatsapp-btn *,
html[data-theme="dark"] .whatsapp-btn i,
html[data-theme="dark"] .whatsapp-btn svg,
html[data-theme="dark"] .whatsapp-btn svg path,
html[data-theme="dark"] .whatsapp-btn:before {
    color: #ffffff !important;
    fill: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Хлебные крошки: ссылки фирменные, текущая страница контрастная */
html[data-theme="dark"] .breadcrumbs.d-flex.flex-wrap.align-items-center,
html[data-theme="dark"] .breadcrumbs {
    color: #e8e8ed !important;
}
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item {
    color: #e8e8ed !important;
}
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item a,
html[data-theme="dark"] .breadcrumbs a {
    color: #e56aa9 !important;
}
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item:last-child,
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item:last-child a,
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item:last-child span,
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item:last-child strong {
    color: #e8e8ed !important;
}
html[data-theme="dark"] .breadcrumbs .breadcrumbs__item + .breadcrumbs__item:before {
    color: #777780 !important;
}


/* ============================================================
   PWB.KZ — V15: DISCOUNT BADGE / DARKER FAVORITES / HEADER ALIGN
   ============================================================ */

/* Бейдж скидки — фирменный розовый вместо красного */
html[data-theme="dark"] .sticker_pct,
html[data-theme="dark"] .sticker--discount,
html[data-theme="dark"] .product_preview .sticker--discount,
html[data-theme="dark"] .stickers_product-page .sticker--discount {
    background: #b62474 !important;
    background-color: #b62474 !important;
    color: #ffffff !important;
    border-color: #b62474 !important;
}

/* Кнопка избранного на странице товара — темнее, без светло-серой заливки */
html[data-theme="dark"] .product-page__wishlist,
html[data-theme="dark"] .product-page__wishlist:hover,
html[data-theme="dark"] .product-page__wishlist:focus,
html[data-theme="dark"] .details_boxed__other .product-page__wishlist {
    background: #292930 !important;
    background-color: #292930 !important;
    border: 1px solid #393941 !important;
    color: #d77ab0 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .product-page__wishlist i,
html[data-theme="dark"] .product-page__wishlist i:before {
    color: #d77ab0 !important;
}
html[data-theme="dark"] .product-page__wishlist.selected {
    background: #342633 !important;
    border-color: #b62474 !important;
    color: #e34b9a !important;
}

/* Карточки каталога: затемняем и выравниваем кнопку избранного */
html[data-theme="dark"] .product_preview__center .wishlist_button,
html[data-theme="dark"] .product_preview__center .wishlist_button__remove {
    background: #292930 !important;
    border: 1px solid #393941 !important;
    border-radius: 5px !important;
    color: #d77ab0 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] .product_preview__center .wishlist_button:before,
html[data-theme="dark"] .product_preview__center .wishlist_button__remove:before {
    color: #d77ab0 !important;
}

/* Геометрию шапки и поиска оставляем исходным стилям Okay CMS. */


/* ============================================================
   PWB.KZ — V17: FIX ACTUAL DISCOUNT BADGE + CATALOG WISHLIST
   ============================================================ */

/* Скидочный бейдж: реальный класс из theme.css — .sticker_pct */
html[data-theme="dark"] .sticker_pct,
html[data-theme="dark"] .sticker.sticker_pct,
html[data-theme="dark"] .product_preview .sticker_pct,
html[data-theme="dark"] .product_preview__center .sticker_pct,
html[data-theme="dark"] .stickers .sticker_pct,
html[data-theme="dark"] .stickers_product-page .sticker_pct {
    background: #b62474 !important;
    background-color: #b62474 !important;
    color: #ffffff !important;
    border-color: #b62474 !important;
}

/* Также перекрашиваем стандартную плашку скидки, если используется этот класс */
html[data-theme="dark"] .sticker--discount,
html[data-theme="dark"] .sticker.sticker--discount {
    background: #b62474 !important;
    background-color: #b62474 !important;
    color: #ffffff !important;
    border-color: #b62474 !important;
}

/* Каталог: убрать чёрную квадратную подложку у сердечка.
   Не меняем сам значок/его форму — только фон и рамку кнопки. */
html[data-theme="dark"] .product_preview__center .wishlist_button,
html[data-theme="dark"] .product_preview__center .wishlist_button__remove {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #d77ab0 !important;
    border-radius: 0 !important;
}

/* Сохраняем видимость контура/иконки избранного в карточке каталога */
html[data-theme="dark"] .product_preview__center .wishlist_button::before,
html[data-theme="dark"] .product_preview__center .wishlist_button__remove::before {
    color: #d77ab0 !important;
    background: transparent !important;
}

/* Отдельная страница товара: кнопка избранного остаётся тёмной */
html[data-theme="dark"] body a.fn_wishlist.product-page__wishlist,
html[data-theme="dark"] .details_boxed__buttons a.product-page__wishlist,
html[data-theme="dark"] .product-page__wishlist {
    background: #292930 !important;
    background-color: #292930 !important;
    border: 1px solid #393941 !important;
    color: #d77ab0 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body a.fn_wishlist.product-page__wishlist i,
html[data-theme="dark"] body a.fn_wishlist.product-page__wishlist i:before,
html[data-theme="dark"] .product-page__wishlist i,
html[data-theme="dark"] .product-page__wishlist i:before {
    color: #d77ab0 !important;
}


/* ============================================================
   PWB.KZ — V18: HIGH-SPECIFICITY PRODUCT DISCOUNT + WISHLIST
   Переопределения с приоритетом над правилами okay.css/theme.css.
   ============================================================ */

/* Процентная скидка на странице товара и в карточках */
html[data-theme="dark"] body .sticker_pct,
html[data-theme="dark"] body span.sticker_pct,
html[data-theme="dark"] body .sticker.sticker_pct,
html[data-theme="dark"] body .sticker--discount,
html[data-theme="dark"] body .sticker.sticker--discount,
html[data-theme="dark"] body .stickers_product-page .sticker,
html[data-theme="dark"] body .product-page .sticker,
html[data-theme="dark"] body .product-page__info .sticker {
    background: #b62474 !important;
    background-color: #b62474 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #b62474 !important;
    opacity: 1 !important;
}

/* Кнопка избранного на отдельной странице товара.
   Повторена полная специфичность селектора из okay.css,
   чтобы перебить его белый background: #fff !important. */
html[data-theme="dark"] form.fn_variants .details_boxed__offer
.d-flex.align-items-center.details_boxed__buttons.details_boxed__buttons.details_boxed__buttons
a.fn_wishlist.product-page__wishlist,
html[data-theme="dark"] body form.fn_variants .details_boxed__offer
.d-flex.align-items-center.details_boxed__buttons
a.fn_wishlist.product-page__wishlist {
    background: #292930 !important;
    background-color: #292930 !important;
    background-image: none !important;
    border: 1px solid #393941 !important;
    color: #d77ab0 !important;
    -webkit-text-fill-color: #d77ab0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Сердечко внутри кнопки */
html[data-theme="dark"] form.fn_variants .details_boxed__offer
.d-flex.align-items-center.details_boxed__buttons
a.fn_wishlist.product-page__wishlist i,
html[data-theme="dark"] form.fn_variants .details_boxed__offer
.d-flex.align-items-center.details_boxed__buttons
a.fn_wishlist.product-page__wishlist i::before {
    color: #d77ab0 !important;
    -webkit-text-fill-color: #d77ab0 !important;
}


/* ============================================================
   PWB.KZ — V19: SEARCH SUGGESTIONS + COMPACT CATEGORY DROPDOWN
   ============================================================ */

/* Быстрый поиск: названия найденных товаров и цены — белым */
html[data-theme="dark"] .search__result,
html[data-theme="dark"] .search__results,
html[data-theme="dark"] .search_result,
html[data-theme="dark"] .search_results,
html[data-theme="dark"] .autocomplete,
html[data-theme="dark"] .autocomplete-suggestions,
html[data-theme="dark"] .search__dropdown,
html[data-theme="dark"] .search__list,
html[data-theme="dark"] .search__item,
html[data-theme="dark"] .search__result *,
html[data-theme="dark"] .search__results *,
html[data-theme="dark"] .search_result *,
html[data-theme="dark"] .search_results *,
html[data-theme="dark"] .autocomplete *,
html[data-theme="dark"] .autocomplete-suggestions *,
html[data-theme="dark"] .search__dropdown *,
html[data-theme="dark"] .search__list *,
html[data-theme="dark"] .search__item {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
}
html[data-theme="dark"] .search__result a,
html[data-theme="dark"] .search__results a,
html[data-theme="dark"] .search_result a,
html[data-theme="dark"] .search_results a,
html[data-theme="dark"] .autocomplete a,
html[data-theme="dark"] .autocomplete-suggestions a {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
}

/* Выпадающий список категорий: убрать искусственную большую высоту/пустоту */
html[data-theme="dark"] .categories_nav,
html[data-theme="dark"] .categories_nav .categories_menu,
html[data-theme="dark"] .categories_nav .categories_menu__list,
html[data-theme="dark"] .categories_nav .categories_menu__items,
html[data-theme="dark"] .categories_nav .categories_menu__dropdown,
html[data-theme="dark"] .header__bottom .categories_nav,
html[data-theme="dark"] .header__bottom .categories_menu,
html[data-theme="dark"] .header__bottom .categories_menu__list,
html[data-theme="dark"] .header__bottom .categories_menu__items {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 150px) !important;
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Содержимое меню не растягиваем по высоте контейнера */
html[data-theme="dark"] .categories_nav .categories_menu__list,
html[data-theme="dark"] .categories_nav .categories_menu__items,
html[data-theme="dark"] .categories_nav .categories_menu > ul,
html[data-theme="dark"] .header__bottom .categories_menu > ul {
    align-content: start !important;
    justify-content: flex-start !important;
}

/* Пункты категорий: компактные вертикальные интервалы */
html[data-theme="dark"] .categories_nav .categories_menu__item,
html[data-theme="dark"] .header__bottom .categories_menu__item {
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

/* ============================================================
   PWB.KZ — ПОПАП КОРЗИНЫ: КОНТРАСТ ТЕКСТА В ТЁМНОЙ ТЕМЕ
   ============================================================ */
html[data-theme="dark"] .purchase_detail_popup,
html[data-theme="dark"] .purchase_detail_popup * ,
html[data-theme="dark"] .purchase_detail_popup_total,
html[data-theme="dark"] .purchase_detail_popup_total * ,
html[data-theme="dark"] .popup-content,
html[data-theme="dark"] .popup-content * {
    color: #eeeeF2 !important;
    -webkit-text-fill-color: #eeeeF2 !important;
}

/* Заголовки и названия товаров в мини-корзине */
html[data-theme="dark"] .purchase_detail_popup .purchase__name,
html[data-theme="dark"] .purchase_detail_popup .purchase__name a,
html[data-theme="dark"] .purchase_detail_popup .purchase__name *,
html[data-theme="dark"] .purchase_detail_popup .popup__heading,
html[data-theme="dark"] .purchase_detail_popup .block__title,
html[data-theme="dark"] .purchase_detail_popup .block__heading,
html[data-theme="dark"] .purchase_detail_popup .purchase__amount,
html[data-theme="dark"] .purchase_detail_popup .purchase__quantity,
html[data-theme="dark"] .purchase_detail_popup .purchase__price,
html[data-theme="dark"] .purchase_detail_popup .purchase__total,
html[data-theme="dark"] .purchase_detail_popup_total,
html[data-theme="dark"] .purchase_detail_popup_total * {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
}

/* Кнопки мини-корзины: читаемые подписи и контрастные границы */
html[data-theme="dark"] .purchase_detail_popup button,
html[data-theme="dark"] .purchase_detail_popup .button,
html[data-theme="dark"] .purchase_detail_popup a.button,
html[data-theme="dark"] .purchase_detail_popup_total button,
html[data-theme="dark"] .purchase_detail_popup_total .button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #777780 !important;
}

/* Удаление товара остаётся красным, цены — фирменными розовыми */
html[data-theme="dark"] .purchase_detail_popup .purchase__price,
html[data-theme="dark"] .purchase_detail_popup .price,
html[data-theme="dark"] .purchase_detail_popup_total .price {
    color: #d52b8a !important;
    -webkit-text-fill-color: #d52b8a !important;
}
html[data-theme="dark"] .purchase_detail_popup .purchase__remove,
html[data-theme="dark"] .purchase_detail_popup .remove,
html[data-theme="dark"] .purchase_detail_popup .fn_remove {
    color: #ff3030 !important;
    -webkit-text-fill-color: #ff3030 !important;
}



/* Cart popup: selectors below match the actual markup in pop_up_cart.tpl.
   The popup content is .block__popup_cart, not .purchase_detail_popup. */
html[data-theme="dark"] .block__popup_cart,
html[data-theme="dark"] .block__popup_cart .h6,
html[data-theme="dark"] .block__popup_cart .purchase__item,
html[data-theme="dark"] .block__popup_cart .purchase__content,
html[data-theme="dark"] .block__popup_cart .purchase__name,
html[data-theme="dark"] .block__popup_cart .purchase__name a,
html[data-theme="dark"] .block__popup_cart .purchase__name i,
html[data-theme="dark"] .block__popup_cart .purchase__group,
html[data-theme="dark"] .block__popup_cart .purchase__group_title,
html[data-theme="dark"] .block__popup_cart .purchase__group_content,
html[data-theme="dark"] .block__popup_cart .purchase__amount,
html[data-theme="dark"] .block__popup_cart .purchase__price,
html[data-theme="dark"] .block__popup_cart .purchase__price_total,
html[data-theme="dark"] .purchase_detail__item,
html[data-theme="dark"] .purchase_detail__item .form__button,
html[data-theme="dark"] .purchase_detail__item .purchase_detail__price--total,
html[data-theme="dark"] .purchase_detail__item .purchase_detail_popup_total,
html[data-theme="dark"] .purchase_detail__item #fn_cart_total_price {
    color: #f0f0f3 !important;
    -webkit-text-fill-color: #f0f0f3 !important;
}

/* Ensure links and muted labels remain readable in the popup */
html[data-theme="dark"] .block__popup_cart a,
html[data-theme="dark"] .block__popup_cart span,
html[data-theme="dark"] .block__popup_cart i,
html[data-theme="dark"] .purchase_detail__item a,
html[data-theme="dark"] .purchase_detail__item span {
    color: #e8e8ed !important;
    -webkit-text-fill-color: #e8e8ed !important;
}

/* Quantity field and its +/- controls */
html[data-theme="dark"] .block__popup_cart .amount__input {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
    background: #29282f !important;
    border-color: #777780 !important;
}
html[data-theme="dark"] .block__popup_cart .amount__minus,
html[data-theme="dark"] .block__popup_cart .amount__plus {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
}

/* Keep totals and product prices in the site's pink accent */
html[data-theme="dark"] .block__popup_cart .purchase__price_total,
html[data-theme="dark"] .block__popup_cart .purchase__price_total *,
html[data-theme="dark"] .purchase_detail__item .purchase_detail_popup_total,
html[data-theme="dark"] .purchase_detail__item .purchase_detail_popup_total * {
    color: #d52b8a !important;
    -webkit-text-fill-color: #d52b8a !important;
}

/* Continue shopping: visible outline and text */
html[data-theme="dark"] .purchase_detail__item a.form__button--border {
    color: #f0f0f3 !important;
    -webkit-text-fill-color: #f0f0f3 !important;
    border: 1px solid #85858e !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Checkout button: white readable caption on pink */
html[data-theme="dark"] .purchase_detail__item a.button--blick,
html[data-theme="dark"] .purchase_detail__item a.form__button.button--blick {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #b62474 !important;
    background-color: #b62474 !important;
    border-color: #b62474 !important;
}

/* Remove item control stays red */
html[data-theme="dark"] .block__popup_cart .purchase__remove,
html[data-theme="dark"] .block__popup_cart .purchase__remove * {
    color: #ff3030 !important;
    -webkit-text-fill-color: #ff3030 !important;
}



/* ============================================================
   MOBILE SEARCH — COLOR ONLY
   Keep the original Okay CMS layout, dimensions, spacing and positioning.
   Only recolor the existing search strip and its button in dark mode.
   ============================================================ */
@media only screen and (max-width: 767px) {
    html[data-theme="dark"] body.main_page #fn_search.fn_search_mob {
        background: #17171b !important;
        background-color: #17171b !important;
        background-image: none !important;
        border-color: #17171b !important;
    }

    html[data-theme="dark"] body.main_page #fn_search.fn_search_mob .search__input,
    html[data-theme="dark"] body.main_page #fn_search.fn_search_mob input.fn_search {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        color: #eeeeF2 !important;
        -webkit-text-fill-color: #eeeeF2 !important;
        border-color: transparent !important;
    }

    html[data-theme="dark"] body.main_page #fn_search.fn_search_mob .search__input::placeholder {
        color: #bdbdc5 !important;
        -webkit-text-fill-color: #bdbdc5 !important;
        opacity: 1 !important;
    }

    html[data-theme="dark"] body.main_page #fn_search.fn_search_mob .search__button {
        background: #713078 !important;
        background-color: #713078 !important;
        background-image: none !important;
        border-color: #713078 !important;
        color: #ffffff !important;
    }
}

/* FIX: специальный стикер NEW не должен получать фон бейджа скидки */
html[data-theme="dark"] body .sticker.sticker--special,
html[data-theme="dark"] body .stickers .sticker--special,
html[data-theme="dark"] body .stickers_product-page .sticker--special {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body .sticker.sticker--special .sticker__image,
html[data-theme="dark"] body .stickers .sticker--special img,
html[data-theme="dark"] body .stickers_product-page .sticker--special img {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}



/* ============================================================
   PWB.KZ — СТРАНИЦА «ОПТОВИКАМ» /optovikam/
   Только тёмная тема. Светлая тема и исходная сетка не затрагиваются.
   ============================================================ */

/* Общая поверхность страницы */
html[data-theme="dark"] .page-with-banner,
html[data-theme="dark"] .page-with-banner .advantages-grid {
    background: transparent !important;
    color: #eeeeF2 !important;
}

/* Не переопределяем фон .banner-maxem и .banner-maxem-wrapper:
   исходный фон приветственного баннера берётся из штатных стилей страницы. */
html[data-theme="dark"] .page-with-banner .banner-maxem-wrapper,
html[data-theme="dark"] .page-with-banner .banner-maxem {
    color: #eeeeF2 !important;
}

/* Карточки преимуществ: убираем прямоугольную подложку.
   Сами иконки (.advantage-icon) и их графика остаются на месте. */
html[data-theme="dark"] .page-with-banner .advantage-item,
html[data-theme="dark"] .page-with-banner .advantage-item:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Подписи под иконками */
html[data-theme="dark"] .page-with-banner .advantage-item p {
    color: #eeeeF2 !important;
    -webkit-text-fill-color: #eeeeF2 !important;
}

/* Иконки преимуществ — фирменный розово-фиолетовый цвет.
   Не сбрасываем background-image, чтобы не скрыть сами иконки. */
html[data-theme="dark"] .page-with-banner .advantage-icon {
    color: #b83b87 !important;
}

/* Заголовок и текст предложения */
html[data-theme="dark"] .page-with-banner h2,
html[data-theme="dark"] .page-with-banner h5,
html[data-theme="dark"] .page-with-banner p,
html[data-theme="dark"] .page-with-banner strong,
html[data-theme="dark"] .page-with-banner blockquote {
    color: #e8e8ed !important;
    -webkit-text-fill-color: #e8e8ed !important;
}

html[data-theme="dark"] .page-with-banner h2 span {
    color: #d477b1 !important;
    -webkit-text-fill-color: #d477b1 !important;
}

html[data-theme="dark"] .page-with-banner hr {
    border-color: #41414b !important;
}

/* Блок «Для кого это будет интересным?» */
html[data-theme="dark"] .audience-section,
html[data-theme="dark"] .audience-wrapper,
html[data-theme="dark"] .audience-left,
html[data-theme="dark"] .audience-right,
html[data-theme="dark"] .audience-grid,
html[data-theme="dark"] .audience-card {
    background-color: #222228 !important;
    color: #eeeeF2 !important;
    border-color: #41414b !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .audience-left h2,
html[data-theme="dark"] .audience-left p,
html[data-theme="dark"] .audience-text {
    color: #eeeeF2 !important;
    -webkit-text-fill-color: #eeeeF2 !important;
}

/* Информационная плашка «10 причин работать с нами»:
   вместо голубой заливки — спокойный тёмный фон с акцентной полосой. */
html[data-theme="dark"] .tmce_notice_info {
    background: #292930 !important;
    background-color: #292930 !important;
    background-image: none !important;
    border-left: 5px solid #168eae !important;
    color: #f0f0f4 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .tmce_notice_info *,
html[data-theme="dark"] .tmce_notice_info strong {
    color: #f0f0f4 !important;
    -webkit-text-fill-color: #f0f0f4 !important;
}

/* Список десяти причин */
html[data-theme="dark"] .tmce_notice_info + ul,
html[data-theme="dark"] .tmce_notice_info + ul li {
    background: transparent !important;
    color: #dedee5 !important;
    -webkit-text-fill-color: #dedee5 !important;
}

html[data-theme="dark"] .tmce_notice_info + ul li::marker {
    color: #d477b1 !important;
}

/* Выделенная заключительная строка */
html[data-theme="dark"] .tmce_notice_info ~ p,
html[data-theme="dark"] .tmce_notice_info ~ p strong {
    color: #eeeeF2 !important;
    -webkit-text-fill-color: #eeeeF2 !important;
}

/* Контактная карточка и пояснения */
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .contact-left,
html[data-theme="dark"] .contact-right,
html[data-theme="dark"] .contact-card {
    background-color: #222228 !important;
    color: #dedee5 !important;
    border-color: #41414b !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .contact-section p,
html[data-theme="dark"] .contact-section em,
html[data-theme="dark"] .partner-note {
    color: #c9c9d2 !important;
    -webkit-text-fill-color: #c9c9d2 !important;
}

/* Кнопки и ссылки сохраняют фирменный акцент */
html[data-theme="dark"] .page-with-banner .partner-btn,
html[data-theme="dark"] .contact-section .partner-btn2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* ============================================================
   PWB.KZ — /optovikam/ — ИСПРАВЛЕНИЕ СЕТКИ ДЛЯ МОБИЛЬНЫХ
   Карточки аудитории должны помещаться в контейнер:
   ровно 2 колонки, без горизонтального вылезания.
   Только тёмная тема.
   ============================================================ */
@media (max-width: 992px) {
    html[data-theme="dark"] .audience-section,
    html[data-theme="dark"] .audience-wrapper,
    html[data-theme="dark"] .audience-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html[data-theme="dark"] .audience-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    html[data-theme="dark"] .audience-right {
        flex: 0 1 auto !important;
    }

    html[data-theme="dark"] .audience-grid {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        box-sizing: border-box !important;
    }

    html[data-theme="dark"] .audience-card {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html[data-theme="dark"] .audience-text {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }
}

/* На очень узких экранах сохраняем две колонки,
   но уменьшаем расстояние и внутренние отступы. */
@media (max-width: 480px) {
    html[data-theme="dark"] .audience-grid {
        gap: 10px !important;
    }

    html[data-theme="dark"] .audience-card {
        padding: 10px !important;
    }

    html[data-theme="dark"] .audience-text {
        font-size: 13px !important;
    }
}
\n



/* ============================================================
   PWB.KZ — /optovikam/ — DARK THEME CONTACT BUTTON CLEANUP
   Убираем только фон секции и левого контейнера кнопки.
   Правая информационная карточка и сама кнопка сохраняют оформление.
   ============================================================ */


html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .contact-section .contact-left {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Кнопка остаётся фирменной, без изменений её зелёно-фиолетовой/акцентной заливки. */
html[data-theme="dark"] .contact-section .contact-left .partner-btn2 {
    background-color: #7d3577 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}



/* Подпись WhatsApp: текст виден, цветной фон под ним прозрачный. */
html[data-theme="dark"] .contact-section .partner-note {
    display: block !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #c9c9d2 !important;
    -webkit-text-fill-color: #c9c9d2 !important;
}

