/* OMC Product Sorter — Frontend Side Box Color Filter */
.omcps-color-filter.omcps-front-sidebox {
    width: 225px;
    max-width: 100%;
    margin: 0 24px 24px 0;
    padding: 14px;
    float: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    box-sizing: border-box;
    clear: left;
}

.omcps-cf-title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}

.omcps-cf-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
    padding: 8px 9px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.omcps-cf-all-link:hover,
.omcps-cf-all-link.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #ffffff !important;
}

.omcps-cf-all-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff6b6b,#ffd93d,#6bcb77,#4d96ff);
    border: 1px solid rgba(0,0,0,0.2);
    flex: 0 0 auto;
}

.omcps-cf-dot-grid {
    display: grid;
    gap: 7px;
}

.omcps-cf-dot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.omcps-cf-dot-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 4px;
    color: #374151 !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.omcps-cf-dot-item:hover {
    background: #f9fafb;
    transform: translateX(2px);
}

.omcps-cf-dot-item.active {
    background: #f3f4ff;
    color: #111827 !important;
    font-weight: 800;
}

.omcps-cf-dot-item.disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

.omcps-cf-dot-item.disabled:hover {
    background: transparent;
    transform: none;
}

.omcps-cf-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
    flex: 0 0 auto;
}

.omcps-cf-dot-item.active .omcps-cf-dot {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
}

.omcps-cf-dot-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.omcps-cf-clear {
    display: block;
    margin-top: 12px;
    padding: 8px 9px;
    background: #fff7f7;
    border: 1px solid #fecaca;
    color: #b91c1c !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.omcps-cf-clear:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
}

/* Keep the box from feeling awkward on smaller screens. */
@media (max-width: 900px) {
    .omcps-color-filter.omcps-front-sidebox {
        float: none;
        width: 100%;
        margin: 0 0 18px;
        clear: both;
    }

    .omcps-cf-dot-row {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .omcps-cf-dot-row {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }

    .omcps-cf-dot-item {
        font-size: 12px;
        padding: 6px 3px;
    }
}
