.color-picker{margin:18px 0;color:#20251d;min-width:0}
.color-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.color-picker-heading h3{margin:0;font-size:14px;font-weight:700}
.color-picker-heading button{border:0;background:transparent;color:#596353;font:inherit;font-size:12px;min-height:36px;padding:6px;cursor:pointer}
.color-picker-heading button:disabled{opacity:.45;cursor:default}
.color-picker-note{font-size:11px;line-height:1.65;color:#737a6d;margin:3px 0 12px}
.color-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:7px}
.color-swatch{position:relative;display:flex;align-items:center;gap:7px;min-height:44px;padding:7px 8px;border:1px solid #dfe4db;border-radius:7px;background:#fff;font-size:11px;line-height:1.35;cursor:pointer}
.color-swatch input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.color-dot{flex:0 0 18px;width:18px;height:18px;border:1px solid #0003;border-radius:50%;background:var(--swatch)}
.color-swatch:has(input:checked){border-color:#13c52f;box-shadow:inset 0 0 0 1px #13c52f;background:#f3fbf3;font-weight:700}
.color-swatch:has(input:checked) .color-dot{outline:2px solid #13c52f;outline-offset:2px}
.color-swatch:has(input:focus-visible){outline:2px solid #171c17;outline-offset:2px}
.color-dialog{box-sizing:border-box;width:min(94vw,460px);max-height:85dvh;border:0;border-radius:12px;padding:18px;color:#20251d;box-shadow:0 12px 48px #0003}
.color-dialog::backdrop{background:#0006}
.color-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.color-dialog-header h2{margin:0;font-size:18px}
.color-dialog-header button{border:0;background:transparent;font:inherit;font-size:12px;min-height:40px;padding:8px;cursor:pointer}
.color-dialog-apply{display:block;width:100%;min-height:44px;border:0;border-radius:6px;background:#171c17;color:#fff;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.home-search-page .home-query-form .home-color-open{flex:0 0 60px;display:block;font:inherit;font-size:11px;color:#20251d;border:1px solid #dfe4db;background:#fff;white-space:nowrap}
.home-color-open[aria-pressed=true]{box-shadow:inset 0 0 0 1px #13c52f}
.catalog-selected-color{display:block;color:#687360;font-size:10px;line-height:1.5;overflow-wrap:anywhere;margin:3px 0 5px}
.catalog-selected-color[hidden]{display:none}

.color-picker[hidden],.home-search-page .home-query-form .home-color-open[hidden]{display:none}

.home-search-page .home-color-quick{margin:4px 0 0}
.home-color-quick>.container{max-width:800px}
.home-color-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));max-width:448px;margin-inline:auto}
.home-color-primary{display:contents}
.home-color-more{display:grid;grid-template-columns:repeat(auto-fit,minmax(40px,1fr));max-width:448px;margin:4px auto 0}
.home-color-swatch,.home-color-icon{position:relative;display:grid;place-items:center;min-width:0;width:100%;height:44px;border:0;padding:0;background:transparent;border-radius:8px;cursor:pointer;color:#374332}
.home-color-swatch::before,.home-color-icon::before{content:'';position:absolute;width:36px;height:36px;border:1px solid transparent;border-radius:50%;pointer-events:none;box-sizing:border-box}
.home-color-swatch .color-dot{width:22px;height:22px;flex-basis:22px;border-color:transparent;background:var(--home-swatch,var(--swatch));transition:box-shadow .15s}
.home-color-swatch[value=white] .color-dot{border-color:#cbd3cc}
/* HOME presentation only: canonical color groups and product photos stay unchanged. */
.home-color-swatch[value=red]{--home-swatch:#ff354a}
.home-color-swatch[value=blue]{--home-swatch:#287dff}
.home-color-swatch[value=green]{--home-swatch:#13c52f}
.home-color-swatch[value=yellow]{--home-swatch:#ffda24}
.home-color-swatch[value=orange]{--home-swatch:#ff922b}
.home-color-swatch[value=pink]{--home-swatch:#ff68b3}
.home-color-swatch[value=purple]{--home-swatch:#aa60ed}
.home-color-swatch[value=gold]{--home-swatch:#dbac38}
.home-color-swatch[value=brown]{--home-swatch:#a36b40}
.home-color-swatch[value=beige]{--home-swatch:#e5d3aa}
.home-color-swatch[value=multi]{--home-swatch:linear-gradient(135deg,#ff68b3,#ffda24,#287dff)}
.home-color-swatch[aria-pressed=true]::before,.home-color-icon[data-selected=true]::before{border-color:#21ed58;box-shadow:0 0 7px #1de95840}
.home-color-icon::before{border-color:#dfe5dc;border-radius:7px}
.home-color-icon>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.home-color-icon:disabled{opacity:.35;cursor:default}
.home-color-expand{transition:transform .15s}
.home-color-icon[aria-expanded=true] .home-color-expand{transform:rotate(45deg)}
.home-color-swatch:focus-visible,.home-color-icon:focus-visible{outline:none}
.home-color-swatch:focus-visible::before,.home-color-icon:focus-visible::before{outline:2px dashed #16812d;outline-offset:2px}
[data-home-more-picked]{position:absolute;display:flex;gap:2px;bottom:3px;pointer-events:none}
[data-home-more-picked]>span{width:6px;height:6px;border:1px solid #0003;border-radius:50%}
.home-color-selection{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(hover:hover){.home-color-swatch:hover .color-dot{box-shadow:0 0 7px #13c52f25}.home-color-icon:hover::before{border-color:#8fd4a0}}
@media(prefers-reduced-motion:reduce){.home-color-expand,.home-color-swatch .color-dot{transition:none}}
