/* Theme preference is independent of authentication and never changes product imagery. */
.theme-settings {border:1px solid var(--border,#dfe6f2);border-radius:18px;padding:16px;margin:14px 0;background:var(--surface,#fff);min-width:0}
.theme-settings legend {font-size:16px;font-weight:800;padding:0 6px}
.theme-settings p {font-size:12px;line-height:1.6;color:var(--muted,#667085);margin:0 0 12px}
.theme-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-option {position:relative;min-width:0;cursor:pointer}
.theme-option input {position:absolute;opacity:0;width:1px;height:1px}
.theme-option>span {display:grid;justify-items:center;gap:8px;border:2px solid var(--border,#dfe6f2);border-radius:13px;padding:12px 4px;font-size:12px;text-align:center;line-height:1.4;color:var(--text,#172033)}
.theme-option input:checked+span {border-color:#6987ff;background:var(--theme-selected,#eef3ff)}
.theme-option input:focus-visible+span {outline:3px solid #ff934f;outline-offset:3px}
.theme-preview {display:block;width:44px;height:32px;border:1px solid #8995a8;border-radius:7px;box-shadow:inset 0 7px #7185cb;background:#fff}
.theme-preview.dark {background:#151c2a;box-shadow:inset 0 7px #455893}
.theme-preview.system {background:linear-gradient(90deg,#fff 50%,#151c2a 50%)}
html[data-theme="dark"] {--background:#101521;--surface:#1b2332;--surface-muted:#222d3e;--text:#edf2fc;--muted:#b0bdd1;--border:#38455c;--primary:#2563eb;--primary-dark:#1d4ed8;--success:#69dfab;--danger:#ff9a94;--shadow:0 16px 40px #0005;--theme-selected:#293858}
html[data-theme="dark"] body {background:var(--background);color:var(--text)}
html[data-theme="dark"] :is(.header,.mobile-discovery,.modal-content,.profile-content,.profile-section,.profile-tabs,.profile-list-row,.product-card,.category-card,.shelf-product,.store-card,.cart-item,.order-row,.checkout-content,.checkout-block,.repeat-order-content,.repeat-item,.repeat-order-footer,.support-chat-window,.mobile-bottom-nav,.about-mowo,#auth) {background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(input,select,textarea,.modal-close,.secondary-button,.quantity-control,.quantity-controls,.repeat-quantity,.order-detail-line,.profile-form-title,.mobile-discovery form,.quick-discovery button,.customer-chat,.chat-message,.repeat-price-legend,.checkout-total-summary) {background:var(--surface-muted);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(input,textarea)::placeholder {color:var(--muted)}
html[data-theme="dark"] :is(.catalog-products-heading h3,#popular-products-section .shelf-heading h3,.order-total,.shelf-product b,.profile-section h3,.form-field span) {color:var(--text)}
html[data-theme="dark"] :is(.catalog-products-heading p,.repeat-order-intro,.repeat-item-info>p,.repeat-old-price,.repeat-price-legend span,.repeat-total-box span,.repeat-total-box small,.catalog-empty p,.intro,.about-description,.about-steps p,footer) {color:var(--muted)}
html[data-theme="dark"] :is(.eyebrow,.shelf-product small,.shelf-heading small,.back,.staff-entry button) {color:#a6beff}
html[data-theme="dark"] :is(#popular-products-section,.catalog-empty) {background:linear-gradient(135deg,#202d49,#2d2549);border-color:#586bc0}
html[data-theme="dark"] #cart-modal .cart-summary {background:var(--surface-muted);border-color:var(--border)}
html[data-theme="dark"] #cart-modal .cart-summary span {color:var(--muted)}
html[data-theme="dark"] .profile-logout-button {background:#352329;color:#ffa49d;border-color:#8b4951}
html[data-theme="dark"] .quick-discovery button.active {background:#324570;color:#fff}
html[data-theme="dark"] .primary-button {background:#285cdd;color:#fff}
html[data-theme="dark"] .profile-tabs button.active {color:#fff}
html[data-theme="dark"] .modal {background:#0009}
html[data-theme="dark"] .language-switcher {background:var(--surface-muted);border-color:var(--border)}
html[data-theme="dark"] :is(.price-row,.payment-methods,.saved-address-block,.saved-address-chip,.saved-card,.profile-list-item,.chat-bubble,.radius-toolbar-slim) {background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(.price-quantity,.price-quantity button,.card-form,.checkout-grand-total,.delivery-quote,.cart-item-controls button) {background:var(--surface-muted);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(.profile-tabs button:not(.active),.order-kicker,.order-total-label,.radius-toolbar-slim>span) {color:var(--muted)}
html[data-theme="dark"] .price-row:first-child {background:#173b32;border-color:#348069}
