/* MLCCS dark mode: neutral color overrides; product swatches and print unchanged. */
html[data-theme="dark"]{--ink:#ffffff;--paper:#212121;--white:#212121;--muted:#8c8c8c;--line:#2b2b2b;color-scheme:dark;}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible{outline:3px solid #777777;}
html[data-theme="dark"] .btn:hover:not(:disabled){color:#212121;}
html[data-theme="dark"] .btn.dark{color:#212121;}
html[data-theme="dark"] .btn.dark:hover{background:#bcbcbc;}
html[data-theme="dark"] .btn.light{background:#212121;}
html[data-theme="dark"] .btn.ghost{border-color:#424242;}
html[data-theme="dark"] .icon-btn:hover{background:#212121;}
html[data-theme="dark"] .field{border:1px solid #424242;background:#212121;color:#ffffff;}
html[data-theme="dark"] .panel{background:#212121;border:1px solid #222222;}
html[data-theme="dark"] .empty{color:#888888;}
html[data-theme="dark"] .chip{border:1px solid #555555;background:#212121;}
html[data-theme="dark"] .chip[aria-pressed="true"],html[data-theme="dark"] .chip.selected{color:#212121;}
html[data-theme="dark"] .divider{border-top:1px solid #252525;}
html[data-theme="dark"] .loader{border:3px solid #363636;border-top-color:#ffffff;}
html[data-theme="dark"] .header-shell{background:#212121;}
html[data-theme="dark"] .header-shell::before{background:#212121;}
html[data-theme="dark"] .drawer-backdrop{background:rgba(255,255,255,0.533333);}
html[data-theme="dark"] .drawer{background:#212121;}
html[data-theme="dark"] .drawer nav a{border-bottom:1px solid #212121;}
html[data-theme="dark"] .flyhigh{border:1px solid #414141;background:linear-gradient(160deg,rgba(33,33,33,0.584314),rgba(34,34,34,0.4));}
html[data-theme="dark"] .drop-timer{background:#ffffff;color:#212121;border:2px solid #a8a8a8;}
html[data-theme="dark"] .time-box{background:#bdbdbd;border:2px solid #a9a9a9;}
html[data-theme="dark"] .ticker{background:linear-gradient(100deg,#212121,#444444);}
html[data-theme="dark"] .product-card{background:#212121;border:1px solid #2a2a2a;}
html[data-theme="dark"] .product-img-wrap{background:#212121;}
html[data-theme="dark"] .product-card-foot{border-top:1px solid #222222;}
html[data-theme="dark"] .heart{color:#ffffff;}
html[data-theme="dark"] .sold-badge{background:#ffffff;color:#212121;}
html[data-theme="dark"] .about-hero{background:#ffffff;color:#212121;}
html[data-theme="dark"] .gallery-main{background:#212121;}
html[data-theme="dark"] .gallery-thumbs button{background:#212121;}
html[data-theme="dark"] .qty-box button{border:1px solid #333333;background:#212121;}
html[data-theme="dark"] .status-line{color:#999999;}
html[data-theme="dark"] .cart-item{border-bottom:1px solid #222222;}
html[data-theme="dark"] .cart-item img{background:#212121;}
html[data-theme="dark"] .summary-line.total{border-top:1px solid #333333;}
html[data-theme="dark"] .checkout-item img{background:#212121;}
html[data-theme="dark"] .method-option{border:1.6px solid #222222;}
html[data-theme="dark"] .method-option:has(input:checked){background:#ffffff;color:#212121;border-color:#ffffff;}
html[data-theme="dark"] .method-option input{accent-color:#ffffff;}
html[data-theme="dark"] .fineprint{color:#888888;}
html[data-theme="dark"] .status-pill{background:#212121;}
html[data-theme="dark"] .invoice-paper{background:#212121;border:1px solid #222222;}
html[data-theme="dark"] .site-footer{background:#ffffff;color:#212121;}
html[data-theme="dark"] .footer-logo .footer-logo{border:0;}
html[data-theme="dark"] .footer-payments .footer-logo{border:0;}
html[data-theme="dark"] .footer-bottom{color:#333333;}
html[data-theme="dark"] .overlay-wrap{background:rgba(255,255,255,0.533333);}
html[data-theme="dark"] .modal{background:#212121;border:1px solid rgba(33,33,33,0.6);}
html[data-theme="dark"] .modal-close{background:#212121;}
html[data-theme="dark"] #toast{background:#ffffff;color:#212121;}
html[data-theme="dark"] .order-item{border:1px solid #222222;background:#212121;}
html[data-theme="dark"] .modal.quick-view{background:linear-gradient(145deg,rgba(33,33,33,0.93),rgba(40,40,40,0.87));}
html[data-theme="dark"] .header-shell{background:#212121;}
html[data-theme="dark"] .nav-logo{color:#ffffff;}
html[data-theme="dark"] .nav-links a:hover,html[data-theme="dark"] .nav-links a.active{background:#212121;}
html[data-theme="dark"] .nav .icon-btn.active{background:#212121;}
html[data-theme="dark"] .page-back{color:#ffffff;}
html[data-theme="dark"] .page-back:hover{background:#1a1a1a;}
html[data-theme="dark"] .overlay-wrap.drawer-backdrop{background:rgba(255,255,255,0.6);}
html[data-theme="dark"] .modal.drawer{background:#212121;}
html[data-theme="dark"] .modal.drawer .modal-close{background:rgba(33,33,33,0.156863);color:#212121;}
html[data-theme="dark"] .drawer-head{background:linear-gradient(130deg,#ffffff,#ffffff,#cccccc);}
html[data-theme="dark"] .drawer-brand{color:#212121;}
html[data-theme="dark"] .drawer-nav a:hover,html[data-theme="dark"] .drawer-nav a.active{background:rgba(255,255,255,0.0705882);}
html[data-theme="dark"] .drawer-lang-toggle{background:#212121;color:#ffffff;}
html[data-theme="dark"] .drawer-lang-toggle:hover{background:#212121;}
html[data-theme="dark"] .hero-home{padding:clamp(45px,6vw,85px) 0 38px;background:linear-gradient(145deg,#2a2a2a,#2c2c2c);}
html[data-theme="dark"] .landing-products{background:#2a2a2a;}
html[data-theme="dark"] .landing-products .ticker{border-top:2px solid #ffffff;border-bottom:2px solid #ffffff;background:linear-gradient(90deg,#212121 0%,#555555 100%);}
html[data-theme="dark"] .product-card,html[data-theme="dark"] .product-img-wrap{background:#212121;}
html[data-theme="dark"] .product-card{border:1px solid #2e2e2e;}
html[data-theme="dark"] .product-card-foot{background:#212121;}
html[data-theme="dark"] .sold-badge{background:#212121;color:#ffffff;border:1px solid #555555;}
html[data-theme="dark"] .catalog-select{border:1px solid #777777;background:#212121;}
html[data-theme="dark"] .catalog-select select{color:#ffffff;}
html[data-theme="dark"] .about-hero{background:#ffffff;}
html[data-theme="dark"] .overlay-wrap{background:rgba(255,255,255,0.533333);}
html[data-theme="dark"] .modal.quick-view{background:linear-gradient(135deg,rgba(33,33,33,0.86),rgba(112,112,112,0.83));border:1px solid rgba(33,33,33,0.6);}
html[data-theme="dark"] .modal.quick-view .detail-gallery{background:#212121;}
html[data-theme="dark"] .modal.quick-view .gallery-main{background:#212121;}
html[data-theme="dark"] .modal.quick-view .gallery-thumbs button{border:1px solid #2c2c2c;}
html[data-theme="dark"] .modal.quick-view .gallery-thumbs button.selected{border:2px solid #ffffff;}
html[data-theme="dark"] .detail-like{color:#ffffff;}
html[data-theme="dark"] .detail-desc{color:#b4b4b4;}
html[data-theme="dark"] .color-swatch{border:1px solid #888888;}
html[data-theme="dark"] .color-swatch.selected{outline:2px solid #ffffff;}
html[data-theme="dark"] .product-terms{background:#212121;border:1px solid #212121;}
html[data-theme="dark"] .like-detail-button{color:#ffffff;}
html[data-theme="dark"] .recommended-card{background:#212121;color:#ffffff;border:1px solid #222222;}
html[data-theme="dark"] .gallery-nav{background:rgba(33,33,33,0.741176);}
html[data-theme="dark"] .gallery-zoom{background:rgba(33,33,33,0.901961);}
html[data-theme="dark"] .image-lightbox{background:rgba(255,255,255,0.929412);}
html[data-theme="dark"] .image-lightbox button{background:rgba(33,33,33,0.87451);color:#ffffff;}
html[data-theme="dark"] .checkout-page .form-row .label{color:#a5a5a5;}
html[data-theme="dark"] .checkout-page .field{border-bottom:1px solid #555555;}
html[data-theme="dark"] .checkout-page .field:focus{border-color:#ffffff;}
html[data-theme="dark"] .checkout-page .method-option{border-bottom:1px solid #555555;color:#ffffff;}
html[data-theme="dark"] .checkout-page .method-option:has(input:checked){background:rgba(255,255,255,0.045);color:#ffffff;border-color:#ffffff;}
html[data-theme="dark"] .checkout-page .method-option input{accent-color:#ffffff;}
html[data-theme="dark"] .checkout-page .category-tab{color:#bbbbbb;}
html[data-theme="dark"] .checkout-page .category-tab.active{color:#ffffff;}
html[data-theme="dark"] .checkout-page .checkout-item{border-bottom:1px solid #333333;}
html[data-theme="dark"] .checkout-page .checkout-item img{background:#212121;}
html[data-theme="dark"] .site-footer{background:#ffffff;}
@media(max-width:860px){html[data-theme="dark"] .modal.quick-view .detail-gallery{background:#212121;}}
html[data-theme="dark"] #site-header{background:#212121;}
html[data-theme="dark"] .checkout-address-row input[type="checkbox"]{accent-color:#ffffff;}
html[data-theme="dark"] .catalog-filter>summary{border:1.2px solid #ffffff;background:rgba(33,33,33,0.8);}
html[data-theme="dark"] .catalog-filter-menu{border:1px solid #2f2f2f;background:rgba(33,33,33,0.8);}
html[data-theme="dark"] .catalog-filter-menu label:hover{background:#212121;}
html[data-theme="dark"] .catalog-filter-menu input{accent-color:#ffffff;}
html[data-theme="dark"] .catalog-filter>summary{background:#212121;border:1px solid #888888;}
html[data-theme="dark"] .catalog-filter-menu{background:#212121;border:1px solid #2f2f2f;}
html[data-theme="dark"] .catalog-filter-menu input{accent-color:#ffffff;}
html[data-theme="dark"] .overlay-wrap{background:rgba(255,255,255,0.23);}
html[data-theme="dark"] .modal.quick-view{background:linear-gradient(130deg,rgba(33,33,33,0.67),rgba(130,130,130,0.6));border:1px solid rgba(33,33,33,0.7);}
html[data-theme="dark"] .modal.quick-view .detail-info{color:#ffffff;}
html[data-theme="dark"] .modal.quick-view .detail-gallery{background:rgba(33,33,33,0.97);}
html[data-theme="dark"] .modal.quick-view .gallery-main{background:#212121;}
html[data-theme="dark"] .zoom-lens{border:3px solid rgba(33,33,33,0.98);outline:1px solid rgba(255,255,255,0.7);background-color:#212121;}
html[data-theme="dark"] .detail-like{color:#ffffff;}
html[data-theme="dark"] .product-terms{background:rgba(33,33,33,0.98);border:1px solid #191919;}
html[data-theme="dark"] .product-terms p{color:#999999;}
html[data-theme="dark"] .image-lightbox{background:#212121;color:#ffffff;}
html[data-theme="dark"] .image-lightbox button{background:#212121;color:#ffffff;}
html[data-theme="dark"] .image-lightbox .zoom-previous,html[data-theme="dark"] .image-lightbox .zoom-next{background:#aaaaaa;color:#212121;}
html[data-theme="dark"] .lightbox-tools{background:rgba(33,33,33,0.92549);}
html[data-theme="dark"] .lightbox-hint{color:#666666;}
html[data-theme="dark"] .checkout-page .category-tab{border:1px solid #3a3a3a;background:#212121;color:#ffffff;}
html[data-theme="dark"] .checkout-page .category-tab.active,html[data-theme="dark"] .checkout-page .category-tab[aria-pressed="true"]{background:#ffffff;color:#212121;border-color:#ffffff;}
html[data-theme="dark"] .checkout-page .method-option:has(input:checked){background:rgba(255,255,255,0.0627451);border-bottom:2px solid #ffffff;color:#ffffff;}
html[data-theme="dark"] .checkout-page .method-option input{accent-color:#ffffff;}
html[data-theme="dark"] .language-dropdown{background:#212121;border:1px solid #222222;}
html[data-theme="dark"] .language-choice{background:#212121;color:#ffffff;}
html[data-theme="dark"] .language-choice:hover,html[data-theme="dark"] .language-choice:focus-visible,html[data-theme="dark"] .language-choice.selected{background:#212121;}
html[data-theme="dark"] .drawer-lang-options{background:#212121;border:1px solid #191919;}
html[data-theme="dark"] .drawer-lang-options .language-choice:hover,html[data-theme="dark"] .drawer-lang-options .language-choice.selected{background:#171717;}
html[data-theme="dark"] .modal.quick-view .zoom-lens{border:3px solid #212121;outline:1px solid #b5b5b5;}
html[data-theme="dark"] .size-guide-overlay{background:rgba(255,255,255,0.62);}
html[data-theme="dark"] .size-guide-dialog{background:#212121;color:#ffffff;border:1px solid #222222;}
html[data-theme="dark"] .size-guide-dialog-head{border-bottom:1px solid #191919;}
html[data-theme="dark"] .size-guide-close{background:#212121;color:#ffffff;}
html[data-theme="dark"] .size-guide-close:hover{background:#222222;}
html[data-theme="dark"] .quickview-pending-image{background:#212121;}
html[data-theme="dark"] .quickview-pending-info{color:#ffffff;}
html[data-theme="dark"] .btn.dark:hover:not(:disabled),html[data-theme="dark"] a.btn.dark:hover,html[data-theme="dark"] .detail-cta .btn.dark:hover:not(:disabled){background:#212121;color:#ffffff;border-color:#ffffff;}
html[data-theme="dark"] .password-toggle{color:#ffffff;}
html[data-theme="dark"] .password-toggle:hover{background:#212121;}
html[data-theme="dark"] .generated-username{border:1px solid #555555;background:#212121;}
html[data-theme="dark"] .checkout-page .category-tab.active:hover:not(:disabled),html[data-theme="dark"] .checkout-page .category-tab[aria-pressed="true"]:hover:not(:disabled),html[data-theme="dark"] .detail-info .chip.selected:hover:not(:disabled),html[data-theme="dark"] .detail-info .chip[aria-pressed="true"]:hover:not(:disabled){background:#212121;color:#ffffff;border-color:#ffffff;}
html[data-theme="dark"] .product-card-swatches button{border:1.5px solid #888888;}
html[data-theme="dark"] .product-card-swatches button.selected{outline:2px solid #ffffff;}
html[data-theme="dark"] .color-inline{border:1.5px solid #888888;}
html[data-theme="dark"] .settings-page{background:#212121;}
html[data-theme="dark"] .settings-page .settings-back{color:#ffffff;}
html[data-theme="dark"] .settings-identity{background:#212121;}
html[data-theme="dark"] .settings-tabs{border-top:1px solid #777777;}
html[data-theme="dark"] .settings-form{background:#212121;}
html[data-theme="dark"] .settings-save-choice input{accent-color:#ffffff;}
html[data-theme="dark"] .checkout-trust-note{color:#cccccc;}
html[data-theme="dark"] .checkout-terms-note{color:#999999;}
html[data-theme="dark"] .checkout-terms-note a{color:#ffffff;}
html[data-theme="dark"] .support-toggle{border:1px solid #212121;background:#ffffff;color:#212121;}
html[data-theme="dark"] .support-count{color:#212121;border:2px solid #212121;}
html[data-theme="dark"] .support-panel{background:#212121;color:#ffffff;border:1px solid #222222;}
html[data-theme="dark"] .support-panel header{background:#ffffff;color:#212121;}
html[data-theme="dark"] .support-panel header small{color:#222222;}
html[data-theme="dark"] .support-panel header button{color:#212121;}
html[data-theme="dark"] .support-messages{background:#212121;}
html[data-theme="dark"] .support-hint{color:#888888;}
html[data-theme="dark"] .support-bubble{border:1px solid #222222;background:#212121;}
html[data-theme="dark"] .support-bubble.mine{background:#ffffff;color:#212121;border-color:#ffffff;}
html[data-theme="dark"] .support-panel form{border-top:1px solid #212121;}
html[data-theme="dark"] .support-panel textarea{border:1px solid #333333;}
html[data-theme="dark"] .support-privacy{color:#888888;}
html[data-theme="dark"] .support-order-row{border-bottom:1px solid #212121;}
html[data-theme="dark"] .support-order-row select{background:#212121;border:1px solid #333333;}
html[data-theme="dark"] .deletion-success-dialog{border:1px solid #ffffff;background:#212121;color:#ffffff;}
html[data-theme="dark"] .deletion-success-dialog::backdrop{background:rgba(255,255,255,0.6);}
html[data-theme="dark"]{color-scheme:dark;}

/* Final palette rules: neutral surfaces and borders; preserve actual product colors. */
html[data-theme="dark"]{--muted:#f1f1f1;--line:#ffffff}
html[data-theme="dark"] .panel,html[data-theme="dark"] .product-card,html[data-theme="dark"] .recommended-card,html[data-theme="dark"] .invoice-paper,html[data-theme="dark"] .size-guide-dialog,html[data-theme="dark"] .support-panel{background:#212121;border-color:#ffffff;color:#ffffff}
html[data-theme="dark"] .field,html[data-theme="dark"] .language-dropdown,html[data-theme="dark"] .catalog-filter-menu,html[data-theme="dark"] .support-panel textarea,html[data-theme="dark"] .support-order-row select{background:#212121;color:#ffffff;border-color:#ffffff}
html[data-theme="dark"] .modal.quick-view{background:#212121;color:#ffffff;border-color:#ffffff}
html[data-theme="dark"] .nav-links a.active,html[data-theme="dark"] .nav .icon-btn.active{background:#ffffff;color:#212121}
html[data-theme="dark"] .ticker-segment img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .detail-desc,html[data-theme="dark"] .product-terms p,html[data-theme="dark"] .support-hint,html[data-theme="dark"] .support-privacy,html[data-theme="dark"] .lightbox-hint{color:#f1f1f1}
html[data-theme="dark"] .site-footer{background:#ffffff;color:#212121}
@media print{html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] .invoice-paper{background:#fff!important;color:#212121!important}html[data-theme="dark"] .invoice-paper *{color:#212121!important;background-color:transparent!important;border-color:#bdbdbd!important}html[data-theme="dark"] .invoice-paper{border:0!important;box-shadow:none!important}}

/* GEAR 1 — dark glass, selected sizes, soft cards and checkout. */
html[data-theme="dark"] .modal.quick-view{background:rgba(33,33,33,.72);backdrop-filter:blur(32px) saturate(.76);-webkit-backdrop-filter:blur(32px) saturate(.76);border:1px solid rgba(255,255,255,.16);box-shadow:0 25px 75px #0008}
html[data-theme="dark"] .modal.quick-view .detail-gallery,html[data-theme="dark"] .modal.quick-view .gallery-main,html[data-theme="dark"] .modal.quick-view .product-terms{background:#212121}
html[data-theme="dark"] .detail-info .size-row .chip{background:#212121;color:#fff}
html[data-theme="dark"] .detail-info .size-row .chip.selected,html[data-theme="dark"] .detail-info .size-row .chip[aria-pressed="true"]{background:#fff;color:#212121;border-color:#fff}
/* Keep the existing selected-size hover feedback. */
html[data-theme="dark"] .detail-info .size-row .chip.selected:hover:not(:disabled),html[data-theme="dark"] .detail-info .size-row .chip[aria-pressed="true"]:hover:not(:disabled){background:#212121;color:#fff;border-color:#fff}
html[data-theme="dark"] :is(.panel,.product-card,.recommended-card,.invoice-paper,.size-guide-dialog,.support-panel,.order-item,.product-terms,.detail-gallery,.deletion-success-dialog,.settings-form,.quickview-pending-image){border-color:rgba(255,255,255,.13);box-shadow:0 8px 24px rgba(0,0,0,.28)}
html[data-theme="dark"] .product-card:hover,html[data-theme="dark"] .landing-cards .step-product-track>.product-card:hover{box-shadow:0 17px 34px #0007}
html[data-theme="dark"] .checkout-page .panel{background:transparent;border:0;box-shadow:none}
html[data-theme="dark"] .checkout-page :is(.category-tab,.category-mark,.color-inline){border:0;box-shadow:none}
html[data-theme="dark"] .checkout-page .field{background:transparent;border:0;border-bottom:1px solid #888888;border-radius:0;box-shadow:none}
html[data-theme="dark"] .checkout-page .field:disabled{border-bottom-color:#666666}
html[data-theme="dark"] .checkout-page .field:focus{border-bottom-color:#ffffff;box-shadow:0 1px #fff;outline:none}
html[data-theme="dark"] .checkout-page .method-option:has(input:checked){box-shadow:none}
html[data-theme="dark"] .checkout-page .category-tab{background:transparent}
html[data-theme="dark"] .checkout-page .category-tab.active,html[data-theme="dark"] .checkout-page .category-tab[aria-pressed="true"]{background:#fff;color:#212121;border:0}
html[data-theme="dark"] .checkout-page .btn{border:0}
html[data-theme="dark"] .checkout-page .method-logo{mix-blend-mode:normal}


/* GEAR 2 — page surfaces only; preserve home, header and card colors. */
html[data-theme="dark"] body:is([data-page="/about"],[data-page="/products"],[data-page="/cart"],[data-page="/profile"],[data-page="/contact"],[data-page="/faq"],[data-page="/privacy"],[data-page="/terms"],[data-page="/checkout"],[data-page="/my-settings"]){background:#2a2a2a}
html[data-theme="dark"] .about-hero{background:#2a2a2a;color:#fff}
html[data-theme="dark"] .settings-page{background:#2a2a2a}
html[data-theme="dark"] .modal.drawer{background:#212121;color:#fff}
html[data-theme="dark"] .modal.drawer .drawer-head{background:transparent;border-color:#ffffff22}
html[data-theme="dark"] .modal.drawer .drawer-brand,html[data-theme="dark"] .modal.drawer .modal-close{color:#fff}
html[data-theme="dark"] .modal.drawer .drawer-lang-toggle{background:transparent;color:#fff}
html[data-theme="dark"] .modal.drawer .drawer-lang-toggle:hover{background:#ffffff12}
html[data-theme="dark"] .theme-options .language-choice{background:#212121;color:#fff}
html[data-theme="dark"] .theme-options .language-choice:hover,html[data-theme="dark"] .theme-options .language-choice.selected{background:#333}


html[data-theme="dark"] .checkout-page .field:focus-visible{outline:none;box-shadow:0 1px #fff}
html[data-theme="dark"] .checkout-page .method-option:has(input:checked){background:#ffffff0b}
html[data-theme="dark"] .checkout-page .category-mark{border:0}
html[data-theme="dark"] .checkout-page .form-error{border:0}

html[data-theme="dark"] .nav-right .theme-picker [data-theme-menu]:hover{background:#ffffff12}
html[data-theme="dark"] .recommended-card:hover{box-shadow:0 14px 25px #0007}

/* Checkout: restore the light-mode row separators, not full card borders. */
html[data-theme="dark"] .checkout-page .method-option{border:0;border-bottom:1px solid #888888}
html[data-theme="dark"] .checkout-page .method-option:has(input:checked){border-bottom:2px solid #ffffff}
html[data-theme="dark"] .checkout-page .checkout-item{border-bottom:1px solid #666666}
html[data-theme="dark"] .checkout-page .summary-line.total{border-top:1px solid #666666}
