/* Home color picker. The header menu and the circles beneath the hero are separate. */
.rug-colors {
    padding: 64px 0 56px;
    margin: 0;
    border-bottom: 1px solid #eceeed;
    text-align: center;
}
.rug-colors .rug-colors-heading { margin: 0 0 38px; }
.rug-colors .rug-colors-heading h2 {
    margin: 0 0 16px;
    color: #14191d;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.6;
}
.rug-colors .rug-colors-heading p {
    margin: 0;
    color: #7b838b;
    font-size: 15px;
    line-height: 1.9;
}
.rug-colors .rug-colors-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 14px;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
}
.rug-colors-grid > li { min-width: 0; margin: 0; padding: 0; }
.rug-colors .rug-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5b6269;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.rug-colors .rug-color-swatch {
    display: block;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    margin: 0;
    border: 1px solid rgba(24, 31, 28, .09);
    border-radius: 50%;
    background: var(--swatch-color);
    transition: transform .18s ease, box-shadow .18s ease;
}
.rug-colors .rug-color-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    white-space: nowrap;
}
.rug-color-swatch--red { --swatch-color: #a53440; }
.rug-color-swatch--pink { --swatch-color: #d991ad; }
.rug-color-swatch--orange { --swatch-color: #d87946; }
.rug-color-swatch--gold { --swatch-color: #c9a04d; }
.rug-color-swatch--green { --swatch-color: #657b64; }
.rug-color-swatch--blue { --swatch-color: #4e7d9f; }
.rug-color-swatch--navy { --swatch-color: #27364c; }
.rug-color-swatch--brown { --swatch-color: #886349; }
.rug-color-swatch--cream-beige { --swatch-color: #e9dbc2; }
.rug-color-swatch--gray { --swatch-color: #939598; }
.rug-color-swatch--black { --swatch-color: #252727; }
.rug-colors .rug-color-swatch--multicolor {
    background: conic-gradient(from 20deg, #9b303b 0deg 60deg, #cc9d4b 60deg 120deg,
        #657b64 120deg 180deg, #4e7d9f 180deg 240deg, #27364c 240deg 300deg, #b47e9b 300deg 360deg);
}
.rug-colors .rug-color-option:focus-visible {
    outline: 2px solid #168253;
    outline-offset: 4px;
    color: #14191d;
}
@media (hover: hover) and (pointer: fine) {
    .rug-colors .rug-color-option:hover { color: #14191d; }
    .rug-colors .rug-color-option:hover .rug-color-swatch {
        transform: translateY(-3px);
        box-shadow: 0 0 0 5px #fff, 0 0 0 6px #d8e4dc;
    }
}
@media (max-width: 1199px) {
    .rug-colors .rug-colors-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 840px; }
}
@media (max-width: 767px) {
    .rug-colors { padding: 40px 0; }
    .rug-colors .rug-colors-heading { margin-bottom: 24px; }
    .rug-colors .rug-colors-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
    .rug-colors .rug-color-swatch { width: 64px; height: 64px; }
    .rug-colors .rug-color-option { gap: 10px; }
    .rug-colors .rug-color-name { font-size: 13px; }
}
@media (max-width: 379px) {
    .rug-colors .rug-colors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .rug-colors .rug-color-swatch { transition: none; }
    .rug-colors .rug-color-option:hover .rug-color-swatch { transform: none; }
}
