:root{--surface:#fff;--field:#fbfbfe;--soft:#f4f1ff;--subtle:#8b8595;--focus-ring:#d2c5ff}
.theme-toggle{border:1px solid var(--line);border-radius:10px;flex-shrink:0;color:var(--ink)}
.theme-toggle svg{width:20px;height:20px}.sun-icon{display:none}[data-theme=dark] .sun-icon{display:block}[data-theme=dark] .moon-icon{display:none}
.filter-fieldset{margin:0;min-width:0;border:0;border-bottom:1px solid var(--line);padding:22px 0}
.filter-fieldset legend{float:left;width:100%;padding:0;margin:0 0 15px;font-size:14px;font-weight:600}
.filter-fieldset>legend+*{clear:both}
.bound-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.bound-inputs>label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;min-width:0}
.bound-inputs input,.bound-inputs select{border:1px solid var(--line);background:var(--field);border-radius:7px;width:100%;min-width:0;padding:10px 8px;font-size:14px;min-height:40px}
.bound-inputs input:focus,.bound-inputs select:focus{border-color:var(--purple)}
.bound-inputs input[aria-invalid=true],.bound-inputs select[aria-invalid=true]{border-color:#ce4646}
.bound-inputs select{font-size:12px;padding:10px 21px 10px 7px;appearance:none}
.rating-inputs>label{position:relative}
.rating-inputs>label:after{content:'';position:absolute;right:9px;bottom:18px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
.price-sliders{margin-top:16px;display:grid;gap:6px}
.price-sliders label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
.price-sliders output{font-weight:500;color:var(--ink)}
.price-sliders input[type=range]{width:100%;margin:2px 0 8px;accent-color:var(--purple);cursor:pointer;height:20px}
.filter-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.filter-shortcuts button{font-size:12px;line-height:1.5;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.filter-shortcuts button:hover,.filter-shortcuts button[aria-pressed=true]{border-color:var(--purple);background:var(--soft);color:var(--purple)}
.filter-error{font-size:12px;line-height:1.6;color:#ba3434;margin:9px 0 0}
.filter-hint{font-size:11px;color:var(--muted);line-height:1.6;margin:12px 0 0}
.condition-group{display:flex;flex-direction:column;gap:14px}
.condition-group legend{margin-bottom:2px}
.condition-group>label{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}
.condition-group input{width:17px;height:17px;margin:0;accent-color:var(--purple);cursor:pointer;flex-shrink:0}
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.filter-chip{display:inline-flex;align-items:center;gap:10px;min-height:32px;padding:6px 10px;border-radius:6px;color:var(--purple);background:var(--soft);font-size:12px;text-align:left;border:1px solid #d8ccf9}
.filter-chip>span:last-child{font-size:19px;line-height:1}
.filter-chip:hover{border-color:var(--purple)}
.product-meta-line{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.condition-tag{display:inline-block;border-radius:4px;background:var(--soft);color:var(--purple);font-size:10px;padding:3px 6px;line-height:1.4}
.product-rating{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);flex-wrap:wrap;min-height:23px}
.product-rating>span:first-child{color:#b37700;font-size:16px}.product-rating b{font-weight:600;color:var(--ink)}.product-rating>span:last-child{font-size:11px}
.detail-meta{font-size:13px;line-height:1.7;color:var(--purple);background:var(--soft);padding:10px;border-radius:7px;margin-top:5px}
.header-actions{gap:18px}
[data-theme=dark]{--ink:#eeeaf8;--muted:#aba5bc;--purple:#b29aff;--lime:#d7ff65;--line:#383346;--bg:#15121e;--surface:#211c2d;--field:#292334;--soft:#342744;--subtle:#b5aec4;--focus-ring:#695082}
[data-theme=dark] .header,[data-theme=dark] .product-card,[data-theme=dark] .filter-sidebar,[data-theme=dark] .faq-section,[data-theme=dark] .empty-state,[data-theme=dark] dialog{background:var(--surface);color:var(--ink)}
[data-theme=dark] .utility{background:#100d17;color:#c1b9d0}
[data-theme=dark] .nav-border{border-color:var(--line)}
[data-theme=dark] .search-field{background:var(--field);border-color:var(--line)}
[data-theme=dark] .search-field input::placeholder{color:#b0a7c0}
[data-theme=dark] .search-field>button,[data-theme=dark] .button-purple{background:#7650db;color:#fff}
[data-theme=dark] .favorites-count{background:#7650db;border-color:var(--surface)}
[data-theme=dark] .logo-mark{background:#7951e3}
[data-theme=dark] .category-tiles a>span,[data-theme=dark] .category-tiles a:nth-child(2n)>span{background:var(--surface);border-color:var(--line)}
[data-theme=dark] .category-tiles a svg{color:var(--purple)}
[data-theme=dark] .category-tiles a:hover>span{background:var(--soft);border-color:var(--purple)}
[data-theme=dark] .filter-sidebar .category{background:transparent;color:var(--ink)}
[data-theme=dark] .filter-sidebar .category:before{background:var(--field);border-color:#82758e}
[data-theme=dark] .filter-sidebar .category:hover,[data-theme=dark] .filter-sidebar .category.selected{background:var(--soft);color:var(--purple)}
[data-theme=dark] .filter-sidebar .category.selected:before{background:var(--purple);border-color:var(--purple);box-shadow:inset 0 0 0 3px var(--soft)}
[data-theme=dark] .filter-sidebar .sort-field select{background:var(--field);border-color:var(--line);color:var(--ink)}
[data-theme=dark] .filter-scroll{scrollbar-color:#675375 transparent}
[data-theme=dark] .filter-favorites:hover,[data-theme=dark] .filter-favorites[aria-pressed=true]{background:var(--soft);color:var(--purple)}
[data-theme=dark] .filter-chip{border-color:#625076}
[data-theme=dark] .filter-error{color:#ffabab}
[data-theme=dark] .catalog-pill{border-color:#685b78;color:#c2b7d0}
[data-theme=dark] .product-category,[data-theme=dark] .product-caption,[data-theme=dark] .product-bottom>div>span,[data-theme=dark] .results-meta,[data-theme=dark] .catalog-note{color:var(--muted)}
[data-theme=dark] .product-bottom{border-color:var(--line)}
[data-theme=dark] .product-rating>span:first-child{color:#edc66f}
[data-theme=dark] .product-details{background:var(--soft)}
[data-theme=dark] .product-details:hover{background:var(--purple);color:#20162c}
[data-theme=dark] .favorite{color:#292132;background:#f5f1ffeb}
[data-theme=dark] .favorite.is-saved svg{fill:#6b45ed;stroke:#6b45ed}
[data-theme=dark] .product-tag{color:#665771}
[data-theme=dark] .hero-side,[data-theme=dark] .discovery-card{color:#24202f}
[data-theme=dark] .hero-side .text-link{color:#24202f}
[data-theme=dark] .discovery-card h2{color:#24202f}
[data-theme=dark] .point-icon{background:var(--soft)}
[data-theme=dark] .button-outline,[data-theme=dark] .mobile-filter-trigger{background:var(--surface);border-color:#77628d;color:var(--purple)}
[data-theme=dark] .button-outline:hover{background:var(--soft)}
[data-theme=dark] .button-disabled{background:#37303f;color:#b2a9bd}
[data-theme=dark] .dialog-close{background:var(--surface);color:var(--ink)}
[data-theme=dark] .icon-button:hover{background:#3c304d}
[data-theme=dark] .toast{background:#e7dff2;color:#21162b}
[data-theme=dark] input,[data-theme=dark] select{color-scheme:dark}
@media(max-width:760px){.header-actions{gap:12px}.theme-toggle{width:32px;height:32px;border-radius:8px}.theme-toggle svg{width:18px;height:18px}.filter-dialog .filter-scroll{padding-right:19px}.active-filters{gap:7px}.filter-chip{font-size:11px;max-width:100%}.product-meta-line{align-items:flex-start;min-height:39px}.condition-tag{font-size:9px}.product-rating{min-height:39px;column-gap:4px}.product-rating>span:last-child{font-size:10px;flex-basis:100%}.product-bottom strong{font-size:16px}.catalog-content .product-info h3{min-height:63px}}
