/* One search surface: keyword input, a compact palette disclosure, and one submit action. */
.smart-search{width:100%;max-width:560px;margin:0;text-align:start;border:1px solid #7ebed0;border-radius:16px;background:var(--surface);box-shadow:0 5px 18px #17364108;transition:border-color .16s,box-shadow .16s}
.smart-search:hover{border-color:var(--accent-deep)}
.smart-search:focus-within{border-color:var(--accent-deep);outline:2px solid var(--accent-deep);outline-offset:-2px;box-shadow:0 6px 22px #1736410b}
.listing-intro .smart-search{max-width:610px;margin-inline:auto}
.smart-search .smart-search-main{display:flex;align-items:center;gap:11px;width:100%;max-width:none;margin:0;padding:8px 8px 8px 17px;min-height:62px;border:0;border-radius:16px 16px 0 0;box-shadow:none;outline:none;background:transparent}
.smart-search .smart-search-main:focus-within{border:0;box-shadow:none;outline:none}
.smart-search-main>.icon{width:19px;height:19px;color:var(--muted)}
.smart-search .smart-search-main input[type=search]{flex:1;min-width:0;width:auto;border:0;outline:none;background:none;padding:11px 0;font-size:14px}
.smart-search .smart-search-main>button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:68px;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:13px;background:var(--action-fill);color:var(--action-ink);box-shadow:0 3px 8px #1c819d14;font-size:13px;font-weight:650;flex:none}
.smart-search .smart-search-main>button:hover{background:var(--action-hover);color:var(--action-ink);border-color:transparent;box-shadow:0 4px 12px #1c819d20}
.smart-search .smart-search-main>button>.icon{width:28px;height:28px;padding:5px;border-radius:50%;background:#ffffff38;color:inherit}
.smart-search-colors{position:relative;display:block;min-width:0;margin:0;padding:11px 14px 12px;border:0;border-top:1px solid var(--line);border-radius:0 0 15px 15px;background:var(--accent-soft)}
.smart-color-label{margin-inline-end:0;color:var(--ink);font-size:11px;font-weight:500;vertical-align:middle}
.smart-color-choice{position:relative;display:inline-grid;place-items:center;flex:none;cursor:pointer}
.smart-color-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.smart-color-choice{width:30px;height:32px}
.smart-color-choice span{pointer-events:none;display:block;width:21px;height:21px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002;transition:transform .14s}
.smart-color-choice:hover span{transform:scale(1.12)}
.smart-color-choice input:checked+span{outline:2px solid var(--accent-deep);outline-offset:3px}
.smart-color-choice input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}
.smart-color-more{display:inline}
.smart-color-more>summary{position:relative;display:inline-flex;vertical-align:middle;align-items:center;gap:10px;max-width:100%;min-height:40px;list-style:none;padding:0;border:0;border-radius:10px;background:transparent;color:var(--accent-deep);cursor:pointer;text-align:start}
.smart-palette-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid var(--accent);border-radius:10px;background:var(--surface);color:var(--accent);transition:background .16s,border-color .16s}
.smart-color-more>summary::-webkit-details-marker{display:none}
.smart-palette-icon>.icon{width:20px;height:20px}
.smart-color-more[open]>summary .smart-palette-icon{background:var(--surface);border-color:var(--accent)}
.smart-color-more>summary:hover .smart-palette-icon{background:var(--accent-soft);border-color:var(--accent)}
.smart-color-more>summary:focus-visible{outline:none}.smart-color-more>summary:focus-visible .smart-palette-icon{outline:2px solid var(--accent-deep);outline-offset:-2px}
.smart-color-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:14px;padding:16px 0 6px;border-top:1px solid var(--line)}
.smart-more-swatches>span,.smart-custom-choice{display:block;margin-bottom:9px;color:var(--ink);font-size:12px;font-weight:600}
.smart-more-swatches>div{display:flex;flex-wrap:wrap;gap:5px}
.smart-custom-choice{display:flex;align-items:center;gap:7px}
.smart-custom-choice input{width:14px;height:14px;margin:0;accent-color:var(--accent-deep)}
.smart-custom-fields{display:flex;align-items:center;gap:8px}
.smart-native-picker{display:block;flex:none}
.smart-native-picker input{display:block;width:40px;height:40px;padding:4px;border:1px solid var(--secondary-line,var(--line));border-radius:9px;background:var(--surface);cursor:pointer}
.smart-native-picker input::-webkit-color-swatch-wrapper{padding:0}
.smart-native-picker input::-webkit-color-swatch{border:0;border-radius:5px}
.smart-native-picker input::-moz-color-swatch{border:0;border-radius:5px}
.smart-native-picker input:disabled{opacity:.5;cursor:default}
.smart-hex-field{display:block;flex:1;min-width:0}
.smart-hex-field input{display:block;width:100%;min-width:0;height:40px;padding:9px 10px;border:1px solid var(--secondary-line,var(--line));border-radius:9px;background:var(--surface);color:var(--ink);font-size:12px;letter-spacing:.4px}
.smart-hex-field input:focus-visible,.smart-native-picker input:focus-visible{border-color:var(--accent-deep);outline:2px solid var(--accent-deep);outline-offset:-2px}
.smart-custom-color p{margin:7px 0 0;font-size:10px;line-height:1.6;color:var(--muted)}
.smart-color-dot{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002}
.color-result-chip{display:inline-block;width:.7em;height:.7em;margin-inline-end:.25em;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002;vertical-align:.02em}
@media(max-width:600px){.smart-search .smart-search-main{gap:8px;padding-inline-start:13px}.smart-search .smart-search-main input[type=search]{font-size:13px}.smart-search .smart-search-main>button{gap:7px;padding-inline:12px;font-size:12px}.smart-search-colors{padding-inline:12px}.smart-color-choice{width:26px;height:30px}.smart-color-choice span{width:19px;height:19px}.smart-color-label{font-size:10px}.smart-color-panel{grid-template-columns:1fr;gap:15px}.smart-more-swatches>div{display:flex;flex-wrap:wrap;gap:6px}.smart-search-hint{padding-inline:13px}}

.hero-copy:has(.smart-search){min-width:0}
.smart-search{min-width:0}


@media(max-width:600px){.smart-search-main input[type=search]::placeholder{font-size:12px}}
@media(max-width:360px){.smart-search-main>.icon{display:none}}

.search-color-fallback{display:flex;align-items:center;justify-content:center;gap:8px;max-width:610px;margin:0 auto 20px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px;line-height:1.6;text-align:center}
.search-color-fallback strong{color:var(--ink);font-weight:600}

/* A selected filter remains editable inside the search box; selection never submits. */
.smart-active-color{display:inline-flex;align-items:center;gap:6px;flex:none;max-width:132px;min-height:32px;padding:4px 3px 4px 9px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:8px;background:var(--accent-soft);color:var(--accent-deep)}
.smart-active-color-code{font-size:10px;font-weight:600;letter-spacing:.15px;white-space:nowrap}
.smart-active-color .smart-color-dot{width:11px;height:11px}
.smart-search .smart-active-color>button{display:grid;place-items:center;flex:none;width:25px;height:25px;min-height:25px;padding:4px;border:0;border-radius:5px;background:transparent;color:var(--accent-deep);box-shadow:none}
.smart-search .smart-active-color>button:hover{background:var(--surface);color:var(--ink)}
.smart-search .smart-active-color>button>.icon{width:14px;height:14px}
.smart-color-choice--none>span{position:relative;background:var(--surface);border:1px solid #99a8af;box-shadow:none;overflow:hidden}
.smart-color-choice--none>span::after{position:absolute;content:"";width:25px;height:1.5px;background:var(--muted);left:50%;top:50%;transform:translate(-50%,-50%) rotate(-45deg)}
@media(max-width:600px){.smart-active-color{gap:4px;padding-inline:6px 2px;min-height:32px}.smart-active-color-code{display:none}.smart-search .smart-search-main{gap:7px}}

/* Keep the selected color clear action distinct from the native text-search cancel. */
.smart-search-main input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}



