/* The light design stays intact. Only explicit dark mode changes the shared palette. */
.site-facelift .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;min-width:35px;min-height:35px;padding:7px;border:1px solid #ddd3e5;border-radius:7px;color:#704191;background:transparent;flex-shrink:0}
.site-facelift .theme-toggle[hidden]{display:none!important}
.site-facelift .theme-toggle:hover{background:#f3edf7}
.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
html[data-bs-theme="dark"] .theme-toggle .theme-moon{display:none}
html[data-bs-theme="dark"] .theme-toggle .theme-sun{display:block}
html[data-bs-theme="dark"]{
 color-scheme:dark;--theme-bg:#191a21;--theme-surface:#22232c;--theme-raised:#2b2d38;--theme-text:#e8e9ed;--theme-muted:#adb0bd;--theme-border:#41434e;--theme-link:#d7b9ee;
 --bs-body-bg:var(--theme-bg);--bs-body-color:var(--theme-text);--bs-emphasis-color:#fff;--bs-secondary-color:var(--theme-muted);--bs-tertiary-bg:var(--theme-raised);--bs-secondary-bg:var(--theme-surface);--bs-border-color:var(--theme-border);--bs-link-color:var(--theme-link);--bs-link-hover-color:#eddaff;
 background:var(--theme-bg)
}
html[data-bs-theme="dark"] body.site-facelift,html[data-bs-theme="dark"] .site-facelift .account-workspace{background-color:var(--theme-bg);color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift :is(h1,h2,h3,h4,h5,h6){color:inherit}
html[data-bs-theme="dark"] .site-facelift :is(a:not(.btn),.link-violet){color:var(--theme-link)}
html[data-bs-theme="dark"] .site-facelift :is(.text-dark,.text-black){color:var(--theme-text)!important}
html[data-bs-theme="dark"] .site-facelift :is(.text-muted,.text-secondary,.link-secondary,.form-text,.products .rating,.products figcaption i,.card-text.mb-3){color:var(--theme-muted)!important}
html[data-bs-theme="dark"] .site-facelift :is(.bg-white,.bg-light,.bg-light-subtle,.bg-secondary-subtle){background-color:var(--theme-surface)!important;color:var(--theme-text)}
html[data-bs-theme="dark"] body.site-facelift > nav:first-of-type,html[data-bs-theme="dark"] body.site-facelift > nav:nth-of-type(2){background:var(--theme-surface)!important;border-color:var(--theme-border)!important}
html[data-bs-theme="dark"] .site-facelift > nav:first-of-type .navbar-brand img{content:url('/images/logo/logo-dark-bg.png')}
html[data-bs-theme="dark"] .site-facelift .navbar .nav-link{color:var(--theme-text)!important}
html[data-bs-theme="dark"] .site-facelift .navbar :is(.nav-link:hover,.nav-link:focus-visible,.nav-link.btn-light-highlighted){background:var(--theme-raised)!important;color:var(--theme-link)!important;border-color:var(--theme-border)!important}
html[data-bs-theme="dark"] .site-facelift > nav:first-of-type .nav-link.btn-violet{color:var(--theme-link)!important;border-bottom-color:#be91da!important}
html[data-bs-theme="dark"] .site-facelift :is(.theme-toggle,.navbar .btn-outline-violet){color:var(--theme-link);border-color:#80628f}
html[data-bs-theme="dark"] .site-facelift .theme-toggle:hover{background:var(--theme-raised)}
html[data-bs-theme="dark"] .site-facelift :is(.dropdown-menu,.modal-content,.list-group-item,.popover){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-bs-theme="dark"] .site-facelift .dropdown-item{color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift :is(.dropdown-item:hover,.dropdown-item:focus){background:var(--theme-raised);color:#fff}
html[data-bs-theme="dark"] .site-facelift :is(.dropdown-divider,.border,.border-bottom,.border-top,hr){border-color:var(--theme-border)!important}
html[data-bs-theme="dark"] .site-facelift :is(.card,.card-product-grid,form[role="search"]),html[data-bs-theme="dark"] .facelift.homepage .container.my-4>.card{background-color:var(--theme-surface)!important;color:var(--theme-text);border-color:var(--theme-border)!important}
html[data-bs-theme="dark"] .site-facelift :is(.card-header,.card-footer){background:var(--theme-raised);border-color:var(--theme-border)}
html[data-bs-theme="dark"] .site-facelift :is(.info-wrap,.bottom-wrap){color:var(--theme-text);border-color:var(--theme-border)}
html[data-bs-theme="dark"] .site-facelift .table{
 --bs-table-bg:var(--theme-surface);--bs-table-color:var(--theme-text);--bs-table-striped-bg:#282a34;--bs-table-striped-color:var(--theme-text);--bs-table-hover-bg:#30323e;--bs-table-hover-color:#fff;--bs-table-border-color:var(--theme-border);--bs-table-active-bg:#30323e;--bs-table-active-color:#fff;
 border-color:var(--theme-border);color:var(--theme-text)
}
html[data-bs-theme="dark"] .site-facelift .table > thead > tr > th{background:var(--theme-raised);color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift .table a:not(.btn){color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift .table a:not(.btn):hover{color:var(--theme-link)}
html[data-bs-theme="dark"] .site-facelift :is(.form-control,.form-select,.input-group-text,.rich-editor-controls,.rich-editor-text,.rich-editor-textarea,.ts-control,.ts-dropdown){background-color:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-bs-theme="dark"] .site-facelift :is(.form-control:focus,.form-select:focus){background-color:var(--theme-surface);color:var(--theme-text);border-color:#be91da;box-shadow:0 0 0 3px #be91da30}
html[data-bs-theme="dark"] .site-facelift :is(.form-control::placeholder,.ts-control input::placeholder){color:var(--theme-muted);opacity:1}
html[data-bs-theme="dark"] .site-facelift :is(.form-label,.form-check-label,legend){color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift :is(.form-control:disabled,.form-select:disabled,.ts-control .item){background:var(--theme-raised);color:var(--theme-muted)}
html[data-bs-theme="dark"] .site-facelift .form-check-input:not(:checked){background-color:var(--theme-surface);border-color:#888b9a}
html[data-bs-theme="dark"] .site-facelift .ts-dropdown :is(.active,.selected){background:var(--theme-raised);color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift :is(.btn-violet,.btn-primary){background:#75458f!important;border-color:#9b72b2!important;color:#fff!important}
html[data-bs-theme="dark"] .site-facelift :is(.btn-violet,.btn-primary):hover{background:#8955a4!important;color:#fff!important}
html[data-bs-theme="dark"] .site-facelift .btn-outline-violet{color:var(--theme-link);border-color:#80628f}
html[data-bs-theme="dark"] .site-facelift .btn-outline-violet:is(:hover,:focus-visible,.show){background:#75458f;color:#fff!important}
html[data-bs-theme="dark"] .site-facelift .btn-light{background:var(--theme-raised);color:var(--theme-text);border-color:var(--theme-border)}
html[data-bs-theme="dark"] .site-facelift .page-link{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-bs-theme="dark"] .site-facelift .page-link:hover{background:var(--theme-raised);color:#fff}
html[data-bs-theme="dark"] .site-facelift :is(.page-item.active .page-link,.page-link.bg-violet,.page-link[aria-current="page"]){background:#e8e9ed!important;border-color:#e8e9ed!important;color:#191a21!important;font-weight:600}
html[data-bs-theme="dark"] .site-facelift .page-item.disabled .page-link{background:var(--theme-surface);color:#969baa}
html[data-bs-theme="dark"] .site-facelift .text-success{color:#a4dfbb!important}
html[data-bs-theme="dark"] .site-facelift .text-danger{color:#ffb4b4!important}
html[data-bs-theme="dark"] .site-facelift .text-warning{color:#f3d291!important}
html[data-bs-theme="dark"] .site-facelift :is(.alert-info,.alert-primary){background:#243447;border-color:#4e7298;color:#d5e8ff}
html[data-bs-theme="dark"] .site-facelift .alert-success{background:#203c30;border-color:#498866;color:#c2efd4}
html[data-bs-theme="dark"] .site-facelift .alert-warning{background:#423821;border-color:#8d7745;color:#ffdfa1}
html[data-bs-theme="dark"] .site-facelift .alert-danger{background:#442b30;border-color:#9c606b;color:#ffccd3}
html[data-bs-theme="dark"] .site-facelift .breadcrumb{--bs-breadcrumb-divider-color:var(--theme-muted)}
html[data-bs-theme="dark"] .site-facelift .breadcrumb-item.active{color:var(--theme-muted)}
html[data-bs-theme="dark"] .site-facelift #sticky-footer{background:#22232c!important;border-color:var(--theme-border)!important;color:#c6c8d3!important}
html[data-bs-theme="dark"] .site-facelift #sticky-footer :is(.text-white-50,.text-secondary){color:#c6c8d3!important}
html[data-bs-theme="dark"] .site-facelift #sticky-footer .text-white{color:#fff!important}
/* Keep product photographs and banner imagery unchanged. No inversion or image filters. */
html[data-bs-theme="dark"] .site-facelift .btn-outline-violet{background:transparent!important}
html[data-bs-theme="dark"] .site-facelift .btn-outline-violet:is(:hover,:focus-visible,.show){background:#75458f!important}
html[data-bs-theme="dark"] .site-facelift :is(.price,.price-new,.card-product-grid .title){color:var(--theme-text)}
html[data-bs-theme="dark"] .site-facelift :is(.btn-outline-secondary,.btn-outline-dark){background:transparent;color:#c6c8d3;border-color:#777d8c}
html[data-bs-theme="dark"] .site-facelift :is(.btn-outline-secondary,.btn-outline-dark):hover{background:#343742;color:#fff;border-color:#a2a8b6}
@media(max-width:991px){.site-facelift>nav:first-of-type .navbar-brand{max-width:calc(100% - 112px)}}

/* Bootstrap link-dark uses !important, so dark tables must override it explicitly. */
html[data-bs-theme="dark"] .site-facelift .table a.link-dark{color:var(--theme-text)!important}
html[data-bs-theme="dark"] .site-facelift .table a.link-dark:hover,
html[data-bs-theme="dark"] .site-facelift .table a.link-dark:focus-visible{color:var(--theme-link)!important}
