/* 色フィルター用スタイル */
.color-filter-container {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.color-filter-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #000;
    transform: scale(1.1);
}

.color-name {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 10;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.color-option-wrapper {
    position: relative;
    display: inline-block;
}

.color-option-wrapper:hover .color-name {
    display: block;
}

.color-groups {
    margin-bottom: 15px;
}

.color-group-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.color-chip {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-chip:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-chip.active {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.color-sample {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.color-count {
    margin-left: 5px;
    font-size: 12px;
    color: #666;
}

.color-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.color-preview-container.active {
    max-height: 500px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
}

.product-color-preview {
    width: calc(20% - 10px);
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-color-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-name {
    font-size: 12px;
    margin-top: 5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-more-colors {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-more-colors:hover {
    background-color: #e0e0e0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .product-color-preview {
        width: calc(33.333% - 10px);
    }
}

@media (max-width: 480px) {
    .product-color-preview {
        width: calc(50% - 10px);
    }
} 