/* ==========================================================
   МІНІМАЛЬНА ТЕМНА ТЕМА
   Активується класом .dark-mode на <html>
========================================================== */
/* Тільки фон сторінки */
html.dark-mode body {
    background: #666 url(https://shop.vsimosvita.com/wp-content/themes/delivery-lite/images/bg_fon.png) 40% 0 repeat-x !important;
    color: #080808;
    position: relative;
    z-index: 0; /* потрібно для накладання */
}

html.dark-mode body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8); /* рівень затемнення — можна змінити */
    z-index: -1; /* шар перед фоном, але за контентом */
}





/* ---------------------------
   КНОПКА ПЕРЕМИКАЧА ТЕМИ
--------------------------- */

/* Позиціонування для десктопного контейнера */
.site-branding {
    position: relative;
}

/* Базовий стиль кнопки (спільний) */
.theme-toggle {
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

/* Ховер */
.theme-toggle:hover {
    background: #f1f1f1;
}

/* ---------------------------
   ДЕСКТОПНА КНОПКА
--------------------------- */
.theme-toggle--desktop {
    position: absolute;
    top: 10px;
    right: 90px;
    display: none; /* показуємо тільки у десктоп-режимі */
}

/* ---------------------------
   МОБІЛЬНА КНОПКА
--------------------------- */

/* Контейнер меню повинен бути relative */
.toggleMenu-second {
    position: relative;
}

/* Мобільна кнопка поверх елементів, не розширює меню */
.theme-toggle--mobile {
    display: none; /* показуємо тільки у мобільному режимі */
    position: absolute;
    top: 10px;
    left: 120px;
    z-index: 9999;

    /* Стиль трохи менший за десктопний */
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #ffffff;
    color: #111827;
}

/* ---------------------------
   MEDIA-QUERIES
--------------------------- */

/* ДЕСКТОП ≥ 1025px */
@media (min-width: 1025px) {
    .theme-toggle--desktop {
        display: inline-block;
    }
}

/* МОБІЛЬНА ≤ 1024px */
@media (max-width: 1024px) {
    .theme-toggle--mobile {
        display: inline-block;
    }
}








/* -----------------------------------------------
   КНОПКА ПЕРЕМИКАЧА ТЕМИ
----------------------------------------------- */

html.dark-mode .theme-toggle {
    background: #020617;
    color: #e5e7eb;
    border-color: #4b5563;
}

html.dark-mode .theme-toggle:hover {
    background: #111827;
}

/* -----------------------------------------------
   БАЗОВИЙ ФОН, КОНТЕНТ, ТЕКСТ
----------------------------------------------- */

html.dark-mode .site-content {
    background: #333333;
    box-shadow: 0px 8px 22px #000 !important;
}

html.dark-mode #primary {
    background: #333;
}

html.dark-mode .content-area {
    border: 1px solid #333;
}

html.dark-mode .hentry {
    box-shadow: 0px 3px 4px #0003;
    border: 1px solid #2b2b2b;
}

html.dark-mode .page-header {
    background: #1e1e1e;
}

html.dark-mode p {
    color: aliceblue;
}

html.dark-mode .single .entry-title,
html.dark-mode .page .entry-title {
    color: #bfd2e3;
}

html.dark-mode .site_logo {
    color: #ccc;
}

/* -----------------------------------------------
   ВІДЖЕТИ, САЙДБАР, НОВІ ПУБЛІКАЦІЇ
----------------------------------------------- */

html.dark-mode .widget-area .widget-title {
    background: #1d1d1e;
    border-bottom: none;
    color: #ccc;
    text-shadow: none;
}

html.dark-mode .widget-area .widget {
    border: 1px solid #555555;
    background: #333;
}

html.dark-mode .rpw-item {
    border: 1px solid #999999;
    background: #555555;
}

html.dark-mode .rpw-bottom {
    background: #1d1d1e;
    color: #999999;
    border-top: 1px solid #e0e0e0;
}

/* -----------------------------------------------
   ГАЛЕРЕЇ, АВТОРСЬКИЙ БЛОК
----------------------------------------------- */

html.dark-mode .main-gallery-border {
    border: 1px solid #666666;
}

html.dark-mode .gallery-thumbnail {
    border: 1px solid #666666;
}

html.dark-mode #block_author-rcl {
    background: #333;
    box-shadow: 0 0 1px 1px #999;
    border: 2px solid #333;
}

html.dark-mode #block_author_name-rcl {
    color: #e9e9e9;
    background: #1d1d1e;
}

/* -----------------------------------------------
   СПИСКИ КОРИСТУВАЧІВ
----------------------------------------------- */

html.dark-mode .userlist.rows-list .userlist_top {
    background: #333;
}

html.dark-mode .userlist.rows-list .user-single .filter-data {
    background: #1d1d1e;
}

/* -----------------------------------------------
   FAQ, ФІЛЬТРИ
----------------------------------------------- */

html.dark-mode .product-faq-container {
    background: #666;
}

html.dark-mode .product-faq details {
    background-color: #555555;
    border: 1px solid #333;
}

html.dark-mode .faq-summary {
    background: #999;
}

html.dark-mode .product-faq summary .left-icon {
    color: #1d1d1e;
}

html.dark-mode .filter-button {
    color: #121212 !important;
    background: #555555;
    border: 1px solid #999;
}

/* -----------------------------------------------
   КОМЕНТАРІ
----------------------------------------------- */

html.dark-mode #comments {
    background: #212020;
    border: 1px solid #666666;
}

html.dark-mode #comment-box {
    border: 1px solid #212020;
}

html.dark-mode .comment-form textarea {
    background-color: #333333;
}

html.dark-mode .comment-form textarea:focus {
    background-color: #e5e5e5;
    border: 1px solid #666666;
}

html.dark-mode #comment-box .comment-media-box {
    background-color: #171717;
}

/* -----------------------------------------------
   ІНФО-БЛОКИ, ПЛАТІЖНІ, БАЛАНС, ТЕЛЕФОНИ
----------------------------------------------- */

html.dark-mode .payment-info-box {
    border: 2px solid #1d1d1e;
    background: #555555;
    color: #fff;
}

html.dark-mode .payment-info-icon {
    color: #1d1d1e;
}

html.dark-mode .info-box {
    border: 0;
    background-color: #1d1d1e;
    color: aliceblue;
}

html.dark-mode .seller-link:hover {
    color: aliceblue;
    text-decoration: underline;
}

html.dark-mode .tel-kyivstar {
    color: #cdcdcd;
}

html.dark-mode .rcl-balance-widget .amount-size {
    color: #e14d52;
    border: 1px solid #1d1d1e;
    background: #1d1d1e;
}

/* -----------------------------------------------
   КОШИК, МІНІ-КАРТ
----------------------------------------------- */

html.dark-mode .rcl-mini-cart,
html.dark-mode .rcl-mini-cart .cart-content {
    color: #cdcdcd;
}

html.dark-mode .cart-url a {
    color: #ffffff;
    background: #e36266;
}

html.dark-mode .cart-url a:hover {
    background: #5f9cdb;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
}

/* -----------------------------------------------
   НИЖНЯ НАВІГАЦІЯ, ПОШТА
----------------------------------------------- */

html.dark-mode .site-info .mail {
    color: #ffffff;
    font-weight: initial;
}

html.dark-mode .bottomnav a {
    color: black;
}

html.dark-mode .bottomnav a:hover {
    color: #ffffff;
}

/* -----------------------------------------------
   ГОЛОВНЕ МЕНЮ
----------------------------------------------- */

html.dark-mode .dws-menu li > ul li a {
    background: #1d1d1e;
    color: #e36266;
}

html.dark-mode .dws-menu li > ul li {
    border: 0 solid #ffffff;
}

html.dark-mode .dws-menu li > ul li a:hover {
    background: #ca4549;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* -----------------------------------------------
   MEDIA QUERIES
----------------------------------------------- */

@media only screen and (max-width: 30em) {
    html.dark-mode .morelink,
    html.dark-mode .morelink:visited {
        border-top: 1px solid #282829;
        color: #4a89bf;
        background-color: #212020;
    }
}

@media only screen and (max-width: 767px) {
    html.dark-mode .site-branding {
        background: rgba(51, 51, 51, 0.3);
    }
}



/* Hover для всіх станів */
html.dark-mode a:hover {
    color: #FCEBFC!important;
}

/* Посилання заголовків у темній темі */
html.dark-mode .entry-title a {
    color: #5f9cdb;
}

/* Hover у темній темі */
html.dark-mode .entry-title a:hover {
    color: #E36266!important;
}


html.dark-mode .rcl-archive-content {
    border: 1px solid #555555;
    background: #444444;
}


html.dark-mode .rcl-archive-table thead th {
    background: #333;
    color: #e7e7e7;
    border-bottom: 1px solid #555555;
}

html.dark-mode .rcl-archive-table tbody tr:nth-child(odd) {
    background: #666;
}

html.dark-mode .rcl-archive-table td {
    border-bottom: 1px solid #333333;
}



html.dark-mode ul {
    color: aliceblue;
}


html.dark-mode .related-products-wrapper {
    background: #333333;
}



html.dark-mode .related-product-card {
    background-color: #1d1d1e;
}