/* stalo_theme_toggle 1.0.0
   Light-mode appearance is unchanged except for the new theme toggle and the
   mobile-menu "Tema" row. All colour changes are under html.dark-theme. */

/* ---- Toggle pill (Feather sun/moon, both themes) ---- */
.stalo-theme-mode {
	display: flex;
	height: 30px;
	width: 54px;
	align-items: center;
	justify-content: space-between;
	flex-direction: row;
	border-radius: 20px;
	padding: 3px;
	border: 1px dashed #e3e3e3;
	background: #fff;
	margin-left: 8px;
	box-sizing: border-box;
}
.stalo-theme-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	height: 22px;
	width: 22px;
	padding: 2px;
	border-radius: 20px;
	background: transparent;
	color: #333;
	cursor: pointer;
	line-height: 0;
}
.stalo-theme-btn.active { background: #F0F0F0; }
.stalo-theme-mode-desktop {
	display: flex;
	align-items: center;
	margin-left: 4px;
}

/* Mobile drawer row under the fixed .mobm-top tab bar.
   Fixed like .mobm-top, and left tracks the drawer slide. */
.stalo-theme-row {
	position: fixed;
	top: 54px;
	left: -307px;
	width: 307px;
	z-index: 1049;
	height: 44px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	background: #F8F9FA;
	border-bottom: 1px solid #eee;
	box-sizing: border-box;
	transition: left .2s ease;
}
.mob-menu-info-fixed-left.active .stalo-theme-row {
	left: 0;
}
.stalo-theme-label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	margin-right: 2px;
}
.stalo-theme-row .stalo-theme-mode { margin-left: 0; }
.stalo-theme-row .stalo-theme-lang { margin-left: auto; }
.stalo-theme-row .variant_lang_2 { margin: 0; }
.stalo-theme-row .mob-title-lang { display: none; }
.stalo-theme-row .list_lang { display: flex; }
/* Keep catalog and info panels below the new 44px row (tab bar is 54px). */
#menu-mobile-ns .mob-catalog { padding-top: 98px; }
#mob-info-contact.mob-info,
#mob-info-viewed.mob-info,
#mob-info-left.mob-info { padding-top: 107px; }

/* ---- Dark theme tokens ---- */
html.dark-theme {
	color-scheme: dark;
	--st-bg: #121212;
	--st-bg-elev: #1A1A1A;
	--st-bg-header: #0F0F0F;
	--st-bg-card: #1C1C1C;
	--st-bg-input: #1D1D1D;
	--st-text: #EDEDED;
	--st-text-muted: #B1B1B1;
	--st-border: #2F2F2F;
	--st-price: #FFFFFF;
}

html.dark-theme,
html.dark-theme body {
	background-color: var(--st-bg) !important;
	color: var(--st-text) !important;
}
html.dark-theme a { color: var(--st-text); }
html.dark-theme a:hover { color: #fff; }

html.dark-theme .stalo-theme-mode {
	border-color: #2F2F2F;
	background: transparent;
}
html.dark-theme .stalo-theme-btn { color: #B1B1B1; }
html.dark-theme .stalo-theme-btn.active { background: #1D1D1D; color: #fff; }
html.dark-theme .stalo-theme-row {
	background: var(--st-bg-header);
	border-bottom-color: var(--st-border);
}
html.dark-theme .stalo-theme-label { color: var(--st-text); }

/* Official dealer banner background when the dark JPG is in use */
html.dark-theme .htop-b-pc,
html.dark-theme .htop-b-mob {
	background: #0A0A0A !important;
}

/* Top bar, header, search, cart */
html.dark-theme #top,
html.dark-theme #top .container {
	background: var(--st-bg-header) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme #top .btn-account,
html.dark-theme #top a,
html.dark-theme #top .item_lang,
html.dark-theme #top .item_lang a,
html.dark-theme #top .item_lang.active {
	color: var(--st-text) !important;
	background: #1C1C1C !important;
	border-color: var(--st-border) !important;
}
html.dark-theme header,
html.dark-theme header.header_v_3,
html.dark-theme .fix-header-2,
html.dark-theme header.h-shadow,
html.dark-theme header .container,
html.dark-theme header .row {
	background: var(--st-bg-header) !important;
	color: var(--st-text) !important;
	box-shadow: 0 1px 0 var(--st-border) !important;
}
html.dark-theme header .header_dopmenu_doptext,
html.dark-theme header .text_after_phone,
html.dark-theme header .additional-tel a,
html.dark-theme header .contact-header,
html.dark-theme header .cart-total,
html.dark-theme header .text_product,
html.dark-theme .phone-box,
html.dark-theme .contact-header a {
	color: var(--st-text-muted) !important;
}
html.dark-theme header .additional-tel a,
html.dark-theme .contact-header a { color: var(--st-text) !important; }

html.dark-theme #search .form-control,
html.dark-theme .header-search .form-control,
html.dark-theme input.form-control,
html.dark-theme textarea.form-control,
html.dark-theme select.form-control,
html.dark-theme .form-control {
	background: var(--st-bg-input) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .form-control::placeholder { color: #8a8a8a !important; }

html.dark-theme #cart > button,
html.dark-theme .box-cart .btn,
html.dark-theme .shopping-cart > button {
	background: #1C1C1C !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme #cart .cart-total b,
html.dark-theme #cart .prices,
html.dark-theme #cart .products { color: var(--st-text) !important; }

/* Hardcoded black menu/header SVGs — only in dark mode, so light stays exact */
html.dark-theme .mob-fix-panel,
html.dark-theme .mob-menu-info-fixed-left,
html.dark-theme header,
html.dark-theme .stalo-theme-row {
	color: var(--st-text);
}
html.dark-theme path[fill="#000"],
html.dark-theme path[fill="#000000"],
html.dark-theme path[fill="black"],
html.dark-theme path[fill="#000"],
html.dark-theme .st-burger path[fill="#000"] {
	fill: currentColor;
}
html.dark-theme path[stroke="#000"],
html.dark-theme path[stroke="#000000"],
html.dark-theme path[stroke="black"] {
	stroke: currentColor;
}

/* Desktop catalog / dropdowns */
html.dark-theme .menu-header-box,
html.dark-theme #menu-vertical,
html.dark-theme #menu-vertical-list,
html.dark-theme .menu-box,
html.dark-theme .ns-dd,
html.dark-theme .dropdown-menu,
html.dark-theme .ls-dropdown {
	background: var(--st-bg-header) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme #menu-vertical-list .item-name,
html.dark-theme #menu-vertical-list a,
html.dark-theme .nsmenu-parent-title,
html.dark-theme .dropdown-menu a,
html.dark-theme .ls-dropdown a { color: var(--st-text) !important; }
html.dark-theme .dropdown-menu a:hover,
html.dark-theme .ls-dropdown a:hover { background: #2A2A2A !important; color: #fff !important; }

/* Page chrome, modules, breadcrumbs */
html.dark-theme main,
html.dark-theme #content,
html.dark-theme #column-left,
html.dark-theme #column-right,
html.dark-theme .container-module,
html.dark-theme .title-module,
html.dark-theme .title-module span,
html.dark-theme .banner-blocks-container,
html.dark-theme .banner-item,
html.dark-theme .banner-title,
html.dark-theme .banner-info,
html.dark-theme .breadcrumb,
html.dark-theme h1, html.dark-theme h2, html.dark-theme h3, html.dark-theme h4,
html.dark-theme .category-info,
html.dark-theme .refine-search,
html.dark-theme .panel, html.dark-theme .panel-default, html.dark-theme .panel-body,
html.dark-theme .well, html.dark-theme .thumbnail,
html.dark-theme .alert, html.dark-theme .table, html.dark-theme .table-bordered,
html.dark-theme .list-group, html.dark-theme .list-group-item {
	background-color: transparent !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .banner-description,
html.dark-theme .breadcrumb a,
html.dark-theme .help-block { color: var(--st-text-muted) !important; }
html.dark-theme .list-group-item,
html.dark-theme .panel,
html.dark-theme .panel-default > .panel-heading,
html.dark-theme .well,
html.dark-theme .table > thead > tr > th,
html.dark-theme .table > tbody > tr > td {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

/* Product cards — photos stay as they are (white studio backgrounds included) */
html.dark-theme .product-thumb,
html.dark-theme .product-grid .product-thumb,
html.dark-theme .container-module .product-thumb,
html.dark-theme .product-layout,
html.dark-theme .product-list .product-thumb {
	background: var(--st-bg-card) !important;
	border-color: var(--st-border) !important;
	box-shadow: none !important;
}
html.dark-theme .product-thumb .caption,
html.dark-theme .product-thumb .product-name,
html.dark-theme .product-thumb .product-name a,
html.dark-theme .product-thumb h4,
html.dark-theme .product-thumb h4 a,
html.dark-theme .product-description,
html.dark-theme .product-name a { color: var(--st-text) !important; }
html.dark-theme .product-thumb .price,
html.dark-theme .product-thumb .price-new,
html.dark-theme .price,
html.dark-theme .price-new,
html.dark-theme .autocalc-product-price { color: var(--st-price) !important; }
html.dark-theme .product-thumb .price-old,
html.dark-theme .price-old { color: #888 !important; }
html.dark-theme .product-thumb .image a:after { background-color: transparent !important; }
html.dark-theme .product-thumb .btn-quickview,
html.dark-theme .product-thumb .btn-fastorder,
html.dark-theme .product-thumb .btn-compare,
html.dark-theme .product-thumb .btn-wishlist {
	background: #2A2A2A !important;
	box-shadow: none !important;
	color: var(--st-text) !important;
}

/* Slider letterbox */
html.dark-theme .megasliderpro,
html.dark-theme .mslider,
html.dark-theme .box-slider,
html.dark-theme .slideshow,
html.dark-theme .menu-header-box,
html.dark-theme .swiper-container,
html.dark-theme .swiper-wrapper {
	background: var(--st-bg) !important;
}
html.dark-theme .swiper-button-next,
html.dark-theme .swiper-button-prev {
	background-color: #2A2A2A !important;
	color: #fff !important;
}

/* Footer already uses ls-dark-theme; keep borders tidy */
html.dark-theme footer,
html.dark-theme footer.ls-dark-theme {
	background: #0A0A0A !important;
	color: var(--st-text-muted) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme footer a { color: var(--st-text-muted) !important; }
html.dark-theme footer a:hover { color: #fff !important; }

/* Mobile chrome + drawer */
html.dark-theme #fm-fixed-mobile,
html.dark-theme .mob-fix-panel,
html.dark-theme .topmm-fix {
	background: var(--st-bg-header) !important;
	border-color: var(--st-border) !important;
	color: var(--st-text) !important;
}
html.dark-theme .mob-menu-info-fixed-left,
html.dark-theme .mobm-top,
html.dark-theme .mob-menu,
html.dark-theme .mob-info,
html.dark-theme #mob-catalog-left,
html.dark-theme #mob-info-left,
html.dark-theme .box-account-mob,
html.dark-theme .title-account-mob,
html.dark-theme .desc_info_mob,
html.dark-theme #menu-mobile-ns .nav > li > a,
html.dark-theme #menu-mobile-ns .navbar-nav > li > .mob-submenu-list li a {
	background: var(--st-bg-header) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .mobm-top { background: var(--st-bg-header) !important; }
html.dark-theme .catalog-inform-box button.btn.active ~ .bg-active-menu { background: #1D1D1D !important; }
html.dark-theme .mobm-top .mobm-close-menu,
html.dark-theme .fm-close-search {
	background: #1D1D1D !important;
	box-shadow: none !important;
}
html.dark-theme #menu-mobile-ns .nav > li { border-top-color: var(--st-border) !important; }

/* Cart drawer */
html.dark-theme .header-cart-fix-right,
html.dark-theme .cart-content,
html.dark-theme .header-cart-top,
html.dark-theme .header-cart-title,
html.dark-theme .header-cart-sticky,
html.dark-theme .shopping-cart .table,
html.dark-theme #cart .table {
	background: var(--st-bg-elev) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

/* Product page */
html.dark-theme .product-block,
html.dark-theme .product-info,
html.dark-theme .tab-content,
html.dark-theme .nav-tabs,
html.dark-theme .nav-tabs > li > a,
html.dark-theme .attribute,
html.dark-theme .product-thumb-related {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

/* Cart + checkout (colours only — do not change OPC input types or layout) */
html.dark-theme .checkout-cart,
html.dark-theme .checkout-checkout,
html.dark-theme .onepcheckout,
html.dark-theme #onepcheckout,
html.dark-theme .opc-container,
html.dark-theme .opc_container,
html.dark-theme .panel-group,
html.dark-theme .checkout-content,
html.dark-theme #accordion .panel,
html.dark-theme .table-responsive {
	background: var(--st-bg) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme input[type="text"],
html.dark-theme input[type="email"],
html.dark-theme input[type="tel"],
html.dark-theme input[type="password"],
html.dark-theme input[type="search"],
html.dark-theme input[type="number"],
html.dark-theme select,
html.dark-theme textarea {
	background: var(--st-bg-input) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme label,
html.dark-theme .control-label,
html.dark-theme .radio label,
html.dark-theme .checkbox label { color: var(--st-text) !important; }

/* Fixed wishlist/compare/viewed bar */
html.dark-theme .fixed-goods-menu,
html.dark-theme .fixed-goods-bar {
	background: #1A1A1A !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

/* Pagination, sort, limit */
html.dark-theme .pagination > li > a,
html.dark-theme .pagination > li > span,
html.dark-theme .btn-default {
	background: var(--st-bg-elev) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}


/* Mobile theme-row language pills: same compact LT/EN look as #top */
.stalo-theme-row .list_lang {
	margin: 0;
	height: 30px;
}
html.dark-theme .stalo-theme-row .list_lang {
	background: #1C1C1C !important;
}
html.dark-theme .stalo-theme-row .item_lang,
html.dark-theme .stalo-theme-row .item_lang a,
html.dark-theme .stalo-theme-row .item_lang.active {
	color: var(--st-text) !important;
	background: transparent !important;
}
html.dark-theme .stalo-theme-row .item_lang.active {
	background: #2A2A2A !important;
}

/* Product page chrome (photos themselves are not filtered) */
html.dark-theme #product,
html.dark-theme .left-block,
html.dark-theme .right-block,
html.dark-theme .image-block,
html.dark-theme .thumbnails,
html.dark-theme .tabs__header,
html.dark-theme .container-tab,
html.dark-theme .nav-tabs,
html.dark-theme .my-tabs,
html.dark-theme .h1-prod-name,
html.dark-theme .product-description-block,
html.dark-theme .right-block .product-name,
html.dark-theme .qty-product,
html.dark-theme #product .form-group,
html.dark-theme .related-options,
html.dark-theme .autocalc-product-price,
html.dark-theme .recommend-block,
html.dark-theme .tab-content,
html.dark-theme .tab-pane {
	background-color: var(--st-bg) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .right-block .thumbnail,
html.dark-theme .right-block .well,
html.dark-theme .product-buy-box,
html.dark-theme .cart-box,
html.dark-theme .add-block,
html.dark-theme .share-box {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .general-image,
html.dark-theme .main-image,
html.dark-theme .slider-main-img,
html.dark-theme #image-box {
	background: var(--st-bg-card) !important;
}
html.dark-theme .nav-tabs > li > a,
html.dark-theme .tabs__header a {
	color: var(--st-text-muted) !important;
	background: transparent !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .nav-tabs > li.active > a,
html.dark-theme .nav-tabs > li.active > a:hover,
html.dark-theme .tabs__header li.active a {
	color: var(--st-text) !important;
	background: var(--st-bg-elev) !important;
}

/* Category toolbar + OCFilter contrast */
html.dark-theme .view-box,
html.dark-theme .product_list_toolbar,
html.dark-theme .btn-view,
html.dark-theme .localstorage {
	background: var(--st-bg-elev) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .view-box path[stroke="#000"],
html.dark-theme .btn-view path[stroke="#000"] {
	stroke: currentColor;
}
html.dark-theme .ocf-container,
html.dark-theme .ocf-content,
html.dark-theme .ocf-header,
html.dark-theme .ocf-body,
html.dark-theme .ocf-filter,
html.dark-theme .ocf-filter-header,
html.dark-theme .ocf-filter-body,
html.dark-theme .ocf-value,
html.dark-theme .ocf-value-name,
html.dark-theme .ocf-filter-name,
html.dark-theme .ocf-active-label {
	background-color: var(--st-bg) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .ocf-container a,
html.dark-theme .ocf-value-name,
html.dark-theme .ocf-filter-name,
html.dark-theme #column-left a,
html.dark-theme #column-left label,
html.dark-theme #column-left .name-wrapper,
html.dark-theme #column-left .display-table-cell {
	color: var(--st-text) !important;
}

/* Slider letterbox: only clip via JS when a slide actually has white bars.
   Container stays dark so any residual edge sits on the page background. */
html.dark-theme .megasliderpro,
html.dark-theme .container-module.megasliderpro,
html.dark-theme .swiper-slideshow,
html.dark-theme .swiper-slideshow .swiper-slide,
html.dark-theme .swiper-slideshow .swiper-wrapper {
	background: var(--st-bg) !important;
}
html.dark-theme .swiper-slideshow .swiper-slide {
	overflow: hidden;
}

/* Product page panels (photos stay unfiltered) */
html.dark-theme #product .left-block .col-lg-6,
html.dark-theme #product .left-block .col-md-12,
html.dark-theme .panel-rigth-block,
html.dark-theme .right-block,
html.dark-theme .price-group,
html.dark-theme .quantity-adder,
html.dark-theme .actions,
html.dark-theme .card-e,
html.dark-theme .info-product-stock {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

/* One-page checkout cards (colours only; no input-type or layout changes) */
html.dark-theme #onepcheckout [class*="opc_block_"],
html.dark-theme #onepcheckout .page-cart,
html.dark-theme .checkout_form [class*="opc_block_"],
html.dark-theme #onepcheckout .panel,
html.dark-theme #onepcheckout .panel-default,
html.dark-theme #onepcheckout .panel-body,
html.dark-theme #onepcheckout .panel-heading,
html.dark-theme #onepcheckout .alert,
html.dark-theme .opc-h1 {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme #onepcheckout .table,
html.dark-theme #onepcheckout .table td,
html.dark-theme #onepcheckout .table th,
html.dark-theme #onepcheckout .totals,
html.dark-theme #onepcheckout .checkout-total,
html.dark-theme #onepcheckout label,
html.dark-theme #onepcheckout h2,
html.dark-theme #onepcheckout h3,
html.dark-theme #onepcheckout .title-module {
	background: transparent !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

/* Beat theme ID/class white backgrounds (stylesheet.css / opc/style.css). */
html.dark-theme #product .image-block,
html.dark-theme #product .content-block,
html.dark-theme #product .panel-rigth-block,
html.dark-theme #product .left-block,
html.dark-theme #product .quantity-number [name^=quantity] {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
html.dark-theme .opc_block_cart .cart-list,
html.dark-theme .opc_block_totals .totals-inner,
html.dark-theme .checkout-сustomer,
html.dark-theme .checkout-customer,
html.dark-theme .checkout-address,
html.dark-theme .checkout-free-text,
html.dark-theme .checkout-related-products,
html.dark-theme .checkout-shipping-address,
html.dark-theme .checkout-shipping-method,
html.dark-theme .checkout-payment-method,
html.dark-theme .register_block,
html.dark-theme .cart-list,
html.dark-theme .totals-inner {
	background: var(--st-bg-card) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
	box-shadow: 0 0 0 1px var(--st-border) !important;
}
html.dark-theme .checkout-heading,
html.dark-theme .title-customer,
html.dark-theme .opc-cart-title,
html.dark-theme .opc_block_totals .table-cart .total-title,
html.dark-theme .opc_block_totals .table-cart .total-text,
html.dark-theme .cart-item-total,
html.dark-theme .cart-item-prod-name,
html.dark-theme .cart-item-prod-name a {
	color: var(--st-text) !important;
}
html.dark-theme .ch-cart-quantity .btn-quantity-minus,
html.dark-theme .ch-cart-quantity .btn-quantity-plus,
html.dark-theme .ch-cart-quantity .form-control {
	background: var(--st-bg-input) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}
