html { color-scheme: light; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font-size: 24px; cursor: pointer; }
.theme-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
html[data-theme="dark"] { color-scheme: dark; --brand: #ef9db8; --green: var(--brand); --deep: #281b22; --ink: #f4eef1; --muted: #bdb1b7; --line: #40343b; --soft: #262025; --shadow: 0 16px 38px rgb(0 0 0 / 30%); }
html[data-theme="dark"] body { background: #111113; color: var(--ink); }
html[data-theme="dark"] .site-header, html[data-theme="dark"] .mobile-nav { background: rgb(23 22 25 / 97%); border-color: var(--line); }
html[data-theme="dark"] .announcement, html[data-theme="dark"] footer { background: #20161c; }
html[data-theme="dark"] .search, html[data-theme="dark"] .checkout-address { background: #262025; border-color: var(--line); }
html[data-theme="dark"] .search input::placeholder { color: var(--muted); }
html[data-theme="dark"] .search kbd { border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .category-card, html[data-theme="dark"] .product-card, html[data-theme="dark"] .pantry-list, html[data-theme="dark"] dialog, html[data-theme="dark"] .cart-preview { background: #1d1a1e; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .category-card.selected, html[data-theme="dark"] .mobile-nav-link.active { background: #38232d; border-color: var(--brand); }
html[data-theme="dark"] .category-image { background: #fff; }
html[data-theme="dark"] .product-section, html[data-theme="dark"] .pantry-banner { background: #191619; border-color: var(--line); }
html[data-theme="dark"] .product-photo, html[data-theme="dark"] .detail-image { background: #fff; }
html[data-theme="dark"] .product-info, html[data-theme="dark"] .pantry-list > div, html[data-theme="dark"] .pantry-list [data-icon] { border-color: var(--line); }
html[data-theme="dark"] .catalog-controls select, html[data-theme="dark"] .filter, html[data-theme="dark"] .page-button, html[data-theme="dark"] .page-direction, html[data-theme="dark"] #addressInput, html[data-theme="dark"] #checkoutForm input, html[data-theme="dark"] #checkoutForm textarea { background: #262025; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .filter.active, html[data-theme="dark"] .page-button.active { background: var(--brand); color: #24141b; border-color: var(--brand); }
html[data-theme="dark"] .add-button, html[data-theme="dark"] .card-quantity, html[data-theme="dark"] .location-action, html[data-theme="dark"] .product-badge { background: #38232d; color: var(--brand); border-color: #64404e; }
html[data-theme="dark"] .button.dark, html[data-theme="dark"] .cart-button { background: var(--brand); color: #24141b; }
html[data-theme="dark"] .button.yellow { color: #24141b; }
html[data-theme="dark"] .product-brand, html[data-theme="dark"] .old-price, html[data-theme="dark"] .mobile-nav-link, html[data-theme="dark"] .pantry-banner p, html[data-theme="dark"] .pantry-banner .eyebrow, html[data-theme="dark"] .pantry-list small, html[data-theme="dark"] .list-footer { color: var(--muted); }
html[data-theme="dark"] .mobile-nav-link.active { color: var(--brand); }
html[data-theme="dark"] .icon-button { background: #33272e; color: var(--ink); }
html[data-theme="dark"] .checkout-error { color: #ff9ca9; }
html[data-theme="dark"] .mobile-cart-icon b { color: #24141b; box-shadow: 0 0 0 2px #171619; }
html[data-theme="dark"] .toast { background: #38232d; color: var(--ink); }
@media(max-width:370px) { .header-actions { gap: 4px; } .header-main > .logo { font-size: 30px; } .language { min-width: 40px; } }
