/* VOLTIS: isolated theme overrides. Photos and campaign artwork retain original colours. */
.theme-picker{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:40px;color:inherit;font-size:13px;flex-shrink:0}
.theme-picker .ui-icon{width:22px;height:22px;pointer-events:none;flex-shrink:0}
.theme-picker select{font:inherit;color:inherit;background:transparent;border:1px solid var(--line);border-radius:8px;padding:9px 28px 9px 10px;max-width:190px;min-height:40px;cursor:pointer}
.theme-picker.compact{width:40px;height:40px;justify-content:center;border-radius:50%}
.theme-picker.compact select{position:absolute;inset:0;width:40px;height:40px;opacity:0;padding:0;max-width:40px}
.theme-picker:focus-within{outline:2px solid var(--orange);outline-offset:3px}
.theme-picker.compact:hover{background:#8882}
.theme-picker option{background:#fff;color:#252925}
.footer-bottom{flex-wrap:wrap;gap:18px}
.drawer-theme{padding:14px 0;border-top:1px solid var(--line);margin-top:18px}
html[data-theme="dark"]{--ink:#F2F3F0;--orange:#EF4B23;--paper:#181A19;--muted:#A9ADA9;--line:#3C443E;--soft:#2C322E;--surface:#222623;color-scheme:dark;background:var(--paper);color:var(--ink)}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] :is(button,input,textarea,select){color:var(--ink)}
html[data-theme="dark"] :is(input,select,textarea){accent-color:var(--orange);border-color:var(--line);background-color:var(--soft)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] :is(input[type="range"],input[type="checkbox"],input[type="radio"]){background-color:transparent}
html[data-theme="dark"] :is(.header,.mobile-top,.storefront-header,.desktop-mega,.mobile-drawer,.drawer-top,.tabbar,.catalog-page .mobile-catalog-header,.product-info-tabs,.home-brands){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.product-card,.products a,.category-card,.catalog-layout .catalog-grid .category-card,.product-offer,.product-section,.product-info-switch,.price-compare,.price-compare-row,.request-form,.request-result pre,.contacts>div,.contact-action,.company-conditions li,.favorite-tile,.guide-section,.guide-grid a,.guide-grid .guide-card,.inquiry-note,.value-strip .value-item,.value-strip .value-about,.catalog-empty,.no-products,.catalog-refine,.category-filter-panel,#request-cart){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] :is(.home53 .product-card,.home53-theme .product-card,.home53-guide-grid>a){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.product-card>p,.home53 .product-card>p){color:var(--ink)}
html[data-theme="dark"] :is(.product-card>small,.home53 .product-card>small){color:var(--muted)}
html[data-theme="dark"] :is(.home53-theme,.home53-help,.inquiry,.dark,.home-process){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.home-catalog,.guides,footer){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.home53-category>span,.product-key-specs li,.subcategories a,.category-type-links a,.category-level-list a,.filters button,.catalog-search-field,.catalog-search-panel,.site-search,.product-info-switch button,.avatar,.value-strip .value-icon,.inquiry-note-icon){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .home53-category img{mix-blend-mode:normal}
html[data-theme="dark"] :is(.product-img,.product-card .product-img,.product-main-photo,.product-thumb,.search-product img,.cart-item img,.cart-drawer-item>img,.cart-recommendation-list img){background:#F2F3F0;border-radius:8px}
html[data-theme="dark"] .product-img{isolation:isolate}
html[data-theme="dark"] :is(.product-img img,.product-main-photo img,.home53-category img){filter:none;mix-blend-mode:normal}
html[data-theme="dark"] .product-card.is-archived .product-img img,html[data-theme="dark"] .product-page.is-archived .product-main-photo img{filter:grayscale(1)}
html[data-theme="dark"] :is(.home53-note,.home53-review,.home53-theme-top p,.home53-trust small,.home53-accessory small,.home53-guide-grid p,.home53-help p,.footer-grid p,.footer-bottom,footer .social-link small,.storefront-location>span,.mega-promos span,.mega-first>a:not(.is-active),.cart-disclaimer,.cart-empty,.cart-page>p,.cart-drawer-description>small,.search-content aside p,.listing-feedback,.catalog-search-meta,.product-key-specs small,.request-form label,.product-info-preview,.product-specs th,.spec-table th){color:var(--muted)}
html[data-theme="dark"] :is(.footer-grid a:not(.brand),.mega-layout nav>a,.mega-layout .is-active,.mobile-catalog-tree nav a,.search-content nav a,.search-history-row button,.cart-item a,.catalog-search-panel>label,.catalog-search-field input,.site-search input,.storefront-actions .icon-button,.mobile-top .icon-button,.drawer-top .icon-button){color:var(--ink)}
html[data-theme="dark"] :is(.catalog-search-field input,.site-search input){background:transparent}
html[data-theme="dark"] :is(.home53-trust,.home53 .product-card,.home53-guide-grid>a,.footer-bottom,.steps li,.team-list,.team-list>div,table th,table td,.product-info-tabs,.category-level-list a,.cart-drawer-item,.cart-drawer-top,.cart-order-totals,.filter-dialog-row){border-color:var(--line)}
html[data-theme="dark"] :is(.btn:not(.secondary):not(.outline):not(.ghost),.search-all,.filter-dialog-footer button){background:var(--orange);border-color:var(--orange);color:#181A19}
html[data-theme="dark"] :is(.btn.secondary,.btn.outline,.home53-all .btn,.home-catalog .home-all-bottom){background:transparent;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.home53-all .btn,.overline,.home53-accessory,.home53-guide-grid span,.product-question,.cart-shortcut,.filter-clear,.retail-benefit,.product-promo-label,.home-catalog .product-card.is-promo>p,.home-catalog-actions .btn,.cart-back){color:var(--orange)}
html[data-theme="dark"] :is(.home53-all .btn:hover,.category-type-links a:hover,.filters button:hover,.quick a:hover,.search-product:hover,.price-compare-kaspi:hover){background:var(--soft);color:var(--ink)}
html[data-theme="dark"] .home-catalog .product-card.is-promo{background:var(--surface);border-color:var(--orange)}
html[data-theme="dark"] :is(.product-promo-label,.home-catalog .product-promo-label,.cart-warning,.consult-fallback .greeting){background:#EF4B231A;color:#FF916F}
html[data-theme="dark"] :is(.cart-old-price,.cart-reference,.cart-discount){color:var(--muted)}
html[data-theme="dark"] :is(#cart-drawer,.cart-drawer-top,.search-bar,.search-content,.listing-filter-dialog,.filter-dialog-footer,.filter-dialog-row,.filter-alphabet button,.consult-panel,.consult-top,.consult-invite,.consult-invite:after,.gallery-viewer,.gallery-viewer-bar){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.search-content aside,.filter-price-numbers input,.cart-tools button,.cart-quantity button,.cart-recommendation-list button,.search-bar input,.mobile-filter-bar button,.mobile-filter-meta button,.mobile-catalog-header form,.mobile-catalog-header input){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.product-filters select,.product-filters input,.catalog-refine select,.catalog-refine input[type="number"],.request-form input,.request-form select,.request-form textarea,.catalog-tools input){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.mobile-catalog-header>button,.mobile-catalog-header form button,.filter-dialog-top button,.search-history-row button,.cart-drawer-top button){background:transparent;color:var(--ink)}
html[data-theme="dark"] :is(.filter-price-numbers label,.search-history-row button){color:var(--muted)}
html[data-theme="dark"] .filter-toggle input[type="checkbox"]{background:var(--soft);border-color:var(--line)}
html[data-theme="dark"] .filter-toggle input[type="checkbox"]:checked{background:var(--orange);border-color:var(--orange)}
html[data-theme="dark"] .filter-price-ranges input::-webkit-slider-runnable-track{background:var(--muted)}
html[data-theme="dark"] .filter-price-ranges input::-webkit-slider-thumb{background:var(--ink);border-color:var(--orange)}
html[data-theme="dark"] .filter-price-ranges input::-moz-range-track{background:var(--muted)}
html[data-theme="dark"] .filter-price-ranges input::-moz-range-thumb{background:var(--ink);border-color:var(--orange)}
html[data-theme="dark"] :is(.filter-dialog-body>input[type="search"],.filter-choice){color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .product-info-pane.is-preview:after{background:linear-gradient(transparent,var(--paper))}
html[data-theme="dark"] :is(.product-info-expand,.product-info-switch button[aria-selected="true"]){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .tabbar :is(a,button){color:var(--muted);background:transparent}
html[data-theme="dark"] .tabbar [aria-current="page"]{color:var(--orange);background:transparent}
html[data-theme="dark"] .tabbar [data-open-consult].is-inviting{background:transparent;color:var(--orange)}
html[data-theme="dark"] .tabbar [data-open-consult].is-inviting::before{border-color:var(--orange)}
html[data-theme="dark"] .consult-invite::after{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] :is(.consult-invite-open,.consult-invite-close){color:var(--ink)}
html[data-theme="dark"] .mobile-catalog-tree nav a{border-color:var(--line)}
html[data-theme="dark"] .mobile-filter-bar button,html[data-theme="dark"] .mobile-filter-bar .ui-icon{color:var(--orange)}
html[data-theme="dark"] .catalog-hero{background:linear-gradient(110deg,var(--surface) 30%,#55301F 72%,#EF4B23 120%);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .catalog-hero .catalog-search-field{background:var(--surface)}
html[data-theme="dark"] .catalog-picker button[aria-pressed="true"]{background:var(--soft);color:var(--orange)}
html[data-theme="dark"] .mobile-subcategory-banner{background:var(--paper)}
html[data-theme="dark"] .mobile-subcategory-banner img{-webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 100%);mask-image:linear-gradient(to bottom,#000 78%,transparent 100%)}
html[data-theme="dark"] .brand-loop-mask img{filter:grayscale(1) invert(1);mix-blend-mode:screen}
html[data-theme="dark"] .brand-loop-mask img.brand-white-logo{filter:none}
html[data-theme="dark"] .brand-directory-logos>a{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .brand-directory-logos img{filter:grayscale(1) invert(1);mix-blend-mode:screen}
html[data-theme="dark"] .brand-directory-logos img.brand-white-logo{filter:none}
html[data-theme="dark"] :is(.brand-loop-actions,.brand-directory-logos small){color:var(--muted)}
html[data-theme="dark"] :is(.mobile-top,.storefront-header,footer) .brand-logo{filter:brightness(0) invert(.95)}
html[data-theme="dark"] footer .brand{background:transparent}
html[data-theme="dark"] .storefront-links>a:after{background:var(--orange)}
html[data-theme="dark"] :is(.storefront-actions .cart-count,.favorite-count){background:var(--orange);color:#181A19}
html[data-theme="dark"] :is(.skip-link,.not-found-search input){background:var(--surface);color:var(--ink)}
html[data-theme="dark"] .theme-picker select{background:transparent;color:inherit}
html[data-theme="dark"] .theme-picker option{background:var(--surface);color:var(--ink)}
/* Existing modal and hero header rules use !important; these overrides are equally local. */
html[data-theme="dark"] body :is(.storefront-header:hover,.storefront-header:focus-within,.storefront-header.hero-solid,.storefront-header.catalog-open),html[data-theme="dark"] :is(body.search-open,body.cart-modal-open) .storefront-header{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)}
html[data-theme="dark"] :is(body.search-open,body.cart-modal-open) .storefront-header .icon-button{color:var(--ink)!important}
html[data-theme="dark"] :is(body.search-open,body.cart-modal-open) .storefront-header .brand-logo{filter:brightness(0) invert(.95)!important}
@media(min-width:761px){
  html[data-theme="dark"] .home-hero-overlay.home-hero-light .storefront-header:not(.hero-solid):not(.catalog-open):not(:hover):not(:focus-within){color:#252925;background:transparent}
  html[data-theme="dark"] .home-hero-overlay.home-hero-light .storefront-header:not(.hero-solid):not(.catalog-open):not(:hover):not(:focus-within) :is(.icon-button,.storefront-location>span){color:#252925}
  html[data-theme="dark"] .home-hero-overlay.home-hero-light .storefront-header:not(.hero-solid):not(.catalog-open):not(:hover):not(:focus-within) .brand-logo{filter:none}
  html[data-theme="dark"] .home-hero-overlay.home-hero-dark .storefront-header:not(.hero-solid):not(.catalog-open):not(:hover):not(:focus-within){color:#F2F3F0}
  html[data-theme="dark"] .home-hero-overlay.home-hero-dark .storefront-header:not(.hero-solid):not(.catalog-open):not(:hover):not(:focus-within) :is(.icon-button,.storefront-location>span){color:#F2F3F0}
}
@media(max-width:760px){
  .mobile-top{grid-template-columns:44px minmax(0,1fr) 44px 36px}
  .mobile-top>.theme-picker{width:36px}
  .catalog-page .mobile-catalog-header{grid-template-columns:36px minmax(0,1fr) 36px}
  .mobile-catalog-header>.theme-picker{width:36px}
  .drawer-theme .theme-picker{display:flex;justify-content:space-between}
  html[data-theme="dark"] .storefront-header{background:var(--paper);color:var(--ink)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html[data-theme="dark"] :is(.breadcrumb,.catalog-page .breadcrumb,.delivery-date,.delivery-evidence,.price-compare-row>span:nth-child(2)){color:var(--muted)}
html[data-theme="dark"] .delivery-free{color:#B8D7BE}
html[data-theme="dark"] :is(.gallery-counter,.gallery-expand){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .price-compare img[alt="Voltis.kz"]{filter:brightness(0) invert(.95)}
html[data-theme="dark"] :is(.price-compare>small,.product-model,.gallery-note){color:var(--muted)}
html[data-theme="dark"] :is(.text-link,.product-question,.price-compare-saving strong){color:#FF8A66}
html[data-theme="dark"] :is(.fine,.price-compare small){color:var(--muted)}
