/* Dark mode: html[data-theme=dark], set by the footer toggle (assets/js/app.js) and remembered per visitor. */
html[data-theme=dark]{--ink:#ECE9F5;--g:#221D37;--line:#342E4E;--mut:#ABA4C2;--night:#0C0916;--bg:#14101F;--fld:#463F63;--tile:#EEECF4;color-scheme:dark}
html[data-theme=dark] body{background:var(--bg)}
html[data-theme=dark] .srch form,html[data-theme=dark] .ac,html[data-theme=dark] nav.cats,html[data-theme=dark] .mega,html[data-theme=dark] .card,html[data-theme=dark] .drawer,html[data-theme=dark] .modal,html[data-theme=dark] .btn-o,html[data-theme=dark] .tag.oos,html[data-theme=dark] .woocommerce-ordering select,html[data-theme=dark] .spb-tt,html[data-theme=dark] .wc-page input.input-text,html[data-theme=dark] .wc-page select,html[data-theme=dark] .wc-page textarea,html[data-theme=dark] .skip{background:var(--bg);color:var(--ink)}
html[data-theme=dark] .srch form,html[data-theme=dark] .btn-o,html[data-theme=dark] .woocommerce-ordering select,html[data-theme=dark] .woocommerce-pagination a,html[data-theme=dark] .woocommerce-pagination span,html[data-theme=dark] .spb-tt,html[data-theme=dark] .wc-page input.input-text,html[data-theme=dark] .wc-page select,html[data-theme=dark] .wc-page textarea{border-color:var(--fld)}
html[data-theme=dark] .spb-tt[aria-pressed=true]{background:var(--p);border-color:var(--p);color:#fff}
html[data-theme=dark] #cartd .woocommerce-mini-cart__buttons .button:not(.checkout){background:var(--bg) !important;color:var(--ink) !important;border-color:var(--fld) !important}
html[data-theme=dark] .ib,html[data-theme=dark] .qty button{color:var(--ink)}
html[data-theme=dark] .btn-d{background:var(--p)}html[data-theme=dark] .btn-d:hover{background:var(--pd)}
html[data-theme=dark] .btn[disabled],html[data-theme=dark] .spb-cartform .single_add_to_cart_button:disabled{background:#2C2642 !important;color:#8D88A0 !important}
html[data-theme=dark] .chip{background:#183225;color:#86D9A9}
html[data-theme=dark] .chip.pur{background:#2D2452;color:#CDBDF7}
html[data-theme=dark] .ok{background:#1E7A49}
html[data-theme=dark] .tile.off .v{color:#8D93A0}
html[data-theme=dark] .bar{background:#3A3356}
html[data-theme=dark] .disc{background:#1A1529}
html[data-theme=dark] nav.cats .top.deal,html[data-theme=dark] nav.cats .top.deal:hover{color:var(--deal)}
html[data-theme=dark] .link,html[data-theme=dark] .ledger a.f,html[data-theme=dark] .content a,html[data-theme=dark] .mega .mc:hover .nm,html[data-theme=dark] .card .nm:hover{color:#B79DF5}
html[data-theme=dark] .ovl{background:rgba(0,0,0,.6)}
/* product photos have white backgrounds, so their tiles stay light */
html[data-theme=dark] .card .img,html[data-theme=dark] .card .img img,html[data-theme=dark] .mega .mc .im,html[data-theme=dark] .cl img,html[data-theme=dark] #cartd .woocommerce-mini-cart-item img,html[data-theme=dark] .modal .mi,html[data-theme=dark] .ac img,html[data-theme=dark] .mobnav .sub a.mm img,html[data-theme=dark] .spb-product .woocommerce-product-gallery__image,html[data-theme=dark] .spb-product .flex-control-thumbs img,html[data-theme=dark] .hero .bp .im{background:var(--tile)}
html[data-theme=dark] .spb-product .woocommerce-product-gallery__trigger{background:var(--bg)}
html[data-theme=dark] #cattiles a>span:first-child{background:var(--tile) !important}
html[data-theme=dark] .pill{background:var(--bg);border-color:var(--fld);color:var(--ink)}
html[data-theme=dark] .pill[aria-pressed=true]{background:var(--g);border-color:#B79DF5}
html[data-theme=dark] .pill[disabled]{background:var(--g);color:#7D7893}
/* inline-styled pieces in templates */
html[data-theme=dark] [style*="background:#fff"]{background:var(--g) !important}
html[data-theme=dark] [style*="background:#FFF3CF"]{background:#3A2F10 !important;color:#FFE39A !important}
html[data-theme=dark] [style*="border:1.5px solid #CFCAD9"]{border-color:var(--fld) !important}
html[data-theme=dark] .wc-block-components-text-input input,html[data-theme=dark] .wc-block-components-textarea,html[data-theme=dark] .wc-blocks-components-select__select{background:var(--bg) !important;color:var(--ink) !important}
/* logo swap */
.logo .lw,.drawer .lw{display:none}
html[data-theme=dark] .logo .ld,html[data-theme=dark] .drawer .ld{display:none}
html[data-theme=dark] .logo .lw,html[data-theme=dark] .drawer .lw{display:block}
/* dev and live load an old site-wide snippet that sets dark text on body.woocommerce and its headings */
html[data-theme=dark] body.woocommerce,html[data-theme=dark] body.woocommerce-page,html[data-theme=dark] body.woocommerce-account,html[data-theme=dark] body.woocommerce-cart,html[data-theme=dark] body.woocommerce-checkout,html[data-theme=dark] body.woocommerce-account h2,html[data-theme=dark] body.woocommerce-account h3,html[data-theme=dark] body.woocommerce h1,html[data-theme=dark] body.woocommerce h2,html[data-theme=dark] body.woocommerce h3,html[data-theme=dark] body.woocommerce-page h1,html[data-theme=dark] body.woocommerce-page h2,html[data-theme=dark] body.woocommerce-page h3{color:var(--ink)}
html[data-theme=dark] [style*="color:#1E293B"]{color:var(--ink) !important}
html[data-theme=dark] [style*="border:1px solid #CFCAD9"]{background:var(--bg) !important;color:var(--ink) !important;border-color:var(--fld) !important}
html[data-theme=dark] .woocommerce-breadcrumb a,html[data-theme=dark] nav[aria-label=Breadcrumb] a{color:var(--mut)}
html[data-theme=dark] [style*="background:#17122B"]{background:var(--p) !important;border-color:var(--p) !important}
html[data-theme=dark]{--spb-ink:var(--ink);--spb-tint:var(--g);--spb-rule:var(--line);--spb-muted:var(--mut)}
html[data-theme=dark] body.woocommerce label,html[data-theme=dark] body.woocommerce-page label,html[data-theme=dark] body.woocommerce legend,html[data-theme=dark] .woocommerce-result-count{color:var(--ink)}
html[data-theme=dark] body.woocommerce input[type=text],html[data-theme=dark] body.woocommerce input[type=email],html[data-theme=dark] body.woocommerce input[type=tel],html[data-theme=dark] body.woocommerce input[type=password],html[data-theme=dark] body.woocommerce input[type=number],html[data-theme=dark] body.woocommerce input[type=search],html[data-theme=dark] body.woocommerce select,html[data-theme=dark] body.woocommerce textarea,html[data-theme=dark] body.woocommerce-page input[type=text],html[data-theme=dark] body.woocommerce-page input[type=email],html[data-theme=dark] body.woocommerce-page input[type=tel],html[data-theme=dark] body.woocommerce-page input[type=password],html[data-theme=dark] body.woocommerce-page select,html[data-theme=dark] body.woocommerce-page textarea{background:var(--bg);border-color:var(--fld);color:var(--ink)}
html[data-theme=dark] body.woocommerce table.shop_table th{color:var(--mut)}
html[data-theme=dark] .woocommerce nav.woocommerce-pagination ul li a:hover,html[data-theme=dark] .woocommerce nav.woocommerce-pagination ul li span.current{background:var(--p);color:#fff}
/* vial quantity discount table (site snippet, light skin in compat.css) */
html[data-theme=dark] .spb-vial-discount-table>p{color:var(--mut)}
html[data-theme=dark] .spb-vial-discount-table table{border-color:var(--line)!important;background:var(--g)}
html[data-theme=dark] .spb-vial-discount-table thead tr,html[data-theme=dark] .spb-vial-discount-table th{background:var(--bg)!important;color:var(--mut);border-bottom-color:var(--line)!important}
html[data-theme=dark] .spb-vial-discount-table td{color:var(--ink);border-bottom-color:var(--line)!important}
html[data-theme=dark] .spb-vial-discount-table td:last-child{color:#86D9A9}
html[data-theme=dark] .spb-vial-discount-table tr:first-child td:last-child{color:var(--mut)}
