/* 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: #292930;
    --pwb-bg-ffffff: #292930;
    --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"] .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),);
}

/* Разделители */
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: #17171b;
    --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 {
    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 {
    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 {
    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 {
    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 {
    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 {
    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 {
    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 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;
}


/* ============================================================
   PWB.KZ — ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ ЧИТАЕМОСТИ ТЁМНОЙ ТЕМЫ
   1) Убираем дополнительную подложку под названием товара.
   2) Делаем обычные цены светлыми.
   3) Исправляем заголовок и цену за единицу в корзине.
   Только тёмная тема. Светлая тема не затрагивается.
   ============================================================ */

/* Карточки каталога: название и артикул без отдельных цветных плашек.
   Прозрачность оставляет общий фон карточки без серой полосы под текстом. */
html[data-theme="dark"] body .product_preview .product_preview__name,
html[data-theme="dark"] body .product_preview .product_preview__name a,
html[data-theme="dark"] body .product_preview .product_preview__name span,
html[data-theme="dark"] body .product_preview .product_preview__sku,
html[data-theme="dark"] body .product_preview .product_preview__sku a,
html[data-theme="dark"] body .product_preview .product_preview__sku span {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .product_preview .product_preview__name,
html[data-theme="dark"] body .product_preview .product_preview__name *,
html[data-theme="dark"] body .product_preview .product_preview__name a {
    color: #f0f0f4 !important;
    -webkit-text-fill-color: #f0f0f4 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

html[data-theme="dark"] body .product_preview .product_preview__sku,
html[data-theme="dark"] body .product_preview .product_preview__sku * {
    color: #b8b8c2 !important;
    -webkit-text-fill-color: #b8b8c2 !important;
    opacity: 1 !important;
}

/* Обычная цена в карточке каталога.
   Перекрашиваем и контейнер, и вложенные span/strong, поскольку
   в шаблоне цена может быть обычным текстовым узлом внутри span. */
html[data-theme="dark"] body .product_preview .product_preview__prices,
html[data-theme="dark"] body .product_preview .product_preview__prices *,
html[data-theme="dark"] body .product_preview .product_preview__price,
html[data-theme="dark"] body .product_preview .product_preview__price *,
html[data-theme="dark"] body .product_preview .price_new_black,
html[data-theme="dark"] body .product_preview .price_new_black *,
html[data-theme="dark"] body .product_preview .fn_price {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

/* Старая зачёркнутая цена остаётся приглушённой. */
html[data-theme="dark"] body .product_preview .product_preview__prices .old_price,
html[data-theme="dark"] body .product_preview .product_preview__prices .old_price *,
html[data-theme="dark"] body .product_preview .product_preview__price .old_price,
html[data-theme="dark"] body .product_preview .product_preview__price .old_price * {
    color: #aeb0ba !important;
    -webkit-text-fill-color: #aeb0ba !important;
}

/* Акционная цена сохраняет красный цвет. */
html[data-theme="dark"] body .product_preview .product_preview__prices .price--red,
html[data-theme="dark"] body .product_preview .product_preview__prices .price--red *,
html[data-theme="dark"] body .product_preview .product_preview__price .price--red,
html[data-theme="dark"] body .product_preview .product_preview__price .price--red * {
    color: #e32636 !important;
    -webkit-text-fill-color: #e32636 !important;
}

/* Всплывающая корзина: заголовок «Ваши товары» всегда читаемый,
   без плашки или собственного фона. */
html[data-theme="dark"] body .block__popup_cart [data-language="cart_purchase_title"],
html[data-theme="dark"] body .block__popup_cart [data-language="cart_purchase_title"] * {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

/* Названия товаров и подписи «Цена / Кол-во / Сумма» в попапе. */
html[data-theme="dark"] body .block__popup_cart .purchase__name,
html[data-theme="dark"] body .block__popup_cart .purchase__name *,
html[data-theme="dark"] body .block__popup_cart .purchase__group_title,
html[data-theme="dark"] body .block__popup_cart .purchase__group_title * {
    color: #e8e8ed !important;
    -webkit-text-fill-color: #e8e8ed !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

/* Цена за единицу — белая. В исходной разметке число является
   прямым текстом внутри .purchase__group_content, поэтому задаём
   цвет непосредственно этой ячейке, а не только внешнему блоку. */
html[data-theme="dark"] body .block__popup_cart .purchase__price .purchase__group_content,
html[data-theme="dark"] body .block__popup_cart .purchase__price .purchase__group_content *,
html[data-theme="dark"] body .block__popup_cart .purchase__price .purchase__group_content .currency {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

/* Сумма по строке товара остаётся фирменной розовой. */
html[data-theme="dark"] body .block__popup_cart .purchase__price_total .purchase__group_content,
html[data-theme="dark"] body .block__popup_cart .purchase__price_total .purchase__group_content * {
    color: #d52b8a !important;
    -webkit-text-fill-color: #d52b8a !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Знак тенге в сумме строки — белый, как и ранее задано для корзины. */
html[data-theme="dark"] body .block__popup_cart .purchase__price_total .currency {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Заголовок корзины на полной странице и обычные цены в её строках. */
html[data-theme="dark"] body .cart_body [data-language="cart_purchase_title"],
html[data-theme="dark"] body .cart_body [data-language="cart_purchase_title"] *,
html[data-theme="dark"] body .cart_body .purchase__price,
html[data-theme="dark"] body .cart_body .purchase__price *,
html[data-theme="dark"] body .cart_body .purchase__group_content {
    color: #f4f4f7 !important;
    -webkit-text-fill-color: #f4f4f7 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Не затрагиваем цвет итоговой суммы и фирменные кнопки корзины. */
html[data-theme="dark"] body .cart_body .purchase__price_total,
html[data-theme="dark"] body .cart_body .purchase__price_total * {
    color: #d52b8a !important;
    -webkit-text-fill-color: #d52b8a !important;
}


/* ============================================================
   PWB.KZ — ПОСЛЕДНИЕ ПРАВКИ ПО СКРИНШОТАМ
   1) Счётчик товаров в шапке — фирменный розовый вместо жёлтого.
   2) Знак ₸ в общей сумме корзины — белый.
   3) Знак ₸ в розовой сумме товара — розовый.
   Только тёмная тема.
   ============================================================ */

/* 1. Счётчик корзины в шапке.
   В theme.css фактический селектор: .header_informers__item .cart_counter.
   Оставляем круглую форму и позицию, меняем заливку, цифру и обводку. */
html[data-theme="dark"] body .header_informers__item .cart_counter,
html[data-theme="dark"] body #cart_informer .cart_counter {
    background: #B62475 !important;
    background-color: #B62475 !important;
    background-image: none !important;
    border-color: #292930 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .header_informers__item .cart_counter *,
html[data-theme="dark"] body #cart_informer .cart_counter * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* 2. Знак тенге в итоговом поле корзины — белый,
   потому что сама итоговая сумма отображается белым цветом. */
html[data-theme="dark"] body .block__popup_cart .purchase_detail_popup_total .currency,
html[data-theme="dark"] body .block__popup_cart .purchase_detail_popup_total span.currency,
html[data-theme="dark"] body .purchase_detail_popup_total .currency {
    color: #F4F4F7 !important;
    -webkit-text-fill-color: #F4F4F7 !important;
    opacity: 1 !important;
}

/* 3. Знак тенге рядом с розовой суммой позиции —
   в том же розовом цвете, что и число суммы. */
html[data-theme="dark"] body .block__popup_cart .purchase__price_total .currency,
html[data-theme="dark"] body .block__popup_cart .purchase__price_total .purchase__group_content .currency,
html[data-theme="dark"] body .cart_body .purchase__price_total .currency,
html[data-theme="dark"] body .cart_body .purchase__price_total .purchase__group_content .currency {
    color: #D52B8A !important;
    -webkit-text-fill-color: #D52B8A !important;
    opacity: 1 !important;
}

/* Страховка для розовых акционных цен в каталоге:
   знак валюты повторяет цвет акционной цены, обычная цена остаётся белой. */
html[data-theme="dark"] body .product_preview .product_preview__prices .price--red .currency,
html[data-theme="dark"] body .product_preview .product_preview__price .price--red .currency {
    color: #E32636 !important;
    -webkit-text-fill-color: #E32636 !important;
}


/* ============================================================
   PWB.KZ — HEADER ALIGN + PRICE/BADGE COLORS
   1) Desktop header alignment.
   2) Discounted product price matches the main pink button.
   3) "Рекомендуем" badge uses the catalog green.
   Only dark theme. Mobile header layout remains unchanged.
   ============================================================ */

/* 1. Выравнивание шапки на широких экранах.
   Сохраняем исходную ширину логотипа/контактов и текущую высоту строк,
   запрещаем перенос меню и выравниваем обе строки по вертикали. */
/* Шапка: только вертикальное выравнивание. Не меняем ширину,
   высоту, переносы, flex-раскладку и расположение категорий. */
@media screen and (min-width: 768px) {
    html[data-theme="dark"] body header.header .header__center > .container > .f_row,
    html[data-theme="dark"] body header.header .header__bottom_panel {
        align-items: center !important;
    }
}


/* 2. Акционная цена и её знак тенге — фирменный розовый кнопки.
   Старая зачёркнутая цена остаётся серой. */
html[data-theme="dark"] body .product_preview .product_preview__prices .price--red,
html[data-theme="dark"] body .product_preview .product_preview__prices .price--red *,
html[data-theme="dark"] body .product_preview .product_preview__price .price--red,
html[data-theme="dark"] body .product_preview .product_preview__price .price--red *,
html[data-theme="dark"] body .product_preview .product_preview__prices .price--red .currency,
html[data-theme="dark"] body .product_preview .product_preview__price .price--red .currency {
    color: #B62475 !important;
    -webkit-text-fill-color: #B62475 !important;
    opacity: 1 !important;
}

/* 3. Стикер «Рекомендуем» — зелёный, как в каталоге.
   Более специфичный селектор перебивает общий розовый стиль .sticker. */
html[data-theme="dark"] body .product_preview .sticker.sticker--hit,
html[data-theme="dark"] body .product_preview .stickers .sticker--hit,
html[data-theme="dark"] body .product_preview .stickers_product-page .sticker--hit,
html[data-theme="dark"] body .stickers_product-page .sticker.sticker--hit,
html[data-theme="dark"] body .stickers .sticker.sticker--hit {
    background: #388451 !important;
    background-color: #388451 !important;
    background-image: none !important;
    border-color: #388451 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    opacity: 1 !important;
}

/* Процент скидки и «Суперцена» остаются розовыми, не становятся зелёными. */
html[data-theme="dark"] body .product_preview .sticker.sticker--discount,
html[data-theme="dark"] body .product_preview .sticker_pct,
html[data-theme="dark"] body .stickers_product-page .sticker.sticker--discount,
html[data-theme="dark"] body .stickers_product-page .sticker_pct {
    background: #B62475 !important;
    background-color: #B62475 !important;
    border-color: #B62475 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}


/* ============================================================
   PWB.KZ — ПРОМОКОД: ЕДИНЫЙ АККОРДЕОН ДЛЯ ПК И МОБИЛЬНЫХ
   Заголовок .coupon__title использует штатный Okay CMS fn_switch:
   по нажатию он переключает следующий блок .coupon__group.
   Поэтому здесь задаём только закрытое начальное состояние.
   JavaScript через slideToggle() открывает/закрывает блок inline-стилем.
   ============================================================ */

/* Одинаковое поведение на любой ширине экрана и в обеих темах.
   ВАЖНО: display:none без !important — штатный slideToggle() сможет открыть блок. */
#fn_cart_coupon .coupon__group {
    display: none;
    position: relative;
}

/* Заголовок остаётся видимым и явно выглядит как переключатель. */
#fn_cart_coupon .coupon__title {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    position: relative;
}

#fn_cart_coupon .coupon__title::after {
    content: "+";
    display: inline-block;
    margin-left: 9px;
    font-size: 1.1em;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

#fn_cart_coupon .coupon__title.active::after {
    content: "−";
}

/* Содержимое раскрытого блока занимает всю доступную ширину. */
#fn_cart_coupon .coupon__group .form__group--coupon {
    width: 100%;
}

/* ТЁМНАЯ ТЕМА — оформление поля и кнопки, без изменения аккордеона. */
html[data-theme="dark"] body #fn_cart_coupon .coupon__title,
html[data-theme="dark"] body #fn_cart_coupon .coupon__title * {
    color: #E8E8ED !important;
    -webkit-text-fill-color: #E8E8ED !important;
    background: transparent !important;
    background-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

html[data-theme="dark"] body #fn_cart_coupon .coupon__group input:not([type="submit"]):not([type="button"]),
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 10px 112px 10px 14px !important;
    border: 1px solid #555560 !important;
    border-radius: 7px !important;
    outline: none !important;
    background: #292930 !important;
    background-color: #292930 !important;
    color: #F4F4F7 !important;
    -webkit-text-fill-color: #F4F4F7 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body #fn_cart_coupon .coupon__group input::placeholder,
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__input::placeholder {
    color: #BFC0CA !important;
    -webkit-text-fill-color: #BFC0CA !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__button--coupon,
html[data-theme="dark"] body #fn_cart_coupon .coupon__group button,
html[data-theme="dark"] body #fn_cart_coupon .coupon__group input[type="submit"],
html[data-theme="dark"] body #fn_cart_coupon .coupon__group input[type="button"] {
    background: #B62475 !important;
    background-color: #B62475 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border-color: #B62475 !important;
    opacity: 1 !important;
}

/* СВЕТЛАЯ ТЕМА — стандартное светлое поле темы, только фиксируем читаемость. */
html[data-theme="light"] body #fn_cart_coupon .coupon__title,
html[data-theme="light"] body #fn_cart_coupon .coupon__title * {
    color: #666666;
    -webkit-text-fill-color: #666666;
}

html[data-theme="light"] body #fn_cart_coupon .coupon__group input:not([type="submit"]):not([type="button"]),
html[data-theme="light"] body #fn_cart_coupon .coupon__group .form__input {
    background: #FFFFFF;
    background-color: #FFFFFF;
    color: #25232A;
    -webkit-text-fill-color: #25232A;
}

/* ============================================================
   PWB.KZ — ПРАВКИ (шапка по параметрам theme.css, корзина, плашка)
   ============================================================ */

/* 1. Нижняя строка шапки на десктопе.
   В theme.css строка работает на растяжении (stretch): .header__bottom = 60px,
   .catalog_button и .search имеют margin 10px при высоте 40px, а иконки
   .header_informers__item — height:100% (вся высота строки, отсюда подложка
   при наведении на всю высоту).
   Выше в этом файле стоит правило align-items:center для .header__bottom_panel —
   из-за него поиск схлопывался по высоте, а иконки теряли высоту.
   Возвращаем исходное поведение темы. */
@media screen and (min-width: 768px) {
    html[data-theme="dark"] body header.header .header__bottom_panel {
        align-items: stretch !important;
    }
}

/* 2. Пустая корзина: белый текст */
html[data-theme="dark"] body .cart_body [data-language="cart_empty"],
html[data-theme="dark"] body .cart_body [data-language="cart_empty"] strong,
html[data-theme="dark"] body [data-language="cart_empty"],
html[data-theme="dark"] body [data-language="cart_empty"] strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body [data-language="cart_empty"] a {
    color: #d77ab0 !important;
    -webkit-text-fill-color: #d77ab0 !important;
}

/* 3. Плашка «Минимальная сумма покупки…» */
html[data-theme="dark"] body #pwb_min_order_notice,
html[data-theme="dark"] body .tmce_notice_error {
    background: #3a2229 !important;
    background-color: #3a2229 !important;
    background-image: none !important;
    border-left: 5px solid #ff3b24 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}
html[data-theme="dark"] body #pwb_min_order_notice *,
html[data-theme="dark"] body .tmce_notice_error * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* 4. Мобильная версия: как на ПК.
   Полоса поиска — того же светло-чёрного цвета, что и шапка (#292930),
   само поле поиска темнее полосы. Размеры и расположение не меняем. */
@media only screen and (max-width: 767px) {
    html[data-theme="dark"] body #fn_search.fn_search_mob,
    html[data-theme="dark"] body.main_page #fn_search.fn_search_mob {
        background: #292930 !important;
        background-color: #292930 !important;
        background-image: none !important;
        border-color: #292930 !important;
        box-shadow: none !important;
    }
    html[data-theme="dark"] body #fn_search.fn_search_mob .search__input,
    html[data-theme="dark"] body #fn_search.fn_search_mob input.fn_search,
    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: #1d1d23 !important;
        background-color: #1d1d23 !important;
        background-image: none !important;
        border-color: #1d1d23 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
    }
}


/* ============================================================
   PWB.KZ — ПРОМОКОД В ТЁМНОЙ ТЕМЕ: КОМПАКТНО, КАК В СВЕТЛОЙ
   Восстанавливаем штатное горизонтальное расположение поля и кнопки.
   ============================================================ */
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon input:not([type="submit"]):not([type="button"]),
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon .form__input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 0 !important;
    min-height: 0 !important;
    height: 40px !important;
    padding: 5px 15px !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon .button--coupon,
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon .form__button,
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon button,
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon [type="submit"],
html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon [type="button"] {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 220px !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 1 !important;
    padding: 0 18px !important;
    margin: 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon {
        gap: 8px !important;
    }
    html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon .button--coupon,
    html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon .form__button,
    html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon button,
    html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon [type="submit"],
    html[data-theme="dark"] body #fn_cart_coupon .coupon__group .form__group--coupon [type="button"] {
        padding: 0 12px !important;
        font-size: 12px !important;
        max-width: 160px !important;
    }
}


/* ============================================================
   PWB.KZ — ИЗБРАННОЕ: СЧЁТЧИК В СТИЛЕ СЧЁТЧИКА КОРЗИНЫ
   Только тёмная тема: розовый круг, белая цифра, без жёлтой обводки.
   ============================================================ */
html[data-theme="dark"] body .header_informers__item .wishlist_counter,
html[data-theme="dark"] body #wishlist_informer .wishlist_counter,
html[data-theme="dark"] body #fn_wishlist .wishlist_counter,
html[data-theme="dark"] body .header_informers__item [class*="wishlist"][class*="counter"],
html[data-theme="dark"] body .header_informers__item [class*="wish"][class*="count"] {
    background: #B62475 !important;
    background-color: #B62475 !important;
    background-image: none !important;
    border-color: #292930 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .header_informers__item .wishlist_counter *,
html[data-theme="dark"] body #wishlist_informer .wishlist_counter *,
html[data-theme="dark"] body #fn_wishlist .wishlist_counter *,
html[data-theme="dark"] body .header_informers__item [class*="wishlist"][class*="counter"] *,
html[data-theme="dark"] body .header_informers__item [class*="wish"][class*="count"] * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}


/* ============================================================
   PWB.KZ — ЛИЧНЫЙ КАБИНЕТ: боковая панель в одном цвете (#222228)
   Внешняя карточка, шапка профиля и меню раньше были трёх разных оттенков.
   ============================================================ */
html[data-theme="dark"] .sidebar--user .sidebar__boxed,
html[data-theme="dark"] .sidebar--user .sidebar__boxed--user,
html[data-theme="dark"] .sidebar--user .form__profile,
html[data-theme="dark"] .sidebar--user .profile,
html[data-theme="dark"] .sidebar--user .profile__image,
html[data-theme="dark"] .sidebar--user .profile__information,
html[data-theme="dark"] .sidebar--user .tabs__navigation,
html[data-theme="dark"] .sidebar--user .tabs__navigation--user,
html[data-theme="dark"] .sidebar--user .tabs__navigation--user .tabs__link:not(.selected):not(:hover),
html[data-theme="dark"] .sidebar--user .button__logout {
    background: #222228 !important;
    background-color: #222228 !important;
}

/* Убираем «остатки»: прямоугольные подложки за скруглёнными карточками.
   Внешние обёртки прозрачные, цвет остаётся только у самих карточек. */
html[data-theme="dark"] .sidebar--user,
html[data-theme="dark"] .user_container,
html[data-theme="dark"] .user_container .tabs__content,
html[data-theme="dark"] .user_container .user_container__boxed,
html[data-theme="dark"] .user_container .tab,
html[data-theme="dark"] .user_container .user_tab__switch,
html[data-theme="dark"] .user_container .form__header {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ============================================================
   PWB.KZ — СПОСОБЫ ДОСТАВКИ И ОПЛАТЫ
   Корзина, оформление заказа, личный кабинет. Светлая и тёмная тема.
   Разметка: cart_deliveries.tpl / user_deliveries.tpl
   ============================================================ */

/* ---------- 1. Заголовки секций: без плашки и линий ---------- */
.form_cart .form__header,
.form_cart .form__title,
html[data-theme="dark"] .form_cart .form__header,
html[data-theme="dark"] .form_cart .form__title,
html[data-theme="dark"] .form_cart .form__header span {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.form_cart .form__title { padding-left: 0 !important; padding-right: 0 !important; }
.form_cart .form__header::before,
.form_cart .form__header::after,
.form_cart .form__title::before,
.form_cart .form__title::after,
html[data-theme="dark"] .form_cart .form__header::before,
html[data-theme="dark"] .form_cart .form__header::after,
html[data-theme="dark"] .form_cart .form__title::before,
html[data-theme="dark"] .form_cart .form__title::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* ---------- 2. Контейнер и карточка варианта ---------- */
.form_cart .delivery.form__group {
    --pwb-pad: 14px;      /* внутренний отступ карточки */
    --pwb-indent: 50px;   /* где начинается название (после галочки) */
    --pwb-desc-indent: var(--pwb-pad); /* описание — вровень с галочкой; поставьте var(--pwb-indent), чтобы выровнять по названию */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    outline: 0 !important;
}
.form_cart .delivery .delivery__item,
.form_cart .delivery .payment_method__item {
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 1px solid #e3dfe6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color .2s ease, background-color .2s ease;
}
.form_cart .delivery .delivery__item:hover,
.form_cart .delivery .payment_method__item:hover { border-color: #cdbfd2 !important; }
.form_cart .delivery .delivery__item:has(.delivery__label.active),
.form_cart .delivery .payment_method__item:has(.delivery__label.active) {
    border-color: #b62474 !important;
    background: #fff7fb !important;
}

/* ---------- 3. Строка: галочка · название · цена · иконка ---------- */
.form_cart .delivery .delivery__label {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px 12px;
    margin: 0 !important;
    padding: 14px var(--pwb-pad) 14px var(--pwb-indent) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    min-height: 52px;
}
.form_cart .delivery .delivery__label .checkbox__icon {
    left: var(--pwb-pad) !important;
    top: 50% !important;
    margin-top: -11px !important;
}
.form_cart .delivery .delivery__name {
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #29242e;
}
.form_cart .delivery .delivery__name_price {
    margin-left: 6px;
    font-weight: 400;
    color: #7a7381;
}
/* иконка — справа, небольшого размера */
.form_cart .delivery .delivery__image {
    position: static !important;
    float: none !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
}
.form_cart .delivery .delivery__image picture { display: inline-flex; }
.form_cart .delivery .delivery__image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 84px !important;
    max-height: 34px !important;
    object-fit: contain;
}

/* ---------- 4. Описание — прямо под названием, без отдельной плашки ---------- */
.form_cart .delivery .delivery__description {
    margin: 0 !important;
    padding: 0 var(--pwb-pad) 14px var(--pwb-desc-indent) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 1.55;
    color: #5d5764;
}
.form_cart .delivery .delivery__description *:last-child { margin-bottom: 0; }
/* никаких линий при раскрытии */
.form_cart .delivery .delivery__description::before,
.form_cart .delivery .delivery__description::after,
.form_cart .delivery .delivery__label::before,
.form_cart .delivery .delivery__label::after { display: none !important; content: none !important; }
.form_cart .delivery .delivery__description hr { display: none !important; }

/* ---------- 5. Тёмная тема ---------- */
html[data-theme="dark"] .form_cart .delivery.form__group {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] .form_cart .delivery .delivery__item,
html[data-theme="dark"] .form_cart .delivery .payment_method__item {
    background: #2a2a31 !important;
    border-color: #41414b !important;
}
html[data-theme="dark"] .form_cart .delivery .delivery__item:hover,
html[data-theme="dark"] .form_cart .delivery .payment_method__item:hover { border-color: #5a5a66 !important; }
html[data-theme="dark"] .form_cart .delivery .delivery__item:has(.delivery__label.active),
html[data-theme="dark"] .form_cart .delivery .payment_method__item:has(.delivery__label.active) {
    border-color: #c02a83 !important;
    background: rgba(192, 42, 131, .12) !important;
}
html[data-theme="dark"] .form_cart .delivery .delivery__label {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] .form_cart .delivery .delivery__name { color: #f4f3f6 !important; }
html[data-theme="dark"] .form_cart .delivery .delivery__name_price { color: #a49eae !important; }
html[data-theme="dark"] .form_cart .delivery .delivery__description,
html[data-theme="dark"] .form_cart .delivery .delivery__description * {
    background: transparent !important;
    border-color: transparent !important;
    color: #cfcad6 !important;
}
html[data-theme="dark"] .form_cart .delivery .delivery__description a { color: #f17ab9 !important; }
html[data-theme="dark"] .form_cart .delivery .checkbox__icon { background: #222228 !important; border-color: #5a5a66 !important; }
html[data-theme="dark"] .form_cart .delivery .delivery__label.active .checkbox__icon { border-color: #c02a83 !important; }

/* ---------- 6. Телефон ---------- */
@media (max-width: 767px) {
    .form_cart .delivery.form__group { --pwb-pad: 12px; --pwb-indent: 46px; }
    .form_cart .delivery .delivery__name { font-size: 14px; }
    .form_cart .delivery .delivery__image { display: inline-flex !important; }
    .form_cart .delivery .delivery__image img { display: block !important; max-width: 72px !important; max-height: 30px !important; }
}


/* ============================================================
   PWB.KZ — КОНТАКТНЫЕ ДАННЫЕ: карточка в стиле выбранного варианта доставки
   Разметка: cart.tpl → .pwb-contact-card (form form_cart form--boxed)
   Те же рамка, скругление и розовая подложка, что у .delivery__item (active).
   ============================================================ */

/* ---------- Светлая тема ---------- */
.form_cart.pwb-contact-card {
    padding: 18px 16px 16px !important;
    margin: 0 0 18px !important;
    border: 1px solid #b62474 !important;
    border-radius: 10px !important;
    background: #fff7fb !important;
    box-shadow: none !important;
    overflow: hidden;
}
.form_cart.pwb-contact-card .form__header { margin: 0 0 16px !important; }
.form_cart.pwb-contact-card .form__body { padding: 0 !important; }

/* поля — как белые вставки внутри карточки */
.form_cart.pwb-contact-card .form__input,
.form_cart.pwb-contact-card .form__textarea {
    border: 1px solid #e3dfe6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .2s ease, background-color .2s ease;
}
.form_cart.pwb-contact-card .form__input:hover,
.form_cart.pwb-contact-card .form__textarea:hover { border-color: #cdbfd2 !important; }
.form_cart.pwb-contact-card .form__input:focus,
.form_cart.pwb-contact-card .form__textarea:focus { border-color: #b62474 !important; }
.form_cart.pwb-contact-card .form__input.error,
.form_cart.pwb-contact-card .form__textarea.error { border-color: #e74747 !important; }

/* ---------- Тёмная тема ---------- */
html[data-theme="dark"] .form_cart.pwb-contact-card {
    border-color: #c02a83 !important;
    background: rgba(192, 42, 131, .12) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .form_cart.pwb-contact-card .form__input,
html[data-theme="dark"] .form_cart.pwb-contact-card .form__textarea {
    background-color: #222228 !important;
    border-color: #41414b !important;
    color: #f4f3f6 !important;
}
html[data-theme="dark"] .form_cart.pwb-contact-card .form__input:hover,
html[data-theme="dark"] .form_cart.pwb-contact-card .form__textarea:hover { border-color: #5a5a66 !important; }
html[data-theme="dark"] .form_cart.pwb-contact-card .form__input:focus,
html[data-theme="dark"] .form_cart.pwb-contact-card .form__textarea:focus { border-color: #c02a83 !important; }
html[data-theme="dark"] .form_cart.pwb-contact-card .form__input.error,
html[data-theme="dark"] .form_cart.pwb-contact-card .form__textarea.error { border-color: #e74747 !important; }

/* ---------- Телефон ---------- */
@media (max-width: 767px) {
    .form_cart.pwb-contact-card { padding: 14px 12px 12px !important; }
}


/* ============================================================
   PWB.KZ — КОНТАКТНЫЕ ДАННЫЕ: без «всплывающей» подписи над полем
   Подпись («Имя и фамилия*» и т.д.) остаётся внутри пустого поля,
   а при фокусе / вводе / ошибке просто исчезает, не поднимаясь на рамку.
   ============================================================ */
.pwb-contact-card .form__placeholder.active,
.pwb-contact-card .filled .form__placeholder,
.pwb-contact-card .form__placeholder--focus:focus ~ .form__placeholder,
.pwb-contact-card .form__placeholder--focus.error + .form__placeholder,
.pwb-contact-card .form__placeholder--focus.error ~ label ~ .form__placeholder,
html[data-theme="dark"] .pwb-contact-card .form__placeholder.active,
html[data-theme="dark"] .pwb-contact-card .filled .form__placeholder,
html[data-theme="dark"] .pwb-contact-card .form__placeholder--focus:focus ~ .form__placeholder,
html[data-theme="dark"] .pwb-contact-card .form__placeholder--focus.error + .form__placeholder,
html[data-theme="dark"] .pwb-contact-card .form__placeholder--focus.error ~ label ~ .form__placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
}


/* ============================================================
   PWB.KZ — ТЁМНАЯ ТЕМА: блок капчи и кнопки «Оформить заказ», подвал корзины
   Раньше эти элементы оставались белыми.
   ============================================================ */
html[data-theme="dark"] .form_cart.pwb-submit-block,
html[data-theme="dark"] .pwb-submit-block .form__footer,
html[data-theme="dark"] .pwb-submit-block .captcha,
html[data-theme="dark"] .pwb-submit-block .form__captcha {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .form_cart.pwb-submit-block { padding-left: 0 !important; padding-right: 0 !important; }

/* Капча: число и поле ответа */
html[data-theme="dark"] .pwb-submit-block .secret_number {
    background: #222228 !important;
    border-color: #41414b !important;
}
html[data-theme="dark"] .pwb-submit-block .form__input_captcha {
    background-color: #222228 !important;
    border-color: #41414b !important;
    color: #f4f3f6 !important;
}

/* Обёртки корзины и подвал: без белых полос по краям */
html[data-theme="dark"] .cart,
html[data-theme="dark"] #pwb_cart_root,
html[data-theme="dark"] .cart_body,
html[data-theme="dark"] .cart_body > .container,
html[data-theme="dark"] .cart_footer,
html[data-theme="dark"] .cart_footer > .container,
html[data-theme="dark"] .cart_footer__copyright {
    background-color: #17171b !important;
}


/* ============================================================
   PWB.KZ — КАПЧА В КОРЗИНЕ: на телефоне по центру
   ============================================================ */
@media (max-width: 767px) {
    .pwb-submit-block .form__footer { justify-content: center !important; }
    .pwb-submit-block .captcha {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    .pwb-submit-block .secret_number { margin-right: 10px !important; }
    .pwb-submit-block .form__captcha { flex: 0 1 auto; }
    .pwb-submit-block .form__input_captcha { max-width: 150px; }
}


/* ============================================================
   PWB.KZ — КОРЗИНА (cart.tpl): тёмная тема
   Перенесено из <style> в cart.tpl. Базовые/светлые стили — в okay_2_.css
   ============================================================ */
html[data-theme="dark"] #pwb-cart-use {
    --pwb-panel-bg: #222228;
    --pwb-panel-border: #51414d;
    --pwb-cell-bg: #292930;
    --pwb-cell-border: #49414b;
    --pwb-text: #eeeeF2;
    --pwb-muted: #b9b9c2;
    --pwb-accent: #e47aae;
    --pwb-input-bg: #17171b;
    --pwb-input-text: #f4f4f7;
    color-scheme: dark;
}
html[data-theme="dark"] #pwb-cart-guest {
    --pwb-guest-bg: #222228;
    --pwb-guest-border: #55515c;
    --pwb-guest-text: #f2f2f6;
    --pwb-guest-muted: #c0bec8;
    --pwb-guest-accent: #f08abd;
    color-scheme: dark;
}
/* Тёмная тема: та же разметка и размеры, меняются только цвета */
html[data-theme="dark"] .pwb-min-order-notice__light {
    border-color: #514453 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(190, 55, 135, .16), transparent 34%),
        linear-gradient(115deg, #29242e 0%, #25232b 54%, #302431 100%) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] .pwb-min-order-notice__light-title { color: #f1edf3 !important; }
html[data-theme="dark"] .pwb-min-order-notice__light-title strong { color: #ed78b7 !important; }
html[data-theme="dark"] .pwb-min-order-notice__light-text { color: #e1d9e4 !important; }
/* Убираем красную вертикальную полосу от глобального правила */
html[data-theme="dark"] body #pwb_min_order_notice {
    border-left: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}


/* ============================================================
   PWB.KZ — ТЁМНАЯ ТЕМА: всплывающая корзина, блок «Итого + Оформить заказ»
   Разметка: pop_up_cart.tpl → .purchase_detail__column_value.form--boxed_cart
   Раньше обёртка с суммой и кнопкой оставалась белой с тенью.
   ============================================================ */
html[data-theme="dark"] .form--boxed_cart,
html[data-theme="dark"] .form.form_cart.form--boxed_cart,
html[data-theme="dark"] .purchase_detail__column_value.form--boxed_cart {
    background: #222228 !important;
    background-color: #222228 !important;
    border: 1px solid #393941 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .form--boxed_cart .purchase_detail__price--total {
    background: transparent !important;
}
/* строка с суммой — чуть темнее обёртки */
html[data-theme="dark"] .form--boxed_cart .purchase_detail_popup_total {
    background: #17171b !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .form--boxed.form_cart:not(.pwb-contact-card):not(.pwb-submit-block) {
    background-color: #222228 !important;
}
html[data-theme="dark"] .h6,
html[data-theme="dark"] .form_cart .form__header span,
html[data-theme="dark"] .form_cart .form__title span {
    color: #f4f4f7 !important;
}
/* Таблица «Детали заказа» с закруглёнными краями */
table.order_details {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
}


/* PWB: компактные карточки доставки на мобильных — без переноса названия */
@media (max-width: 767px) {
    .form_cart .delivery .delivery__item,
    .form_cart .delivery .payment_method__item {
        min-height: 0 !important;
        height: auto !important;
    }
    .form_cart .delivery .delivery__label {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 10px 12px 46px !important;
        min-height: 0 !important;
    }
    .form_cart .delivery .delivery__name {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-size: clamp(12px, 3.8vw, 15px) !important;
        line-height: 1.2 !important;
    }
    .form_cart .delivery .delivery__name_price {
        white-space: nowrap !important;
        margin-left: 3px !important;
    }
    .form_cart .delivery .delivery__image {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        max-width: 48px !important;
    }
    .form_cart .delivery .delivery__image img {
        width: auto !important;
        max-width: 48px !important;
        max-height: 24px !important;
        object-fit: contain !important;
    }
}

/* PWB: окончательное уменьшение высоты карточек доставки на мобильных */
@media (max-width: 767px) {
    .form_cart .delivery .delivery__item,
    .form_cart .delivery .payment_method__item {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
    }
    .form_cart .delivery .delivery__label {
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 10px 8px 46px !important;
        line-height: 1.15 !important;
    }
    .form_cart .delivery .delivery__name {
        line-height: 1.15 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .form_cart .delivery .delivery__image,
    .form_cart .delivery .delivery__image img {
        max-height: 20px !important;
    }
    .form_cart .delivery .delivery__description {
        margin: 0 !important;
        padding: 0 10px 8px 46px !important;
    }
}


/* ============================================================
   КОРЗИНА ПУСТА: убираем светлую подложку под текстом
   (класс pwb-cart-empty добавлен в cart.tpl)
   ============================================================ */
html[data-theme="dark"] .cart_body .pwb-cart-empty,
html[data-theme="dark"] .cart_body .pwb-cart-empty .block__body,
html[data-theme="dark"] .cart_body .pwb-cart-empty p,
html[data-theme="dark"] .cart_body .pwb-cart-empty strong {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* ============================================================
   Компактные отступы в блоках главной («Хиты», «Новинки», «Скидки») — в тёмной теме.
   Те же значения, что в main.tpl; здесь с префиксом темы, чтобы перебить любые
   тёмные правила. Меняйте значения здесь и в main.tpl одинаково.
   ============================================================ */
html[data-theme="dark"] body .main-products.container {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
html[data-theme="dark"] body .main-products > .block { margin: 0 !important; }
html[data-theme="dark"] body .main-products .block--boxed { padding: 14px !important; }
html[data-theme="dark"] body .main-products .block__header {
    margin: 0 0 6px !important;
    padding: 0 !important;
    min-height: 0 !important;
}
html[data-theme="dark"] body .main-products .block__title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}
html[data-theme="dark"] body .main-products .block__header_button { margin: 2px 0 0 !important; padding: 0 !important; }
html[data-theme="dark"] body .main-products .block__body { margin: 0 !important; padding: 0 !important; }
html[data-theme="dark"] body .main-products .pwb-main-grid { gap: 12px 10px !important; margin: 0 !important; padding: 0 !important; }
html[data-theme="dark"] body .main-products .pwb-main-grid > .product_item { margin: 0 !important; padding: 0 !important; }
@media (max-width: 575px) {
    html[data-theme="dark"] body .main-products.container { margin-bottom: 10px !important; }
    html[data-theme="dark"] body .main-products .block--boxed { padding: 12px !important; }
    html[data-theme="dark"] body .main-products .block__header { margin-bottom: 4px !important; }
    html[data-theme="dark"] body .main-products .pwb-main-grid { gap: 10px 8px !important; }
}
