/* MHC centralized Light/Dark theme tokens for the storefront (default theme).
   Light = the existing design (untouched). Dark is opt-in via the switcher (html[data-mhc-theme=dark]); it is never forced.
   Product/banner photos are never filtered. Only chrome (surfaces, text, borders, inputs) is re-coloured. */
html[data-mhc-theme=dark]{
  color-scheme:dark;
  --mhc-bg:#0e1319;--mhc-surface:#161d26;--mhc-surface-2:#1d2631;--mhc-surface-3:#26313e;
  --mhc-text:#e8ebf0;--mhc-mute:#a3adba;--mhc-line:#2d3946;--mhc-accent:#f08fc0;--mhc-accent-strong:#d6407f;
  --mhc-nav-bg:var(--mhc-surface);--mhc-nav-fg:var(--mhc-mute);--mhc-nav-line:var(--mhc-line);--mhc-acc:var(--mhc-accent);
}
html[data-mhc-theme=dark] body{background:var(--mhc-bg)!important;color:var(--mhc-text)}
html[data-mhc-theme=dark] h1,html[data-mhc-theme=dark] h2,html[data-mhc-theme=dark] h3,html[data-mhc-theme=dark] h4,html[data-mhc-theme=dark] h5,html[data-mhc-theme=dark] h6,
html[data-mhc-theme=dark] .h1,html[data-mhc-theme=dark] .h2,html[data-mhc-theme=dark] .h3,html[data-mhc-theme=dark] .text-dark,html[data-mhc-theme=dark] .text-body,html[data-mhc-theme=dark] .text-black,
html[data-mhc-theme=dark] label,html[data-mhc-theme=dark] .product-title,html[data-mhc-theme=dark] .font-weight-bold,html[data-mhc-theme=dark] .title-color,html[data-mhc-theme=dark] .widget-title{color:var(--mhc-text)!important}
html[data-mhc-theme=dark] .text-muted,html[data-mhc-theme=dark] small,html[data-mhc-theme=dark] .text-secondary,html[data-mhc-theme=dark] .text-gray,html[data-mhc-theme=dark] .text-black-50{color:var(--mhc-mute)!important}
html[data-mhc-theme=dark] a:not(.btn):not(.mhc-bn a):not(.ct-link){color:var(--mhc-accent)}
html[data-mhc-theme=dark] .bg-white,html[data-mhc-theme=dark] .bg-light,html[data-mhc-theme=dark] .card,html[data-mhc-theme=dark] .navbar-light,html[data-mhc-theme=dark] .navbar-stuck,html[data-mhc-theme=dark] .navbar-sticky,
html[data-mhc-theme=dark] .modal-content,html[data-mhc-theme=dark] .dropdown-menu,html[data-mhc-theme=dark] .list-group-item,html[data-mhc-theme=dark] .popover,html[data-mhc-theme=dark] .offcanvas,
html[data-mhc-theme=dark] .product-single-hover,html[data-mhc-theme=dark] .product-card,html[data-mhc-theme=dark] .product-card-inner,html[data-mhc-theme=dark] .widget,html[data-mhc-theme=dark] .box-shadow,
html[data-mhc-theme=dark] .box-shadow-lg,html[data-mhc-theme=dark] .accordion-item,html[data-mhc-theme=dark] .page-link,html[data-mhc-theme=dark] .tab-content,html[data-mhc-theme=dark] .nav-tabs .nav-link.active,
html[data-mhc-theme=dark] .bg-section,html[data-mhc-theme=dark] .__shadow,html[data-mhc-theme=dark] .cz-sidebar,html[data-mhc-theme=dark] .cz-shop-sort-bar,html[data-mhc-theme=dark] .search-form-mobile{background-color:var(--mhc-surface)!important;color:var(--mhc-text)}
html[data-mhc-theme=dark] .modal-header,html[data-mhc-theme=dark] .modal-footer,html[data-mhc-theme=dark] .card-header,html[data-mhc-theme=dark] .card-footer,html[data-mhc-theme=dark] thead th,html[data-mhc-theme=dark] .table-light,html[data-mhc-theme=dark] .bg-light-soft{background-color:var(--mhc-surface-2)!important;color:var(--mhc-text);border-color:var(--mhc-line)!important}
html[data-mhc-theme=dark] .border,html[data-mhc-theme=dark] .border-top,html[data-mhc-theme=dark] .border-bottom,html[data-mhc-theme=dark] .border-left,html[data-mhc-theme=dark] .border-right,html[data-mhc-theme=dark] hr,
html[data-mhc-theme=dark] .table td,html[data-mhc-theme=dark] .table th,html[data-mhc-theme=dark] .dropdown-divider,html[data-mhc-theme=dark] .list-group-item,html[data-mhc-theme=dark] .nav-tabs,html[data-mhc-theme=dark] .page-link{border-color:var(--mhc-line)!important}
html[data-mhc-theme=dark] .table,html[data-mhc-theme=dark] table{color:var(--mhc-text)}
html[data-mhc-theme=dark] .table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.03)}
html[data-mhc-theme=dark] .form-control,html[data-mhc-theme=dark] .custom-select,html[data-mhc-theme=dark] .form-select,html[data-mhc-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),
html[data-mhc-theme=dark] select,html[data-mhc-theme=dark] textarea,html[data-mhc-theme=dark] .input-group-text{background-color:var(--mhc-surface-2)!important;color:var(--mhc-text)!important;border-color:var(--mhc-line)!important}
html[data-mhc-theme=dark] ::placeholder{color:var(--mhc-mute)!important;opacity:1}
html[data-mhc-theme=dark] .form-control:focus,html[data-mhc-theme=dark] input:focus,html[data-mhc-theme=dark] select:focus,html[data-mhc-theme=dark] textarea:focus{border-color:var(--mhc-accent)!important;box-shadow:0 0 0 .15rem rgba(240,143,192,.25)!important}
html[data-mhc-theme=dark] .dropdown-item{color:var(--mhc-text)}
html[data-mhc-theme=dark] .dropdown-item:hover,html[data-mhc-theme=dark] .dropdown-item:focus{background:var(--mhc-surface-3)}
html[data-mhc-theme=dark] .btn-outline-primary,html[data-mhc-theme=dark] .btn-outline-secondary,html[data-mhc-theme=dark] .btn-light{background:transparent;color:var(--mhc-text);border-color:var(--mhc-line)}
html[data-mhc-theme=dark] .navbar-tool-icon-box,html[data-mhc-theme=dark] .navbar-tool-text,html[data-mhc-theme=dark] .navbar-tool,html[data-mhc-theme=dark] .navbar-nav .nav-link{color:var(--mhc-text)!important}
html[data-mhc-theme=dark] .close,html[data-mhc-theme=dark] .btn-close{color:var(--mhc-text);filter:invert(1) grayscale(1) brightness(1.6)}
html[data-mhc-theme=dark] .modal-backdrop.show{opacity:.7}
html[data-mhc-theme=dark] .alert-light,html[data-mhc-theme=dark] .toast,html[data-mhc-theme=dark] #toast-container>div{background-color:var(--mhc-surface-3);color:var(--mhc-text)}
html[data-mhc-theme=dark] .cookie-section{background:var(--mhc-surface-2)!important;color:var(--mhc-text)}
/* inline white backgrounds written by the stock theme */
html[data-mhc-theme=dark] [style*="background: #fff"],html[data-mhc-theme=dark] [style*="background:#fff"],html[data-mhc-theme=dark] [style*="background-color: #fff"],html[data-mhc-theme=dark] [style*="background-color:#fff"],
html[data-mhc-theme=dark] [style*="background: white"],html[data-mhc-theme=dark] [style*="background-color: white"]{background-color:var(--mhc-surface)!important}
/* logo keeps its brand colours: it sits on a light plate so the dark maroon wordmark stays legible */
html[data-mhc-theme=dark] a.navbar-brand,html[data-mhc-theme=dark] .navbar-brand img,html[data-mhc-theme=dark] img[src*="mhc-logo"]{background:#fff;border-radius:8px;padding:2px 4px}
html[data-mhc-theme=dark] .footer img[src*="mhc-logo"],html[data-mhc-theme=dark] footer img[src*="mhc-logo"]{background:#fff}
/* never recolour photos */
html[data-mhc-theme=dark] img:not([src*="mhc-logo"]):not(.mhc-ico){filter:none;background:transparent}
/* courier tracking card follows the same switch */
html[data-mhc-theme=dark] .mhc-ct{--ct-bg:#161d26;--ct-fg:#e8ebf0;--ct-mute:#a3adba;--ct-line:#2d3946;--ct-chip:#06402f}
html[data-mhc-theme=light] .mhc-ct{--ct-bg:#fff;--ct-fg:#1f2937;--ct-mute:#6b7280;--ct-line:#e5e7eb;--ct-chip:#ecfdf5}
/* computed fixes from mhc-theme.js (large white panels / low-contrast text) */
html[data-mhc-theme=dark] [data-mhc-surface]{background-color:var(--mhc-surface)!important;color:var(--mhc-text)}
html[data-mhc-theme=dark] [data-mhc-fg=text]{color:var(--mhc-text)!important}
html[data-mhc-theme=dark] [data-mhc-fg=accent]{color:var(--mhc-accent)!important}
html[data-mhc-theme=dark] .topbar,html[data-mhc-theme=dark] .topbar a,html[data-mhc-theme=dark] .topbar-link,html[data-mhc-theme=dark] .topbar-text{color:var(--mhc-text)!important}
html[data-mhc-theme=dark] a.navbar-brand[data-mhc-surface]{background:#fff!important}
/* theme switch button */
.mhc-ts{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;cursor:pointer;padding:0;margin:0 4px;-webkit-tap-highlight-color:transparent}
.mhc-ts svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mhc-ts .i-sun{display:none}.mhc-ts .i-moon{display:block}
html[data-mhc-theme=dark] .mhc-ts .i-sun{display:block}html[data-mhc-theme=dark] .mhc-ts .i-moon{display:none}
.mhc-ts:focus-visible{outline:2px solid #d6407f;outline-offset:2px}

.cookie-accept{background-color:#0f7a4f!important;border-color:#0f7a4f!important;color:#fff!important}

/* ---- Central UI layer scale (single source of truth; Bootstrap: dropdown 1000, sticky 1020, fixed 1030, modal-backdrop 1050, modal 1055, popover 1070, tooltip 1080) ---- */
:root{--mhc-z-nav:1040;--mhc-z-chat:1045;--mhc-z-cookie:1046;--mhc-z-chat-open:1049;--mhc-z-search:1060}
.mhc-bn{z-index:var(--mhc-z-nav)!important}
#mhcC{z-index:var(--mhc-z-chat)!important}
.cookie-section{z-index:var(--mhc-z-cookie)!important}
#mhcC.open{z-index:var(--mhc-z-chat-open)!important}
#mhcS{z-index:var(--mhc-z-search)!important}
