/* ============================================================
   OPTC — GLOBAL DARK THEME  v3.3 (fix: не трогает WooCommerce)
   ------------------------------------------------------------
   ★ v3.3:
     — Все правила контента защищены :not(.woocommerce-*) —
       корзина/оформление/ЛК/thanks НЕ попадают под них.
     — Иначе тема WooCommerce получала чёрный фон там, где
       его не должно быть (например, страница заказа).
   ============================================================ */

/* ============================================================
   1. ХЕДЕР
   ============================================================ */
header,
.site-header,
#masthead,
#header,
.header,
.header-wrapper,
.header-container,
.top-header,
.topbar,
.main-header,
.site-top-bar,
.navbar,
.navbar-container,
.navbar-inner,
.ast-primary-header-bar,
.ast-header,
.ast-above-header,
.ast-below-header,
.ast-mobile-header-wrap,
.ast-mobile-header-content,
.site-navigation,
.main-navigation,
#site-navigation,
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .e-con,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap,
.hfe-header,
.hfe-header-row,
.hfe-header .hfe-header-row,
.kadence-header-row,
.kadence-header-wrap {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    background-image: none !important;
    color: #e5e5e5 !important;
    border-color: rgba(0, 230, 118, 0.15) !important;
    box-shadow: 0 1px 0 rgba(0, 230, 118, 0.10) !important;
}

header a,
.site-header a,
#masthead a,
#header a,
.header a,
.main-header a,
.ast-primary-header-bar a,
.ast-header a,
.elementor-location-header a,
.hfe-header a,
.kadence-header-row a,
.main-navigation a,
.site-navigation a,
#site-navigation a {
    color: #e5e5e5 !important;
}
header a:hover,
.site-header a:hover,
#masthead a:hover,
#header a:hover,
.header a:hover,
.main-header a:hover,
.ast-primary-header-bar a:hover,
.ast-header a:hover,
.elementor-location-header a:hover,
.hfe-header a:hover,
.kadence-header-row a:hover,
.main-navigation a:hover,
.site-navigation a:hover,
#site-navigation a:hover {
    color: #4ade80 !important;
}

header .menu a,
.site-header .menu a,
.main-navigation .menu a,
header .nav-menu a,
.main-navigation ul li a,
.ast-menu li a,
.hfe-nav-menu a,
.ast-nav-menu a,
.wp-block-navigation a {
    color: #e5e5e5 !important;
}
header .menu a:hover,
header .current-menu-item > a,
header .current_page_item > a,
.site-header .current-menu-item > a,
.site-header .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.ast-menu .current-menu-item > a,
.ast-nav-menu .current-menu-item > a,
.hfe-nav-menu .current-menu-item > a,
.wp-block-navigation .current-menu-item a {
    color: #4ade80 !important;
}

header input[type="text"],
header input[type="search"],
header input[type="email"],
header input[type="url"],
.site-header input[type="text"],
.site-header input[type="search"],
header .search-form input,
.top-header input[type="search"] {
    background: #141414 !important;
    color: #ffffff !important;
    border: 1.5px solid #2a2a2a !important;
    border-radius: 60px !important;
    box-shadow: none !important;
}
header input::placeholder {
    color: #6b6b6b !important;
}

header .search-form button,
header .search-submit,
header button[type="submit"],
.top-header .btn {
    background: linear-gradient(180deg, #35ffa1 0%, #00c853 100%) !important;
    color: #001a0d !important;
    border: none !important;
    border-radius: 60px !important;
    font-weight: 900 !important;
}
header .search-form button:hover,
header button[type="submit"]:hover {
    filter: brightness(1.08) !important;
}

header .cart-contents,
header .header-cart,
header .wishlist-icon,
header .account-icon,
header .header-account,
header .woo-cart-icon,
header .icon-cart {
    color: #e5e5e5 !important;
}
header .cart-contents:hover,
header .header-cart:hover,
header .wishlist-icon:hover,
header .account-icon:hover {
    color: #4ade80 !important;
}

.site-top-bar,
.topbar,
.top-bar,
.top-header,
.header-info-bar {
    background: #050505 !important;
    color: #c8c8c8 !important;
    border-bottom: 1px solid rgba(0, 230, 118, 0.10) !important;
}

/* ============================================================
   2. ФУТЕР
   ============================================================ */
footer,
.site-footer,
#footer,
#colophon,
.footer,
.footer-wrapper,
.footer-container,
.footer-content,
.footer-inner,
.footer-main,
.footer-bottom,
.footer-widgets,
.footer-widget-area,
.footer-widget,
.site-footer-widgets,
.site-footer-credits,
.ast-footer,
.ast-small-footer,
.ast-small-footer-wrap,
.ast-footer-copyright,
.elementor-location-footer,
.elementor-location-footer .elementor-section,
.elementor-location-footer .e-con,
.elementor-location-footer .elementor-column,
.elementor-location-footer .elementor-widget-wrap,
.hfe-footer,
.hfe-footer-row,
.kadence-footer-wrap,
.kadence-footer-row {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    background-image: none !important;
    color: #c8c8c8 !important;
    border-color: rgba(0, 230, 118, 0.15) !important;
    border-top: 1px solid rgba(0, 230, 118, 0.15) !important;
    box-shadow: none !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
#footer h1, #footer h2, #footer h3,
.footer h1, .footer h2, .footer h3,
.footer-widget h1, .footer-widget h2, .footer-widget h3,
.site-footer-widgets h3,
.widget-area h3,
.elementor-location-footer h1,
.elementor-location-footer h2,
.elementor-location-footer h3,
.elementor-location-footer h4 {
    color: #4ade80 !important;
}

footer p, .site-footer p, #footer p, .footer p,
footer span, .site-footer span, #footer span, .footer span,
footer li, .site-footer li, #footer li, .footer li,
footer div, .site-footer div, #footer div, .footer div,
.footer-widget p, .footer-widget span,
.site-footer-widgets span, .site-footer-widgets p,
.widget-area .widget,
.elementor-location-footer p,
.elementor-location-footer span,
.elementor-location-footer div {
    color: #c8c8c8 !important;
}

footer a, .site-footer a, #footer a, .footer a,
.footer-widget a, .site-footer-widgets a,
.widget-area a,
.elementor-location-footer a,
.hfe-footer a,
.kadence-footer-wrap a {
    color: #4ade80 !important;
}
footer a:hover, .site-footer a:hover, #footer a:hover, .footer a:hover,
.footer-widget a:hover, .site-footer-widgets a:hover,
.widget-area a:hover,
.elementor-location-footer a:hover,
.hfe-footer a:hover {
    color: #35ffa1 !important;
}

footer hr, .site-footer hr, #footer hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

footer .social a, .site-footer .social a,
footer .social-icons a,
.footer-social a,
.elementor-location-footer .social a {
    color: #e5e5e5 !important;
}
footer .social a:hover, .site-footer .social a:hover,
footer .social-icons a:hover,
.footer-social a:hover {
    color: #4ade80 !important;
}

/* ============================================================
   3. АДМИН-БАР — не трогаем
   ============================================================ */
#wpadminbar { /* ничего */ }

/* ============================================================
   4. КОНТЕНТ (только вне Woo и вне страниц плагина)
   ★ FIX: добавлены :not(.woocommerce-cart) и т.п.
   ============================================================ */

/* 4.1. Тёмный фон body */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) {
    background-color: #050505 !important;
    background-image: none !important;
    color: #d8d8d8 !important;
}
html:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) {
    background-color: #050505 !important;
}

/* 4.2. Обёртки контента */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #page,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #content,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #primary,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #main,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #wrapper,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #inner-content,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) #content-wrap,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .site,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .site-content,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .site-content-contain,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .content-area,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .site-main,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .ast-container,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .ast-separate-container,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .container,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .container-wrap,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .content-wrapper,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .wp-site-blocks,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .wp-block-group,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .is-layout-constrained,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .is-layout-flow,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) article,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content-wrap,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .post-content,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .page-content,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .wp-block-post-content {
    background-color: transparent !important;
    background-image: none !important;
    color: #d8d8d8 !important;
}

/* 4.3. Заголовки */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) h1,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) h2,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) h3,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) h4,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) h5,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) h6,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-title,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .page-title,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .wp-block-heading {
    color: #ffffff !important;
}

/* 4.4. Текстовые элементы */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) p,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) li,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content span,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content strong,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content b,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content em,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content i,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content blockquote,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content figcaption,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main td,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main th {
    color: #d8d8d8 !important;
}
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content strong,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content b,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main strong,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main b {
    color: #ffffff !important;
}

/* 4.5. Ссылки */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content a,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main a,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) article a {
    color: #4ade80 !important;
}
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content a:hover,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main a:hover {
    color: #35ffa1 !important;
}

/* 4.6. Таблицы */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content table,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main table {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: transparent !important;
}
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main table td,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main table th {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #d8d8d8 !important;
}
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main table th {
    color: #ffffff !important;
}

/* 4.7. Цитаты */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) blockquote {
    color: #c8c8c8 !important;
    border-left-color: #4ade80 !important;
}
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) hr {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* 4.8. Формы */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="text"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="email"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="tel"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="url"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="search"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="password"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) input[type="number"],
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) textarea,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) select {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1.5px solid #2a2a2a !important;
}

/* 4.9. Картинки */
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content img,
html body:not([class*="optc-"]):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account):not(.woocommerce-order-received) main img {
    background: transparent !important;
}

/* ============================================================
   5. WooCommerce — не трогаем (woo-dark.css / account.css)
   ============================================================ */