/* Color Variants Styling */
.color-palette {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.color-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-dot:hover {
    transform: scale(1.1);
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-dot:active {
    transform: scale(0.95);
}

/* Product page color options */
.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-option {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    background: white;
}

.color-option:hover {
    border-color: #FF6B6B;
    background: #fff5f5;
}

.color-option.selected {
    border-color: #FF6B6B;
    background: #FF6B6B;
    color: white;
}

/* Admin panel color variant styling */
.color-variant-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    background: white;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.variant-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.variant-content {
    padding: 16px;
}

.variant-basic-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.variant-images {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.color-image-inputs {
    margin: 8px 0;
}

.color-image-input-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.file-input-wrapper:hover .file-input-label {
    border-color: #007bff;
    background: #e3f2fd;
}

.file-input-wrapper.file-selected .file-input-label {
    border-color: #28a745;
    background: #d4edda;
    border-style: solid;
}

.add-color-image-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.add-color-image-btn:hover {
    background: #0056b3;
}

.remove-color-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-color-image-btn:hover {
    background: #c82333;
}

.existing-variant-images {
    margin-bottom: 12px;
}

.existing-variant-image {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.existing-variant-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #28a745;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.existing-variant-image button {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}